lintian fixes
authorRalph Ronnquist <ralph.ronnquist@gmail.com>
Mon, 24 Oct 2022 04:12:51 +0000 (15:12 +1100)
committerRalph Ronnquist <ralph.ronnquist@gmail.com>
Mon, 24 Oct 2022 04:12:51 +0000 (15:12 +1100)
Makefile
debian/control
debian/copyright
debian/lintian-overrides [new file with mode: 0644]

index 52d522a94a5c4beb0f61b835c9cd998e43bac345..5e75dfdc199bd7b3019d94e4033a54e1d9a60b0c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 LIBDIR= $(DESTDIR)/usr/lib
-SBINDIR = $(DESTDIR)/usr/local/sbin
-MAN8DIR = $(DESTDIR)/usr/local/share/man/man8
+SBINDIR = $(DESTDIR)/usr/sbin
+MAN8DIR = $(DESTDIR)/usr/share/man/man8
 
 SBINFILES = tarmap
 LIBFILES = libtarmap.so libpathmap.so
@@ -20,8 +20,9 @@ default: $(GENFILES)
        asciidoc -bhtml $^
 
 # Generic rule for making a dynamic library form a same named .c file
+V := .0
 %.so: %.c
-       gcc -Wall -fPIC  -Wl,-init,so_init -shared -o $@ $^ -ldl
+       gcc -Wall -fPIC -Wl,-init,so_init,-soname,$@$V -shared -o $@$V $^ -ldl
 
 # Generic rule for making a binary from a same named .c file
 %: %.c
@@ -37,7 +38,11 @@ INSTALLTARGETS = $(addprefix $(LIBDIR)/,$(LIBFILES))
 INSTALLTARGETS += $(addprefix $(MAN8DIR)/,$(MAN8FILES))
 
 # Generic rule to install bmo the install command without renaming
-$(LIBDIR)/% $(SBINDIR)/% $(MAN8DIR)/%: %
+$(LIBDIR)/%: %
+       install -D -T $<$V $@$V
+       ln -s $<$V $@
+
+$(SBINDIR)/% $(MAN8DIR)/%: %
        install -D -T $< $@
 
 install: $(INSTALLTARGETS)
index e1964f0d66dd545159fa85eef00a6cfe12f74641..a57ab179696d17631c08b320b04b1a90d3451177 100644 (file)
@@ -12,3 +12,5 @@ Package: libpathmap
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: preload libraries for path mapping
+ LD_PRELOAD library that overrides file access so as to offer files
+ from a given tar/tgz archive first.
index e41cdbec0f664d3e772154bf2a5edb064e78890e..956e5c665330a75edb6dcf0d5b499480fc7f5013 100644 (file)
@@ -1,6 +1,6 @@
 Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 Upstream-Name: pathmap
-Source: <url://example.com>
+Source: repo@borta:ralph/pathmap.git
 
 Files: debian/*
 Copyright: 2021 Ralph Ronnquist <ralph@ascii>
diff --git a/debian/lintian-overrides b/debian/lintian-overrides
new file mode 100644 (file)
index 0000000..e13b204
--- /dev/null
@@ -0,0 +1,2 @@
+libpathmap: link-to-shared-library-in-wrong-package
+libpathmap: package-name-doesnt-match-sonames