Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 349203 - net-firewall/psad-2.1.7 emerge from binary package failed
Summary: net-firewall/psad-2.1.7 emerge from binary package failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-20 16:05 UTC by Martin Matousek
Modified: 2012-11-21 06:46 UTC (History)
0 users

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 Martin Matousek 2010-12-20 16:05:27 UTC
Emerging net-firewall/psad-2.1.7 from binary package failed. Emerging from source or making the binary package is OK, but emerging the binary package (even on the same machine) failed. Probably the reason is that "fix_psad_conf" function in ebuild is called from pkg_preinst. This function manipulates files used during compilation that are not available in binary merge, so probably it shoud not be in pkg_.... Ebuild of Previous version 1.4.8 calls this in src_install, which is OK.

Steps to reproduce:
emerge -b =net-firewall/psad-2.1.7
emerge -k =net-firewall/psad-2.1.7

====================
/var/tmp/portage/net-firewall/psad-2.1.7/temp/environment: line 2630: cd: /var/tmp/portage/net-firewall/psad-2.1.7/work/psad-2.1.7: No such file or directory
cp: cannot stat `psad.conf': No such file or directory
sed: can't read psad.conf: No such file or directory
 * ERROR: net-firewall/psad-2.1.7 failed:
 *   fix_psad_conf failed
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called pkg_preinst
 *   environment, line 2631:  Called fix_psad_conf
 *   environment, line 1399:  Called die
 * The specific snippet of code:
 *       sed -i "s:HOSTNAME\(.\+\)\_CHANGEME\_;:HOSTNAME\1${myhostname}${mydomain};:" psad.conf || die "fix_psad_conf failed";
 *
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-11-21 06:46:36 UTC
That configuration manipulation stuff has all been removed in 2.2 - not only was it being "fixed" in the wrong ebuild phase, but more importantly: users of this package should be smart enough to RTFM and configure it properly themselves.

Thanks for reporting! Please test 2.2 and file new bug reports for any remaining issues.