Arch Linux

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!
Tasklist

FS#28056 - postfix-files lists wrong man pages filename

Attached to Project: Arch Linux
Opened by Antony Jepson (smurnjiff) - Sunday, 22 January 2012, 21:22 GMT
Last edited by Gaetan Bisson (vesath) - Sunday, 22 January 2012, 23:55 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Gaetan Bisson (vesath)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: The postfix-files program does not contain the correct man-page path. This results in `postfix set-permissions` failing with "chown: cannot access `/usr/share/man/man1/mailq.1': No such file or directory".


Additional info:
* postfix 2.8.7-2
* db 5.3.15-1

Steps to reproduce:
# postfix set-permissions

Steps to fix:
Replace the man-paths with their -gz equivalents.

cd $PKG/usr/libexec/postfix
grep manpage postfix-files | while read line;
do MANPAGE="$(echo "$line" | cut -d: -f1)"
sed -i s%"$MANPAGE"%"$MANPAGE.gz"% postfix-files
done

Source: http://repository.slacky.eu/slackware-13.0/network/postfix/2.6.5/src/postfix.SlackBuild
This task depends upon

Closed by  Gaetan Bisson (vesath)
Sunday, 22 January 2012, 23:55 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in SVN
Comment by Gaetan Bisson (vesath) - Sunday, 22 January 2012, 23:49 GMT
What a funny shell script! Seriously though, it can be done in just one sed command...

Loading...