replication of stuff in /usr/gnu

Garrett D'Amore garrett at damore.org
Tue Jul 3 15:08:33 PDT 2007


I happened to notice that we ship two different versions of a few very 
trivial programs:

-r-xr-xr-x   1 root     bin         7860 Jun 17 14:37 /usr/bin/yes
-r-xr-xr-x   1 root     bin        19616 Jun 14 13:06 /usr/gnu/bin/yes


-r-xr-xr-x   1 root     bin         7708 Jun 17 14:21 /usr/bin/true
-r-xr-xr-x   1 root     bin        15100 Jun 14 13:06 /usr/gnu/bin/true

-r-xr-xr-x   1 root     bin         7888 Jun 17 14:36 /usr/bin/logname
-r-xr-xr-x   1 root     bin        19748 Jun 14 13:06 /usr/gnu/bin/logname

-r-xr-xr-x   1 root     bin         8084 Jun 17 14:21 /usr/bin/pwd
-r-xr-xr-x   1 root     bin        24176 Jun 14 13:06 /usr/gnu/bin/pwd

-r-xr-xr-x   1 root     bin         7948 Jun 17 14:20 /usr/bin/hostid
-r-xr-xr-x   1 root     bin        19692 Jun 14 13:06 /usr/gnu/bin/hostid

The GNU versions only differ in that they accept a pointless --help and 
--version option.

and a few that where the GNU differences are so trivial that it hardly 
seems worth shipping a separate binary:

nohup:  The Sun version is a superset of the GNU version

-r-xr-xr-x  72 root     bin         8100 Jun 17 14:21 /usr/bin/nohup
-r-xr-xr-x   1 root     bin        23032 Jun 14 13:06 /usr/gnu/bin/nohup

cksum:  The only difference is the type of whitespace separating the 
checksums (tabs vs. spaces)


It strikes me as a really unfortunate thing to deliver two versions of 
the same programs, when there is no differentiating functionality, or 
even command line options.

Is there anything we can do to clean this up, and to avoid it in the future?

    -- Garrett





More information about the opensolaris-arc mailing list