ipp-usb: fix man page being installed into double PREFIX, use --replace-fail everywhere (#459857)

This commit is contained in:
Aleksana 2025-11-09 02:04:26 +00:00 committed by GitHub
commit b5e7365ef7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,11 +21,13 @@ buildGoModule rec {
postPatch = '' postPatch = ''
# rebuild with patched paths # rebuild with patched paths
rm ipp-usb.8 rm ipp-usb.8
substituteInPlace Makefile --replace "install: all" "install: man" substituteInPlace Makefile \
substituteInPlace systemd-udev/ipp-usb.service --replace "/sbin" "$out/bin" --replace-fail "install: all" "install: man" \
for i in Makefile paths.go ipp-usb.8.md; do --replace-fail "/usr/" "/"
substituteInPlace $i --replace "/usr" "$out" substituteInPlace systemd-udev/ipp-usb.service --replace-fail "/sbin" "$out/bin"
substituteInPlace $i --replace "/var/ipp-usb" "/var/lib/ipp-usb" for i in paths.go ipp-usb.8.md; do
substituteInPlace $i --replace-fail "/usr" "$out"
substituteInPlace $i --replace-fail "/var/ipp-usb" "/var/lib/ipp-usb"
done done
''; '';
@ -43,7 +45,7 @@ buildGoModule rec {
doInstallCheck = true; doInstallCheck = true;
postInstall = '' postInstall = ''
# to accomodate the makefile # to accommodate the makefile
cp $out/bin/ipp-usb . cp $out/bin/ipp-usb .
make install DESTDIR=$out make install DESTDIR=$out
''; '';