NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/44077: redundant xdr_passwd implementation should be removed from source tree

>Number:         44077
>Category:       bin
>Synopsis:       redundant xdr_passwd implementation should be removed from 
>source tree
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 10 08:55:00 +0000 2010
>Originator:     Dr. Wolfgang Stukenbrock
>Release:        NetBSD 5.0.2
Dr. Nagler & Company GmbH
System: NetBSD test-s1 5.0.2 NetBSD 5.0.2 (NSW-S011) #11: Mon Nov 8 16:38:16 
CET 2010 
Architecture: x86_64
Machine: amd64
        There two source implementations for the same routines in 
/usr/src/lib/librcpsvc and /usr/src/usr.sbin/rpc.yppasswdd.
        In order to avoid code replication, the version in 
/usr/src/usr.sbin/rpc.yppasswdd should be eliminated and
        the version from /usr/src/lib/librcpsvc should be used for the 
yppasswdd too.
        At the moment, yppasswdd has no dynamic reference to 
/usr/lib/, but it uses two other shared libs.
        So there are two way to pull in the required routines:
         - staticaly link in /usr/lib/librpcsvc.a so only this source file gets 
retrieved from it
         - reference a third shared lib /usr/lib/
        From my point of view it makes no real difference, because yppasswdd 
already uses shared libs.
        The maintainer should select one of the two methods.

        not relevant
        remove /usr/src/usr.sbin/rpc.yppasswdd/yppasswdd_xdr.c and link (either 
static or dynamic) librpcsvc instead.
        For dynamic linking add
LDADD+= -lrpcsvc
        to the makefile (as done in /usr/src/usr.bin/passwd/Makefile) and 
remove yppasswdd_xdr.c from SRCS.
        I do not know the correct way for linking librpcsvc statically, so no 
fix description here - sorry.


Home | Main Index | Thread Index | Old Index