Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 336140 - sys-cluster/pacemaker (and friends): configure fails with /tmp mounted noexec
Summary: sys-cluster/pacemaker (and friends): configure fails with /tmp mounted noexec
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Cluster Team
URL: http://developerbugs.linux-foundation...
Whiteboard:
Keywords:
: 364939 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-05 22:17 UTC by Lorand Kelemen
Modified: 2012-04-09 23:32 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 Lorand Kelemen 2010-09-05 22:17:08 UTC
These ebuilds do not honor PORTAGE_TMPDIR and fail configure (or have other minor errors) if /tmp is mounted noexec:
sys-cluster/heartbeat-3.0.3
sys-cluster/pacemaker-1.0.9.1-r1
sys-cluster/pacemaker-1.1.2.3 (from overlay)
sys-cluster/resource-agents-1.0.3

Not affected:
sys-cluster/corosync-1.2.8
sys-cluster/cluster-glue-1.0.6

Because:

configure.ac:

extract_header_define() {
          ...
          Cfile=/tmp/extract_define.$2.${$}
	  ...
        }

The errors and system info:

sys-cluster:heartbeat-3.0.3:20100831-091904.log:checking for HA_LIBHBDIR in heartbeat/glue_config.h... ./configure: line 3568: /tmp/extract_define.HA_LIBHBDIR.23603: Permission denied
sys-cluster:heartbeat-3.0.3:20100831-091904.log:checking for HA_VARRUNDIR in heartbeat/glue_config.h... ./configure: line 3568: /tmp/extract_define.HA_VARRUNDIR.23603: Permission denied
sys-cluster:heartbeat-3.0.3:20100831-091904.log:checking for HA_VARLIBHBDIR in heartbeat/glue_config.h... ./configure: line 3568: /tmp/extract_define.HA_VARLIBHBDIR.23603: Permission denied
sys-cluster:heartbeat-3.0.3:20100831-091904.log:checking for HA_COREDIR in heartbeat/glue_config.h... ./configure: line 3568: /tmp/extract_define.HA_COREDIR.23603: Permission denied
sys-cluster:heartbeat-3.0.3:20100831-091904.log:checking for HA_CCMUSER in heartbeat/glue_config.h... ./configure: line 3568: /tmp/extract_define.HA_CCMUSER.23603: Permission denied
sys-cluster:heartbeat-3.0.3:20100831-091904.log:checking for HA_APIGROUP in heartbeat/glue_config.h... ./configure: line 3568: /tmp/extract_define.HA_APIGROUP.23603: Permission denied
sys-cluster:heartbeat-3.0.3:20100831-091904.log:checking for HA_PLUGIN_DIR in heartbeat/glue_config.h... ./configure: line 3568: /tmp/extract_define.HA_PLUGIN_DIR.23603: Permission denied
sys-cluster:heartbeat-3.0.3:20100831-091904.log:checking for HB_RA_DIR in heartbeat/glue_config.h... ./configure: line 3568: /tmp/extract_define.HB_RA_DIR.23603: Permission denied
sys-cluster:heartbeat-3.0.3:20100831-091904.log:checking for OCF_ROOT_DIR in heartbeat/glue_config.h... ./configure: line 3568: /tmp/extract_define.OCF_ROOT_DIR.23603: Permission denied
sys-cluster:heartbeat-3.0.3:20100831-091904.log:checking for OCF_RA_DIR in heartbeat/glue_config.h... ./configure: line 3568: /tmp/extract_define.OCF_RA_DIR.23603: Permission denied
sys-cluster:heartbeat-3.0.3:20100831-091904.log:checking for LSB_RA_DIR in heartbeat/glue_config.h... ./configure: line 3568: /tmp/extract_define.LSB_RA_DIR.23603: Permission denied

sys-cluster:pacemaker-1.0.9.1-r1:20100903-144414.log:checking for HA_CCMUSER in glue_config.h... ./configure: line 11704: /tmp/extract_define.HA_CCMUSER.2563: Permission denied
sys-cluster:pacemaker-1.0.9.1-r1:20100903-144414.log:checking for HA_APIGROUP in glue_config.h... ./configure: line 11704: /tmp/extract_define.HA_APIGROUP.2563: Permission denied
sys-cluster:pacemaker-1.0.9.1-r1:20100903-144414.log:checking for HA_LIBHBDIR in glue_config.h... ./configure: line 11704: /tmp/extract_define.HA_LIBHBDIR.2563: Permission denied
sys-cluster:pacemaker-1.0.9.1-r1:20100903-144414.log:checking for HA_VARRUNDIR in glue_config.h... ./configure: line 11704: /tmp/extract_define.HA_VARRUNDIR.2563: Permission denied
sys-cluster:pacemaker-1.0.9.1-r1:20100903-144414.log:checking for HA_VARLIBHBDIR in glue_config.h... ./configure: line 11704: /tmp/extract_define.HA_VARLIBHBDIR.2563: Permission denied
sys-cluster:pacemaker-1.0.9.1-r1:20100903-144414.log:checking for OCF_ROOT_DIR in glue_config.h... ./configure: line 11704: /tmp/extract_define.OCF_ROOT_DIR.2563: Permission denied

sys-cluster:resource-agents-1.0.3:20100831-091840.log:checking for OCF_ROOT_DIR in heartbeat/glue_config.h... ./configure: line 5271: /tmp/extract_define.OCF_ROOT_DIR.19425: Permission denied

# mount
/dev/xvdb5 on / type ext3 (rw,noatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
udev on /dev type tmpfs (rw,nosuid,relatime,size=10240k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
/dev/xvdb6 on /home type ext3 (rw,noexec,nosuid,nodev,noatime)
/dev/xvdb7 on /usr type ext3 (rw,nodev,noatime)
/dev/xvdb8 on /var type ext3 (rw,nosuid,nodev,noatime)
/dev/xvdb9 on /tmp type ext3 (rw,noexec,nosuid,nodev,noatime)
/dev/mapper/system-portage on /usr/egatrop type ext3 (rw,nosuid,noatime)
/dev/mapper/system-log on /var/log type ext3 (rw,noexec,nosuid,nodev,noatime)
/dev/mapper/system-tmp on /var/tmp type ext3 (rw,noexec,nosuid,nodev,noatime)
shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)
xenfs on /proc/xen type xenfs (rw)
securityfs on /sys/kernel/security type securityfs (rw,noexec,nosuid,nodev)
/dev/drbd1 on /var/www type ext3 (rw,noexec,nosuid,nodev,noatime)

# emerge --info
Portage 2.1.8.3 (hardened/linux/amd64/10.0/no-multilib, gcc-4.4.4, glibc-2.11.2-r0, 2.6.34-hardened-r2 x86_64)
=================================================================
System uname: Linux-2.6.34-hardened-r2-x86_64-Intel-R-_Xeon-R-_CPU_E5420_@_2.50GHz-with-gentoo-1.12.13
Timestamp of tree: Fri, 03 Sep 2010 15:45:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib64/rcscripts/net/bonding.sh"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict suidctl unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.wheel.sk/ http://gentoo.supp.name/ http://gentoo.inf.elte.hu/ http://gentoo.mirror.pw.edu.pl/ http://gentoo.mneisen.org/ http://gentoo.inode.at/ http://gentoo.lagis.at/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://gentoo.wetzlmayr.com/ http://ftp.gentoo.bg/ http://mirrors.ludost.net/gentoo/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.dkm.cz/pub/gentoo/ http://gentoo.mirror.web4u.cz/ http://ftp.klid.dk/ftp/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ http://mirrors.linuxant.fr/distfiles.gentoo.org/ http://gentoo.modulix.net/gentoo/ http://mirror.ovh.net/gentoo-distfiles/ http://de-mirror.org/distro/gentoo/ http://mirror.netcologne.de/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://files.gentoo.gr http://ftp.ntua.gr/pub/linux/gentoo/ http://ftp.cc.uoc.gr/mirrors/linux/gentoo/ http://ftp.rhnet.is/pub/gentoo/ http://ftp.heanet.ie/pub/gentoo/ http://mirror.cambrium.nl/pub/os/linux/gentoo/ http://mirror.leaseweb.com/gentoo/ http://gentoo.tiscali.nl/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.gentoo.no/ http://gentoo.prz.rzeszow.pl http://gentoo.po.opole.pl http://ftp.vectranet.pl/gentoo/ http://ftp.rnl.ist.utl.pt/pub/gentoo/gentoo-distfiles/ http://darkstar.ist.utl.pt/gentoo/ http://cesium.di.uminho.pt/pub/gentoo/ http://ftp.dei.uc.pt/pub/linux/gentoo/ http://mirrors.evolva.ro/gentoo/gentoo-distfiles/ http://ftp.romnet.org/gentoo/ http://mirrors.xservers.ro/gentoo/ http://tux.rainside.sk/gentoo/ http://mirror.ynet.sk/pub/gentoo/ http://gentoo-euetib.upc.es/mirror/gentoo/ http://ftp.udc.es/gentoo/ http://ftp.ds.karen.hj.se/gentoo/ http://ftp.ing.umu.se/linux/gentoo/ http://ftp.df.lth.se/pub/gentoo/ http://mirror.mdfnet.se/mirror/gentoo http://mirror.switch.ch/ftp/mirror/gentoo/ http://mirror.bytemark.co.uk/gentoo/ http://mirror.qubenet.net/mirror/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
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="/usr/egatrop/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://gentoo-mirror.indgroup.eu/gentoo-portage"
USE="acl amd64 apache2 bash-completion berkdb bzip2 calendar caps chroot clamav cli cracklib crypt cscope ctype curl cxx expat extensions gd gdbm geoip hal hardened hpn iconv idn iodbc justify maildir memlimit mhash mime mmx modules mudflap ncurses nls nptl nptlonly odbc openmp pam pcre perl pic posix pppd python readline reflection session sharedext sharedmem slang smp sockets spl sse sse2 ssl sysfs syslog sysvipc threads truetype udev unicode urandom vhosts xml xorg xsl zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-09-12 08:42:44 UTC
Everything described here would fail the same way if you run it by hand with noexec on /tmp on any given distro. Could you please report it upstream?
Best regards,
Kacper Kowalik 
Comment 2 Lorand Kelemen 2010-09-12 09:50:33 UTC
Reported upstream, please see:
http://developerbugs.linux-foundation.org/show_bug.cgi?id=2487

I will track the upstream bug and report back here.
Comment 3 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-10-06 07:23:32 UTC
Please reopen should you push the patch upstream. Thanks!
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2011-05-02 00:51:24 UTC
*** Bug 364939 has been marked as a duplicate of this bug. ***
Comment 5 Lorand Kelemen 2012-04-09 23:32:54 UTC
Good news everyone! 

Just a few hours ago the patches were merged upstream, now all affected sources include them [1][2][3].

[1] https://github.com/ClusterLabs/resource-agents/commit/4e2eb4c9967466c8fe923022ffd12f036cd1d9e0

[2] http://hg.linux-ha.org/dev/rev/add12b838ef4

[3] http://hg.clusterlabs.org/pacemaker/devel/rev/95ac63cd889d