]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Add a leading slash to Debian conffiles paths
authorMikel Ward <mbw@google.com>
Wed, 1 Jun 2022 14:18:57 +0000 (15:18 +0100)
committerMikel Ward <mbw@google.com>
Wed, 1 Jun 2022 14:18:57 +0000 (15:18 +0100)
Avoids an error
dpkg-deb: error: conffile name 'etc/xdg/autostart/autorandr.desktop' is not an absolute pathname

contrib/packaging/debian/make_deb.sh

index fe8fe375f18b2ca8ee206cb5a527a45bf9636992..32d1b7b1f94a5056f0064520fe0afe7b80774443 100755 (executable)
@@ -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"