Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 195120

Summary: net-misc/ndtpd-3.1.5 should not tamper with /etc/services
Product: Gentoo Linux Reporter: Ulrich Müller <ulm>
Component: New packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: cjk, emacs, jakub
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ulrich Müller gentoo-dev 2007-10-08 15:46:24 UTC
The ebuild of net-misc/ndtpd-3.1.5 contains the following code, which should be deleted:

    if ! $(grep 2010/tcp /etc/services >/dev/null 2>&1) ; then
        cp /etc/services ${T}/services
        cat >>${T}/services<<-EOF
        ndtp            2010/tcp                        # Network Dictionary Transfer Protocol
        EOF
        insinto /etc
        doins ${T}/services
    fi

/etc/services will collide with baselayout, and therefore other packages shouldn't install this file (this was just discussed in the gentoo-dev ML). Also, IANA has registered port 2882 for ndtp.

(FYI: app-emacs/lookup did the same, and we have just removed this piece of code there.)
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-10-30 08:13:52 UTC
(In reply to comment #0)
> /etc/services will collide with baselayout, and therefore other packages
> shouldn't install this file

Erm, stuff under CONFIG_PROTECT doesn't trigger any collisions (if FEATURES="collision-protect" is what's meant on the thread).

usata retired, not maintainer for this ATM.
Comment 2 Ulrich Müller gentoo-dev 2007-10-30 22:47:30 UTC
(In reply to comment #1)
> Erm, stuff under CONFIG_PROTECT doesn't trigger any collisions
> (if FEATURES="collision-protect" is what's meant on the thread).

It's not a collision it the literal sense, but having several packages fighting over /etc/services is probably not a good idea. See also
<http://archives.gentoo.org/gentoo-dev/msg_148374.xml>.

> usata retired, not maintainer for this ATM.

And the homepage of the package says:
NDTPD は EBNETD の一部として、取り込まれました。
but ebnetd is not (yet?) in Portage.

Adding the CJK team to CC, do you have any opinion about this? Is ndtpd still a functional package, or should it be removed from the tree or be replaced by ebnetd?
Comment 3 Ulrich Müller gentoo-dev 2007-12-04 10:06:03 UTC
> Adding the CJK team to CC, do you have any opinion about this? Is ndtpd
> still a functional package, or should it be removed from the tree or be
> replaced by ebnetd?

No response since one month.
I've removed the code listed in comment #0 from the ebuild.