tools-hardened/desktop: Adds KERNEL_DIR env var to emerge calls

It is important that when emerging packages no kernel configuration
is taken from the running kernel, to fix this all calls to emerge
have been prepended with the KERNEL_DIR env var which includes the
kernel src dir that emerge should look at inside the chroot.
This commit is contained in:
Devan Franchini 2014-10-06 13:50:02 -04:00
parent e35587b117
commit 301b3bcf25
3 changed files with 10 additions and 5 deletions

View file

@ -1,5 +1,7 @@
#!/bin/bash -l #!/bin/bash -l
kernel_dir="/usr/src/linux-tinhat"
source /etc/profile source /etc/profile
env-update env-update
emerge -evq --keep-going --with-bdeps=y world KERNEL_DIR="${kernel_dir}" emerge -evq --keep-going --with-bdeps=y world

View file

@ -1,11 +1,13 @@
#!/bin/bash -l #!/bin/bash -l
kernel_dir="/usr/src/linux-tinhat"
source /etc/profile source /etc/profile
env-update env-update
emerge -1q binutils KERNEL_DIR="${kernel_dir}" emerge -1q binutils
source /etc/profile source /etc/profile
env-update env-update
emerge -1q gcc KERNEL_DIR="${kernel_dir}" emerge -1q gcc
source /etc/profile source /etc/profile
env-update env-update
emerge -1q glibc KERNEL_DIR="${kernel_dir}" emerge -1q glibc

View file

@ -1,5 +1,6 @@
#!/bin/bash -l #!/bin/bash -l
kernel_dir="/usr/src/linux-tinhat"
#Right now we're commenting out the cairo #Right now we're commenting out the cairo
#rebuild to see if it works in glibc. #rebuild to see if it works in glibc.
#hacky - for some reason cairo fails to rebuild #hacky - for some reason cairo fails to rebuild
@ -12,4 +13,4 @@ env-update
#env-update #env-update
#emerge -1q x11-libs/cairo #emerge -1q x11-libs/cairo
emerge -uvNDq --keep-going --with-bdeps=y world KERNEL_DIR="${kernel_dir}" emerge -uvNDq --keep-going --with-bdeps=y world