Opened 15 years ago

Closed 14 years ago

Last modified 14 years ago

#21582 closed defect (fixed)

trace mode fails extracting any port

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 2.0.0
Component: base Version: 1.8.0
Keywords: snowleopard Cc: danchr (Dan Villiom Podlaski Christiansen), jmroot (Joshua Root)
Port:

Description

Doesn't matter what port you try; if you use trace mode, it fails in the extract phase:

$ sudo port -t configure zlib
--->  Computing dependencies for zlib
--->  Fetching zlib
--->  Verifying checksum(s) for zlib
--->  Extracting zlib
Error: Target org.macports.extract returned: shell command " cd "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_archivers_zlib/work" && /usr/bin/bzip2 -dc /opt/local/var/macports/distfiles/zlib/zlib-1.2.3.tar.bz2 | /usr/bin/gnutar --no-same-owner -xf - " returned error 1
Command output: shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
sh: line 0: cd: /opt/local/var/macports/build/_Users_rschmidt_macports_dports_archivers_zlib/work: Not a directory

Error: Status 1 encountered during processing.

MacPorts 1.8 branch @58094
Mac OS X 10.6.1

Attachments (1)

stat_test.c (843 bytes) - added by jmroot (Joshua Root) 14 years ago.

Download all attachments as: .zip

Change History (12)

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

Keywords: snowleopard added

Only fails on Snow Leopard, works on Leopard and Tiger.

comment:2 Changed 15 years ago by wsiegrist@…

Milestone: MacPorts 1.8.1MacPorts 1.8.2

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

1.8.1 milestone is closing, moving open tickets out

comment:4 Changed 15 years ago by danchr (Dan Villiom Podlaski Christiansen)

Cc: danchr@… added

Cc Me!

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

Milestone: MacPorts 1.8.2MacPorts Future

comment:6 Changed 14 years ago by jmroot (Joshua Root)

Darwintrace is denying access to some directories because it thinks they are not directories. Calling the stat syscall directly apparently gives different results than using the libc function, specifically in st_mode. A test program demonstrating this is attached.

Changed 14 years ago by jmroot (Joshua Root)

Attachment: stat_test.c added

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

Resolution: fixed
Status: newclosed

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

Cc: jmr@… added
Resolution: fixed
Status: closedreopened

This change in trunk appears to cause a build failure on ppc970 (G5). Do other platforms have build issues now as well?

darwintrace.c:925: warning: 'struct stat64' declared inside parameter list
darwintrace.c:925: warning: its scope is only this definition or declaration, which is probably not what you want
darwintrace.c: In function 'stat64':
darwintrace.c:941: error: 'SYS_stat64' undeclared (first use in this function)
darwintrace.c:941: error: (Each undeclared identifier is reported only once
darwintrace.c:941: error: for each function it appears in.)
darwintrace.c:948:5: warning: '$' in identifier or number
darwintrace.c: At top level:
darwintrace.c:948: warning: 'struct stat64' declared inside parameter list
darwintrace.c: In function 'stat$INODE64':
darwintrace.c:950: warning: passing argument 2 of 'stat64' from incompatible pointer type
darwintrace.c: At top level:
darwintrace.c:976: warning: 'struct stat64' declared inside parameter list
darwintrace.c: In function 'lstat64':
darwintrace.c:992: error: 'SYS_lstat64' undeclared (first use in this function)
darwintrace.c: At top level:
darwintrace.c:999: warning: 'struct stat64' declared inside parameter list
darwintrace.c: In function 'lstat$INODE64':
darwintrace.c:1001: warning: passing argument 2 of 'lstat64' from incompatible pointer type
make[2]: *** [darwintrace.o] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1

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

Jeremy, is your G5 running Tiger? If so, see Joshua's message that this change probably broke MacPorts on Tiger.

comment:10 Changed 14 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: reopenedclosed

comment:11 Changed 14 years ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 2.0.0
Note: See TracTickets for help on using tickets.