It is currently Sat May 25, 2013 1:22 pm

All times are UTC




Post new topic Reply to topic  [ 277 posts ]  Go to page 1, 2, 3, 4, 5 ... 19  Next
Author Message
 Post subject: Re: buildpkg - a new way to build packages
PostPosted: Thu Jun 14, 2007 7:13 pm 
Experienced Zenwalker
Experienced Zenwalker
User avatar

Joined: Wed Apr 05, 2006 8:00 am
Posts: 188
Location: Latvija - Liepaja
I really like it this way!!!

_________________
Image
Image


 Profile Send private message  
 
 Post subject: Re: buildpkg - a new way to build packages
PostPosted: Fri Jun 15, 2007 2:17 am 
Zenwalk Spin-offs
Zenwalk Spin-offs

Joined: Sun Oct 29, 2006 10:59 pm
Posts: 427
Location: Hendersonville, NC
I think that this would help speed up creation of new packages, and help standardize some aspects of package building. The fact that it produces shell script buildscripts instead of packages means that there are no extra requirements. It is nice to remain 100% compatible with the current system. Great job on the coding, I will probably use this for some of my own packages, and put into d/ on Zenserver :-).

Thanks,
sega01

_________________
Go Beyond
Zenserver
Digg


 Profile Send private message  
 
 Post subject: Re: buildpkg - a new way to build packages
PostPosted: Fri Jun 15, 2007 6:57 am 
Global Moderator
Global Moderator
User avatar

Joined: Fri Mar 10, 2006 4:46 am
Posts: 3631
Location: Still on IPv4
Well, as a big fan of package building frameworks, I can only applaud this ;D.

Great job bruenig!

_________________
Leenucks - the greatest thing since evolution theory || Questions about forum etiquette? Feel free to PM me.


 Profile Send private message  
 
 Post subject: Re: buildpkg - a new way to build packages
PostPosted: Sat Jun 16, 2007 8:33 pm 
Experienced Zenwalker
Experienced Zenwalker

Joined: Fri Sep 15, 2006 5:02 pm
Posts: 119
Location: Colorado
Thank You. I can not believe how easy this makes packaging. I really appreciate the work that goes into your scripts. Thanks Again


 Profile Send private message  
 
 Post subject: Re: buildpkg - a new way to build packages
PostPosted: Sun Jun 17, 2007 5:29 pm 
Zenwalk Packager
Zenwalk Packager

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

some suggestions:
* sometimes the usual CFLAGS don't work so a way to bypass that could be useful, those would stay as default unless something else is specified in the ZENBUILD
* the icon extension on the .desktop file
* the docs to be copied could be placed in some variable in the ZENBUILD
* one cool stuff to be implemented could be something like this:
imagine U have to add something to existing file, example add "DICT pt PT pt_PT" to usr/share/myspell/dictionary.lst a script that could do that would be great, the script would do something similar to the dotnew function posting like this:
Code:
if ! grep -qe "^DICT pt PT pt_PT" usr/share/myspell/dictionary.lst; then echo "DICT pt PT pt_PT" >> usr/share/myspell/dictionary.lst; fi

this would obviously have to be configured also in the ZENBUILD, only the text(s) do search and the file(s) to patch :)

really nice work so far :)
Feel free to contact me privately if U want to discuss this or other features, I really appreciate Ur work on this :)

Regards,


 Profile Send private message  
 
 Post subject: Re: buildpkg - a new way to build packages
PostPosted: Sun Jun 17, 2007 6:29 pm 
Experienced Zenwalker
Experienced Zenwalker

Joined: Fri Nov 24, 2006 7:51 pm
Posts: 149
Location: portugal
hey, can i suggest something.
I know i'm being a kind of irrealistic, but what if someone develop a way to make packages through a GUI?? I've never seen it before in ny distro. I don't know if it could be done or even if it's easy to do ( nothing ever is  ;D ), but it would be great. Imagine, you download a package source, input it in the GUI, select some options if needed, and you would be done. It could then output if everything is fine or if any dependencie is at fault  :o.

I know that maybe i'm saying bullshit, cuz actually i dont really know how to make a package from source ( but i'm willing to learn ), but imagine if wouldn't catch a lot of users  ::)


 Profile Send private message  
 
 Post subject: Re: buildpkg - a new way to build packages
PostPosted: Sun Jun 17, 2007 7:30 pm 
Zenwalk Packager
Zenwalk Packager

Joined: Thu May 25, 2006 9:21 am
Posts: 1788
Location: Portugal
bruenig wrote:
* The docs thing you are talking about is already implemented except in an automatic form. Basically it used a find ignore case search for authors, changelog, copying, install, news, and readme. And then upon finding anything matching those it copies them over into /usr/doc/$pkgname-$pkgver.


I was referring to some non-standard that also have to go there, per example:
* d4x: ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS PLANS README TODO
* acroread: Reader/Legal/ENU/license_ENU_uc.txt Reader/help/ENU/ReadMe.htm $TMP/AdobeReader/LICREAD.TXT $TMP/AdobeReader/INSTALL
* amsn: AGREEMENT CREDITS FAQ GNUGPL HELP INSTALL README TODO

some of those file wouldn't get to the package ;)

bruenig wrote:
* The add something to an existing file would need to be done in doinst() which is already implemented.


I was referring to an automatic way, similiar to the one U've implemented for config() in the doinst.sh ;)


 Profile Send private message  
 
 Post subject: Re: buildpkg - a new way to build packages
PostPosted: Sun Jun 17, 2007 7:34 pm 
Regular Zenwalker
Regular Zenwalker
User avatar

Joined: Sun May 13, 2007 12:51 pm
Posts: 95
thanks again for this bruenig, awesome tool for us noobs ;)

_________________
Zenwalk 4.6
on:
Toshiba Tecra M3 laptop


 Profile Send private message  
 
 Post subject: Re: buildpkg - a new way to build packages
PostPosted: Mon Jun 18, 2007 7:15 am 
Zenwalk Packager
Zenwalk Packager

Joined: Thu May 25, 2006 9:21 am
Posts: 1788
Location: Portugal
bruenig wrote:
I have implemented extradocs= to allow the moving of docs that don't fit into the automatic moving.


Nice :)

bruenig wrote:
As for the changing one file thing, I don't think it is prevalent enough to necessitate its own feature. I would like to keep the options as light as possible while still allowing everyone to package whatever they want. You can add such a thing to the doinst() function on occasion that it is necessary.


Fair enough, it was just a suggestion ;)


 Profile Send private message  
 
 Post subject: Re: buildpkg - a new way to build packages
PostPosted: Mon Jun 18, 2007 3:19 pm 
Master of the known universe
Master of the known universe
User avatar

Joined: Mon Aug 28, 2006 11:57 am
Posts: 1040
Location: Karlsruhe, Germany
@Jokas

I suggested the same thing a couple of months back, but with this new "technique" (:D) it could work: we would have a GUI tool which gets the input from the user through textboxes and in return dumps a ZENBUILD which is then fed to buildpkg.
I am still wondering about the name "ZENBUILD". i would prefer to see it with some extension at least indicating the package it is describing. Something like "ZENBUILD-$pkgname".
Otherwise: THUMBS UP, AMIGO!

_________________
...and just when you thought, the shadows were safe...


 Profile Send private message  
 
 Post subject: Re: buildpkg - a new way to build packages
PostPosted: Mon Jun 18, 2007 4:44 pm 
Master of the known universe
Master of the known universe
User avatar

Joined: Mon Aug 28, 2006 11:57 am
Posts: 1040
Location: Karlsruhe, Germany
the point of there being two zenbuild-$pkgname will also happen if you have two normal ZENBUILDs.
I would first of all use pure lowercase. =) I prefer typing straight rather than pressing shitf all the time =)

_________________
...and just when you thought, the shadows were safe...


 Profile Send private message  
 
 Post subject: Re: buildpkg - a new way to build packages
PostPosted: Mon Jun 18, 2007 5:17 pm 
Master of the known universe
Master of the known universe
User avatar

Joined: Mon Aug 28, 2006 11:57 am
Posts: 1040
Location: Karlsruhe, Germany
Ah, so you meant having a zenbuild-$pkgname1 and zenbuild-$pkgname2 in the same folder? Sawa. Now i get it.

_________________
...and just when you thought, the shadows were safe...


 Profile Send private message  
 
 Post subject: Re: buildpkg - a new way to build packages
PostPosted: Mon Jun 18, 2007 8:16 pm 
Zenwalk Packager
Zenwalk Packager

Joined: Thu May 25, 2006 9:21 am
Posts: 1788
Location: Portugal
U should make the created build script check for the presence of the source file, and refuse to run(or download the source) if it ain't present.

trying to run without the source file present will give this:
Code:
./build-alltray.sh
cp: cannot stat `alltray-0.69.tar.gz': No such file or directory
tar: *.tar*: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now


Regards,


 Profile Send private message  
 
 Post subject: Re: buildpkg - a new way to build packages
PostPosted: Tue Jun 19, 2007 6:58 am 
Zenwalk Packager
Zenwalk Packager

Joined: Thu May 25, 2006 9:21 am
Posts: 1788
Location: Portugal
An exclude feature might be useful(yes, I know it can be done in the doinst.sh/build(), but this way is cleaner) something like:
Code:
exclude=( usr/lib/liballtray.la )

that would remove the files listed there from the package, it would deleted them, before makepkg ;)


Last edited by _PN_boy on Tue Jun 19, 2007 7:02 am, edited 1 time in total.

 Profile Send private message  
 
 Post subject: Re: buildpkg - a new way to build packages
PostPosted: Tue Jun 19, 2007 2:52 pm 
Zenwalk Packager
Zenwalk Packager

Joined: Fri Mar 10, 2006 9:09 am
Posts: 2797
Location: Amsterdam
I have yet another suggestion: 'undeps': Some of my packages end up 'depending' upon things like mysql. That is however a plug-in dependency: the result does run ok without it, but there are references to it in the resulting package.

Please consider it a 'suggestion only'  :P

_________________
In case of panic: scream and run in circles!


 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 277 posts ]  Go to page 1, 2, 3, 4, 5 ... 19  Next

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:  
 
cron