GNOME Bugzilla – Bug 145546
RFE: Add an option to force the building of modules, for tarballs
Last modified: 2018-01-29 08:43:25 UTC
Currently jhbuild does not rebuild a tarball module when it sees that the version matches the one in the packagedb file. If one has tweaked the source of that module, one has no way to force jhbuild to recompile it other than editting the db file. This just seems to have happened to sri on irc a little while ago. Here comes a patch that adds -F/--force command line options to the build and buildone commands, taking a comma separated list of modules. It will ignore the packagedb file for the modules listed in those options. I don't know how useful this is, generally.
Created attachment 29305 [details] [review] Add --force to build and buildone
It's happening more often now that we're generating tarball modulesets of Gnome releases. It tripped up Murray and me before (see http://mail.gnome.org/archives/release-team/2005-August/msg00065.html)...
Ping! Had same pb and did not see that the bug was already reported. The quick patch I have made is for buildone only, and much more simple. Just for the records:)
Created attachment 80834 [details] [review] add -f/--force to buildone
Created attachment 80870 [details] [review] Add --force both for build (with an argument) and for buildone (as a flag)
*** Bug 400293 has been marked as a duplicate of this bug. ***
*** Bug 380686 has been marked as a duplicate of this bug. ***
Created attachment 81128 [details] [review] Better patch My last patch did not work with the tinderbox command. This one adds a ‘force’ key to the config file. NB: depending on what you do, a --force-all option may be useful?
+1 --force-all makes sense (instead of deleting share/jhbuild/database ;)! I presume my patch is also obsolete now.
*** Bug 436207 has been marked as a duplicate of this bug. ***
*** Bug 472292 has been marked as a duplicate of this bug. ***
jhbuild will now rebuild tarballs when '-a' (always autogen) is specified (Bug 502278). jhbuild won't remove any local edits made in the unpacked tarball (unless clobber mode is set. Clobber mode is set with checkout_mode='clobber'). I believe jhbuild now meets all functionally requested in this bug. What do you think?
'jhbuild -f -a module' will always rebuild module, ignoring build policy (-f) and forcing autogen (-a); I also think all things requested here are available now.