Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190990 - net-firewall/iptables-1.3.8-r2 does not build properly with bash-3.1
Summary: net-firewall/iptables-1.3.8-r2 does not build properly with bash-3.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-01 18:31 UTC by tgo
Modified: 2007-09-02 15:03 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 tgo 2007-09-01 18:31:51 UTC
When trying to emerge iptables on my fresh install on my laptop the install script receives this error:

...
>>> Compiling source in /var/tmp/portage/net-firewall/iptables-1.3.8-r2/work/iptables-1.3.8 ...
/usr/portage/net-firewall/iptables/iptables-1.3.8-r2.ebuild: line 150: bad substitution: no closing `)' in KERNEL_DIR=$(
...

the install script proceeds as if the error would be non-fatal but it doesnt not install the iptables/iptables-save/iptables-restore binaries and other parts

Reproducible: Always

Steps to Reproduce:
1. emerge iptables


Actual Results:  
I received the error pasted above and the iptables package did not properly install

Expected Results:  
I expected the iptables package to properly install

I had a dell laptop ( inspiron e1705 ) running all the latest builds as of last night when I installed it. I can give more setup/hardware info if needed but I believe its just a typo in the install script that happens to break the whole install.
Comment 1 SpanKY gentoo-dev 2007-09-01 19:08:24 UTC
you need to include `emerge --info` like the bug reporting page told you to when you file bug reports

what version of bash do you have installed ?  portage ?  post the full build output as a log, not just a snippet
Comment 2 tgo 2007-09-01 19:44:22 UTC
-------------------------------
emerge --info
Portage 2.1.3.7 (default-linux/x86/2007.0, gcc-4.1.1, glibc-2.5-r0, 2.6.20-gentoo-r9 i686)
=================================================================
System uname: 2.6.20-gentoo-r9 i686 Intel(R) Core(TM)2 CPU         T7200  @ 2.00GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 01 Sep 2007 18:20:01 +0000
app-shells/bash:     3.1_p17
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/baselayout: 1.12.9
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo                                    
/ "
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=                                    
/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X aac acl alsa ap berkdb bitmap-fonts cli cracklib crypt cups device-mapper dri dvd dvdread encode faad flaac flac fortran gd gdbm gnutls gpm gtk iconv                                     
imlib isdnlog jpeg jpg kde lm_sensors mad midi mmx mp3 mpd mpeg mpg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre perl png pppd python qt read                                    
line reflection session spl sse sse2 ssl synaptic tcpd tk truetype-fonts type1-fonts unicode vorbis win32codecs x86 xcomposite xorg xv xvid xvmc zip zlib" AL                                    
SA_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 lfloa                                    
t linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfo                                    
ntz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa i810 fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTD                                    
IR_OVERLAY

-------------------------------
emerge -V
Portage 2.1.3.7 (default-linux/x86/2007.0, gcc-4.1.1, glibc-2.5-r0, 2.6.20-gentoo-r9 i686)

----------------

bash --version
GNU bash, version 3.1.17(1)-release (i686-pc-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.

------------
emerge iptables
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) net-firewall/iptables-1.3.8-r2 to /
 * iptables-1.3.8.tar.bz2 RMD160 ;-) ...                                                                                                                                                   [ ok ]
 * iptables-1.3.8.tar.bz2 SHA1 ;-) ...                                                                                                                                                     [ ok ]
 * iptables-1.3.8.tar.bz2 SHA256 ;-) ...                                                                                                                                                   [ ok ]
 * iptables-1.3.8.tar.bz2 size ;-) ...                                                                                                                                                     [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                       [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                      [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                     [ ok ]
 * checking iptables-1.3.8.tar.bz2 ;-) ...                                                                                                                                                 [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.20-gentoo-r9/build

 * Found sources for kernel version:
 *     2.6.20-gentoo-r9
>>> Unpacking source...
>>> Unpacking iptables-1.3.8.tar.bz2 to /var/tmp/portage/net-firewall/iptables-1.3.8-r2/work
 * Applying iptables-1.3.7-sparc64.patch ...                                                                                                                                               [ ok ]
 * Applying iptables-1.3.7-kernel-dir.patch ...                                                                                                                                            [ ok ]
 * Applying install_ipv6_apps.patch ...                                                                                                                                                    [ ok ]
 * Applying install_all_dev_files.patch-1.3.1 ...                                                                                                                                          [ ok ]
 * Applying grsecurity-1.2.8-iptables.patch-1.3.1 ...                                                                                                                                      [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/net-firewall/iptables-1.3.8-r2/work/iptables-1.3.8 ...
/usr/portage/net-firewall/iptables/iptables-1.3.8-r2.ebuild: line 150: bad substitution: no closing `)' in KERNEL_DIR=$(
                        # ugh -- iptables has scripts which check for the existence of
                        # files so we need to give it the right path to our toolchain's
                        # include dir where the linux headers are.
                        # FYI IPTABLES: YOU FAIL
                        echo '#include <linux/limits.h>' | $(tc-getCPP) - | grep -o '/[^"]*linux/limits.h' | sed s:/include/linux/limits.h::
                )
>>> Test phase [not enabled]: net-firewall/iptables-1.3.8-r2

>>> Install iptables-1.3.8-r2 into /var/tmp/portage/net-firewall/iptables-1.3.8-r2/image/ category net-firewall
/usr/portage/net-firewall/iptables/iptables-1.3.8-r2.ebuild: line 150: bad substitution: no closing `)' in KERNEL_DIR=$(
                        # ugh -- iptables has scripts which check for the existence of
                        # files so we need to give it the right path to our toolchain's
                        # include dir where the linux headers are.
                        # FYI IPTABLES: YOU FAIL
                        echo '#include <linux/limits.h>' | $(tc-getCPP) - | grep -o '/[^"]*linux/limits.h' | sed s:/include/linux/limits.h::
                )
>>> Merging net-firewall/iptables-1.3.8-r2 to /
>>> Safely unmerging already-installed instance...
No package files given... Grabbing a set.
>>> Original instance of package unmerged safely.
 * This package now includes an initscript which loads and saves
 * rules stored in /var/lib/iptables/rules-save
 * This location can be changed in /etc/conf.d/iptables
 * 
 * If you are using the iptables initsscript you should save your
 * rules using the new iptables version before rebooting.
 * 
 * If you are upgrading to a >=2.4.21 kernel you may need to rebuild
 * iptables.
 * 
 * !!! ipforwarding is not a part of the iptables initscripts.
 * 
 * To enable ipforwarding at bootup:
 * /etc/sysctl.conf and set net.ipv4.ip_forward = 1
>>> net-firewall/iptables-1.3.8-r2 merged.
>>> Recording net-firewall/iptables in "world" favorites file...

>>> No packages selected for removal by clean
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * Messages for package net-firewall/iptables-1.3.8-r2:

 * This package now includes an initscript which loads and saves
 * rules stored in /var/lib/iptables/rules-save
 * This location can be changed in /etc/conf.d/iptables
 * 
 * If you are using the iptables initsscript you should save your
 * rules using the new iptables version before rebooting.
 * 
 * If you are upgrading to a >=2.4.21 kernel you may need to rebuild
 * iptables.
 * 
 * !!! ipforwarding is not a part of the iptables initscripts.
 * 
 * To enable ipforwarding at bootup:
 * /etc/sysctl.conf and set net.ipv4.ip_forward = 1
 * GNU info directory index is up-to-date.




Comment 3 tgo 2007-09-02 00:56:48 UTC
reopening with info
Comment 4 SpanKY gentoo-dev 2007-09-02 15:03:58 UTC
looks like you've hit a bug with bash-3.1 involving nested quotes in subshells in comments

workedaround in cvs