From e1bf19b246940b31c5a48f7590384d6a04df1e1d Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Mon, 24 Oct 2022 15:12:51 +1100 Subject: [PATCH] lintian fixes --- Makefile | 13 +++++++++---- debian/control | 2 ++ debian/copyright | 2 +- debian/lintian-overrides | 2 ++ 4 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 debian/lintian-overrides diff --git a/Makefile b/Makefile index 52d522a..5e75dfd 100644 --- 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) diff --git a/debian/control b/debian/control index e1964f0..a57ab17 100644 --- a/debian/control +++ b/debian/control @@ -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. diff --git a/debian/copyright b/debian/copyright index e41cdbe..956e5c6 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,6 +1,6 @@ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: pathmap -Source: +Source: repo@borta:ralph/pathmap.git Files: debian/* Copyright: 2021 Ralph Ronnquist diff --git a/debian/lintian-overrides b/debian/lintian-overrides new file mode 100644 index 0000000..e13b204 --- /dev/null +++ b/debian/lintian-overrides @@ -0,0 +1,2 @@ +libpathmap: link-to-shared-library-in-wrong-package +libpathmap: package-name-doesnt-match-sonames -- 2.47.2