<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>36601</bug_id>
          
          <creation_ts>2003-12-27 12:50 0000</creation_ts>
          <short_desc>installing binary package for cvs won&apos;t create local user</short_desc>
          <delta_ts>2004-02-15 05:26:03 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>glen@delfi.ee</reporter>
          <assigned_to>scandium@gentoo.org</assigned_to>
          <cc>vapier@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>glen@delfi.ee</who>
            <bug_when>2003-12-27 12:50:27 0000</bug_when>
            <thetext>what can i say, it adds user in build time, thus creating user only in build host. version used: cvs-1.11.11

and if somebody gonna fix this, maybe look also bug 36416



Reproducible: Always
Steps to Reproduce:
1.get binary package
2.install it


Actual Results:  
in my system /var/cvsroot being owned by dhcp user....


Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.22-ck3)
=================================================================
System uname: 2.4.22-ck3 i686
Gentoo Base System version 1.4.3.10
distcc[26115] (dcc_mkdir) ERROR: mkdir /home/glen/.distcc/state failed: 
Permission denied [enabled]
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-O3 -mcpu=pentium2 -march=pentium2 -funroll-loops -pipe 
-fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
COMPILER=&quot;gcc3&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3/share/config 
/usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config 
/var/qmail/control /var/qmail/alias&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
CXXFLAGS=&quot;-O3 -mcpu=pentium2 -march=pentium2 -funroll-loops -pipe 
-fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;sandbox ccache autoaddcvs distcc buildpkg userpriv&quot;
GENTOO_MIRRORS=&quot;ftp://ftp.linux.ee/pub/gentoo/distfiles http://ftp.uni-erlangen.
de/pub/mirrors/gentoo http://gentoo.linux.no/ ftp://gentoo.linux.no/pub/gentoo/ 
http://ftp.easynet.nl/mirror/gentoo/&quot;
MAKEOPTS=&quot;-j14&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.europe.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 oss avi cups encode gif gtk2 jpeg libg++ mad mpeg ncurses png quicktime 
truetype xv zlib slang arts X sdl gpm pam libwww ssl imlib oggvorbis gtk opengl 
acpi artswrappersuid fbcon maildir md5sum memlimit mmx mozilla samba -apm -crypt 
-foomaticdb kde -tcltk -python -gnome -mikmod -motif -nls -spell -svga -gdbm 
-tcpd -doc aalib lirc -esd -berkdb -perl -java javascript svga -xml2 -pdflib -qt 
-readline tiff perl directfb dga ggi -xmms&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-12-27 16:47:43 0000</bug_when>
            <thetext>enewuser/enewgroup should not be used inside of src_install() ...

it should be used inside of pkg_setup() or pkg_preinst() or pkg_postinst() or pkg_config()

i&apos;ll update the manpages to reflect this</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scandium@gentoo.org</who>
            <bug_when>2003-12-28 07:45:38 0000</bug_when>
            <thetext>Since the cvs user/group is not required for building/installing cvs but only for running the pserver I think pkg_postinst() would be the correct place to add the user/group.

If there are no objections I am going to change that in the cvs ebuild later today.
Anyway, our two &quot;core&quot; problems still exist
(http://bugs.gentoo.org/show_bug.cgi?id=36215#c3)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scandium@gentoo.org</who>
            <bug_when>2003-12-29 06:48:35 0000</bug_when>
            <thetext>ok, after thinking about it I suppose it would be better to move it to pkg_config() and use a little pkg_postinst() to tell the user that this will generate the cvs user/group for use with a cvspserver.
We probably could also move the xinet.d file to pkg_config() so that people who just use cvs client-side aren&apos;t bothered with anything pserver related and those who want to run a pserver just need to use the ebuild ... config to get the xinet.d file and the cvs user/group.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scandium@gentoo.org</who>
            <bug_when>2004-02-09 12:59:43 0000</bug_when>
            <thetext>just as a heads up, I will be committing cvs-1.11.12 within the next days which fixes that bug [moved it to pkg_setup()].

I also hope there&apos;s a solution for bug 36416 in the meantime.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scandium@gentoo.org</who>
            <bug_when>2004-02-15 05:26:03 0000</bug_when>
            <thetext>should be fixed with cvs-1.11.13, please give it a go :)</thetext>
          </long_desc>
      
    </bug>

</bugzilla>