annotate images/lfs-bootstrap/mnt/build/util-linux.sh @ 40:ef471ef37665 draft default tip

Yank reliance on ash.
author Rob Landley <rob@landley.net>
date Sat, 18 Jul 2015 01:39:24 -0500
parents e2d5699cee3a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16
0bdce741ba83 Upgrade lfs-bootstrap from 6.7 to Linux From Scratch 6.8.
Rob Landley <rob@landley.net>
parents:
diff changeset
1 #!/bin/sh
0bdce741ba83 Upgrade lfs-bootstrap from 6.7 to Linux From Scratch 6.8.
Rob Landley <rob@landley.net>
parents:
diff changeset
2
0bdce741ba83 Upgrade lfs-bootstrap from 6.7 to Linux From Scratch 6.8.
Rob Landley <rob@landley.net>
parents:
diff changeset
3 sed -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' \
0bdce741ba83 Upgrade lfs-bootstrap from 6.7 to Linux From Scratch 6.8.
Rob Landley <rob@landley.net>
parents:
diff changeset
4 -i $(grep -rl '/etc/adjtime' .) &&
20
e2d5699cee3a Fix a couple problems with the util-linux build.
Rob Landley <rob@landley.net>
parents: 16
diff changeset
5 # uClibc hasn't got argp.h, and it's the wrong header to include anyway.
e2d5699cee3a Fix a couple problems with the util-linux build.
Rob Landley <rob@landley.net>
parents: 16
diff changeset
6 sed -e 's/<argp[.]h>/<errno.h>/' -i configure &&
e2d5699cee3a Fix a couple problems with the util-linux build.
Rob Landley <rob@landley.net>
parents: 16
diff changeset
7 # They never tested --disable-nls and use gettext() directly without masking it.
e2d5699cee3a Fix a couple problems with the util-linux build.
Rob Landley <rob@landley.net>
parents: 16
diff changeset
8 sed -e '/define _(/{n;/define N_(/a \# define gettext(Text) (Text)' -e '}' -i include/nls.h &&
16
0bdce741ba83 Upgrade lfs-bootstrap from 6.7 to Linux From Scratch 6.8.
Rob Landley <rob@landley.net>
parents:
diff changeset
9 mkdir -p /var/lib/hwclock &&
0bdce741ba83 Upgrade lfs-bootstrap from 6.7 to Linux From Scratch 6.8.
Rob Landley <rob@landley.net>
parents:
diff changeset
10 ./configure --enable-arch --enable-partx --enable-write --disable-nls &&
0bdce741ba83 Upgrade lfs-bootstrap from 6.7 to Linux From Scratch 6.8.
Rob Landley <rob@landley.net>
parents:
diff changeset
11 make -j $CPUS &&
0bdce741ba83 Upgrade lfs-bootstrap from 6.7 to Linux From Scratch 6.8.
Rob Landley <rob@landley.net>
parents:
diff changeset
12 make install