Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 175955 - sys-apps/suspend2-userui-0.6.4-r2 and also 0.7.0: Wrong postinst message
Summary: sys-apps/suspend2-userui-0.6.4-r2 and also 0.7.0: Wrong postinst message
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Alon Bar-Lev (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-25 12:09 UTC by Alexander Skwar
Modified: 2007-04-26 05:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Skwar 2007-04-25 12:09:19 UTC
In pkg_postinst, there's:

    einfo "Please see /usr/share/doc/${PF}/README.gz for further"
    einfo "instructions."

The file doesn't exist - the README file is compressed with bzip2:

askwar@winnb000488 ~ $ ls -la /usr/share/doc/suspend2-userui-0.6.4-r2/README.*
-rw-r--r-- 1 root root 1555 25. Apr 14:05 /usr/share/doc/suspend2-userui-0.6.4-r2/README.bz2

Because of this, the einfo should be:

    einfo "Please see /usr/share/doc/${PF}/README.bz2 for further"
Comment 1 Bo Ørsted Andresen (RETIRED) gentoo-dev 2007-04-25 13:15:36 UTC
(In reply to comment #0)
> In pkg_postinst, there's:
> 
>     einfo "Please see /usr/share/doc/${PF}/README.gz for further"
>     einfo "instructions."
> 
> The file doesn't exist - the README file is compressed with bzip2:
> 
> askwar@winnb000488 ~ $ ls -la /usr/share/doc/suspend2-userui-0.6.4-r2/README.*
> -rw-r--r-- 1 root root 1555 25. Apr 14:05
> /usr/share/doc/suspend2-userui-0.6.4-r2/README.bz2
> 
> Because of this, the einfo should be:
> 
>     einfo "Please see /usr/share/doc/${PF}/README.bz2 for further"
> 

bzip2 is the current default when PORTAGE_COMPRESS isn't set. It is, however, configurable so you cannot rely on it being .bz2. In fact you cannot rely on it being compressed at all. Also the einfo's should be converted to elog's.
Comment 2 Alon Bar-Lev (RETIRED) gentoo-dev 2007-04-26 05:42:19 UTC
Thanks!
OK. Modified to README.*
I don't think elog should be used since you should always read the manual... Maybe I remove the comment next version.