[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #29634] GNUSTEP_SHARED_BUNDLE_INSTALL_PATH et al use GNUSTEP_INSTAN
From: |
Jamison Hope |
Subject: |
[bug #29634] GNUSTEP_SHARED_BUNDLE_INSTALL_PATH et al use GNUSTEP_INSTANCE instead of LIBRARY_NAME_WITHOUT_LIB |
Date: |
Wed, 21 Apr 2010 21:41:36 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 |
URL:
<http://savannah.gnu.org/bugs/?29634>
Summary: GNUSTEP_SHARED_BUNDLE_INSTALL_PATH et al use
GNUSTEP_INSTANCE instead of LIBRARY_NAME_WITHOUT_LIB
Project: GNUstep
Submitted by: jhope
Submitted on: Wed 21 Apr 2010 09:41:35 PM GMT
Category: Makefiles
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Instances/library.make defines GNUSTEP_SHARED_BUNDLE_INSTALL_PATH like this:
GNUSTEP_SHARED_BUNDLE_INSTALL_PATH =
$(GNUSTEP_LIBRARY)/Libraries/$(GNUSTEP_INSTANCE)/Versions/$(INTERFACE_VERSION)
But GNUSTEP_INSTANCE is taken from LIBRARY_NAME, which the documentation says
is supposed to include the "lib" prefix. This means that
GNUSTEP_SHARED_BUNDLE_INSTALL_PATH ends up being something like
"/usr/local/lib/GNUstep/Libraries/libFoo/Versions/0" instead of the correct
"/usr/local/lib/GNUstep/Libraries/Foo/Versions/0".
If I follow the library.make documentation and use "LIBRARY_NAME=libFoo",
then in my source code I have to call NSBundle with
bundleForLibrary:@"liblibFoo", because NSBundle (correctly) removes a "lib"
prefix before looking for the directory in the file system. The other option
is to define LIBRARY_NAME=Foo despite the Make documentation, and then update
the names of xxx_C_FILES and the other variables.
I *think* that the fix is just to use $(LIBRARY_NAME_WITHOUT_LIB) instead of
$(GNUSTEP_INSTANCE) in the definitions of the GNUSTEP_SHARED_BUNDLE_*
variables, but I do not understand the GNUstep make system fully enough to
state that with 100% certainty. Regardless, I am attaching a diff against
version 2.0.8 (taken from Ubuntu karmic) which performs that substitution.
Also: I hope this is still the right place to submit bug reports; I don't see
any mention of an alternative at Gna!.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wed 21 Apr 2010 09:41:35 PM GMT Name: library.make.diff Size: 1kB
By: jhope
<http://savannah.gnu.org/bugs/download.php?file_id=20297>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?29634>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #29634] GNUSTEP_SHARED_BUNDLE_INSTALL_PATH et al use GNUSTEP_INSTANCE instead of LIBRARY_NAME_WITHOUT_LIB,
Jamison Hope <=