Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94161 - snort ebuild snort-2.3.3-r1 problem
Summary: snort ebuild snort-2.3.3-r1 problem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-27 03:44 UTC by kakou
Modified: 2005-07-25 13:09 UTC (History)
0 users

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


Attachments
snort-2.3.3-r1.ebuild.diff (snort-2.3.3-r1.ebuild.diff,1.01 KB, patch)
2005-07-16 22:05 UTC, Marco Morales
Details | Diff
snort-2.3.3-r1.ebuild.diff (snort-2.3.3-r1.ebuild.diff,861 bytes, patch)
2005-07-16 22:35 UTC, Marco Morales
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description kakou 2005-05-27 03:44:59 UTC
when I try to install snort 

emerge -pv =net-analyzer/snort-2.3.3-r1

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     U ] net-analyzer/snort-2.3.3-r1 [2.3.2-r1] -debug -flexresp -inline
+mysql -odbc -postgres +prelude (-selinux) -sguil +snortsam +ssl 0 kB 

Total size of downloads: 0 kB


____________________
> Completed installing snort-2.3.3-r1 into /var/tmp/portage/snort-2.3.3-r1/image/

>>> Merging net-analyzer/snort-2.3.3-r1 to /
/usr/portage/net-analyzer/snort/snort-2.3.3-r1.ebuild: line 96: 14826 Broken
pipe             usermod -d "/var/log/snort" snort

!!! ERROR: net-analyzer/snort-2.3.3-r1 failed.
!!! Function pkg_preinst, Line 99, Exitcode 141
!!! usermod problem
!!! If you need support, post the topmost build error, NOT this status message.

!!! FAILED preinst: 1
______________________

the error is  the line

    usermod -g "snort" snort || die "usermod problem"

from 

pkg_preinst() {
    enewgroup snort
    enewuser snort -1 /bin/false /var/log/snort snort
    usermod -d "/var/log/snort" snort || die "usermod problem"
    usermod -g "snort" snort || die "usermod problem"
    usermod -s "/bin/false" snort || die "usermod problem"
    echo "ignore any message about CREATE_HOME above..."
}


Reproducible: Always
Steps to Reproduce:
1.  emerge -pv =net-analyzer/snort-2.3.3-r1
2.
3.
Comment 1 Marcelo Goes (RETIRED) gentoo-dev 2005-06-19 13:55:10 UTC
I can't reproduce your problem and that portion of the ebuild is present in
older ebuilds, can you still reproduce it?
Comment 2 Marco Morales 2005-07-16 22:05:41 UTC
Created attachment 63586 [details, diff]
snort-2.3.3-r1.ebuild.diff

Maybe a fix like this could help ;)
Comment 3 Marco Morales 2005-07-16 22:35:09 UTC
Created attachment 63587 [details, diff]
snort-2.3.3-r1.ebuild.diff

Sorry previous one had an error coz i still used /var/log/snort as home... is
it really necessary? i just made /dev/null as home in this one...
Comment 4 Marcelo Goes (RETIRED) gentoo-dev 2005-07-25 13:09:16 UTC
In fact, I don't think it is necessary. And indeed, that stuff should be in
pkg_setup() and not pkg_preinst(). Fixed in cvs.
Thanks for reporting.