Package Search
 
Members: 353 | Topics: 767 | Posts: 3211
We welcome our newest member: ClintBarton
Info
» You aren't logged in, login or registerOnline: No members and 14 guests | Time: 09:14
Package Spec for GNUstep
paldo Support Forum    Upkg    Package Specifications
Reply Reply   Subscribe Topic Subscribe Topic
5 posts found.
 Package Spec for GNUstep
Junior Mitglied
 
 
 
Posts: 3
Registered: 2008-10-05
Hi all,

are there any GNUstep fans among the Paldo users?

I'm trying to build some packages for GNUstep. It's the first time that I'm building packages for a distro. Although paldo seem's to make it very simple there are things that I don't know how to handle.

1. I have a package for GNUstep Make. The package compiles and installs fine. After the installation is through a special GNUstep file should be sourced (http://www.gnustep.org/resources/documentation/User/GNUstep/gnustep-howto_3.html#SEC3). I'd like to have it sourced directly after building and installing the package and later on during the system start. So how would I source it within the spec file and how do I tell upkg to put the command
Code[In neuem Fenster öffnen]
. /usr/GNUstep/System/Library/Makefiles/GNUstep.sh
in a system configuration file? Would I use <cmd> in the spec file? Which config/init file would be the best to source the GNUstep file?

2. When I try to build the second package (GNUstep base) the following show stopper occurs:
Code[In neuem Fenster öffnen]
checking objc/objc.h usability... no
checking objc/objc.h presence... no
checking for objc/objc.h... no
Check to make sure you have a full installation of the GCC
compiler that includes the Objective-C headers and libraries
configure: error: Could not find Objective-C headers
*** Error: ./configure
*** ERROR: gnustep-base-x86_64-glibc-2.8-gcc-4.3-1-1.16.3-1

It seems that gcc is not build with Objective-C support or at least the Objective-C header files are missing. How would I build gcc with Objective-C support in Paldo?

Any hints, tips, tricks and guidance ;-) are appreciated.

Cheers,
Erich
Profile   Private Message   E-Mail
Created: 2008-10-12 18:41
Highlight selected Text   Edit   Delete   Quote Reply
 Re: Package Spec for GNUstep
Moderator
 
 
Linux-Dude
 
Posts: 1187
Registered: 2006-11-23
The perfect spec to see how to start cmds or batch-files after a compliation of a program is banshee: http://www.paldo.org/paldo/specs/banshee.xml

for objc we can add gcc-objc or a libobjc package. I've to figure out myself how to enable objc in gcc, so this will take a little. If you want you can post the specs and links for the tarballs, so I can check them so far...
Profile   Private Message   E-Mail
Created: 2008-10-15 07:36
Highlight selected Text   Edit   Delete   Quote Reply
 Re: Package Spec for GNUstep
Junior Mitglied
 
 
 
Posts: 3
Registered: 2008-10-05
The tar balls I try to install are so far GNUstep Make (ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-make-2.0.6.tar.gz) and GNUstep Base (ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-base-1.16.3.tar.gz).

Here are my two spec files:
gnustep-make.xml
Code[In neuem Fenster öffnen]
<?xml version="1.0"?>
<package name="gnustep-make">
<description>GNUstep Make is the base package for the GNUstep System</description>
<releases>
<release version="2.0.6" revision="1" branch="testing">
<deps>

</deps>
<build>
<script>
<archive name="gnustep-make-$VERSION" compression="gz">
<cmd>./configure </cmd>
<cmd>make</cmd>
<cmd>make install</cmd>
<cmd>echo . /usr/GNUstep/System/Library/Makefiles/GNUstep.sh > /etc/profile.d/gnustep.sh</cmd>
</archive>
</script>
</build>
</release>
</releases>
</package>


gnustep-base.xml
Code[In neuem Fenster öffnen]
<?xml version="1.0"?>
<package name="gnustep-base">
<description>GNUstep Make is the base package for the GNUstep System</description>
<releases>
<release version="1.16.3" revision="1" branch="testing">
<deps>
<dep name="gnustep-make"/>
</deps>
<build>
<script>
<archive name="gnustep-base-$VERSION" compression="gz">
<!--cmd>. /usr/GNUstep/System/Library/Makefiles/GNUstep.sh</cmd-->
<cmd>./configure </cmd>
<cmd>make</cmd>
<cmd>make install</cmd>
</archive>
</script>
</build>
</release>
</releases>
</package>


As long as there is no Objective-C support I guess I can't get much farer than that, because the gnustep-base package fails. For GNUstep this is a basic dependency.

Do you think /etc/profile.d/* would be a good place for a script. It needs to be run for everyone that wants to use GNUstep. (At least I want it to be in a place where it is sourced for everybody. :-)

Another question:
How can packages be build with different parameters, e. g. with different values for ./configure --prefix?
Profile   Private Message   E-Mail
Created: 2008-10-20 20:16
Highlight selected Text   Edit   Delete   Quote Reply
 Re: Package Spec for GNUstep
Moderator
 
 
Linux-Dude
 
Posts: 1187
Registered: 2006-11-23
You can use every cmd you want in the xml-script. For example

Code[In neuem Fenster öffnen]
<cmd>./configure --prefix=/usr --some-switch --without-function</cmd>


Also take a look on kim's spec-gen: http://upkg.kim88.ch/
Profile   Private Message   E-Mail
Created: 2008-10-22 16:57 | Modified: 2008-10-22 16:58 by Amnon82
Highlight selected Text   Edit   Delete   Quote Reply
 Re: Package Spec for GNUstep
Junior Mitglied
 
 
 
Posts: 3
Registered: 2008-10-05
Zitat
You can use every cmd you want in the xml-script. For example

I'm sorry, I think I was unclear.Is something like
Code[In neuem Fenster öffnen]
<cmd>./configure --prefix=$GIVEN_PREFIX</cmd>

possible where GIVEN_PREFIX comes from the upkg invocation like this:
Code[In neuem Fenster öffnen]
upkg-build gnustep-make --GIVEN_PREFIX=/usr/GNUstep

or
Code[In neuem Fenster öffnen]
upkg-build gnustep-make --GIVEN_PREFIX=/usr
?
Profile   Private Message   E-Mail
Created: 2008-10-22 19:44 | Modified: 2008-10-23 10:57 by der_erpl
Highlight selected Text   Edit   Delete   Quote Reply
Subscribe Topic Subscribe Topic
powered by bitron board 1.23a