After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 145546 - RFE: Add an option to force the building of modules, for tarballs
RFE: Add an option to force the building of modules, for tarballs
Status: RESOLVED FIXED
Product: jhbuild
Classification: Infrastructure
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: James Henstridge
Jhbuild QA
: 380686 400293 436207 472292 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-07-07 07:11 UTC by Mariano Suárez-Alvarez
Modified: 2018-01-29 08:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add --force to build and buildone (4.71 KB, patch)
2004-07-07 07:11 UTC, Mariano Suárez-Alvarez
none Details | Review
add -f/--force to buildone (1.75 KB, patch)
2007-01-21 22:57 UTC, Marc-Andre Lureau
needs-work Details | Review
Add --force both for build (with an argument) and for buildone (as a flag) (2.38 KB, patch)
2007-01-22 09:40 UTC, Mariano Suárez-Alvarez
none Details | Review
Better patch (4.65 KB, patch)
2007-01-24 22:18 UTC, Mariano Suárez-Alvarez
none Details | Review

Description Mariano Suárez-Alvarez 2004-07-07 07:11:13 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.
Comment 1 Mariano Suárez-Alvarez 2004-07-07 07:11:49 UTC
Created attachment 29305 [details] [review]
Add --force to build and buildone
Comment 2 Elijah Newren 2005-10-06 21:22:58 UTC
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)...
Comment 3 Marc-Andre Lureau 2007-01-21 22:56:08 UTC
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:) 
Comment 4 Marc-Andre Lureau 2007-01-21 22:57:02 UTC
Created attachment 80834 [details] [review]
add -f/--force to buildone
Comment 5 Mariano Suárez-Alvarez 2007-01-22 09:40:44 UTC
Created attachment 80870 [details] [review]
Add --force both for build (with an argument) and for buildone (as a flag)
Comment 6 Elijah Newren 2007-01-24 17:49:54 UTC
*** Bug 400293 has been marked as a duplicate of this bug. ***
Comment 7 Elijah Newren 2007-01-24 17:50:58 UTC
*** Bug 380686 has been marked as a duplicate of this bug. ***
Comment 8 Mariano Suárez-Alvarez 2007-01-24 22:18:34 UTC
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?
Comment 9 Marc-Andre Lureau 2007-01-25 10:37:06 UTC
+1

--force-all makes sense (instead of deleting share/jhbuild/database ;)!

I presume my patch is also obsolete now.
Comment 10 Elijah Newren 2007-05-05 23:03:45 UTC
*** Bug 436207 has been marked as a duplicate of this bug. ***
Comment 11 Elijah Newren 2007-08-31 19:11:13 UTC
*** Bug 472292 has been marked as a duplicate of this bug. ***
Comment 12 Craig Keogh 2007-12-21 06:59:24 UTC
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?
Comment 13 Frederic Peters 2008-01-20 14:30:44 UTC
'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.