ruby: retry to build for *-musl
chroot: copy UTC as localtime as fallback if /etc/localtime does not exist. It looks as if ruby's rdoc was failing in a function using /etc/localtime.
This commit is contained in:
parent
ed306bd3d6
commit
6c320e98ba
2 changed files with 5 additions and 7 deletions
|
@ -82,7 +82,11 @@ chroot_prepare() {
|
|||
fi
|
||||
|
||||
# Create some required files.
|
||||
[ -f /etc/localtime ] && cp -f /etc/localtime $XBPS_MASTERDIR/etc
|
||||
if [ -f /etc/localtime ]; then
|
||||
cp -f /etc/localtime $XBPS_MASTERDIR/etc
|
||||
elif [ -f /usr/share/zoneinfo/UTC ]; then
|
||||
cp -f /usr/share/zoneinfo/UTC $XBPS_MASTERDIR/etc/localtime
|
||||
fi
|
||||
|
||||
for f in dev sys proc host boot; do
|
||||
[ ! -d $XBPS_MASTERDIR/$f ] && mkdir -p $XBPS_MASTERDIR/$f
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue