summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2015-06-30 22:21:11 +0100
committerV3n3RiX <venerix@rogentos.ro>2015-06-30 22:21:11 +0100
commit2c2f3dffff3de642b5c22466cbc54dbf33138139 (patch)
treeb5f24212870bb5c2a478c69734906abbf4bc509e
parentb807686376bc5c26d6b71ee63f6b0b02df6ff8d6 (diff)
make sure we load our sane env before actually start to build the package
-rwxr-xr-xvasile5
1 files changed, 4 insertions, 1 deletions
diff --git a/vasile b/vasile
index 8da0651..d203a42 100755
--- a/vasile
+++ b/vasile
@@ -20,8 +20,9 @@ export local envkogaiontarget="$@"
export local envkogaionbuildtarget="emerge -av "$envkogaiontarget""
# env buildsystem variables
-export local envkogaionportageconfig="ln -sf /opt/build/conf/intel/portage /etc/portage"
export local envkogaionbuildgit="cd /opt && git clone https://github.com/Rogentos/build.git"
+export local envkogaionportageconfig="ln -sf /opt/build/conf/intel/portage /etc/portage"
+export local envkogaionenvupdate="/usr/sbin/env-update && . /etc/profile"
export local envkogaionoverlay="layman -f -a kogaion -o https://raw.github.com/Rogentos/kogaion/master/overlay.xml"
export local envkogaiondesktopoverlay="layman -f -a kogaion-desktop -o https://raw.github.com/Rogentos/kogaion-desktop/master/overlay.xml"
@@ -164,6 +165,7 @@ envkogaionbuildsystem() {
chroot "$overlaydir" su - "$envkogaionuser" -c "$envkogaionportageconfig"
chroot "$overlaydir" su - "$envkogaionuser" -c "$envkogaionmakeconf"
chroot "$overlaydir" su - "$envkogaionuser" -c "$envkogaionprofile"
+ chroot "$overlaydir" su - "$engkogaionuser" -c "$envkogaionenvupdate"
elif [[ "$(uname -m)" = "i686" ]] ; then
export local envkogaionmakeconf="ln -sf /opt/build/conf/intel/portage/make.conf.x86 /etc/portage/make.conf"
export local envkogaionprofile="eselect profile set 1"
@@ -180,6 +182,7 @@ envkogaionbuildsystem() {
linux32 chroot "$overlaydir" su - "$envkogaionuser" -c "$envkogaionportageconfig"
linux32 chroot "$overlaydir" su - "$envkogaionuser" -c "$envkogaionmakeconf"
linux32 chroot "$overlaydir" su - "$envkogaionuser" -c "$envkogaionprofile"
+ linux32 chroot "$overlaydir" su - "$envkogaionuser" -c "$envkogaionenvupdate"
fi
}