Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 591800 Details for
Bug 695616
dev-util/catalyst is hard-coded to install app-misc/livecd-tools
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Wrapper script
autocatalyst.sh (text/x-shellscript), 3.13 KB, created by
Kenneth G. Strawn
on 2019-10-04 14:32:30 UTC
(
hide
)
Description:
Wrapper script
Filename:
MIME Type:
Creator:
Kenneth G. Strawn
Created:
2019-10-04 14:32:30 UTC
Size:
3.13 KB
patch
obsolete
>#!/bin/bash > >#Need to set extglob because vars depend on it >shopt -s extglob > >if [ $UID -ne 0 ]; then > echo "Please run this script as root or (if installed) with sudo prepended" && exit 1 >fi > >#Test to see if eix is installed >eix-installed -a >/dev/null; if [ $? -ne 0 ]; then > echo "Need to install eix to proceed" > emerge --ask app-portage/eix > isinstalled="$(eix-installed -a | grep catalyst)" >else > #Go straight to defining > isinstalled="$(eix-installed -a | grep catalyst)" >fi > >tarballdir=/var/tmp/catalyst/builds/default >configfile=/etc/catalyst/catalystrc >fsscript=$PWD/customize.sh >stage1spec=$PWD/livecd-stage1.spec >stage2spec=$PWD/livecd-stage2.spec >kconffile=$PWD/livecd-stage2.config >url=http://distfiles.gentoo.org/releases/amd64/autobuilds/current-stage4-amd64-systemd/stage4-amd64-systemd-20190928.tar.xz >cpucores=$(nproc) >tmpbuilddir=/var/tmp/catalyst/tmp/default >stage1chroot=$tmpbuilddir/livecd-stage1-amd64-installer-latest >stage2chroot=$tmpbuilddir/livecd-stage2-amd64-latest >support=/usr/share/catalyst/targets/support >python_targets=/usr/lib64/python3.6/site-packages/catalyst/targets >catalystrc_ischanged="$(cat /etc/catalyst/catalystrc | grep \"NINJAFLAGS=\"-j$cpucores\"\")" > >echo "Welcome to the Gentoo Catalyst GNOME/systemd build automator!" >echo "Emerging necessary packages..." >if [ -z $isinstalled ]; then > emerge --ask dev-util/catalyst >fi > >echo "Downloading necessary stage tarball..." >if [ ! -d $tarballdir ]; then > mkdir -p $tarballdir > wget -O $tarballdir/stage3-amd64-latest.tar.xz $url >elif [ ! -f $tarballdir/stage3-amd64-latest.tar.xz ]; then > wget -O $tarballdir/stage3-amd64-latest.tar.xz $url >else > echo "Tarball already exists, skipping download" >fi > >if [ -z $catalystrc_ischanged ]; then > echo "Making necessary catalystrc changes..." > sed -i "s/#export MAKEOPTS.*/export MAKEOPTS=\"-j$cpucores\"/" $configfile > echo "export NINJAFLAGS=\"-j$cpucores\"" >> $configfile > echo "export EMERGE_DEFAULT_OPTS=\"--autounmask-write=y --update --deep --newuse --complete-graph\"" >> $configfile > echo "export ACCEPT_LICENSE=\"*\"" >> $configfile > echo "export CONFIG_PROTECT=\"/etc/!(portage) /usr/share/gnupg/qualified.txt\"" >> $configfile >else > echo "Skipping catalystrc as it already has the necessary changes" >fi > >echo "Making necessary specfile changes..." >sed -i "s/livecd\/fsscript.*/livecd\/fsscript: ${fsscript//\//\\/}/g" $stage2spec >sed -i "s/boot\/kernel\/gentoo\/config.*/boot\/kernel\/gentoo\/config: ${kconffile//\//\\/}/g" $stage2spec > >echo "Removing hard dependency on openrc/sysvinit from Catalyst Python code..." >sed -i "/app-misc\/livecd-tools/d" $python_targets/livecd_stage1.py > >echo "Changing genkernel dependency to genkernel-next" >sed -i "s/genkernel/genkernel-next/g" $support/pre-kmerge.sh > >build() { > echo "Building..." > catalyst -f $stage1spec && catalyst -f $stage2spec >} > >build; if [ $? -ne 0 ]; then > echo "Fixing package.keywords and trying again" > install -m 755 fix-keywords.sh $stage1chroot/tmp/fix-keywords.sh > chroot $stage1chroot /tmp/fix-keywords.sh > build; if [ $? -ne 0 ]; then > echo "Entering chroot to allow for manual recovery" > chroot $stage1chroot > echo "Trying again" > build > fi >fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 695616
:
591016
|
591092
|
591096
|
591248
|
591250
|
591252
|
591254
|
591256
|
591540
| 591800 |
591802
|
591804
|
591806
|
591808
|
591810
|
591812
|
591814
|
591816
|
591818