Jorge Manuel B. S. Vicetto | 5 Jun 22:00 2016
Picon
Gravatar

[PATCH] Fix USE not "sticking" between stage runs and allow set USE flags just for building - CATALYST_USE. This should fix bug 473332 and avoid the current issue of catalyst-3 stages being built with (fwd)

Hi.

Apologies but I "mixed" my mailing lists when I sent this message earlier 
today.
Regards,

Jorge Manuel B. S. Vicetto
Gentoo Developer

---------- Forwarded message ----------
Date: Sun,  5 Jun 2016 11:29:13 +0000
From: "Jorge Manuel B. S. Vicetto (jmbsvicetto)" <jmbsvicetto@...>
To: gentoo-releng@..., releng@...
Cc: "Jorge Manuel B. S. Vicetto (jmbsvicetto)" <jmbsvicetto@...>
Subject: [PATCH] Fix USE not "sticking" between stage runs and allow set USE
     flags just for building - CATALYST_USE. This should fix bug 473332 and avoid
      the current issue of catalyst-3 stages being built without BINDIST. These
     changes don't allow setting USE flags for stage 1,
     2 and 3 and don't touch other stages (TODO).

Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@...>
---
  catalyst/base/stagebase.py        | 13 ++++++++++++-
  catalyst/targets/grp.py           |  7 -------
  catalyst/targets/livecd_stage1.py | 14 +++++---------
  targets/stage1/stage1-chroot.sh   |  9 +++++++--
  targets/stage2/stage2-chroot.sh   | 19 ++++++-------------
  targets/stage3/stage3-chroot.sh   | 10 ++++++++++
  6 files changed, 40 insertions(+), 32 deletions(-)

(Continue reading)

Mike Frysinger | 20 May 16:27 2016
Picon
Gravatar

[PATCH 1/4] use native code in more places for file ops

Rather than shell out to cp/rm/mv, use python native code to do things.
---
 catalyst/base/stagebase.py | 39 +++++++++++++++------------------------
 1 file changed, 15 insertions(+), 24 deletions(-)

diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
index 2009ab6..0b25516 100644
--- a/catalyst/base/stagebase.py
+++ b/catalyst/base/stagebase.py
 <at>  <at>  -1013,8 +1013,7  <at>  <at>  class StageBase(TargetBase, ClearBase, GenBase):
 		else:
 			log.notice('Setting up chroot...')

-			cmd("cp /etc/resolv.conf " + self.settings["chroot_path"] + "/etc/",
-				env=self.env)
+			shutil.copy('/etc/resolv.conf', self.settings['chroot_path'] + '/etc/')

 			# Copy over the envscript, if applicable
 			if "envscript" in self.settings:
 <at>  <at>  -1030,18 +1029,15  <at>  <at>  class StageBase(TargetBase, ClearBase, GenBase):
 					'Catalyst Maintainers use VERY minimal envscripts, if used at all.\n'
 					'You have been warned.')

-				cmd("cp "+self.settings["envscript"]+" "+\
-					self.settings["chroot_path"]+"/tmp/envscript",\
-					env=self.env)
+				shutil.copy(self.settings['envscript'],
+					self.settings['chroot_path'] + '/tmp/envscript')

 			# Copy over /etc/hosts from the host in case there are any
(Continue reading)

Leno Hou | 21 Apr 06:42 2016
Picon

[PATCH V3 1/3] catalyst/arch/powerpc.py: add subarch ppc64le platform

From: Kevin Zhao <kevin.zhaoshuai@...>

1) For little-endian, add subarch ppc64le,power8le,power7le
2) For big-endian, add subarch power8, power7.
3) ppc64le keyword will be used in create iso and intergrating bootloader.

Signed-off-by: Kevin Zhao <kevin.zhaoshuai@...>
CC: Mike Frysinger <vapier@...>
CC: Leno Hou <lenohou@...>
---
 catalyst/arch/powerpc.py | 37 ++++++++++++++++++++++++++++++++++---
 1 file changed, 34 insertions(+), 3 deletions(-)

diff --git a/catalyst/arch/powerpc.py b/catalyst/arch/powerpc.py
index 7f4194e..bbc8941 100644
--- a/catalyst/arch/powerpc.py
+++ b/catalyst/arch/powerpc.py
 <at>  <at>  -28,6 +28,13  <at>  <at>  class arch_ppc64(generic_ppc64):
 		self.settings["CFLAGS"]="-O2 -pipe"
 		self.settings["CHOST"]="powerpc64-unknown-linux-gnu"

+class arch_ppc64le(generic_ppc64):
+	"builder class for generic ppc64le"
+	def __init__(self,myspec):
+		generic_ppc64.__init__(self,myspec)
+		self.settings["CFLAGS"]="-O2 -pipe"
+		self.settings["CHOST"]="powerpc64le-unknown-linux-gnu"
+
 class arch_970(arch_ppc64):
 	"builder class for 970 aka G5 under ppc64"
(Continue reading)

Marco Gigante | 15 Apr 09:54 2016
Picon

genkernel version parsing problem

Hi,
I got a problem with catalyst and latest version of genkernel, installed 
with genkernel-9999 ebuild.
genkernel --version returns v3.5.0.1 (with the 'v' prefix) and catalyst 
fails to check the minimal required version.

I made a quick fix which worked for me and wanted to share it for comments.

Thanks
marco
Marco Gigante | 11 Apr 16:07 2016
Picon

livecd_stage2 autoresume clear

Hi. I'm using catalyst to generate installcd-stage2-minimal with custom 
changes and packages.
I realized catalyst clears autoresume states once the iso image was 
successfully generated, regardless the fact I run catalyst with or 
without --clear-autoresume option.

Poking around the code, for my convenience I made the change as in the 
attached diff (vs. master branch).
Could such modification bring to unexpected behaviour?

I tried with all 2.X, 3.0, and master branches seeing the same behaviour.

Thanks in advance for any help.
marco
Mike Frysinger | 23 Mar 05:32 2016
Picon
Gravatar

[PATCH] kmerge: do not use --nodeps with kernel install

The kernel might pull in some tools needed to build it (like bc), so don't
merge it with --nodeps.  Seems like its inclusion in fed3b45bb608d2022fbc2
was an oversight.
---
 targets/support/kmerge.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/targets/support/kmerge.sh b/targets/support/kmerge.sh
index 3d4afea..fc066cc 100755
--- a/targets/support/kmerge.sh
+++ b/targets/support/kmerge.sh
 <at>  <at>  -220,7 +220,7  <at>  <at>  then

 	[ -L /usr/src/linux ] && rm -f /usr/src/linux

-	PKGDIR=${PKGDIR} clst_myemergeopts="--quiet --nodeps --update --newuse" run_merge
"${clst_ksource}" || exit 1
+	PKGDIR=${PKGDIR} clst_myemergeopts="--quiet --update --newuse" run_merge "${clst_ksource}" ||
exit 1

 	SOURCESDIR="/tmp/kerncache/${clst_kname}/sources"
 	if [ -L /usr/src/linux ]
Kevin Zhao | 12 Jan 05:55 2016
Picon

[PATCH 2/3] Modify the mkisofs parameter of ppc64 little-endian.

ppc64 little-endian has different archtecture and new
boot parameters.Don't need the hfs and mapping files
as it in Big-endian.Also tweak the code of Big-endian.

Signed-off-by: Kevin Zhao <kevin.zhaoshuai@...>
---
 targets/support/create-iso.sh | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/targets/support/create-iso.sh b/targets/support/create-iso.sh
index b4077c3..e333921 100755
--- a/targets/support/create-iso.sh
+++ b/targets/support/create-iso.sh
 <at>  <at>  -211,8 +211,22  <at>  <at>  case ${clst_hostarch} in
 			"${clst_target_path}/ppc/bootinfo.txt"
 		fi

+		flags=( -r -U -chrproot )
 		echo ">> Running mkisofs to create iso image...."
-		run_mkisofs -r -U -chrp-boot -netatalk -hfs -probe -map "${clst_target_path}"/boot/map.hfs -part
-no-desktop -hfs-volid "${clst_iso_volume_id}" -hfs-bless "${clst_target_path}"/boot -hide-hfs
"zisofs" -hide-hfs "stages" -hide-hfs "distfiles" -hide-hfs "snapshots" -J ${mkisofs_zisofs_opts}
-V "${clst_iso_volume_id}" -o "${1}" "${clst_target_path}"/
+		if [[ ${clst_subarch} == *le ]]
+		then
+			flags+=(
+				-v -T -l -cache-inodes
+			)
+		else
+			flags+=(
(Continue reading)

covici | 12 Jan 01:46 2016

problem building installcd-stage2-minimal

Hi.  I am trying to build a installcd-stage2-minimal with some
modifications for zfs, which I found made by arantius@...  I get
all the way through  compiling the kernel and then get the following
error:
Could not copy System.map from kerncache for the kernel package!
genkernel.log has no more information -- so how do I fix such a thing --
looks like the System.map is there in 
/var/tmp/catalyst/kerncache/default/livecd-stage2-amd64-20140808.zfs/gentoo/sources/System.map

Thanks in advance for any suggestions.
--

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici
         covici@...

covici | 11 Jan 05:08 2016

a couple of questions about catalyst operation

Hi.  I am new  to catalyst, and I have a few questions.

It seems that during the build, MAKEOPTS is being set to -j8 and that is
too much for my quadcore machine -- I am getting temperature warnings.
I tried to put export MAKEOPTS="-j1" in the catalystrc, but that did not
work.

Also, when genkernel was run I got * ERROR: Configure of dmraid failed!
-- I don't know why, I don't have raid on the host, would that have
anything to do with things?

Thanks in advance for any suggestions.

Kevin Zhao | 8 Jan 11:04 2016
Picon

[PATCH 3/3] Add a new bootloader file grub 2.00 and bootinfo.txt for ppc64le

The bootloader of ppc64le has changed from yaboot to grub
just as it used in Redhat and Debian.Yaboot has not been
used in Little-endian ppc64,and grub take its role.
Also the "bootinfo.txt" has also changed compared to ppc64
Big-endian.

Signed-off-by: Kevin Zhao <kevin.zhaoshuai-Re5JQEeQqe8AvxtiuMwx3w <at> public.gmane.org>
---
 livecd/cdtar/grub-2.00-cdtar.tar.bz2 | Bin 0 -> 682717 bytes
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 livecd/cdtar/grub-2.00-cdtar.tar.bz2

diff --git a/livecd/cdtar/grub-2.00-cdtar.tar.bz2 b/livecd/cdtar/grub-2.00-cdtar.tar.bz2
new file mode 100644
index 0000000000000000000000000000000000000000..32399e3af3f123dc28d39e78048b49a91d8e11fd
GIT binary patch
literal 682717
zcmafaWl$VZ7v<ot!3n`#g1fu>;O;gMoZu21f_rdx*Fl2?cO4`^a2SF+Y`$-+wsyC+
zYEM<a?)R#H+&X>h-q-h <at> Cuv|Oz#*Yer=?FoXUPMfJQei*|HD3vDgD^OZ <at> ~W!!BPO=
zwzUO-2>`SYmMlmGqZ48B6M*U+b3fyff{{cnug3woW=~*G$GVBu6)+r <at> i(2<pK;D{n
z&oLBwvIT+e-me}9oC9v5&u4zK0rkeqt2qHDSlyz}NBuDs_r5~CP~U)2 <at> 8!G&<1>B$
zfKReit)>zQbmxBszy<)&pU<`Pot97T7XiTlz^84&fDP^amG-SG?*_vy?} <at> `L3*nI)
zpliB3zPQQc9ycBydKfBYfmL#As)kcraGDH09;?I62c{Z0%t1o1%l8cPmG<cXU~aEy
z0LkI<pR*Q<(Jf-t(;j!owrC0CFSu?nbo+BKdtv}0U-d%X_m#%4R*pKyk+xe87vA1v
z*?8PVjcpYqrlzjHVV0xMFyKo0s?m+4Bpmhb>-}6Tok=$kgs=1cbO <at> +>M;EqIpZ&ic
zJRU49L-wFwkGYJGoHc~_fF20POBa|`6&LNBzyuTbk5VVb <at> *dZ-iNK5IikPSts7202
zcJYkRil4FHN<#ZbsRAe7N$AG+v|6&YUl$FeM?J0c?VwGeQ+9`$x^6%2`4;en3){*T
zxq%P(P<X~$MWg|X);{3-Z_g!nC#$uU!a={bdtvKMdI;0E+%{bo-^;;YSiPk4<UYci
zoB4j5kp12buJu!{ljj}X6~EqRD6}1tYpJ`E0Wfi{^>%YKbP~8`X1)+jDC <at> oGSzqGo
zxajFw <at> B)Dfq>Z<rKQ8Or <at> h <at> `k+u?dkY3I <at> !>ueM;pViV9oG~`-n(K0N!CyRfVZEKU
(Continue reading)

Kevin Zhao | 8 Jan 11:04 2016
Picon

[PATCH 2/3] Modify the parameter of ppc64 little-endian, because the ppc64 little-endian has different archtecture and new boot parameters.Don't need the hfs and mapping files as it in Big-endian.Also tweak the code of Big-endian.

Signed-off-by: Kevin Zhao <kevin.zhaoshuai@...>
---
 targets/support/create-iso.sh | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/targets/support/create-iso.sh b/targets/support/create-iso.sh
index b4077c3..2e604db 100755
--- a/targets/support/create-iso.sh
+++ b/targets/support/create-iso.sh
 <at>  <at>  -211,8 +211,22  <at>  <at>  case ${clst_hostarch} in
 			"${clst_target_path}/ppc/bootinfo.txt"
 		fi

+		flags=( -r -U )
 		echo ">> Running mkisofs to create iso image...."
-		run_mkisofs -r -U -chrp-boot -netatalk -hfs -probe -map "${clst_target_path}"/boot/map.hfs -part
-no-desktop -hfs-volid "${clst_iso_volume_id}" -hfs-bless "${clst_target_path}"/boot -hide-hfs
"zisofs" -hide-hfs "stages" -hide-hfs "distfiles" -hide-hfs "snapshots" -J ${mkisofs_zisofs_opts}
-V "${clst_iso_volume_id}" -o "${1}" "${clst_target_path}"/
+		if echo ${clst_subarch} | grep -qE ".+le$"
+		then
+			flags+=(
+				-v -T -l -cache-inodes -chrp-boot
+			)
+		else
+			flags+=(
+				-chrp-boot -netatalk -hfs -probe -map "${clst_target_path}"/boot/map.hfs \ 
+				-part -no-desktop -hfs-volid "${clst_iso_volume_id}" -hfs-bless "${clst_target_path}"/boot
-hide-hfs \
+				"zisofs" -hide-hfs "stages" -hide-hfs "distfiles" -hide-hfs "snapshots" -J ${mkisofs_zisofs_opts}
(Continue reading)


Gmane