Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#80245 - [texinfo] texinfo-install.hook reports an error when package has only /usr/share/info directory
Attached to Project:
Arch Linux
Opened by Chris Gorman (chrisgorman) - Monday, 13 November 2023, 14:24 GMT
Last edited by freswa (frederik) - Monday, 13 November 2023, 21:59 GMT
Opened by Chris Gorman (chrisgorman) - Monday, 13 November 2023, 14:24 GMT
Last edited by freswa (frederik) - Monday, 13 November 2023, 21:59 GMT
|
DetailsDescription:
Recently I have noticed errors appearing when I install some packages. I believe the errors relate to the packages containing an empty directory /usr/share/info. The texinfo-istall.hook is regularly reporting an error. (2/2) Updating the info directory file... error: command failed to execute correctly Additional info: texinfo 7.1-1 Steps to reproduce: pacman -S libmatio Possible solution: The exec line from /usr/share/libalpm/hooks/texinfo-install.hook is Exec = /bin/sh -c 'while read -r f; do install-info "$f" /usr/share/info/dir 2> /dev/null; done' Perhaps adding a check to see if we are adding a file or directory? As far as I can see we should not be adding a directory. Exec = /bin/sh -c 'while read -r f; do if [ ! -d "$f" ]; then install-info "$f" /usr/share/info/dir 2>/dev/null; fi; done' (This line works for me.) Steps to test to see if install-info works properly without an empty directory: pacman -S maxima |
This task depends upon
Closed by freswa (frederik)
Monday, 13 November 2023, 21:59 GMT
Reason for closing: Fixed
Additional comments about closing: texinfo 7.1-2
Monday, 13 November 2023, 21:59 GMT
Reason for closing: Fixed
Additional comments about closing: texinfo 7.1-2
Another option would be to just fix the pkgs providing the useless empty dirs:
$ namcap /var/cache/pacman/pkg/libmatio-1.5.26-1-x86_64.pkg.tar.zst | grep empty
libmatio W: Directory (usr/share/info) is empty
Adding `options=(!emptydirs)' to the PKGBUILD should deal with it.
But yeah, maybe the hook could be a bit more tolerant.