Skip to contentSkip to conversation

Bumping packages: some comments/suggestions

Buildroot Thomas Petazzoni 8 participants 19 messages Oct 13, 2013 – Oct 15, 2013

lore
Share & tools
lore
#0 lore raw

Hello Jerzy and Axel,

Recently, both of you have worked on and contributed a number of patches bumping a significant number of Buildroot packages. This is of course really great, and I'd like to thank you for those contributions.

That being said, I would have two suggestions:

*) It would be great if you could check that the reverse dependencies
of the package you're bumping still continue to build. For example, Axel bumped 'ortp', but didn't realize bumping it would break the linphone and mediastreamer. While we certainly cannot expect contributors to test package bumps in all possible configurations (especially for packages having a large number of reverse dependencies), checking at least a few of them is a good idea. Also, when bumping from one major release to another (such as berkeleydb 5.x to berkeleydb 6.x), even more care should be taken.

*) To make this "bumping" effort a bit more systematic, I believe it
would be useful to introduce an infrastructure in Buildroot to automatically check if upstream has a new package. In many cases, the upstream site has a directory with all the different versions of the tarball, so checking if there's a newer one in an automated way would be possible. If we do this for many packages, then we can run a script every day, and check if there are new upstream releases available. Debian has such a mechanism with the 'watch' mechanism (see https://wiki.debian.org/debian/watch/). Gentoo has the euscan utility (see https://github.com/iksaif/euscan). It would be nice having something like this, that we could integrate in the Buildroot per-package stats at
http://autobuild.buildroot.org/stats/ to get a clear vision of which packages need to be upgraded. If one of you is interested in doing this, it'd be great!

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#1 lore raw

2013/10/13 Thomas Petazzoni <[email protected]>:

Quoted 6 lines

Hello Jerzy and Axel,

Recently, both of you have worked on and contributed a number of patches bumping a significant number of Buildroot packages. This is of course really great, and I'd like to thank you for those contributions.

Quoted 6 lines

That being said, I would have two suggestions:

*) It would be great if you could check that the reverse dependencies
of the package you're bumping still continue to build. For example, Axel bumped 'ortp', but didn't realize bumping it would break the linphone and mediastreamer. While we certainly cannot expect

This is my bad.
I did try to compile ortp with various combination of build config. I didn't realize the reverse dependencies issue when
I sent the patch bumping ortp version.
A lesson learnt. I'll be more careful when bump version.

Quoted 5 lines

contributors to test package bumps in all possible configurations (especially for packages having a large number of reverse dependencies), checking at least a few of them is a good idea. Also, when bumping from one major release to another (such as berkeleydb 5.x to berkeleydb 6.x), even more care should be taken.

Also my bad. Will be checking licenses as well when bump versions.

Regards,
Axel

Quoted 24 lines

*) To make this "bumping" effort a bit more systematic, I believe it
would be useful to introduce an infrastructure in Buildroot to automatically check if upstream has a new package. In many cases, the upstream site has a directory with all the different versions of the tarball, so checking if there's a newer one in an automated way would be possible. If we do this for many packages, then we can run a script every day, and check if there are new upstream releases available. Debian has such a mechanism with the 'watch' mechanism (see https://wiki.debian.org/debian/watch/). Gentoo has the euscan utility (see https://github.com/iksaif/euscan). It would be nice having something like this, that we could integrate in the Buildroot per-package stats at
http://autobuild.buildroot.org/stats/ to get a clear vision of which packages need to be upgraded. If one of you is interested in doing this, it'd be great!

Best regards,

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

#2 lore raw

Dear Axel Lin,

Quoted 16 lines · Axel Lin
Quoted 10 lines

Recently, both of you have worked on and contributed a number of patches bumping a significant number of Buildroot packages. This is of course really great, and I'd like to thank you for those contributions.

That being said, I would have two suggestions:

*) It would be great if you could check that the reverse dependencies
of the package you're bumping still continue to build. For example, Axel bumped 'ortp', but didn't realize bumping it would break the linphone and mediastreamer. While we certainly cannot expect

This is my bad.
I did try to compile ortp with various combination of build config. I didn't realize the reverse dependencies issue when
I sent the patch bumping ortp version.
A lesson learnt. I'll be more careful when bump version.

Quoted 6 lines
Quoted 5 lines

contributors to test package bumps in all possible configurations (especially for packages having a large number of reverse dependencies), checking at least a few of them is a good idea. Also, when bumping from one major release to another (such as berkeleydb 5.x to berkeleydb 6.x), even more care should be taken.

Also my bad. Will be checking licenses as well when bump versions.

Thanks. Note that my comments were really meant as suggestions to improve your contributions: these will continue to be very welcome.

Quoted 7 lines
Quoted 7 lines

*) To make this "bumping" effort a bit more systematic, I believe it
would be useful to introduce an infrastructure in Buildroot to automatically check if upstream has a new package. In many cases, the upstream site has a directory with all the different versions of the tarball, so checking if there's a newer one in an automated way would be possible. If we do this for many packages, then we can run a script every day, and check if there are new upstream

Quoted 8 lines
Quoted 8 lines

releases available. Debian has such a mechanism with the 'watch' mechanism (see https://wiki.debian.org/debian/watch/). Gentoo has the euscan utility (see https://github.com/iksaif/euscan). It would be nice having something like this, that we could integrate in the Buildroot per-package stats at
http://autobuild.buildroot.org/stats/ to get a clear vision of which packages need to be upgraded. If one of you is interested in doing this, it'd be great!

Any opinion about this? I believe it would make more sense to invest time doing this than doing many many bumps on all packages.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#3 lore raw

Hi Thomas,

On Sun, Oct 13, 2013 at 3:42 PM, Thomas Petazzoni
<[email protected]> wrote:
[..]

Quoted 17 lines
Quoted 16 lines
Quoted 16 lines

*) To make this "bumping" effort a bit more systematic, I believe it
would be useful to introduce an infrastructure in Buildroot to automatically check if upstream has a new package. In many cases, the upstream site has a directory with all the different versions of the tarball, so checking if there's a newer one in an automated way would be possible. If we do this for many packages, then we can run a script every day, and check if there are new upstream releases available. Debian has such a mechanism with the 'watch' mechanism (see https://wiki.debian.org/debian/watch/). Gentoo has the euscan utility (see https://github.com/iksaif/euscan). It would be nice having something like this, that we could integrate in the Buildroot per-package stats at
http://autobuild.buildroot.org/stats/ to get a clear vision of which packages need to be upgraded. If one of you is interested in doing this, it'd be great!

Quoted 2 lines

Any opinion about this? I believe it would make more sense to invest time doing this than doing many many bumps on all packages.

I assume you're only talking about a way to automatically _detect_ that there are new versions of a given package, and the actual update in buildroot is still done manually, right?

Best regards,
Thomas

#4 lore raw

Dear Thomas De Schampheleire,

Quoted 6 lines · Thomas De Schampheleire
Quoted 2 lines

Any opinion about this? I believe it would make more sense to invest time doing this than doing many many bumps on all packages.

I assume you're only talking about a way to automatically _detect_ that there are new versions of a given package, and the actual update in buildroot is still done manually, right?

Of course. But this way, we would have some kind of "dashboard" showing us which packages might benefit from a bump.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#5 lore raw
In reply to Thomas Petazzoni

Hi Thomas,

Quoted 18 lines

Hello Jerzy and Axel,

Recently, both of you have worked on and contributed a number of patches bumping a significant number of Buildroot packages. This is of course really great, and I'd like to thank you for those contributions.

That being said, I would have two suggestions:

*) It would be great if you could check that the reverse dependencies
of the package you're bumping still continue to build. For example, Axel bumped 'ortp', but didn't realize bumping it would break the linphone and mediastreamer. While we certainly cannot expect contributors to test package bumps in all possible configurations (especially for packages having a large number of reverse dependencies), checking at least a few of them is a good idea. Also, when bumping from one major release to another (such as berkeleydb 5.x to berkeleydb 6.x), even more care should be taken.

Quoted 15 lines

*) To make this "bumping" effort a bit more systematic, I believe it
would be useful to introduce an infrastructure in Buildroot to automatically check if upstream has a new package. In many cases, the upstream site has a directory with all the different versions of the tarball, so checking if there's a newer one in an automated way would be possible. If we do this for many packages, then we can run a script every day, and check if there are new upstream releases available. Debian has such a mechanism with the 'watch' mechanism (see https://wiki.debian.org/debian/watch/). Gentoo has the euscan utility (see https://github.com/iksaif/euscan). It would be nice having something like this, that we could integrate in the Buildroot per-package stats at
http://autobuild.buildroot.org/stats/ to get a clear vision of which packages need to be upgraded. If one of you is interested in doing this, it'd be great!

Thanks for your suggestions.
Do you mean something like this ?

Package name Current version New upstream releases Reverse
dependencies
=======================================================================================

...
apr ............... 1.4.6 ........................................ apr-util log4cxx
apr ..................................... 1.4.8 apr-util .......... 1.4.1
apr-util ................................ 1.5.1 apr-util ................................ 1.5.2
...

Regards,
Jerzy

Quoted 3 lines

Best regards,

Thomas

#6 lore raw

Dear Jerzy Grzegorek,

Quoted 46 lines · Jerzy Grzegorek

Hi Thomas,

Quoted 18 lines

Hello Jerzy and Axel,

Recently, both of you have worked on and contributed a number of patches bumping a significant number of Buildroot packages. This is of course really great, and I'd like to thank you for those contributions.

That being said, I would have two suggestions:

*) It would be great if you could check that the reverse dependencies
of the package you're bumping still continue to build. For example, Axel bumped 'ortp', but didn't realize bumping it would break the linphone and mediastreamer. While we certainly cannot expect contributors to test package bumps in all possible configurations (especially for packages having a large number of reverse dependencies), checking at least a few of them is a good idea. Also, when bumping from one major release to another (such as berkeleydb 5.x to berkeleydb 6.x), even more care should be taken.

Quoted 15 lines

*) To make this "bumping" effort a bit more systematic, I believe it
would be useful to introduce an infrastructure in Buildroot to automatically check if upstream has a new package. In many cases, the upstream site has a directory with all the different versions of the tarball, so checking if there's a newer one in an automated way would be possible. If we do this for many packages, then we can run a script every day, and check if there are new upstream releases available. Debian has such a mechanism with the 'watch' mechanism (see https://wiki.debian.org/debian/watch/). Gentoo has the euscan utility (see https://github.com/iksaif/euscan). It would be nice having something like this, that we could integrate in the Buildroot per-package stats at
http://autobuild.buildroot.org/stats/ to get a clear vision of which packages need to be upgraded. If one of you is interested in doing this, it'd be great!

Thanks for your suggestions.
Do you mean something like this ?

Package name Current version New upstream releases Reverse
dependencies
=======================================================================================

Quoted 7 lines

...
apr ............... 1.4.6 ........................................ apr-util log4cxx
apr ..................................... 1.4.8 apr-util .......... 1.4.1
apr-util ................................ 1.5.1 apr-util ................................ 1.5.2

I'm not sure listing all reverse dependencies will actually be useful and/or possible. But yet, the idea is to add a mechanism that allows to automatically check, for a given package, if there is a new upstream version available.

Also, I believe there is no need to list multiple "new" upstream releases (as you did for apr-util above), listing the latest one available is fine.

Again, for now, the core of the problem is to be able to *detect* when an upstream version is available for a given package. Once that is done, we will see at integrating that into the statistics page I mentioned earlier, and do all the automated execution.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#7 lore raw
Quoted 8 lines

Again, for now, the core of the problem is to be able to *detect* when
an upstream version is available for a given package. Once that is done, we will see at integrating that into the statistics page I mentioned earlier, and do all the automated execution.

two ideas that might or might not be good ideas but are worth discussing early :

* try to automatically build the new version to see if it is an "easy bump" or a "hard bump" and document the result

* ping the last person(s) that touch the package (git has facilities to find them, I think it's called git-contribute) when a new version is available

both have good and bad sides, thus worth discussing...

#8 lore raw

Dear Jeremy Rosen,

Quoted 11 lines · Jeremy Rosen

two ideas that might or might not be good ideas but are worth discussing early :

* try to automatically build the new version to see if it is an "easy bump" or a "hard bump" and document the result

* ping the last person(s) that touch the package (git has facilities to find them, I think it's called git-contribute) when a new version is available

both have good and bad sides, thus worth discussing...

Agreed. But all of this first requires the ability to detect that a new version is available.

I must say I'm not a big fan of the automatic build, which may encourage people to do "careless" bump, i.e version bumps without looking at least a little bit at what changed, and taking a set back by looking at the version number, or the project web site, to see if the version bump is small, or major.

For the second one, I agree. We have discussed a few times having the notion of package maintainers. Probably something that will be worth discussing at this time.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#9 lore raw
Quoted 8 lines

I must say I'm not a big fan of the automatic build, which may encourage people to do "careless" bump, i.e version bumps without looking at least a little bit at what changed, and taking a set back by
looking at the version number, or the project web site, to see if the version bump is small, or major.

yeah, that's the "might not be a good idea" part... I was more thinking on the line of "this is a minor release and it compiles correctly, it's probably an easy job to test and bump" i.e for the case of minor/security releases upstream. It's a balance between helping maintainers work fast, helping project managers see low hanging fruites and making sure people are not too lazy...

Quoted 12 lines

For the second one, I agree. We have discussed a few times having the notion of package maintainers. Probably something that will be worth discussing at this time.

Best regards,

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

#10 lore raw

On Mon, Oct 14, 2013 at 11:38 AM, Jeremy Rosen <[email protected]> wrote:
[..]

Quoted 8 lines

yeah, that's the "might not be a good idea" part... I was more thinking on the line of "this is a minor release and it compiles correctly, it's probably an easy job to test and bump" i.e for the case of minor/security releases upstream. It's a balance between helping maintainers work fast, helping project managers see low hanging fruites and making sure people are not too lazy...

[..]

What I wanted to add in this discussion is this: if there are people out there that have time for some buildroot development but they have no clear goal of their own, they can among others choose between package bumps and fixing autobuild failures.
While there certainly is value in package bumping, I hope that not all of these people jump onto the bump-train and instead help with the autobuild failures. We still hope to get to 0 failures at some point, and bumping packages all the time will most of the time only add new problems.

Best regards,
Thomas

#11 lore raw

Dear Thomas De Schampheleire,

Quoted 9 lines · Thomas De Schampheleire

What I wanted to add in this discussion is this: if there are people out there that have time for some buildroot development but they have no clear goal of their own, they can among others choose between package bumps and fixing autobuild failures.
While there certainly is value in package bumping, I hope that not all of these people jump onto the bump-train and instead help with the autobuild failures. We still hope to get to 0 failures at some point, and bumping packages all the time will most of the time only add new problems.

I definitely agree that looking and fixing autobuilder failures is also a very important goal. Contributions in this area are very very welcome.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#12 lore raw

Hi,

I'm interested in developing an automatic way to know if a package needs to be bumped.
I'm a new contributor to buildroot (just sent a patch to add a new package, well 3 patches because I had trouble with git send-email...), if no one else have time to do it, I'll be happy to help Buildroot this way.

Regards,

Arnaud
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20131014/f2598ab2/attachment.html>

#13 lore raw

Arnaud,

Quoted 5 lines · arnaud aujon

I'm interested in developing an automatic way to know if a package needs to be bumped.
I'm a new contributor to buildroot (just sent a patch to add a new package, well 3 patches because I had trouble with git send-email...), if no one else have time to do it, I'll be happy to help Buildroot this way.

Until now, nobody has volunteered to work on this, so if you're interested, feel free to start prototyping things. I believe a helper script (in Python?), called from the Buildroot makefiles, is probably the best way: doing all this logic purely in make might be too complicated.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#14 lore raw

All right, I will start working on a python script. I keep you in touch.

2013/10/14 Thomas Petazzoni <[email protected]>

Quoted 18 lines

Arnaud,

Quoted 1 line · arnaud aujon

I'm interested in developing an automatic way to know if a package needs

to

Quoted 3 lines

be bumped.
I'm a new contributor to buildroot (just sent a patch to add a new package, well 3 patches because I had trouble with git send-email...),

if

Quoted 1 line

no one else have time to do it, I'll be happy to help Buildroot this way.

Until now, nobody has volunteered to work on this, so if you're interested, feel free to start prototyping things. I believe a helper script (in Python?), called from the Buildroot makefiles, is probably the best way: doing all this logic purely in make might be too complicated.

Quoted 8 lines

Best regards,

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20131014/07b83ec6/attachment.html>

#15 lore raw
In reply to Thomas De Schampheleire
Quoted 12 lines · Thomas De Schampheleire

On Mon, Oct 14, 2013 at 11:38 AM, Jeremy Rosen <[email protected]> wrote:
[..]

Quoted 8 lines

yeah, that's the "might not be a good idea" part... I was more thinking on the line of "this is a minor release and it compiles correctly, it's probably an easy job to test and bump" i.e for the case of minor/security releases upstream. It's a balance between helping maintainers work fast, helping project managers see low hanging fruites and making sure people are not too lazy...

[..]

Quoted 9 lines

What I wanted to add in this discussion is this: if there are people out there that have time for some buildroot development but they have no clear goal of their own, they can among others choose between package bumps and fixing autobuild failures.
While there certainly is value in package bumping, I hope that not all of these people jump onto the bump-train and instead help with the autobuild failures. We still hope to get to 0 failures at some point, and bumping packages all the time will most of the time only add new problems.

I'm also not too hot on version bumping just for the sake of bumping.
Version bumps should be done when they're useful for someone, e.g. because a feature or bugfix is added. If it's useful to you, then you'll obviously test if it still works correctly.

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
#16 lore raw

Dear Arnout Vandecappelle,

Quoted 10 lines · Arnout Vandecappelle
Quoted 9 lines

What I wanted to add in this discussion is this: if there are people out there that have time for some buildroot development but they have no clear goal of their own, they can among others choose between package bumps and fixing autobuild failures.
While there certainly is value in package bumping, I hope that not all of these people jump onto the bump-train and instead help with the autobuild failures. We still hope to get to 0 failures at some point, and bumping packages all the time will most of the time only add new problems.

Quoted 4 lines

I'm also not too hot on version bumping just for the sake of bumping.
Version bumps should be done when they're useful for someone, e.g. because a feature or bugfix is added. If it's useful to you, then you'll obviously test if it still works correctly.

I understand this point of view, but on the other hand, it's not really nice to have packages that have very old versions. For "core" stuff that isn't necessarily very easy to bump (think Qt, Gtk, X.org and things like that), it's quite important that the core Buildroot community keeps that up to date, because this is difficult to do for newcomers, and this is what people will look at to see if Buildroot is well-maintained and active.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#17 lore raw
Quoted 19 lines · Thomas Petazzoni

Dear Arnout Vandecappelle,

Quoted 10 lines · Arnout Vandecappelle
Quoted 9 lines

What I wanted to add in this discussion is this: if there are people out there that have time for some buildroot development but they have no clear goal of their own, they can among others choose between package bumps and fixing autobuild failures.
While there certainly is value in package bumping, I hope that not all of these people jump onto the bump-train and instead help with the autobuild failures. We still hope to get to 0 failures at some point, and bumping packages all the time will most of the time only add new problems.

Quoted 4 lines

I'm also not too hot on version bumping just for the sake of bumping.
Version bumps should be done when they're useful for someone, e.g. because a feature or bugfix is added. If it's useful to you, then you'll obviously test if it still works correctly.

Quoted 7 lines

I understand this point of view, but on the other hand, it's not really nice to have packages that have very old versions. For "core" stuff that isn't necessarily very easy to bump (think Qt, Gtk, X.org and things like that), it's quite important that the core Buildroot community keeps that up to date, because this is difficult to do for newcomers, and this is what people will look at to see if Buildroot is well-maintained and active.

Yes of course. The version detection idea is certainly useful. I just
wanted to concur with Thomas DS that this shouldn't distract people from fixing autobuilder failures.

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
#18 lore raw
In reply to Thomas Petazzoni

Thomas P, Jeremy R, All,

Thomas Petazzoni <[email protected]> wrote on 10/14/2013 04:30:00 AM:

Quoted 5 lines

Dear Jeremy Rosen,

Quoted 1 line · Jeremy Rosen

two ideas that might or might not be good ideas but are worth

discussing

Quoted 6 lines
Quoted 6 lines

early :

* try to automatically build the new version to see if it is an "easy bump" or a "hard bump" and document the result

* ping the last person(s) that touch the package (git has facilities

to

Quoted 14 lines
Quoted 4 lines

find them, I think it's called git-contribute) when a new version is available

both have good and bad sides, thus worth discussing...

Agreed. But all of this first requires the ability to detect that a new version is available.

I must say I'm not a big fan of the automatic build, which may encourage people to do "careless" bump, i.e version bumps without looking at least a little bit at what changed, and taking a set back by looking at the version number, or the project web site, to see if the version bump is small, or major.

Quoted 3 lines

For the second one, I agree. We have discussed a few times having the notion of package maintainers. Probably something that will be worth discussing at this time.

Sounds like a good topic for the Buildroot Developer Days...

Thanks,
-Ryan