Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10799 - net-tools requires interaction during emerge
Summary: net-tools requires interaction during emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-15 18:02 UTC by Alexander Holler
Modified: 2003-02-28 04:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Holler 2002-11-15 18:02:14 UTC
Hi,  
  
I've just have found that a emerge system stand still because net-tools asks  
me about i18n support. For automated emerge or anything similiar this is bad. 
My suggestion would be to either generate different ebuilds for different 
configurations, the use of use-flags or interaction in a post-emerge config. 
 
Regards, 
 
Alexander
Comment 1 SpanKY gentoo-dev 2002-11-16 03:39:50 UTC
'no interaction during emerge' is already policy
Comment 2 SpanKY gentoo-dev 2002-11-17 04:11:46 UTC
could you provide some more information here ? 
where does it ask you for input ? 
what does `emerge info` show ? 
what does `emerge -V` show ? 
 
i ran: 
emerge net-tools 
env USE=nls emerge net-tools 
and both worked for me 
Comment 3 Alexander Holler 2002-11-17 06:31:11 UTC
Net-Tools ask many questions like support for i18n, packet-radio etc. 
 
But this occurs only during the bootstrap (or the emerge system afterwards). 
 
After I finished the installation of the new gentoo system (1.4) I've just 
reemerged net-tools without got questioned as before. 
 
Maybe net-tools first missed the kernel (source, installed later) or something 
similar. 
 
Regards, 
 
Alexander 
 
Comment 4 Jonas Berlin 2002-11-17 10:41:24 UTC
I think I found the bug.

From the ebuild:

src_unpack() {
  ...
        cp ${FILESDIR}/config.h .
  ...
        sed -e "s:/usr/man:/usr/share/man:" Makefile.orig > Makefile
  ...
}

And then, when it in src_compile runs "make", there is a rule in the Makefile like this:

config.h:       config.in Makefile 
                @echo "Configuring the Linux net-tools (NET-3 Base Utilities)..." ; echo
               ...

I think what happened (for me too) is that the Makefile got a newer timestamp than config.h (because config.h was copied earlier).

My suggestion would be to add the following line to the end of src_unpack or beginning of src_compile:

   touch -r Makefile config.h

This copies the timestamp(s) from Makefile to config.h, so make doesn't re-make config.h.
Comment 5 SpanKY gentoo-dev 2002-11-18 07:27:23 UTC
net-tools-1.60-r5 does not have the line 'cp ${FILESDIR}/config.h .' ... 
Comment 6 SpanKY gentoo-dev 2002-11-19 14:03:06 UTC
ok, this happens, but only if the system is under a load ... 
basically you're right about the timestamping ... 
if the config.h and config.make files dont have the same time the build is unhappy 
 
fixes added to cvs, thx 
http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/sys-apps/net-tools/net-tools-1.60-r4.ebuild.diff?r1=1.11&r2=1.12  
http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/sys-apps/net-tools/net-tools-1.60-r5.ebuild.diff?r1=1.8&r2=1.9 
Comment 7 Thomas T. Veldhouse 2003-01-07 06:08:31 UTC
Its back folks.  Second bug found when rebuilding using --emptytree

>>> emerge (16 of 17) sys-apps/net-tools-1.60-r5 to /
>>> md5 ;-) net-tools-1.60.tar.bz2
>>> Unpacking source...
>>> Unpacking net-tools-1.60.tar.bz2 * Applying net-tools-1.57-
bug22040.patch...                                  [ ok ] * Applying net-tools-
1.60-manydevs.patch...                                  [ ok ] * Applying net-
tools-1.60-miiioctl.patch...                                  [ ok ]
>>> Source unpacked.
Configuring the Linux net-tools (NET-3 Base Utilities)...

*
*
*              Internationalization
*
* The net-tools package has currently been translated to French,
* German and Brazilian Portugese.  Other translations are, of
* course, welcome.  Answer `n' here if you have no support for
* internationalization on your system.
*
Does your system support GNU gettext? (I18N) [n] 
Comment 8 Sascha Silbe 2003-02-14 11:55:51 UTC
Happens for me, too:

>>> Unpacking source...
>>> Unpacking net-tools-1.60.tar.bz2
>>> Unpacking net-tools-1.60-gentoo-extra.tar.bz2
 * Applying net-tools-1.57-bug22040.patch...                                          [ ok ]
 * Applying net-tools-1.60-manydevs.patch...                                          [ ok ]
 * Applying net-tools-1.60-miiioctl.patch...                                          [ ok ]
>>> Source unpacked.
Configuring the Linux net-tools (NET-3 Base Utilities)...

*
*
*              Internationalization
*
* The net-tools package has currently been translated to French,
* German and Brazilian Portugese.  Other translations are, of
* course, welcome.  Answer `n' here if you have no support for
* internationalization on your system.
*
Does your system support GNU gettext? (I18N) [n] 


This is on a new system during the first "emerge system". Started from stage2.

Feel free to contact me if you need more info.