It is currently Thu May 23, 2013 9:10 pm

All times are UTC




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: [Packagers] Managing the sources
PostPosted: Mon Mar 03, 2008 9:15 pm 
Senior Zenwalker
Senior Zenwalker
User avatar

Joined: Mon Sep 11, 2006 7:39 pm
Posts: 454
Location: Lyon, France
Hi,

I have been in charge of managing the sources in Zenwalk. For doing so, I defined a format for getting the sources, a source repository format, and beginning in getting and providing source packages.

Here are the recommendations that are to add to the existing recommendations for packagers :

There are three cases :
  1. You build a package with a ZENBUILD file. In this case, you don't have to do anything more than before, the sources are normally already defined in the ZENBUILD file.
  2. If you don't use ZENBUILD yet, then you must provide the sources used (internal and external sources), one per line in a file PKG_NAME-noarch-RELEASE.src
    Example:
    For the package hal-0.5.10-i486-50.2.tgz
    The file hal-0.5.10-noarch-50.2.src must be created which contains 4 lines:
    Code:
    http://hal.freedesktop.org/releases/hal-0.5.10.tar.gz
    http://users.zenwalk.org/user-accounts/gapan/hal/rc.hal
    http://users.zenwalk.org/user-accounts/gapan/hal/hal.txt
    http://users.zenwalk.org/user-accounts/gapan/hal/zen-users.patch

    In fact, sources could often be found in the slackbuild comments. I already developped a little tool for extracting these informations, I'll post it quickly X!!
  3. If the package comes from Slackware, and not always from a even/public version. In this case, the file PKG_NAME-noarch-RELEASE.src should also be written, using the files found on the Slackware ftp.

Is it understandable :-[ ?

If I resume:
— If you have a package that use a ZENBUILD file, you have to provide:
Quote:
prog-ver-archi-rlz.tgz
prog-ver-archi-rlz.dep
prog-ver-archi-rlz.txt
prog-ver-archi-rlz.md5

— If you have a package that don't use yet a ZENBUILD file, you have to provide:
Quote:
prog-ver-archi-rlz.tgz
prog-ver-archi-rlz.dep
prog-ver-archi-rlz.txt
prog-ver-archi-rlz.md5
prog-ver-noarch-rlz.src


Feel free to send me comments/corrections.


 Profile Send private message  
 
 Post subject: Re: [Packagers] Managing the sources
PostPosted: Mon Mar 03, 2008 9:25 pm 

Why -noarch-? Wouldn't it be better if the src file had the same arch as the package it provides sources for?

And you picked up the wrong package for a non-ZENBUILD example. Hal is actually built with buildpkg. ;D Anyway, you made your point. ;)


  
 
 Post subject: Re: [Packagers] Managing the sources
PostPosted: Mon Mar 03, 2008 10:22 pm 
Zenwalk Packager
Zenwalk Packager

Joined: Thu May 25, 2006 9:21 am
Posts: 1788
Location: Portugal
Hi,

gapan wrote:
Why -noarch-?


Well...it's actually noarch, no architecture in source(usually) ;)

buildpkg can also be done to create the .src file, If U feel it make things simpler for U :)

EDIT: BTW...what should be the contents of that .txt file? the slackdesc?

Regards,


Last edited by _PN_boy on Mon Mar 03, 2008 10:30 pm, edited 2 times in total.

 Profile Send private message  
 
 Post subject: Re: [Packagers] Managing the sources
PostPosted: Mon Mar 03, 2008 10:27 pm 

OK, but won't these specific sources with included buildscripts create a package that has a specific arch? Depends on how you look at it I guess.

Uhmm... am I missing something? The .src file does not have links to the buildscript/ZENBUILD? If not, shouldn't it?


  
 
 Post subject: Re: [Packagers] Managing the sources
PostPosted: Tue Mar 04, 2008 10:24 am 
Senior Zenwalker
Senior Zenwalker
User avatar

Joined: Mon Sep 11, 2006 7:39 pm
Posts: 454
Location: Lyon, France
Yes -noarch- cause the sources is not really assigned to a specific architecture.

The .src doesn't list the buildscripts or anything else than sources or patches, so no it isn't bound to an architecture ;)

I know that buildpkg could be easily modified to create .src file, but it is not needed if the file could be generated :)

.txt file is the slackdesc file yes. I remembered it is named .txt but maybe I wrong. The previous rules for packaging is ok, it's probably an error of my own.

To answer gapan about linking the buildscripts and the sources, these are done on the sources repo (http://zenwalk.enialis.net/sources/) by making a PROG-VER-SRC-RLZ.tbz package, containing the buildscripts (eventually the ZENBUILD file), the .src file, the .dep file, and the sources. These type of packages contains everything to build the binary package, without getting anything else (appart dependancies).

P.S. Thanks bruenig & _PN_boy for buildpkg/ZENBUILD tool :)


 Profile Send private message  
 
 Post subject: Re: [Packagers] Managing the sources
PostPosted: Wed Mar 05, 2008 11:02 pm 
Master of the known universe
Master of the known universe
User avatar

Joined: Tue Apr 25, 2006 12:34 pm
Posts: 1155
Location: Rome - Italy
Should the slackdesc contain also the handy-ruler and classic header? :)
Or the 11 description lines would suffice?

Cheers :-)

_________________
Watcher of the skies, watcher of all!
Image


 Profile Send private message  
 
 Post subject: Re: [Packagers] Managing the sources
PostPosted: Thu Mar 06, 2008 1:08 pm 
Senior Zenwalker
Senior Zenwalker
User avatar

Joined: Mon Sep 11, 2006 7:39 pm
Posts: 454
Location: Lyon, France
If you use a ZENBUILD file for making a package, you don't have to worry about this.

Else, yes the software name msut be present, like the handy ruler. All is explain here for the old way of building a package.


 Profile Send private message  
 
 Post subject: Re: [Packagers] Managing the sources
PostPosted: Thu Mar 06, 2008 1:47 pm 
Master of the known universe
Master of the known universe
User avatar

Joined: Tue Apr 25, 2006 12:34 pm
Posts: 1155
Location: Rome - Italy
JRD wrote:
If you use a ZENBUILD file for making a package, you don't have to worry about this.

Else, yes the software name msut be present, like the handy ruler. All is explain here for the old way of building a package.


Thanks. Of course I know the software name must be present... I was wondering about the handy-ruler... is it really necessary? :-) (it's a bit tedious insert it correctly in my scripts...).

I can provide the new .src also for my packages already in the repo, if needed.
Let me know

Cheers :)

_________________
Watcher of the skies, watcher of all!
Image


 Profile Send private message  
 
 Post subject: Re: [Packagers] Managing the sources
PostPosted: Thu Mar 06, 2008 4:44 pm 
Senior Zenwalker
Senior Zenwalker
User avatar

Joined: Mon Sep 11, 2006 7:39 pm
Posts: 454
Location: Lyon, France
For the necessity of the handy ruler, sorry but I don't know. Maybe fredg or Axxium or JP will better answer you about this.


 Profile Send private message  
 
 Post subject: Re: [Packagers] Managing the sources
PostPosted: Thu Mar 06, 2008 4:48 pm 
Master of the known universe
Master of the known universe
User avatar

Joined: Tue Apr 25, 2006 12:34 pm
Posts: 1155
Location: Rome - Italy
JRD wrote:
For the necessity of the handy ruler, sorry but I don't know. Maybe fredg or Axxium or JP will better answer you about this.


Indeed, it's surely not necessary , it is just useful to write the lines in the correct way...
If we decide to include it I think it's just a matter of esthetics ;-)
I'll skip it for the moment.

Cheers :-)

_________________
Watcher of the skies, watcher of all!
Image


 Profile Send private message  
 
 Post subject: Re: [Packagers] Managing the sources
PostPosted: Fri May 30, 2008 5:36 pm 
Administrator
Administrator
User avatar

Joined: Fri Mar 10, 2006 8:52 am
Posts: 3731
Location: Nantes - France
I would prefer an src file having the same name as package (i486, not noarch).

Even if "noarch" would be more logical, I agree :)

JP


 Profile Send private message  
 
 Post subject: Re: [Packagers] Managing the sources
PostPosted: Mon Jun 02, 2008 10:36 am 
Administrator
Administrator
User avatar

Joined: Fri Mar 10, 2006 8:52 am
Posts: 3731
Location: Nantes - France
hurry-up, what are we waiting for ?

JP


 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC


 Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: