Opened 12 years ago

Closed 12 years ago

#5744 closed bug (fixed)

install-haiku target copies and as symlinks

Reported by: andreasf Owned by: bonefish
Priority: normal Milestone: R1
Component: Build System Version: R1/Development
Keywords: Cc: PulkoMandy
Blocked By: Blocking:
Platform: x86


When building on Haiku, at hrev36100 and still with us at hrev36336, the HaikuImage Jamfile places $(HAIKU_SHARED_LIBSTDC++) and $(HAIKU_SHARED_LIBSUPC++) into system/lib/ and copies the symlinks instead of the target files, so that system/lib/ points to /boot/system/lib/

This leads to the resulting volume stalling at boot during the rocket icon with the following messages in serial debug output:

runtime_loader: Cannot open file No such file or directory
runtime_loader: Cannot open file No such file or directory

Attachments (1)

libstdc++-readlink.patch (872 bytes ) - added by andreasf 12 years ago.

Download all attachments as: .zip

Change History (4)

by andreasf, 12 years ago

Attachment: libstdc++-readlink.patch added


comment:1 by andreasf, 12 years ago

The attached patch works around this by post-processing the obtained $(HAIKU_SHARED_LIBxxxC++) values with readlink. The libraries are then copied correctly.

The original values are read from gcc

comment:2 by korli, 12 years ago

What's your build platform version ?

comment:3 by bonefish, 12 years ago

Resolution: fixed
Status: newclosed

Added a similar solution in hrev36355. The actual problem is that copyattr (which is used for copying for "install" profiles) does not resolve symlinks by default and doesn't even have a switch to do that. I guess the work-around is OK for the time being.

Note: See TracTickets for help on using tickets.