Patches item #1643233, was opened at 2007-01-24 01:19
Message generated for change (Comment added) made by rlaager
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=300235&aid=1643233&group_id=235

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Brian Cameron (yippi)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add uninstalled.pc file for GAIM

Initial Comment:

At Sun, our build system builds packages that contain a number of modules, so 
we build modules that depend on other modules before they are installed.

The attached patch adds a gaim-uninstalled.pc file so that GAIM will allow 
building against it before it is installed.

----------------------------------------------------------------------

>Comment By: Richard Laager (rlaager)
Date: 2007-02-09 11:16

Message:
Logged In: YES 
user_id=156487
Originator: NO

I've committed this, since it shouldn't break anything for anyone else.
Thanks for the patch.

----------------------------------------------------------------------

Comment By: Damien Carbery (daymobrew)
Date: 2007-02-04 05:31

Message:
Logged In: YES 
user_id=843868
Originator: NO

Duplication in gaim.pc and gaim-uninstalled.pc is normal. I don't think
that there is a way to avoid it.
pc files rarely change - if you look at glib
(http://svn.gnome.org/viewcvs/glib/trunk/) you'll see that it's been 3
years since they modified their pc file!
You probably won't have to remember to copy changes to the uninstalled.pc
file - if the build breaks we (at Sun; I work with yippi) will notice the
issue and report it to you ;)

----------------------------------------------------------------------

Comment By: Richard Laager (rlaager)
Date: 2007-02-03 15:32

Message:
Logged In: YES 
user_id=156487
Originator: NO

Okay, I've taken a look at this in more detail. The fact that most of
gaim-uninstalled.pc.in is duplicated from gaim.pc.in worries me. Is there
a clean way to eliminate the duplication so that it's easier to keep
things up to date?

----------------------------------------------------------------------

Comment By: Brian Cameron (yippi)
Date: 2007-01-25 23:57

Message:
Logged In: YES 
user_id=689771
Originator: YES


Thanks for re-opening the bug.  

1. You can't just adjust PKG_CONFIG_PATH because this feature
   works with libtool.  Note that in the uninstalled.pc file that
   it points to the .la file instead of the normal library link 
   command.

   This works with libtool so that when building, it is able to
   figure out how to setup the link statement so it builds 
   properly.

2. You don't install the uninstalled.pc file, they just live in
   the same directory as your normal .pc files.  These files as
   referenced when you build other moduels.

   In other words, I build gaim in directory $HOME/gaim, but
   do not run "make install" and then want to build something
   that uses a gaim library, I just set PKG_CONFIG_PATH to 
   $HOME/gaim and run configure.  When configure calls pkg-config
   it will notice automatically the uninstalled.pc file and
   "just work" building my 2nd module based on the uninstalled
   version of gaim.

   This is how uninstalled pc files are normally used.  They
   do not get installed.  They just live in the source directory
   so that people who want to use them can do so.




----------------------------------------------------------------------

Comment By: Richard Laager (rlaager)
Date: 2007-01-25 20:47

Message:
Logged In: YES 
user_id=156487
Originator: NO

I'm not sure I like this... Still, since it appears this is standard
pkg-config behavior, I'm re-opening this. I have a couple questions:

1. Why can't you just adjust PKG_CONFIG_PATH to point to the gaim.pc in
the source tree? I have one good answer to this, but I'm wondering what
you concern is.

2. How does the gaim-uninstalled.pc file get installed? If we install it
from `make install`, then clearly it's pointless as you could just use
gaim.pc. If we install it earlier, when?

3. Are the contents of the gaim-uninstalled.pc file any different than
gaim.pc?

----------------------------------------------------------------------

Comment By: Brian Cameron (yippi)
Date: 2007-01-25 19:44

Message:
Logged In: YES 
user_id=689771
Originator: YES


Read the man page for pkg-config and look at the --uninstalled option
description, or the description for the PKG_CONFIG_DISABLE_UNINSTALLED
environment variable in the man page.  These explain how this feature is
intended to work.  

If you don't have a manpage handy, you can find a copy of it here:

http://www.die.net/doc/linux/man/man1/pkg-config.1.html

Also notice that most GNOME modules (including glib, gtk+, pango, atk, and
most other platform libraries) support uninstalled.pc files.  So these are
standard
interfaces that many pkg-config users use and many
GNOME modules support.

There are many reasons why a person might want to link against interfaces
that are not yet installed (for debugging, for example).  Sun's
environment is just one environment where uninstalled.pc files are
useful.
It isn't "broken" to build modules before installing them.  It's a
supported pkg-config feature.


----------------------------------------------------------------------

Comment By: Peter Lawler (bleeter)
Date: 2007-01-25 19:19

Message:
Logged In: YES 
user_id=407708
Originator: NO

btw, to the OP....

http://gaim.sourceforge.net/faq.php#q1

----------------------------------------------------------------------

Comment By: Richard Laager (rlaager)
Date: 2007-01-25 17:41

Message:
Logged In: YES 
user_id=156487
Originator: NO

It sounds like you have some problem with your build system.

----------------------------------------------------------------------

Comment By: Luke Schierer (lschiere)
Date: 2007-01-25 10:45

Message:
Logged In: YES 
user_id=28833
Originator: NO

how does that work?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=300235&aid=1643233&group_id=235

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Gaim-patches mailing list
Gaim-patches@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gaim-patches

Reply via email to