Opened 8 years ago

Closed 8 years ago

#4720 closed defect (fixed)

Net-tools-CVS_20101030 ovewrites ifconfig and hostname installed in LFS

Reported by: Armin K Owned by: bdubbs@…
Priority: normal Milestone: 7.5
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

Should be disabled or what.

Change History (7)

comment:1 by bdubbs@…, 8 years ago

We should probably just drop the package. The utils I use are ifconfig, route, and netstat. I can use ip for route and ss for netstat. ifconfig is a part of iproute2 (is that new), so I don't need any of the other tools.

Others may have a different opinion.

comment:2 by Armin K, 8 years ago

wicd still uses it for mii-tool from what I've seen. That's why I installed it in the first place.

comment:3 by bdubbs@…, 8 years ago

I took a look at the Makefile and almost everything is hard coded. We can suppress building ifconfig and hostname fairly easily, but the Makefile does:

   install -m 0755 hostname   ${BASEDIR}/bin
   install -m 0755 ifconfig   ${BASEDIR}/sbin

   ln -fs hostname $(BASEDIR)/bin/dnsdomainname
   ln -fs hostname $(BASEDIR)/bin/ypdomainname
   ln -fs hostname $(BASEDIR)/bin/nisdomainname
   ln -fs hostname $(BASEDIR)/bin/domainname
ifeq ($(HAVE_AFDECnet),1)
   ln -fs hostname $(BASEDIR)/bin/nodename
endif

If all these are suppressed, then the installation of the man pages needs to be adjusted to not install everything. For mii-tool, it might just be easier to do:

gcc -o mii-tool -O2 -fno-strict-aliasing -I ./include -fno-strict-aliasing \
    -D_GNU_SOURCE  mii-tool.c

cp -v mii-tool /sbin
cp -v man/en_US/mii-tool.8 /usr/share/man/man8

comment:4 by Igor Živković, 8 years ago

Milestone: 7.67.5
Owner: changed from blfs-book@… to Igor Živković
Status: newassigned

comment:5 by Igor Živković, 8 years ago

Owner: changed from Igor Živković to blfs-book@…
Status: assignednew

comment:6 by bdubbs@…, 8 years ago

Owner: changed from blfs-book@… to bdubbs@…
Status: newassigned

comment:7 by bdubbs@…, 8 years ago

Resolution: fixed
Status: assignedclosed

Created a patch to avoid installing hostname, symbolic links to hostname, ifconfig, and their man pages.

Fixed at revision 12801.

Note: See TracTickets for help on using tickets.