Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions build-scripts/oe/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ echo "dash dash/sh boolean false" > /tmp/preseed.txt
debconf-set-selections /tmp/preseed.txt
dpkg-reconfigure -f noninteractive dash

# Add a symlink required to build some packages, like hkg-hsyslog
ln -s /lib64/ld-linux-x86-64.so.2 /lib/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have more details on this?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of the binaries used to build the Hackage projects were observed to look for ld-linux-x86-64.so.2 in /lib rather than /lib64.

Copy link
Author

@crogers1 crogers1 Mar 20, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specifically: running dist/build/System/Posix/Syslog_hsc_make failed
Syslog_hsc_make isn't called on every Hackage package, that's why it only fails for some of them. But if you ldd it, you can see how the ld-linux path is odd in an x64 container

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, thanks. I've seen that ld-linux issue before with precompiled binaries. The commit lacked details though, so I didn't know if it was the same issue.

The comment is inaccurate since the symlink is required to run (some) precompiled Haskell tools.


# Add a build user
adduser --disabled-password --gecos "" ${CONTAINER_USER}
mkdir -p /home/${CONTAINER_USER}/.ssh
Expand Down