Opened 2 years ago

Closed 2 years ago

#64375 closed defect (worksforme)

gsed @4.8_1 does not build on PPC Leopard, Mac OS X 10.5.8, because Error: couldn't open "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_gsed/gsed/work/.macports.gsed.state": permission denied

Reported by: ballapete (Peter "Pete" Dyballa) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: leopard Cc: mps@…
Port: gsed

Description

make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_gsed/gsed/work/sed-4.8'
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_gsed/gsed/work/sed-4.8'
DEBUG: Executing proc-post-org.macports.destroot-destroot-0
xinstall: mkdir /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_gsed/gsed/work/destroot/opt/local/share/doc/gsed
xinstall: chdir(/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_gsed/gsed/work/sed-4.8)
xinstall: AUTHORS -> /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_gsed/gsed/work/destroot/opt/local/share/doc/gsed/AUTHORS
xinstall: BUGS -> /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_gsed/gsed/work/destroot/opt/local/share/doc/gsed/BUGS
xinstall: COPYING -> /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_gsed/gsed/work/destroot/opt/local/share/doc/gsed/COPYING
xinstall: ChangeLog -> /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_gsed/gsed/work/destroot/opt/local/share/doc/gsed/ChangeLog
xinstall: NEWS -> /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_gsed/gsed/work/destroot/opt/local/share/doc/gsed/NEWS
xinstall: README -> /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_gsed/gsed/work/destroot/opt/local/share/doc/gsed/README
xinstall: THANKS -> /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_gsed/gsed/work/destroot/opt/local/share/doc/gsed/THANKS
xinstall: mkdir /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_gsed/gsed/work/destroot/opt/local/libexec/gnubin
xinstall: mkdir /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_gsed/gsed/work/destroot/opt/local/libexec/gnubin/man
xinstall: mkdir /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_gsed/gsed/work/destroot/opt/local/libexec/gnubin/man/man1
DEBUG: Executing portdestroot::destroot_finish
DEBUG: Deleting stray share/info/dir file.
DEBUG: Fixing glibtool .la files in destroot for gsed
--->  Compressing man pages for gsed
DEBUG: Scanning man1
DEBUG: system -W /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_gsed/gsed/work/destroot/opt/local/share/man: /usr/bin/gzip -9vnf man1/gsed.1
man1/gsed.1:	 60.9% -- replaced with man1/gsed.1.gz
man1/gsed.1.gz: changing permissions from 00644 to 00444
DEBUG: checking for mtree violations
DEBUG: dropping privileges: euid changed to -1, egid changed to -1.
DEBUG: couldn't open "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_gsed/gsed/work/.macports.gsed.state": permission denied
    while executing
"open $statefile a+"
    (procedure "open_statefile" line 102)
    invoked from within
"open_statefile"
    (procedure "target_run" line 14)
    invoked from within
"{*}$handler $ditem"
Error: couldn't open "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_gsed/gsed/work/.macports.gsed.state": permission denied
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_gsed/gsed/main.log for details.
DEBUG: could not read "/opt/local/share/man/man1/ggrep.1.gz": no such file or directory

These files do exist:

-r--r--r--  1 root  admin     37  6 Jan 18:16 /opt/local/share/man/man1/gegrep.1.gz
-r--r--r--  1 root  admin     37  6 Jan 18:16 /opt/local/share/man/man1/gfgrep.1.gz
-r--r--r--  1 root  admin  11167  6 Jan 18:16 /opt/local/share/man/man1/ggrep.1.gz

Attachments (1)

main.log (80.5 KB) - added by ballapete (Peter "Pete" Dyballa) 2 years ago.
Main.log from PPC Leopard

Download all attachments as: .zip

Change History (7)

Changed 2 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from PPC Leopard

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

DEBUG: dropping privileges: euid changed to -1, egid changed to -1.

Something's very wrong there. It should be changing to 502/502 going by the earlier parts of the log. There's nothing in the gsed Portfile that would cause this.

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

But even near the beginning of the log it has:

:debug:archivefetch euid/egid changed to: 0/-1
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 502/502

What's going on with egid -1 there? That should be 0.

Reboot the computer, clean the port, and try again?

Last edited 2 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 in reply to:  description Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to ballapete:

DEBUG: could not read "/opt/local/share/man/man1/ggrep.1.gz": no such file or directory

These files do exist:

-r--r--r--  1 root  admin     37  6 Jan 18:16 /opt/local/share/man/man1/gegrep.1.gz
-r--r--r--  1 root  admin     37  6 Jan 18:16 /opt/local/share/man/man1/gfgrep.1.gz
-r--r--r--  1 root  admin  11167  6 Jan 18:16 /opt/local/share/man/man1/ggrep.1.gz

I suspect this error is erroneous and you should ignore it. (MacPorts has a global variable to store the last error message, and there are some "errors" that occur as part of normal operation and are not supposed to be reported, but there are evidently still some code paths where these routine "errors" are inadvertently displayed to the user.) Pay attention to the first error instead:

DEBUG: couldn't open "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_gsed/gsed/work/.macports.gsed.state": permission denied

comment:4 Changed 2 years ago by ballapete (Peter "Pete" Dyballa)

Around one year after the storm on the Capitol in Washington, DC, something happened to my PowerBook G4. The symptom I found is that DNS stopped working. I could not report another fault then. DNS is fixed now.

Alright, I'll reboot!

comment:5 Changed 2 years ago by ballapete (Peter "Pete" Dyballa)

All port performed was outpacking the built before archive, probably once more, but now with complete success. So this problem seems to be solved.

comment:6 Changed 2 years ago by Schamschula (Marius Schamschula)

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