First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 97552
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Linux High-Performance Clustering Team <hp-cluster@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Pat Lougheed <patl@sfu.ca>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
1.2.0_p1-respect-destdir.patch Make Torque 1.2.0_p1 respect DESTDIR patch Pat Lougheed 2005-06-30 17:03 0000 19.86 KB Details | Diff
torque-1.2.0_p1.ebuild New Torque ebuild with required changes for the patch text/plain Pat Lougheed 2005-06-30 17:06 0000 1.71 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 97552 depends on: Show dependency tree
Show dependency graph
Bug 97552 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

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







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


Description:   Opened: 2005-06-30 15:34 0000
When installing sys-cluster/torque, the installed libraries keep within them a
compile-time absolute path to one of the installed binaries. This doesn't
appear to be an issue when just using Torque, but when trying to compile
software that depends on Torque (ie. the Maui cluster scheduler), they fail to
run.

How to reproduce:
1. emerge torque
2. download and compile maui
3. killall pbs_sched && maui, watch for error messages

One my system, this results in the following error message being displayed:

sh:
/scratch/gentoo-portage-tmp/portage/torque-1.2.0_p1/image//usr/sbin/pbs_iff: No
such file or directory

(Note that PORTAGE_TMPDIR=/scratch/gentoo-portage-tmp on my system.)

Basically, it looks like when running ebuild ....torque-1.2.0_p1.ebuild
install, the make prefix=${D}/usr install that gets called causes a rebuild of
all the Torque libraries with the new prefix (which is different from that
passed in src_compile). The process works like this:

1. ebuild calls "make prefix=${D}/usr mandir=${D}/usr/share/man
PBS_SERVER_HOME=${D}/usr/spool/PBS install || die" in src_install.
2. Torque's makefile sets ${prefix}, which then in turn sets ${sbindir}.
3. Makefile sets IFF_PATH=$(sbindir)/pbs_iff.
4. This path in turn gets placed into the CFLAGS define in
src/lib/Libpbs/Makefile and compiles the library with that (absolute) path.

I'm working on a solution for this, but smarter minds than mine may have a
quicker solution.

------- Comment #1 From Pat Lougheed 2005-06-30 17:03:11 0000 -------
Created an attachment (id=62366) [edit]
Make Torque 1.2.0_p1 respect DESTDIR

Note that this obseletes the sed on pbs_mkdirs.in in the current
torque-1.2.0_p1.ebuild

------- Comment #2 From Pat Lougheed 2005-06-30 17:06:20 0000 -------
Created an attachment (id=62367) [edit]
New Torque ebuild with required changes for the patch

ebuild incorporates patching with the patch previously attached, changes the
make install line appropriately, and removes the now obsoleted sed.

------- Comment #3 From Robin Johnson 2005-07-04 18:12:43 0000 -------
fixed in cvs now, there were a few other places that needed DESTDIR in
pbs_mkdirs.in as well that you missed, but I've got them all now.

First Last Prev Next    No search results available      Search page      Enter new bug