File: fix_dcf_path.patch

package info (click to toggle)
dar 2.7.17-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,236 kB
  • sloc: cpp: 84,193; sh: 6,837; ansic: 875; makefile: 485; python: 242; csh: 113; perl: 43; sed: 16
file content (27 lines) | stat: -rw-r--r-- 1,445 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: Fix path in /etc/darrc
 Debian installs dar_par.dcf in /usr/share/doc/dar/examples/ (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_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/881507
Forwarded: not-needed
Last-Update: 2021-06-06

--- a/doc/samples/Makefile.am
+++ b/doc/samples/Makefile.am
@@ -5,12 +5,12 @@ dist_noinst_DATA = $(NO_EXE_SAMPLES) $(E
 
 install-data-hook:
 	$(INSTALL) -d $(DESTDIR)$(pkgdatadir)/samples
-	sed -e "s%SOMEPATH%$(pkgdatadir)/samples%g" '$(srcdir)/dar_par.dcf' > $(DESTDIR)$(pkgdatadir)/samples/dar_par.dcf
+	sed -e "s%SOMEPATH%/usr/share/doc/dar/examples%g" '$(srcdir)/dar_par.dcf' > $(DESTDIR)$(pkgdatadir)/samples/dar_par.dcf
 	chmod 0644 $(DESTDIR)$(pkgdatadir)/samples/dar_par.dcf
 	for f in $(NO_EXE_SAMPLES); do $(INSTALL) -m 0644 '$(srcdir)/'"$${f}" $(DESTDIR)$(pkgdatadir)/samples; done
 	for f in $(EXE_SAMPLES); do $(INSTALL) -m 0755 '$(srcdir)/'"$${f}" $(DESTDIR)$(pkgdatadir)/samples; done
 	$(INSTALL) -d $(DESTDIR)$(sysconfdir)
-	sed -e "s%SOMEPATH%$(pkgdatadir)/samples%g" '$(srcdir)/etc_darrc' > $(DESTDIR)$(sysconfdir)/darrc
+	sed -e "s%SOMEPATH%/usr/share/doc/dar/examples%g" '$(srcdir)/etc_darrc' > $(DESTDIR)$(sysconfdir)/darrc
 
 uninstall-local:
 	rm -rf $(DESTDIR)$(pkgdatadir)/samples