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 585817 - pygobject fails to make install outside source tree
pygobject fails to make install outside source tree
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: general
Git master
Other Linux
: Normal minor
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks: 569778
 
 
Reported: 2009-06-15 07:56 UTC by Theppitak Karoonboonyanan
Modified: 2009-06-15 20:30 UTC
See Also:
GNOME target: ---
GNOME version: 2.27/2.28


Attachments
Prepending $(srcdir) (408 bytes, patch)
2009-06-15 08:07 UTC, Theppitak Karoonboonyanan
committed Details | Review

Description Theppitak Karoonboonyanan 2009-06-15 07:56:58 UTC
When building pygobject with builddir != srcdir, it fails at install stage:

---8<---
make[2]: *** No rule to make target `overrides/*.py', needed by `install-pygioverridesPYTHON'.  Stop.
make[2]: Leaving directory `/home/thep/build/gnome_git/pygobject/girepository'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/thep/build/gnome_git/pygobject/girepository'
make: *** [install-recursive] Error 1
---8<---

This is apparently caused by this line in girepository/Makefile.am:

---8<--
pygioverrides_PYTHON = overrides/*.py
---8<--

This may work when building inside source tree but the wildcard won't expand properly when building outside source tree. Neither does VPATH help in this case, as there is no file name to search.
Comment 1 Theppitak Karoonboonyanan 2009-06-15 08:07:30 UTC
Created attachment 136606 [details] [review]
Prepending $(srcdir)

Prepending $(srcdir) to the wildcard is a possible fix, although explicitly listing all $(srcdir)/overrides/*.py may look more elegant.
Comment 2 Paul Pogonyshev 2009-06-15 20:30:26 UTC
Thank you, committed.