Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 219957
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Portage team <dev-portage@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Martin Mokrejš <mmokrejs@ribosome.natur.cuni.cz>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 219957 depends on: Show dependency tree
Bug 219957 blocks: 216231
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-05-01 18:35 0000
After trying to size down my Gentoo installation I have moved portage tree away
from locak CompactFlash IDE drive, 512MB only in size -- into RAM. The /dev/shm
seemed like a ready-made place. A lot of packages I could emerge successfully
since then but few not. It turned down often configure cannot be executed:


>>> Source unpacked.
>>> Compiling source in /dev/shm/var/tmp/portage/portage/app-shells/bash-3.2_p17-r1/work/bash-3.2 ...
 * 
 * ERROR: app-shells/bash-3.2_p17-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2414:  Called econf 'src_compile'
'src_compile' '--without-afs' '--disable-profiling' '--without-gnu-malloc'
'--without-installed-readline'
 *               ebuild.sh, line  516:  Called die
 * The specific snippet of code:
 *              die "configure is not executable"
 *  The die message:
 *   configure is not executable




# cd /dev/shm/var/tmp/portage/portage/app-shells/bash-3.2_p17-r1/work/bash-3.2
# ./configure
-bash: ./configure: /bin/sh: bad interpreter: Permission denied
# 

It seems quite a common problem:
http://bugs.gentoo.org/buglist.cgi?query_format=advanced&short_desc_type=allwordssubstr&short_desc=&long_desc_type=substring&long_desc=%2Fbin%2Fsh%3A+bad+interpreter%3A+Permission+denied&bug_file_loc_type=allwordssubstr&bug_file_loc=&status_whiteboard_type=allwordssubstr&status_whiteboard=&keywords_type=allwords&keywords=&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&emailassigned_to1=1&emailtype1=substring&email1=&emailassigned_to2=1&emailreporter2=1&emailcc2=1&emailtype2=substring&email2=&bugidtype=include&bug_id=&votes=&chfieldfrom=&chfieldto=Now&chfieldvalue=&cmdtype=doit&order=Reuse+same+sort+as+last+time&field0-0-0=noop&type0-0-0=noop&value0-0-0=

People either have a read-only media or filesystem mounted with at least one of
'noexec' or 'ro'.

Could emerge on its execution check that PORTAGE_TMPDIR is located on a
filesystem mounted in a proper way? It is just about parsing /etc/mtab.
Preferably, it should first try to expand the path in case it would be a
softlink to another filesystem.

Anyway, I believe the message 'configure is not executable' could me
accommodated with better explanation and a hint to see bug #188328 and #144703
and at least in this moment it could parse /etc/mtab and see what are the mount
options. 

# emerge --version
Portage 2.1.4.4 (default/linux/amd64/2008.0/no-multilib, gcc-4.1.2,
glibc-2.6.1-r0, 2.6.24.5-default x86_64)
#

------- Comment #1 From Marius Mauch (RETIRED) 2008-05-02 02:56:35 0000 -------
Well, parsing mtab isn't really a good idea IMO, but fortunately there is
os.access() to use for such tests.

------- Comment #2 From Zac Medico 2008-05-06 08:41:45 0000 -------
This is fixed in 2.1.5_rc7.

------- Comment #3 From Ofer Wald 2008-08-21 18:09:12 0000 -------
There is a small typo in the explanation:

Please make sure that portage can execute files in this direxctory.

should be:
Please make sure that portage can execute files in this directory.

This is in current 2.1.5.6

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug