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 385129 - Need uninstalled.pc file for building on Solaris
Need uninstalled.pc file for building on Solaris
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: general
2.12.x
Other Solaris
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2006-12-12 17:35 UTC by Damien Carbery
Modified: 2007-04-30 02:22 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Create uninstalled.pc file and update configure.ac (1.22 KB, patch)
2006-12-12 17:35 UTC, Damien Carbery
none Details | Review
Create uninstalled.pc file and update configure.ac (1.11 KB, patch)
2007-04-08 17:06 UTC, Damien Carbery
none Details | Review

Description Damien Carbery 2006-12-12 17:35:18 UTC
On Solaris we group multiple python modules (e.g. pygobject, pycairo, pyorbit, pygtk2, pyspi) into one package. Because of the build method, we use an uninstalled.pc file in pygobject so that the other modules can build.

The attached patch creates an uninstalled.pc file and updates configure.ac.
Comment 1 Damien Carbery 2006-12-12 17:35:52 UTC
Created attachment 78215 [details] [review]
Create uninstalled.pc file and update configure.ac
Comment 2 Johan (not receiving bugmail) Dahlin 2007-04-07 19:38:17 UTC
Comment on attachment 78215 [details] [review]
Create uninstalled.pc file and update configure.ac

>--- /dev/null	2005-10-27 18:34:42.000000000 -0400
>+++ pygtk-2.7.4/pygobject-2.0-uninstalled.pc.in	2005-10-27 18:27:31.486513000 -0400
>@@ -0,0 +1,22 @@
>+prefix=@prefix@
>+exec_prefix=@exec_prefix@
>+includedir=@includedir@
>+datarootdir=@datarootdir@
>+datadir=@datadir@

These seems to be unused, I think we're better of removing them.

>+# you can use the --variable=pygtkincludedir argument to
>+# pkg-config to get this value.  You might want to use this to
>+# install additional headers.
>+pygtkincludedir=${pc_top_builddir}/${pcfiledir}/gobject

Where do the pc_top_builddir/pcfiledir variables come from?
Comment 3 Damien Carbery 2007-04-08 08:21:49 UTC
> Where do the pc_top_builddir/pcfiledir variables come from?
pkg-config defines them. The pkg-config manpage (http://www.die.net/doc/linux/man/man1/pkg-config.1.html) describes pc_top_builddir as a 'magic variable'. I couldn't find good information other than this basic manpage. You'll have to trust me, or look at glib-2.0-uninstalled.pc (http://svn.gnome.org/viewcvs/glib/trunk/glib-2.0-uninstalled.pc.in?view=log).
Comment 4 Johan (not receiving bugmail) Dahlin 2007-04-08 12:26:16 UTC
(In reply to comment #3)
> > Where do the pc_top_builddir/pcfiledir variables come from?
> pkg-config defines them. The pkg-config manpage
> (http://www.die.net/doc/linux/man/man1/pkg-config.1.html) describes
> pc_top_builddir as a 'magic variable'. I couldn't find good information other
> than this basic manpage. You'll have to trust me, or look at
> glib-2.0-uninstalled.pc
> (http://svn.gnome.org/viewcvs/glib/trunk/glib-2.0-uninstalled.pc.in?view=log).
> 

Okay, fair enough, I didn't know about them.

But you should still remove the unused variables defined in the top of the .pc file.
Comment 5 Damien Carbery 2007-04-08 17:06:34 UTC
Created attachment 86017 [details] [review]
Create uninstalled.pc file and update configure.ac

Remove unneeded variables.
Comment 6 Johan (not receiving bugmail) Dahlin 2007-04-29 21:55:00 UTC
Thanks for the patch Damien.

Committed as revision 652.