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 569778 - Mark modules as not supporting non-srcdir builds
Mark modules as not supporting non-srcdir builds
Status: RESOLVED OBSOLETE
Product: general
Classification: Other
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Unknown User
Unknown User
Depends on: 569806 569938 569953 569955 569957 569977 570080 570174 570208 570216 570322 570325 570327 570330 570332 571591 581312 581317 581319 581842 581869 585817 585838 594199 617756 617772 617851 617867 617888 617892 618157 623520 623533 680280 680281 682576 682577 682579 682580 682583
Blocks:
 
 
Reported: 2009-01-30 09:04 UTC by Theppitak Karoonboonyanan
Modified: 2020-11-24 10:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add the supports-non-srcdir-builds attrib (659 bytes, patch)
2009-01-30 09:06 UTC, Theppitak Karoonboonyanan
none Details | Review
nss and libvolume_id added (1.69 KB, patch)
2009-01-30 11:50 UTC, Theppitak Karoonboonyanan
committed Details | Review
summarized fixes so far (4.92 KB, patch)
2009-02-02 14:44 UTC, Theppitak Karoonboonyanan
committed Details | Review
Patch for tdb, talloc, tevent (3.68 KB, patch)
2009-02-03 04:38 UTC, Theppitak Karoonboonyanan
committed Details | Review
patch for waf-patch (1.92 KB, patch)
2009-05-04 14:09 UTC, Theppitak Karoonboonyanan
committed Details | Review
add patch for pulseaudio (3.02 KB, patch)
2009-05-05 05:26 UTC, Theppitak Karoonboonyanan
none Details | Review

Description Theppitak Karoonboonyanan 2009-01-30 09:04:22 UTC
As part of my attempt to build gnome-2.26 outside source tree with jhbuild, by setting 'buildroot' in .jhbuildrc, poppler-data appears to not support non-srcdir builds with a clearest reason: it builds nothing, just plain data installation. Adding 'supports-non-srcdir-builds="no"' attribute to its module description makes it build.

I still try to finish building gnome-2.26 outside source tree. So, there may be more to come. (I've sent 2 patches for gtk-sharp and gnome-sharp to mono developers to make them build outside source tree so far.)
Comment 1 Theppitak Karoonboonyanan 2009-01-30 09:06:20 UTC
Created attachment 127522 [details] [review]
Add the supports-non-srcdir-builds attrib
Comment 2 Theppitak Karoonboonyanan 2009-01-30 11:50:10 UTC
Created attachment 127532 [details] [review]
nss and libvolume_id added

nss and libvolume_id don't support non-source-dir builds, either. This may be not the final list yet.
Comment 3 Theppitak Karoonboonyanan 2009-01-30 11:51:18 UTC
Retitled the bug.
Comment 4 Frederic Peters 2009-01-30 11:53:35 UTC
Thanks for doing this work, I'll be waiting for the final list.
Comment 5 Theppitak Karoonboonyanan 2009-01-31 03:50:21 UTC
Add fixable bugs as dependencies.
Comment 6 Frederic Peters 2009-02-02 14:14:43 UTC
Theppitak: Great work; feel free to commit the needed changes to the moduleset; assuming all bugs will be fixed.
Comment 7 Theppitak Karoonboonyanan 2009-02-02 14:20:03 UTC
(In reply to comment #6)
> Theppitak: Great work; feel free to commit the needed changes to the moduleset;
> assuming all bugs will be fixed.

Yes, and I have been accumulating pending fixes to modulesets while getting through the modules. I'll post it here before committing.
Comment 8 Theppitak Karoonboonyanan 2009-02-02 14:44:53 UTC
Created attachment 127767 [details] [review]
summarized fixes so far

Here is what I have got so far.

Additional non-VPATH-build-safe modules found since last post are:
- opal
- ptlib
- system-tools-backends (fix may be possible, but it's tarball, and I'm too lazy to bug external modules for now)
- samba4
- libmapi

3 modules are fixed by twisting the autogen scripts:
- talloc
- tdb
- tevent
Comment 9 Frederic Peters 2009-02-02 14:50:54 UTC
The hack on talloc, tdb, tevent is very ugly; just mark them as not supporting non-src builds; they will hopefully improve when they will be properly released.

And commit freely.
Comment 10 Theppitak Karoonboonyanan 2009-02-02 15:59:59 UTC
Adjusted and commited as you suggested. Will continue hunting..
Comment 11 Theppitak Karoonboonyanan 2009-02-03 04:38:58 UTC
Created attachment 127809 [details] [review]
Patch for tdb, talloc, tevent

(In reply to comment #9)
> The hack on talloc, tdb, tevent is very ugly; just mark them as not supporting
> non-src builds; they will hopefully improve when they will be properly
> released.

I've just realized that samba4 was patched by jhbuild. (My last extract was done before samba.configure-for-libs.patch was added.) And the patch can be adjusted to make it build.

IMHO, the 3 modules already support non-source-dir builds, except for their autogen.sh, and a little makeargs required for talloc. So we had better make them build.

> And commit freely.

Unless there is any objection, I'll commit this patch soon.

For further patches, I'll post them here just for the record before committing.
Comment 12 Theppitak Karoonboonyanan 2009-02-03 09:53:37 UTC
(In reply to comment #11)

> Unless there is any objection, I'll commit this patch soon.

Committed.
Comment 13 Frederic Peters 2009-02-03 13:26:23 UTC
Theppitak; it looks like some automake version do not create $(builddir), you should use $(top_builddir) everywhere.  See bug 570357.
Comment 14 Theppitak Karoonboonyanan 2009-02-03 13:38:12 UTC
Hmm.. Surprised. OK. I'll check my patches.
Comment 15 Frederic Peters 2009-02-10 12:42:05 UTC
Everything that should be done in jhbuild has now been commited; is this ok for you if the bug is closed; or do you prefer it open to track the bug reports in modules ?
Comment 16 Theppitak Karoonboonyanan 2009-02-10 16:09:39 UTC
Please keep it opened. I'll close it when all bugs are resolved.
Comment 17 Theppitak Karoonboonyanan 2009-05-04 14:09:49 UTC
Created attachment 133921 [details] [review]
patch for waf-patch

I'm now starting a next round in gnome2.28 moduleset.

waf fails to build:

---8<---
*** Checking out waf *** [1/1]
bunzip2 -dc "/home/thep/vcs/gnome_git/waf-1.4.4.tar.bz2" | tar xf -
*** Applying patch waf-install.patch *** [1/1]
patch -p1 < "/home/thep/vcs/gnome_git/jhbuild/patches/waf-install.patch"
patching file wscript
patching file utils/autogen.sh
*** Configuring waf *** [1/1]
/home/thep/vcs/gnome_git/waf-1.4.4/utils/autogen.sh --prefix /home/gnome2 --libdir '/home/gnome2/lib64'  --disable-static --disable-gtk-doc 
/home/thep/vcs/gnome_git/waf-1.4.4/utils/autogen.sh: line 50: ./configure: No such file or directory
/home/thep/vcs/gnome_git/waf-1.4.4/utils/autogen.sh: line 51: ./waf: No such file or directory
*** error during stage configure of waf: ########## Error running /home/thep/vcs/gnome_git/waf-1.4.4/utils/autogen.sh --prefix /home/gnome2 --libdir '/home/gnome2/lib64'  --disable-static --disable-gtk-doc  *** [1/1]

  [1] rerun stage configure
  [2] ignore error and continue to build
  [3] give up on module
  [4] start shell
  [5] reload configuration
  [6] go to stage force_checkout
  [7] go to stage force_clean
  [8] go to stage force_distclean
choice: 
---8<---
Comment 18 Theppitak Karoonboonyanan 2009-05-05 05:26:17 UTC
Created attachment 133990 [details] [review]
add patch for pulseaudio

The next fixable one is pulseaudio
(missing build subdir $(top_builddir)/src/daemon):

---8<---
LC_ALL=C /home/gnome2/bin/intltool-merge -x -u -c ../po/.intltool-merge-cache /home/thep/vcs/gnome_git/pulseaudio-0.9.15/po /home/thep/vcs/gnome_git/pulseaudio-0.9.15/src/daemon/org.pulseaudio.policy.in daemon/org.pulseaudio.policy
Generating and caching the translation database
Merging translations into daemon/org.pulseaudio.policy.
Cannot open daemon/org.pulseaudio.policy: No such file or directory
make[3]: *** [daemon/org.pulseaudio.policy] Error 2
make[3]: Leaving directory `/home/thep/build/gnome_git/pulseaudio-0.9.15/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/thep/build/gnome_git/pulseaudio-0.9.15/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/thep/build/gnome_git/pulseaudio-0.9.15'
make: *** [all] Error 2
---8<---
Comment 19 Frederic Peters 2009-05-05 06:42:22 UTC
Did you file bugs against waf and pulseaudio?
Comment 20 Theppitak Karoonboonyanan 2009-05-05 07:04:45 UTC
(In reply to comment #19)
> Did you file bugs against waf and pulseaudio?

Not yet. I want to make my build pass so I can take the recent comment from gnome-utils, and to test the whole gnome suite first.
Comment 21 Theppitak Karoonboonyanan 2009-05-05 07:19:27 UTC
Note, however, that for waf, it's a patcing against jhbuild's patch itself. So, I think we had better fix the jhbuild patch before filing a waf bug.
Comment 22 Frederic Peters 2009-05-05 07:35:42 UTC
Right, I thought the waf patch had been integrated upstream, please go ahead and commit the update to patches/waf-install.patch.
Comment 23 Theppitak Karoonboonyanan 2009-05-05 08:27:42 UTC
(In reply to comment #22)
> Right, I thought the waf patch had been integrated upstream, please go ahead
> and commit the update to patches/waf-install.patch.

Done.

http://git.gnome.org/cgit/jhbuild/commit/?id=271d115678ccff4a4e3572ed5f8c6a63eb8217d9
Comment 24 Frederic Peters 2010-07-10 22:18:03 UTC
(I am reassigning to general as this is a tracker bug, not a jhbuild bug).
Comment 25 André Klapper 2014-08-26 09:05:30 UTC
See dependencies in bug 414139 for a list of known issues/modules (might not be up-to-date anymore).
Comment 26 André Klapper 2020-11-24 10:15:42 UTC
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all
older tickets in GNOME Bugzilla.

If this is still a valid request in a recent and currently supported version of GNOME, then please feel free to use https://gitlab.gnome.org/groups/GNOME/-/issues and/or (if this ticket is about a general Initiative) check the `9. Initiative` labels on https://gitlab.gnome.org/groups/GNOME/-/labels if they should be applied on codebase-specific tickets in GitLab. Thanks.