From 3040ed44345cce3c3cad83b61a49dcfd88430bd5 Mon Sep 17 00:00:00 2001 From: Mikel Ward Date: Wed, 1 Jun 2022 15:18:57 +0100 Subject: [PATCH] Add a leading slash to Debian conffiles paths Avoids an error dpkg-deb: error: conffile name 'etc/xdg/autostart/autorandr.desktop' is not an absolute pathname --- contrib/packaging/debian/make_deb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/packaging/debian/make_deb.sh b/contrib/packaging/debian/make_deb.sh index fe8fe37..32d1b7b 100755 --- a/contrib/packaging/debian/make_deb.sh +++ b/contrib/packaging/debian/make_deb.sh @@ -45,7 +45,7 @@ SIZE=$(du -s $D | awk '{print $1}') cp -r "$P/debian" "$D/DEBIAN" chmod 0755 "$D/DEBIAN" -[ -d "$D/etc" ] && (cd $D; find etc -type f) > "$D/DEBIAN/conffiles" +[ -d "$D/etc" ] && (cd $D; find etc -type f -printf '/%p\n') > "$D/DEBIAN/conffiles" sed -i -re "s#Version:.+#Version: $V#" "$D/DEBIAN/control" echo "Installed-Size: $SIZE" >> "$D/DEBIAN/control" fakeroot dpkg-deb -b "$D" "$O" -- 2.39.2