Opened 13 years ago

Closed 13 years ago

Last modified 10 years ago

#30640 closed defect (fixed)

Libcaca build error

Reported by: giby_the_kid@… Owned by: phw@…
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: Cc: nerdling (Jeremy Lavergne), ryandesign (Ryan Carsten Schmidt)
Port: libcaca

Description (last modified by phw@…)

Hi,

One more time upgrading my mac port one port failed...

sth-dw399:~ benjaminleduc$ sudo port upgrade outdated
--->  Computing dependencies for libcaca
--->  Building libcaca
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for libcaca is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_libcaca/libcaca/main.log
Error: Unable to upgrade port: 1
To report a bug, see <http://guide.macports.org/#project.tickets>
sth-dw399:~ benjaminleduc$ 

Thanks

Attachments (1)

main.log (228.4 KB) - added by giby_the_kid@… 13 years ago.
log of the bug

Download all attachments as: .zip

Change History (8)

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

Description: modified (diff)
Owner: changed from macports-tickets@… to phw@…
Port: libcaca added

Remember to use WikiFormatting, fill in the Port field, and Cc the port's maintainer.

Please clean and try again ("sudo port clean libcaca") and if it fails again, attach the new main.log (the main.log you attached is incomplete).

Both this an #30641 look like a problem with mono. Perhaps you need to rebuild mono ("sudo port -n upgrade --force mono").

Changed 13 years ago by giby_the_kid@…

Attachment: main.log added

log of the bug

comment:2 Changed 13 years ago by giby_the_kid@…

here is the new one

and I'm rebuilding mono

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

So both here and in #30641 the complaint is:

:info:build ** (/opt/local/lib/mono/1.0/mcs.exe:13569): CRITICAL **: _wapi_shm_file_open: shared file [/var/empty/.wapi/shared_data-sth-dw399.rhi.hi.is-Darwin-i386-312-12-0] open error: No such file or directory

I'll bet this relates to MacPorts 2.0's new macports user concept: /var/empty is that user's home directory, so this "mcs.exe" is apparently trying to write to the home directory, failing to do so because it does not have permission to write to /var/empty, then experiencing this critical error when unable to read the file it previously failed to write. Perhaps modifying the port to set $HOME to something inside ${workpath} would be a workaround.

comment:4 Changed 13 years ago by nerdling (Jeremy Lavergne)

Cc: snc@… ryandesign@… added

Another solution is adding build.asroot yes to the Portfile. I've recommended this to people in IRC that have run into this specific problem.

comment:5 Changed 13 years ago by phw@…

Description: modified (diff)
Resolution: fixed
Status: newclosed

I have changed the default behaviour to "build.asroot yes" to fix the problem

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

Setting HOME to something inside workpath would be better if it works. See also #31827. We'd rather not build as root; that's why the privilege-dropping code was added to MacPorts in the first place.

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

No longer build as root as of r133310, since #31827 has been fixed.

Note: See TracTickets for help on using tickets.