Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97268 - sendmail-8.13.4.ebuild: line 166 - error because groupe exist
Summary: sendmail-8.13.4.ebuild: line 166 - error because groupe exist
Status: RESOLVED DUPLICATE of bug 80413
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Andrea Barisani (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-27 19:12 UTC by Analyzer
Modified: 2005-07-01 06:38 UTC (History)
3 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 Analyzer 2005-06-27 19:12:29 UTC
i have postfox. but clamv want to install  sendmail and can't. error on merging
step...

>>> Merging mail-mta/sendmail-8.13.4 to /
/usr/portage/mail-mta/sendmail/sendmail-8.13.4.ebuild: line 166:  7729 Broken
pipe             groupmod smmsp
groupadd: group smmsp exist

!!! ERROR: mail-mta/sendmail-8.13.4 failed.
!!! Function pkg_preinst, Line 168, Exitcode 9
!!! problem adding group smmsp
!!! If you need support, post the topmost build error, NOT this status message.

!!! FAILED preinst: 1

you would check this group on exist before creating and adding...

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
not emerging this app.


root@localhost:/var/tmp/portage/clamav-0.86_rc1/work/clamav-0.86rc1/clamav-milter$
emerge info
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.12-gentoo i686)
=================================================================
System uname: 2.6.12-gentoo i686 AMD Athlon(tm)
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.9
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="ru_RU.KOI8-R"
LC_ALL="ru_RU.KOI8-R"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex 3dnowext 7zip X aac aalib accessibility acl acpi
activefilter adns aim alsa amuled apache2 apm applet artworkextra atm audio
audiofile avi bash-completion bcmath berkdb bidi bitmap-fonts bmp bonobo buttons
bzip2 bzlib cairo calendar caps cdparanoia cdr chroot clamav cpdflib
cpudetection crypt css cups curl curlwrappers customlog dba dga dhcp dillo
divx4linux doc dv dvb dvd dvdr dvdread dynagraph ecc edl eds emacs emboss encode
epiphany escreen etwin exif extensions extras fam ffmpeg filepro flac
font-server foomaticdb fortran fpx ftp gcj gd geoip gg ggi gif glitz gnome-print
gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal howl iconv icq
idea imagemagick imap imlib irc java jbig jpeg jpeg2k kde kdeenablefinal
kdexdeltas lcms ldap leim lesstif libcaca libclamav libedit libfpx libg++ libwww
lirc lj logrotate lzo mad mailbox maildir mailwrapper matroska mbox md5sum
mikmod milter mime mjpeg mmx mmxext mng mono mozilla moznomail mozsvg mozxmlterm
mp3 mpeg mpi mplayer mppe-mppc mysql mythtv nas ncurses neXt nethack network nis
nls nntp nptl nptlonly nvidia objc odbc offensive ogg oggvorbis opengl openntpd
openssh oss pam pcntl pcre pdflib perl php plugin png portaudio posix povray
python qt quicktime radius rar readline real remote rss rtc rube ruby sasl sdl
session sharedext silc simplexml slang slp sndfile sockets socks5 speex spell
sqlite sse ssl stats subtitles subversion svg symlink tcltk tcpd tetex theora
threads tiff truetype truetype-fonts type1-fonts underscores usb v4l v4l2 vcd
vda vhosts visualization vorbis win32codecs wma123 wmf xanim xface xine xinerama
xml xml2 xmms xosd xpm xrandr xsl xv xvid xvmc yahoo zeroconf zlib zvbi
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS
Comment 1 Andrea Barisani (RETIRED) gentoo-dev 2005-06-28 00:18:46 UTC
The ebuild check the group before adding it already:

if ! groupmod smmsp; then
	groupadd smmsp || die "problem adding group smmsp"
fi
Do you have shadow installed? Do you have the groupmod binary installed on the
system?
Comment 2 Analyzer 2005-06-28 01:26:24 UTC
hm. yes, i have shadow installed. 
[ebuild   R   ] sys-apps/shadow-4.0.7-r2  +nls +pam (-selinux) -skey 0 kB
i see this check on exist. but this checkin not pass for me. i dont know why. is
any suggest?
and last...
>root@localhost:/$ groupmod smmsp
>Broken pipe
is it normal? when groupmod smmsp talking - Broken pipe.
Comment 3 Andrea Barisani (RETIRED) gentoo-dev 2005-06-28 01:59:08 UTC
No, it's not. Could you try 'groupmod smmsp' as root and see what you get?
Comment 4 Analyzer 2005-06-28 02:18:50 UTC
(In reply to comment #3)
> No, it's not. Could you try 'groupmod smmsp' as root and see what you get?

this i run like root!

>root@localhost:/$ groupmod smmsp
>Broken pipe

i got just - Broken pipe. and nothing else
Comment 5 Andrea Barisani (RETIRED) gentoo-dev 2005-06-28 02:21:22 UTC
Ah sorry, I was looking at the "$" ;).

Ok that's broken, can you paste your /etc/pam.d/groupmod if any?

Have you tried re-emerging shadow just to be sure?
Comment 6 Stian Skjelstad 2005-06-28 03:00:08 UTC
quick question. Do you have /etc/init.d/nscd started? If so, try to stop it an
emerge again. (I have seen some bugs in nscd that isn't resolved yet that gives
errors like broken pipe and things like that on all commands that affects
/etc/passwd etc.)
Comment 7 Andrea Barisani (RETIRED) gentoo-dev 2005-06-28 03:11:44 UTC
nscd shouldn't affect this but please try with and without and see if you get
any difference.
Comment 8 Analyzer 2005-06-28 03:43:42 UTC
ok. it's was my failure:-). i'd re-emerge shadow and get other resoult when
installing sendmail (though groupmod smmsp say me - Broken pipe again:-)) :

===========================================================
>>> Completed installing sendmail-8.13.4 into
/var/tmp/portage/sendmail-8.13.4/image/

* checking 236 files for package collisions
existing file /usr/bin/rmail is not owned by this package
existing file /usr/share/man/man1/newaliases.1.gz is not owned by this package
existing file /usr/share/man/man1/mailq.1.gz is not owned by this package
existing file /usr/share/man/man5/aliases.5.gz is not owned by this package
* spent 0.0855548381805 seconds checking for file collisions
* This package is blocked because it wants to overwrite
* files belonging to other packages (see messages above).
* If you have no clue what this is all about report it
* as a bug for this package on http://bugs.gentoo.org

package mail-mta/sendmail-8.13.4 NOT merged

No package files given... Grabbing a set.
===========================================================

for information:
i have installed 'postfix' and belongs...

===========================================================
mail-mta/postfix-2.2.2-r1 (/usr/bin/rmail)
mail-mta/postfix-2.2.2-r1 (/usr/share/man/man1/newaliases.1.gz)
mail-mta/postfix-2.2.2-r1 (/usr/share/man/man1/mailq.1.gz)
mail-mta/postfix-2.2.2-r1 (/usr/share/man/man5/aliases.5.gz)
===========================================================

i hope that this information help you solve this issue:-)
Comment 9 Andrea Barisani (RETIRED) gentoo-dev 2005-06-28 04:49:07 UTC
unmerge sendmail and postfix, and delete manually those files. Then re-emerge the
MTA you need. If you want to use both just use the mailwrapper USE flag.
Comment 10 Analyzer 2005-06-28 05:27:44 UTC
hm... strange... i did - 'emerge -C postfix sendmail'. and now tried install
sendmail and postfox again (failure). i got same error when tried install
sendmail(without postfix).

============================================================ 
>>> Merging mail-mta/sendmail-8.13.4 to /
/usr/portage/mail-mta/sendmail/sendmail-8.13.4.ebuild: line 166: 22021 Broken
pipe             groupmod smmsp
groupadd: group smmsp already exist

!!! ERROR: mail-mta/sendmail-8.13.4 failed.
!!! Function pkg_preinst, Line 168, Exitcode 9
!!! problem adding group smmsp
!!! If you need support, post the topmost build error, NOT this status message.

!!! FAILED preinst: 1
============================================================

going farther...:)

============================================================
root@localhost:/home/analyzer$ /etc/init.d/nscd status
 * status:  started
============================================================

i shut down this service and tried install sendmail with postfix. and ou my god!
sendmail had been installed:) but now i have problem when were installing postfix

============================================================
>>> Completed installing postfix-2.2.2-r1 into
/var/tmp/portage/postfix-2.2.2-r1/image/

* checking 312 files for package collisions
existing file /usr/bin/rmail is not owned by this package
existing file /usr/share/man/man1/newaliases.1.gz is not owned by this package
existing file /usr/share/man/man1/mailq.1.gz is not owned by this package
existing file /usr/share/man/man5/aliases.5.gz is not owned by this package
* spent 0.0226001739502 seconds checking for file collisions
* This package is blocked because it wants to overwrite
* files belonging to other packages (see messages above).
* If you have no clue what this is all about report it
* as a bug for this package on http://bugs.gentoo.org

package mail-mta/postfix-2.2.2-r1 NOT merged

No package files given... Grabbing a set.
============================================================

Now will do readout: sendmail installing well with stopped /etc/init.d/nscd
service and they (sendmail+postfix) have some same files:

mail-mta/postfix-2.2.2-r1 (/usr/bin/rmail)
mail-mta/postfix-2.2.2-r1 (/usr/share/man/man1/newaliases.1.gz)
mail-mta/postfix-2.2.2-r1 (/usr/share/man/man1/mailq.1.gz)
mail-mta/postfix-2.2.2-r1 (/usr/share/man/man5/aliases.5.gz)

and should fix this issue.

ps: i can't install postfix now:)))
Comment 11 Andrea Barisani (RETIRED) gentoo-dev 2005-06-28 05:31:52 UTC
1. don't try to install postfix and sendmail together without mailwrapper flag
2. don't bother about nscd if groupmod smmsp still fails

The problem here is clearly related to the groupmod issue, if you solve that then
sendmail will install fine.

Anyway sendmail-8.13.4-r1 is being tested in the tree and it uses a smarter check.

Please stick with sendmail or postfix or try using USE="mailwrapper" in order to
prevent those errors.

Could you paste /etc/pam.d/groupmod please?
Comment 12 Analyzer 2005-06-28 06:45:13 UTC
(In reply to comment #11)
> 1. don't try to install postfix and sendmail together without mailwrapper flag

im tryed install with this flag

============================================================
root@localhost:/home/analyzer$ emerge sendmail postfix -pv

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

Calculating dependencies ...done!
[ebuild   R   ] mail-mta/sendmail-8.13.4  -ipv6 +ldap +mailwrapper +mbox +sasl
+ssl +tcpd 0 kB
[ebuild  N    ] mail-mta/postfix-2.2.2-r1  -hardened -ipv6 +ldap +mailwrapper
+mbox +mysql +nis +pam -postgres +sasl (-selinux) +ssl +vda 0 kB

Total size of downloads: 0 kB
============================================================

> 2. don't bother about nscd if groupmod smmsp still fails
> 
> The problem here is clearly related to the groupmod issue, if you solve that then
> sendmail will install fine.

ok. im dont worry :-)
 
> Could you paste /etc/pam.d/groupmod please?

============================================================
root@localhost:/home/analyzer$ cat /etc/pam.d/groupmod
#%PAM-1.0

auth       sufficient   pam_rootok.so
auth       required             pam_permit.so

account    include              system-auth

password   required             pam_permit.so
============================================================
Comment 13 Stian Skjelstad 2005-06-28 06:47:53 UTC
please look at Bug 80413 about the nscd issue
Comment 14 Analyzer 2005-06-29 04:59:24 UTC
yes. i saw. but i have now another bug: 4 files belongs to both packages. and
when i installing second package he trying rewrite this files.
ps: i using "mailwrapper" flag in USE. but he dont help to solve this issue:(
Comment 15 SpanKY gentoo-dev 2005-06-30 18:54:40 UTC
this is clearly a dupe of Bug 80413 isnt it ?
Comment 16 Andrea Barisani (RETIRED) gentoo-dev 2005-07-01 02:04:33 UTC
The groupmod thing is a dupe, the collision between postfix and sendmail is not.

Closing this one as a dupe and opened bug 97589 bout the collision for the sake
of clarity.

*** This bug has been marked as a duplicate of 80413 ***