Package: dar
Version: 2.5.13-1
Control: tags -1 patch

Debian installs dar_par.dcf in /usr/share/dar, but /etc/darrc expects it to be in /usr/share/dar/samples, and it hence fails with
$ dar -c 2 -R . par2
Parse error: In included file /etc/darrc: Error reading included file (/usr/share/dar/samples/dar_par.dcf): No such file or directory

Fix attached.
Description: Fix path in /etc/darrc

Debian installs dar_par.dcf in /usr/share/dar (not /samples),
and it hence fails with
$ dar -c 2 -R . par2
Parse error: In included file /etc/darrc: Error reading included file (/usr/share/dar/samples/dar_par.dcf): No such file or directory

Author: Rebecca N. Palmer <rebecca_pal...@zoho.com>
Bug-Debian: https://bugs.debian.org/<this report>
Forwarded: not-needed

--- a/doc/samples/Makefile.in
+++ b/doc/samples/Makefile.in
@@ -465,7 +465,7 @@ install-data-hook:
 	$(INSTALL) -m 0644 $(NO_EXE_SAMPLES) $(DESTDIR)$(pkgdatadir)/samples
 	$(INSTALL) -m 0755 $(EXE_SAMPLES) $(DESTDIR)$(pkgdatadir)/samples
 	$(INSTALL) -d $(DESTDIR)$(sysconfdir)
-	sed -e "s%SOMEPATH%$(pkgdatadir)/samples%g" etc_darrc > $(DESTDIR)$(sysconfdir)/darrc
+	sed -e "s%SOMEPATH%$(pkgdatadir)%g" etc_darrc > $(DESTDIR)$(sysconfdir)/darrc
 
 uninstall-local:
 	rm -rf $(DESTDIR)$(pkgdatadir)/samples
--- a/doc/samples/Makefile.am
+++ b/doc/samples/Makefile.am
@@ -10,7 +10,7 @@ install-data-hook:
 	$(INSTALL) -m 0644 $(NO_EXE_SAMPLES) $(DESTDIR)$(pkgdatadir)/samples
 	$(INSTALL) -m 0755 $(EXE_SAMPLES) $(DESTDIR)$(pkgdatadir)/samples
 	$(INSTALL) -d $(DESTDIR)$(sysconfdir)
-	sed -e "s%SOMEPATH%$(pkgdatadir)/samples%g" etc_darrc > $(DESTDIR)$(sysconfdir)/darrc
+	sed -e "s%SOMEPATH%$(pkgdatadir)%g" etc_darrc > $(DESTDIR)$(sysconfdir)/darrc
 
 uninstall-local:
 	rm -rf $(DESTDIR)$(pkgdatadir)/samples

Reply via email to