Opened 10 years ago

Closed 10 years ago

#40886 closed defect (fixed)

apple-gcc42, llvm-gcc42: build fails: build_gcc: Permission denied

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: haspatch Cc: erickt@…, lpsinger (Leo Singer)
Port: apple-gcc42, llvm-gcc42

Description

/bin/sh: /opt/local/var/macports/build/_Users_rschmidt_macports_dports_lang_llvm-gcc42/llvm-gcc42/work/llvmgcc42-2336.11/build_gcc: Permission denied

Attachments (3)

main.log.bz2 (44.7 KB) - added by ryandesign (Ryan Carsten Schmidt) 10 years ago.
llvm-gcc42.diff (343 bytes) - added by ryandesign (Ryan Carsten Schmidt) 10 years ago.
proposed patch
apple-gcc42.diff (319 bytes) - added by ryandesign (Ryan Carsten Schmidt) 10 years ago.
proposed patch

Download all attachments as: .zip

Change History (10)

Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log.bz2 added

comment:1 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)

What are the permissions on the /opt/local/var/macports/build/_Users_rschmidt_macports_dports_lang_llvm-gcc42/llvm-gcc42/work/llvmgcc42-2336.11/build_gcc file?

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

$ ls -l /opt/local/var/macports/build/_Users_rschmidt_macports_dports_lang_llvm-gcc42/llvm-gcc42/work/llvmgcc42-2336.11/build_gcc
-rw-r--r--  1 macports  wheel  34396 Oct 24 02:33 /opt/local/var/macports/build/_Users_rschmidt_macports_dports_lang_llvm-gcc42/llvm-gcc42/work/llvmgcc42-2336.11/build_gcc

comment:3 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: llvm-gcc42 build fails on Mavericksllvm-gcc42 build fails: build_gcc: Permission denied

I see build_gcc is a shell script copied from the files directory, where it is also missing the execute bit on my system, despite the fact that the svn:executable property is set.

I just converted my dports working copy from Subversion 1.6 format to 1.8 format; perhaps the conversion process has a bug that caused the execute bit to be lost.

I'll test whether changing the portfile to use xinstall to install the file (which would add the execute bit) works. I think that would be preferable to relying on existing permissions.

Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: llvm-gcc42.diff added

proposed patch

Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: apple-gcc42.diff added

proposed patch

comment:4 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: erickt@… added
Keywords: mavericks removed
Port: apple-gcc42 added
Summary: llvm-gcc42 build fails: build_gcc: Permission deniedapple-gcc42, llvm-gcc42: build fails: build_gcc: Permission denied

The attached patches resolve the issue. I'll also try to fix the permissions in my working copy.

comment:5 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added

comment:6 Changed 10 years ago by lpsinger (Leo Singer)

Cc: aronnax@… added

Cc Me!

comment:7 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.