Opened 16 years ago

Closed 15 years ago

#18201 closed defect (worksforme)

Execute permission not set for gnutls 2.6.3_0 configure script

Reported by: pgijnxn02@… Owned by: sfiera@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: Cc:
Port: gnutls

Description

Building gnutls 2.6.3_0 fails because the configure script is not executable.

(I have gnutls installed already but I'm using -fnv to rebuild it)

$ sudo port -d upgrade -fnv gnutls

[snip]

--->  Configuring gnutls
DEBUG: Using compiler 'Mac OS X gcc 4.0'
DEBUG: Executing org.macports.configure (gnutls)
DEBUG: Environment: CFLAGS='-O2' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2' MACOSX_DEPLOYMENT_TARGET='10.4' CPP='/usr/bin/cpp-4.0' CXX='/usr/bin/g++-4.0' F90FLAGS='-O2' LDFLAGS='-L/opt/local/lib' FCFLAGS='-O2' OBJC='/usr/bin/gcc-4.0' INSTALL='/usr/bin/install -c' OBJCFLAGS='-O2' FFLAGS='-O2' CC='/usr/bin/gcc-4.0'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gnutls/work/gnutls-2.6.3" && ./configure --prefix=/opt/local --with-lzo --disable-guile ac_cv_path_LIBTASN1_CONFIG="pkg-config libtasn1"'
sh: line 1: ./configure: Permission denied
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gnutls/work/gnutls-2.6.3" && ./configure --prefix=/opt/local --with-lzo --disable-guile ac_cv_path_LIBTASN1_CONFIG="pkg-config libtasn1" " returned error 126
Command output: sh: line 1: ./configure: Permission denied

Warning: the following items did not execute (for gnutls): org.macports.archive org.macports.configure org.macports.build org.macports.destroot
DEBUG: invalid command name "::ui_init"
    while executing
"::ui_init $priority $prefix $channels $message"
    ("uplevel" body line 2)
    invoked from within
"uplevel 1 $body"
Error: Unable to upgrade port: 1

Manually setting the execute bit lets the build continue.

$ sudo chmod u+x /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gnutls/work/gnutls-2.6.3/configure
$ sudo port -d upgrade -fnv gnutls

[snip]

--->  Configuring gnutls
DEBUG: Using compiler 'Mac OS X gcc 4.0'
DEBUG: Executing org.macports.configure (gnutls)
DEBUG: Environment: CFLAGS='-O2' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2' MACOSX_DEPLOYMENT_TARGET='10.4' CPP='/usr/bin/cpp-4.0' CXX='/usr/bin/g++-4.0' F90FLAGS='-O2' LDFLAGS='-L/opt/local/lib' FCFLAGS='-O2' OBJC='/usr/bin/gcc-4.0' INSTALL='/usr/bin/install -c' OBJCFLAGS='-O2' FFLAGS='-O2' CC='/usr/bin/gcc-4.0'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gnutls/work/gnutls-2.6.3" && ./configure --prefix=/opt/local --with-lzo --disable-guile ac_cv_path_LIBTASN1_CONFIG="pkg-config libtasn1"'

and it works from there.

Change History (7)

comment:1 Changed 16 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to sfiera@…

comment:2 Changed 16 years ago by blb@…

Odd, it built fine for me a month ago and I just extracted the distfile and configure definitely is executable:

-rwxr-xr-x    1 blb  admin  1255350 Dec 12 11:48 configure*

Not sure what could have stripped the executable bit from it...

Also, any particular reason for using -fn?

comment:3 Changed 16 years ago by pgijnxn02@…

-f to force a rebuild and -n to limit it to this port only.

I recently upgraded my base to the new trunk and I was experimenting with the new behavior regarding variants. I was curious to see what a rebuild would do, and I happened to choose this one. So I have also installed this version of gnutls in the past just fine.

comment:4 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

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

Are you still experiencing this issue with the latest trunk and the latest ports? I just built gnutls @2.6.5_0 without problem on MacPorts 1.7.1. If you still see the problem with trunk, we may have an issue in MacPorts base.

comment:6 Changed 15 years ago by pgijnxn02@…

I was able to install gnutls @2.6.5_0 with no problems, on trunk r46952 and r51718.

comment:7 Changed 15 years ago by jmroot (Joshua Root)

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