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

Bug 83895

Summary: Portmap should depend on net.lo, not net
Product: Gentoo Linux Reporter: Nicolas Dufresne <nicolas.dufresne>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: VERIFIED INVALID    
Severity: trivial    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Nicolas Dufresne 2005-03-02 16:07:16 UTC
Portmap init script depends on net.  Which mean, on ALL network devices (even modems and and wifi).  It should depend only on net.lo since it firstly a local tool.  

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Nicolas Dufresne 2005-03-02 16:08:55 UTC
Correcting this is trivial, since you juste have to change
    depend net
to
    depend net.lo

in /etc/init.d/portmap
Comment 2 Roy Marples (RETIRED) gentoo-dev 2005-03-03 00:09:22 UTC
Portmap is a network tool and as such the dependancy is correct.

Instead, you need to define how the "net" service is depended in /etc/conf.d/rc
Notice the variable RC_STRICT_NET_CHECKING

When set to "lo" every net dependancy just requires net.lo to be started which it is by default.

As you haven't posted which version of baselayout you have or emerge --info, I cannot tell you if the "lo" option works or not. If you have baselayout-1.11.9 or newer it should work fine.
Comment 3 Nicolas Dufresne 2005-03-03 13:02:59 UTC
Sorry, first time posting a bug report:

=================================================================
->emere -s baselayout
*  sys-apps/baselayout
      Latest version available: 1.9.4-r6
      Latest version installed: 1.9.4-r6
=================================================================
->emerge --info
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r0, 2.6.11-rc5 i686)
=================================================================
System uname: 2.6.11-rc5 i686 Intel(R) Pentium(R) M processor 1.60GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 19 2005, 12:50:08)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium-m -mtune=pentium-m -O3 -pipe -fomit-frame-pointer -ffast-math -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium-m -mtune=pentium-m -O3 -pipe -fomit-frame-pointer -ffast-math -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://gentoo.risq.qc.ca/ ftp://gentoo.agsn.ca/ http://adelie.polymtl.ca/ ftp://cs.ubishops.ca/pub/gentoo ftp://sunsite.ualberta.ca/pub/unix/Linux/gentoo/ http://gentoo.mirrored.ca/ ftp://gentoo.mirrored.ca/"
LANG="fr_CA"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa avi bash-completion berkdb bitmap-fonts cdr chroot crypt cups curl emboss encode esd f77 fam flac font-server foomaticdb fortran gcj gdbm gif gnome gnutls gpm gstreamer gtk gtk2 guile imagemagick imlib ipv6 ithreads java jpeg junit kerberos ldap libg++ libwww mad mikmod mmx motif mozilla mpeg mysql ncurses nls nptl oggvorbis opengl openssl oss pam pda pdflib perl png postgres pwdb python quicktime readline samba sdk sdl spell sse sse2 ssl svga tcpd tetex tiff truetype truetype-fonts type1-fonts udev unicode xinerama xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, PORTDIR_OVERLAY

=================================
Comment 4 Nicolas Dufresne 2005-03-03 13:23:58 UTC
This does not work on 1.9 version.  Let close the bug since it is fixed in 1.11...  

to verify it is fixed:
/etc/init.d/net.eth0 stop
/etc/init.d/portmap start

If net.eth0 starts, it is not fixed...
Comment 5 SpanKY gentoo-dev 2005-03-03 15:23:58 UTC
ive tweaked portmap to 'use net' not 'need net' since it binds to the ANY interface