Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 247979 - net-dns/bind-9.4.2_p2: emerge --config doesn't set chroot properly
Summary: net-dns/bind-9.4.2_p2: emerge --config doesn't set chroot properly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Konstantin Arkhipov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-21 15:46 UTC by Walter
Modified: 2008-12-28 09:52 UTC (History)
1 user (show)

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


Attachments
Proposed patch against bind-9.4.2_p2.ebuild (proposed_patch.diff,947 bytes, patch)
2008-11-21 15:51 UTC, Walter
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Walter 2008-11-21 15:46:44 UTC
emerge --config doesn't set chroot properly:
a. it doesn't create ${CHROOT}/dev/urandom if "urandom" USE flag is set
b. it doesn't create ${CHROOT}/proc and mount proc in chroot accordingly
c. it doesn't setup syslog-ng to create a source (${CHROOT}/dev/log) in /etc/syslog-ng/syslog-ng.conf for logging purpose

Proposed patch:


Reproducible: Always

Steps to Reproduce:
1. emerge bind
2. emerge --config =net-dns/bind-9.4.2_p2
3. check for existance of ${CHROOT}/dev/urandom , ${CHROOT}/proc and ${CHROOT}/dev/log

Actual Results:  
No such files or directories in chroot

Expected Results:  
Files or directories created in chroot

Portage 2.1.4.5 (hardened/x86/2.6, gcc-3.4.6, glibc-2.6.1-r0, 2.6.25-hardened-r8 i686)
=================================================================                     
System uname: 2.6.25-hardened-r8 i686 Pentium III (Katmai)                            
Timestamp of tree: Fri, 21 Nov 2008 00:21:01 +0000                                    
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]    
ccache version 2.4 [enabled]                                                          
app-shells/bash:     3.2_p33                                                          
dev-lang/python:     2.4.4-r14, 2.5.2-r7                                              
dev-python/pycrypto: 2.0.1-r6                                                         
dev-util/ccache:     2.4-r7                                                           
sys-apps/baselayout: 1.12.11.1                                                        
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O2 -pipe -fforce-addr"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium3 -O2 -pipe -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl apache2 bash-completion berkdb bzip2 cgi cli contentcache cracklib crypt ctype diskio enscript fam fastcgi gd hardened inode jpeg latin1 ldap lm_sensors logrotate memcache midi mmx mpeg mpm-worker mysql mysqli nls nptl nptlonly ogg pam pcre php picpng readline rrdtool rtc ruby sensord session sharedmem silvercity snmp sockets speex sqlite sqlite3 ssl swig symlink tcpd threads unicode urandom userlocales vhosts webdav x86 xattr xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloatlinear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digestauthn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt intel mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savagesiliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Walter 2008-11-21 15:51:34 UTC
Created attachment 172703 [details, diff]
Proposed patch against bind-9.4.2_p2.ebuild

Proposed patch to fix reported issues:
a. if "urandom" USE flag is set, creates ${CHROOT}/dev/urandom (and not ${CHROOT}/dev/random)
b. creates ${CHROOT}/proc, mounts proc in ${CHROOT}/proc and setup fstab accordingly
c. edit /etc/syslog-ng/syslog-ng.conf so that syslog-ng creates a source in chroot (${CHROOT}/dev/log) for logging purpose
Comment 2 Tobias Scherbaum (RETIRED) gentoo-dev 2008-12-26 22:28:27 UTC
Fixed in 9.5.1, thanks for your patch!
Comment 3 Walter 2008-12-27 23:59:49 UTC
It seems like something went wrong :-)
I've just synced the portage tree and I cannot see my patch (or other solutions to solve the reported issues) in 9.5.1 ebuild (and in 9.6.0 ebuild, that is affected too)
Comment 4 Tobias Scherbaum (RETIRED) gentoo-dev 2008-12-28 09:52:49 UTC
(In reply to comment #3)
> It seems like something went wrong :-)

indeed :/

> I've just synced the portage tree and I cannot see my patch (or other solutions
> to solve the reported issues) in 9.5.1 ebuild (and in 9.6.0 ebuild, that is
> affected too)

+  28 Dec 2008; Tobias Scherbaum <dertobi123@gentoo.org> bind-9.5.1.ebuild,
+  bind-9.6.0.ebuild:
+  Now fix #247979 for real.