[Aboriginal] I am likely forgetting something obvious

Patrick Lauer patrick at gentoo.org
Mon Nov 9 01:10:20 PST 2015



On 11/08/2015 09:03 PM, James McMechan wrote:
> Hi everyone,
> It has been a while since I last tested rebuilding in a chroot, and my
> build is failing
> I had done what I remembered as my procedure:
> # more/chroot-splice.sh x86_64 /tmp
> then copied it over to my /mnt/build directory and mounted proc,sys,dev
> and then unpacked aboriginal into it
> # tar xf ~mcmechan/Downloads/aboriginal-1.4.3.tar.gz -C /mnt/build
> when I start up my chroot
> # chroot /mnt/build /bin/bash
> # cd /aboriginal-1.4.3/
> # ./build.sh x86_64
> === Download source code.
> wget: bad address 'uclibc.org <http://uclibc.org>'z2
> wget: bad address 'landley.net <http://landley.net>'

bad or missing /etc/resolv.conf in the chroot?
> Connecting to 127.0.0.1 (127.0.0.1:80 <http://127.0.0.1:80>)
> wget: server returned error: HTTP/1.0 404 Not Found
> Could not download uClibc-0.9.33.2.tar.bz2
>
> Exiting due to errors (host download )
>
> real    0m10.098s
> user    0m0.000s
> sys     0m0.000s
>
> #####
> Ok, I have now checked and downloads have not worked for some time at
> least back to 1.2.9
>
> but if I have copied in the package directory 1.2.9 will build busybox
> & toybox
> and 1.4.3 fails with
>
> === busybox (host host-tools)
> Extracting
> 'busybox'...........................................................................
> Snapshot 'busybox'...
> sh: set: -e: invalid option
>   HOSTCC  scripts/basic/fixdep
> sh: set: -e: invalid option
>   HOSTCC  scripts/basic/split-include
> sh: set: -e: invalid option
>   HOSTCC  scripts/basic/docproc
> sh: local: not in a function
> sed: : No such file or directory
> sed: : No such file or directory
>
> Ok that appears to be hush so with
> # ln -sf /bin/bash /bin/sh
> I get a little further, the more/chroot-splice.sh should likely do
> this and it would be nice if it did not require the second option, I
> at least am just wanting a plain chroot without a mount inside.
You shouldn't require bash. Maybe hush is not posixy enough? If you want
a small shell I think busybox sh and mksh are currently the easiest options.

>
> so using bash 1.4.3 dies in toybox with:
>
> Extracting 'toybox'...............
> Applying /aboriginal-1.4.3/sources/patches/toybox-grep.patch
> patching toys/posix/grep.c
> Snapshot 'toybox'...
> scripts/genconfig.sh
> cc -o kconfig/conf kconfig/conf.c kconfig/zconf.tab.c -DKBUILD_NO_NLS=1 \
>                 -DPROJECT_NAME=\"ToyBox\"
> kconfig/conf -D /dev/null Config.in > /dev/null
> scripts/make.sh
> scripts/make.sh: line 7: set: pipefail: invalid option name
> Generate headers from toys/*/*.c...
> generated/newtoys.h Library probe.......
> Make generated/config.h from .config.
> generated/flags.h generated/globals.h generated/help.h
> Compile toybox.scripts/make.sh: line 1: jobs: command not found
> .scripts/make.sh: line 1: jobs: command not found
> .scripts/make.sh: line 1: jobs: command not found
>
> so should I be looking to turn on pipefail & jobs in bash or do I need
> to fix up the build script. 1.2.9 did not have jobs or pipefail.
Yes, or use another shell. Disabling random features might not be a good
idea ;)

Have fun,

Patrick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/aboriginal-landley.net/attachments/20151109/7f5fd512/attachment-0001.htm>


More information about the Aboriginal mailing list