Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#30401 closed defect (fixed)

parallel @20110602 build failure

Reported by: mkb-prime@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.0
Keywords: haspatch Cc:
Port: parallel

Description

I get the following error when building parallels immediately after selfupdate. The log says to report this to the upstream maintainer as well, so I will.

<snip>
:debug:build Executing org.macports.build (parallel)
:debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rs
ync.macports.org_release_ports_sysutils_parallel/parallel/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOS
X_DEPLOYMENT_TARGET='10.6'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils
_parallel/parallel/work/parallel-20110622" && /usr/bin/make -w all'
:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sys
utils_parallel/parallel/work/parallel-20110622" && /usr/bin/make -w all 
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutil
s_parallel/parallel/work/parallel-20110622'
:info:build /usr/bin/make  all-recursive
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysu
tils_parallel/parallel/work/parallel-20110622':info:build Making all in src
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysu
tils_parallel/parallel/work/parallel-20110622/src':info:build pod2man --release='20110622' --center='parallel' \
:info:build             --section=1 ./parallel.pod > ./parallel.1
:info:build pod2man --release='20110622' --center='parallel' \:info:build             --section=1 ./sem.pod > ./sem.1
:info:build pod2man --release='20110622' --center='parallel' \:info:build             --section=1 ./sql > ./sql.1
:info:build pod2man --release='20110622' --center='parallel' \
:info:build             --section=1 ./niceload > ./niceload.1
:info:build ./sem --fg --id pod2html pod2html ./parallel.pod > ./parallel.html
:info:build parallel: This should not happen. You have found a bug.
:info:build Please contact <parallel@gnu.org> and include:
:info:build * The version number: 20110622
:info:build * The bugid: Can't open semaphore file /Users/makane/.parallel/semaphores/id-pod2html.lock: No such file or directory
:info:build * The command line being run:info:build * The files being read (put the files on a webserver if they are big)
:info:build :info:build If you get the error on smaller/fewer files, please include those instead.

Attachments (1)

portfile.patch (507 bytes) - added by mkb-prime@… 9 years ago.
Patch to fix

Download all attachments as: .zip

Change History (10)

comment:1 Changed 9 years ago by mkb-prime@…

This is on 10.6.7 using the system gcc 4.2

Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5664~38/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5664)

comment:2 Changed 9 years ago by ryandesign (Ryan Schmidt)

I updated parallel to 20110722 in r81179. Does that help?

comment:3 Changed 9 years ago by mkb-prime@…

On second thought, I don't think this is a bug in parallel. Rather, it's because of the privilege dropping that's new in MacPorts 2.0. When running as user macports, the build still tries to use semaphores in $ENV{HOME}/.parallel which in my case is owned by me and not world-writable. If I chmod ~/.parallel to 777, the install succeeds. The new version still fails.

comment:4 in reply to:  3 Changed 9 years ago by ryandesign (Ryan Schmidt)

Replying to mkb-prime@…:

it's because of the privilege dropping that's new in MacPorts 2.0.

I agree.

Changed 9 years ago by mkb-prime@…

Attachment: portfile.patch added

Patch to fix

comment:5 Changed 9 years ago by mkb-prime@…

I got it to work without messing with the permissions in my homedir simply by changing the homedir to ${workpath} during install. Maybe this isn't the right place, but it's a start.

comment:6 Changed 9 years ago by ryandesign (Ryan Schmidt)

Keywords: haspatch added

comment:7 Changed 9 years ago by nerdling (Jeremy Lavergne)

Resolution: fixed
Status: newclosed

Patch works for me.

Committed in r81659.

comment:8 Changed 9 years ago by nerdling (Jeremy Lavergne)

Further patched in r81666.

comment:9 Changed 9 years ago by ci42

Committed a improved patch in r81666 and take over maintainership.

Note: See TracTickets for help on using tickets.