Skip to contentSkip to conversation

RFC: splitting deploy/ipk into subarchs

DISCUSSION Koen Kooi 4 participants 9 messages Feb 19, 2007 – Feb 24, 2007

lore
Share & tools
lore

Koen Kooi

author
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

When using multimachine and ipkg deploy/ipk gets awfully crowded after a while. I want to propose sorting it by subarch. Attached is a patch that adds support for that to rootfs_ipk.bbclass.

What do you think about that?

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFF2YeZMkyGM64RGpERAjYCAJ9nBjdpcvTlvijaQ7o/UlZGWg68tgCdHw4m IzGLM3yx+X9k/ZgMo+WqT6E=
=N6sc
-----END PGP SIGNATURE-----

#

# old_revision [bc83c51286e87a2b8aa3f79f074cadc05dedb7de]
# 
# patch "classes/rootfs_ipk.bbclass"
#  from [7824b4ee6ac7524e12d7411575e8bbf4b8a9d321]
#    to [016f168e95ecc8150984cc48a14ecbd73a5fd9ed]
# 
============================================================
--- classes/rootfs_ipk.bbclass	7824b4ee6ac7524e12d7411575e8bbf4b8a9d321
+++ classes/rootfs_ipk.bbclass	016f168e95ecc8150984cc48a14ecbd73a5fd9ed
@@ -18,17 +18,26 @@ fakeroot rootfs_ipk_do_rootfs () {

mkdir -p ${IMAGE_ROOTFS}/dev

- if [ -z "${DEPLOY_KEEP_PACKAGES}" ]; then
+ ipkgarchs="${PACKAGE_ARCHS}"
+
+ if [ -z "${DEPLOY_KEEP_PACKAGES}" ]; then
touch ${DEPLOY_DIR_IPK}/Packages
ipkg-make-index -r ${DEPLOY_DIR_IPK}/Packages -p ${DEPLOY_DIR_IPK}/Packages -l ${DEPLOY_DIR_IPK}/Packages.filelist -m ${DEPLOY_DIR_IPK}
- fi
+ if [-e ${DEPLOY_DIR_IPK}/$arch/] ; then
+ touch ${DEPLOY_DIR_IPK}/$arch/Packages
+ ipkg-make-index -r ${DEPLOY_DIR_IPK}/$arch/Packages -p ${DEPLOY_DIR_IPK}/$arch/Packages -l ${DEPLOY_DIR_IPK}/$arch/Packages.filelist -m ${DEPLOY_DIR_IPK}/$arch
+ fi
+ fi
+
mkdir -p ${T}
echo "src oe file:${DEPLOY_DIR_IPK}" > ${T}/ipkg.conf
- ipkgarchs="${PACKAGE_ARCHS}"
priority=1
for arch in $ipkgarchs; do
echo "arch $arch $priority" >> ${T}/ipkg.conf
priority=$(expr $priority + 5)
+ if [-e ${DEPLOY_DIR_IPK}/$arch/Packages] ; then
+ echo "src oe file:${DEPLOY_DIR_IPK}/$arch" >> ${T}/ipkg.conf
+ fi
done
ipkg-cl ${IPKG_ARGS} update
if [ ! -z "${LINGUAS_INSTALL}" ]; then

#1 lore raw
Quoted 5 lines · Koen Kooi

When using multimachine and ipkg deploy/ipk gets awfully crowded after a while. I want to propose sorting it by subarch. Attached is a patch that adds support for that to rootfs_ipk.bbclass.

What do you think about that?

I like this idea. ipkg-make-index is slow enough already.

Attached fixed, tested version of your rootfs_ipk.bbclass change. Also added patch to package_ipk.bbclass which will store package in proper dir.

Signature · 5 lines
JID: hrw-jabber.org
OpenEmbedded developer/consultant

         Great minds discuss ideas; average minds discuss events;
         small minds discuss people.

#

# old_revision [bc83c51286e87a2b8aa3f79f074cadc05dedb7de]
# 
# patch "classes/rootfs_ipk.bbclass"
#  from [7824b4ee6ac7524e12d7411575e8bbf4b8a9d321]
#    to [a30d56a031d7b85d13bb62d4956e77252a4b79fa]
# 
============================================================
--- classes/rootfs_ipk.bbclass	7824b4ee6ac7524e12d7411575e8bbf4b8a9d321
+++ classes/rootfs_ipk.bbclass	a30d56a031d7b85d13bb62d4956e77252a4b79fa
@@ -18,17 +18,25 @@ fakeroot rootfs_ipk_do_rootfs () {

mkdir -p ${IMAGE_ROOTFS}/dev

- if [ -z "${DEPLOY_KEEP_PACKAGES}" ]; then
- touch ${DEPLOY_DIR_IPK}/Packages
- ipkg-make-index -r ${DEPLOY_DIR_IPK}/Packages -p ${DEPLOY_DIR_IPK}/Packages -l ${DEPLOY_DIR_IPK}/Packages.filelist -m ${DEPLOY_DIR_IPK}
- fi
+ ipkgarchs="${PACKAGE_ARCHS}"
+
+ for arch in $ipkgarchs; do
+ if [ -z "${DEPLOY_KEEP_PACKAGES}" ]; then
+ if [ -e ${DEPLOY_DIR_IPK}/$arch/ ] ; then
+ touch ${DEPLOY_DIR_IPK}/$arch/Packages
+ ipkg-make-index -r ${DEPLOY_DIR_IPK}/$arch/Packages -p ${DEPLOY_DIR_IPK}/$arch/Packages -l ${DEPLOY_DIR_IPK}/$arch/Packages.filelist -m ${DEPLOY_DIR_IPK}/$arch/
+ fi
+ fi
+ done
+
mkdir -p ${T}
- echo "src oe file:${DEPLOY_DIR_IPK}" > ${T}/ipkg.conf
- ipkgarchs="${PACKAGE_ARCHS}"
priority=1
for arch in $ipkgarchs; do
echo "arch $arch $priority" >> ${T}/ipkg.conf priority=$(expr $priority + 5)
+ if [ -e ${DEPLOY_DIR_IPK}/$arch/Packages ] ; then
+ echo "src oe-$arch file:${DEPLOY_DIR_IPK}/$arch" >> ${T}/ipkg.conf
+ fi
done
ipkg-cl ${IPKG_ARGS} update
if [ ! -z "${LINGUAS_INSTALL}" ]; then

#

# old_revision [bc83c51286e87a2b8aa3f79f074cadc05dedb7de]
# 
# patch "classes/package_ipk.bbclass"
#  from [6f5d44fb7cf065ce7b680009e5c9bcb554f760c4]
#    to [57535d540caec17311adeb1e15f49d290d6cc8ac]
# 
============================================================
--- classes/package_ipk.bbclass	6f5d44fb7cf065ce7b680009e5c9bcb554f760c4
+++ classes/package_ipk.bbclass	57535d540caec17311adeb1e15f49d290d6cc8ac
@@ -75,6 +75,9 @@ python do_package_ipk () {
 	if not outdir:
 		bb.error("DEPLOY_DIR_IPK not defined, unable to package")
 		return
+
+	arch = bb.data.getVar('PACKAGE_ARCH', d, 1)
+	outdir = "%s/%s" % (outdir, arch)
 	bb.mkdirhier(outdir)

dvar = bb.data.getVar('D', d, 1)

author
#2 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Marcin Juszkiewicz schreef:

Quoted 6 lines
Quoted 4 lines · Koen Kooi

When using multimachine and ipkg deploy/ipk gets awfully crowded after a while. I want to propose sorting it by subarch. Attached is a patch that adds support for that to rootfs_ipk.bbclass.

Quoted 7 lines
Quoted 1 line

What do you think about that?

I like this idea. ipkg-make-index is slow enough already.

Attached fixed, tested version of your rootfs_ipk.bbclass change. Also added patch to package_ipk.bbclass which will store package in proper dir.

Nice

Review

Quoted 1 line
(quoted diff) +0 -1
-	echo "src oe file:${DEPLOY_DIR_IPK}" > ${T}/ipkg.conf

This breaks backward compat, could you add that back in?

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFF2ZhMMkyGM64RGpERAtwOAJ0d4gxAt3a/XFjsJP+5xFvsapJdswCePBQN QCZEkVp954PrWVq1QERxVtQ=
=Qtcf
-----END PGP SIGNATURE-----

author
#3 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Koen Kooi schreef:

Quoted 13 lines

Marcin Juszkiewicz schreef:

Quoted 12 lines

Dnia poniedziaBek, 19 lutego 2007, Koen Kooi napisaB:

Quoted 5 lines

When using multimachine and ipkg deploy/ipk gets awfully crowded after a while. I want to propose sorting it by subarch. Attached is a patch that adds support for that to rootfs_ipk.bbclass.

What do you think about that?

I like this idea. ipkg-make-index is slow enough already.

Attached fixed, tested version of your rootfs_ipk.bbclass change. Also added patch to package_ipk.bbclass which will store package in proper dir.

Marcin and I merged a slightly different version of this today.

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFF2q70MkyGM64RGpERAjXNAJ9B2sh7Ly/KvcFkSfKNmAgXw+7VwACfbFfn /sKicIMGzfx8EYkT/B/YR78=
=s1Iz
-----END PGP SIGNATURE-----

author
#4 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Koen Kooi schreef:

Quoted 1 line

Marcin and I merged a slightly different version of this today.

As some people found out, their upload scripts broke with this change. I'm sorry that happened, but those scripts are more easily fixed than ipkg-utils :(
Due to bug in ipkg-utils being I haven't been using a straight rsync for a while now, so for the curious:

rsync -az . [email protected]:/feed/location/unsorted ; ssh [email protected] 'cd feed/location/unsorted ; sh sort.sh'

where sort.sh is http://www.angstrom-distribution.org/unstable/feed/unsorted/sort.sh.txt

And while you're at it, check wether your rsync uses --delete, and if not, check if you remove Packages* before running ipkg-make-index. If that wasn't the case you have been unknowingly suffering for a buggy Packages* for a while now. Combined with ipkg .163 on the device I suspect 'ipkg upgrade' doesn't behave as deterministically as you might think.

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFF2vw3MkyGM64RGpERAv9OAJ4ij31yxqCC8M855mQ8hUvhdj56UQCfVk4z zfpTSMD0IajJc9VRF2dyuQA=
=rvcF
-----END PGP SIGNATURE-----

#5 lore raw

Am Dienstag, den 20.02.2007, 14:48 +0100 schrieb Koen Kooi:

Quoted 11 lines

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Koen Kooi schreef:

Quoted 1 line

Marcin and I merged a slightly different version of this today.

As some people found out, their upload scripts broke with this change. I'm sorry that happened, but those scripts are more easily fixed than ipkg-utils :(
Due to bug in ipkg-utils being I haven't been using a straight rsync for a while now, so for the curious:

Why not make this change optional via a variable
(ie: SPLIT_DEPLOYDIR_IPK = -1 to turn it off) ?

The current version breaks local OE feeds and requires needless post-processing.

A slugos deploy dir looks like this now:

all
armv5te
i686
ixp4xxle

I honestly don't see any advantage to the previous mode of operation. If it is needed for unique situations like the rare case of a multi-machine build, it should be off by default and - by all means - optional.

My 2 cents
--
Matthias Hentges

author
#6 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matthias Hentges schreef:

Quoted 12 lines

Am Dienstag, den 20.02.2007, 14:48 +0100 schrieb Koen Kooi:

Quoted 10 lines

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Koen Kooi schreef:

Quoted 1 line

Marcin and I merged a slightly different version of this today.

As some people found out, their upload scripts broke with this change. I'm sorry that happened, but those scripts are more easily fixed than ipkg-utils :(
Due to bug in ipkg-utils being I haven't been using a straight rsync for a while now, so for the curious:

Quoted 4 lines

Why not make this change optional via a variable
(ie: SPLIT_DEPLOYDIR_IPK = -1 to turn it off) ?

The current version breaks local OE feeds

People's feeds are outside the scope of OE. Repeat after me: deploy never was, isn't and never will be a feed.

Quoted 1 line

and requires needless post-processing.

As I pointed out before, you needed postprocessing anyway due to bugs in ipkg and ipkg-utils, so your point is moot.

Quoted 8 lines

A slugos deploy dir looks like this now:

all
armv5te
i686
ixp4xxle

I honestly don't see any advantage to the previous mode of operation.

Go read the openembedded-devel list some time.

Quoted 2 lines

If
it is needed for unique situations

No

Quoted 1 line

like the rare case of a multi-machine build

Apart from that now being the point, it actually isn't rare, the majority of the (maintained) distros in OE use it (celinux. generic, angstrom, openmoko, openzaurus, slugos and jline).

Quoted 1 line

it should be off by default and - by all means - optional.

No it should not. Next time respond to the RFCs instead of starting some uninformed rant afterward.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFF3qA+MkyGM64RGpERAsq1AJ9jkjFqiolnJWv/Mul6S59sCG2gZwCcDWRi WEqSA0lYqeEuhz/9vBImS00=
=EmZ6
-----END PGP SIGNATURE-----

#7 lore raw

Am Freitag, den 23.02.2007, 09:05 +0100 schrieb Koen Kooi:

Quoted 7 lines

Matthias Hentges schreef:

Quoted 6 lines

Am Dienstag, den 20.02.2007, 14:48 +0100 schrieb Koen Kooi:

Quoted 5 lines

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Koen Kooi schreef:

Quoted 7 lines
Quoted 4 lines

Why not make this change optional via a variable
(ie: SPLIT_DEPLOYDIR_IPK = -1 to turn it off) ?

The current version breaks local OE feeds

People's feeds are outside the scope of OE. Repeat after me: deploy never was, isn't and never will be a feed.

It worked just fine as a feed before the change and people were using it as such, deal with it.

Quoted 4 lines
Quoted 1 line

and requires needless post-processing.

As I pointed out before, you needed postprocessing anyway due to bugs in ipkg and ipkg-utils, so your point is moot.

You may have needed post-processing, I personally never did. Not even when I was building for 4 machines.... As I said, the old deploy directory worked just fine as a feed out of the box. If people weren't using it as a feed, please explain the existence of meta/package-index.bb.

Quoted 11 lines
Quoted 9 lines

A slugos deploy dir looks like this now:

all
armv5te
i686
ixp4xxle

I honestly don't see any advantage to the previous mode of operation.

Go read the openembedded-devel list some time.

Well, If I wouldn't read it from time to time, I wouldn't have responded to this thread in the first place.
Sounds logical, now, doesn't it?

Quoted 5 lines
Quoted 3 lines

If
it is needed for unique situations

No

Oh yes.

Quoted 3 lines
Quoted 1 line

like the rare case of a multi-machine build

Apart from that now being the point,

Yes, that's exactly the point. A change benefiting very few people affecting basically every one in a mostly negative way.

Quoted 3 lines

it actually isn't rare, the majority of the
(maintained) distros in OE use it (celinux. generic, angstrom, openmoko, openzaurus, slugos and jline).

Oh right, because the majority of OE users are distribution maintainers, right!
And every maintainer always builds every machine in existance. Sorry, I forgot!
</sarcasm>

Your SlugOS exsample is pretty braindead as I had already shown you in my previous email that slugos builds _suffer_ from the change, they don't benefit from it. You do actually _read_ the emails you are "responding" to, right?

SlugOS doesn't even use multi-machine magic to build images for multiple supported machines (it may or may not use it for LE/BE builds). You might wanna check with reality from time to time before spouting nonsense.

Quoted 4 lines
Quoted 1 line

it should be off by default and - by all means - optional.

No it should not. Next time respond to the RFCs instead of starting some uninformed rant afterward.

a) Not even 24 hours passed between the first email and the resulting commit. What kind of RFC is that? How are people supposed to actually comment on it (you know, the C part of RFC? ) if the commit is out before most subscribers even noticed what was going on?

b) I do have other things on my mind than to read this mailinglist on a daily basis. I only do so from time to time and respond to matters of my concern and / or interest.

c) It wasn't a "rant", I was stating facts, even if you are too close-minded to see it.

d) It was in no way uninformed. You may remember me maintaining my own bloody distribution for multiple machines in the past? How much more informed about this matter do you want me to get? I even gave a very informed short example ( in the form of SlugOS ) of why I think the change should be optional. If anyone is posting uninformed "rants", it is you.

e) If you do not want any comments, then by all means, don't request them! But if you actually _do_ care what other people think about a certain matter, please stop responding like a know-all-be-all impolite smart-ass that puts down other people for not thinking 100% alike.

#8 lore raw
In reply to Koen Kooi
Quoted 11 lines · Koen Kooi

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matthias Hentges schreef:

Quoted 4 lines

Am Dienstag, den 20.02.2007, 14:48 +0100 schrieb Koen Kooi:

Quoted 1 line

-----BEGIN PGP SIGNED MESSAGE-----

it should be off by default and - by all means - optional.

No it should not. Next time respond to the RFCs instead of starting some uninformed rant afterward.

Matthias's post did not read as a rant.

A response earlier certainly would have been more helpful, however as he points out, if the preceding procedure was meant to be a RFC the period allowed for this was very short.

How long should be allowed for feedback is an issue I'm not qualified to comment on, however given the time allowed it is certainly unreasonable at the very least to complain when constructive feedback is received after the event.

Signature · 2 lines
Michael
m r o z a t u k g a t e w a y d o t n e t