OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: desertrat on January 12, 2006, 02:13:50 pm

Title: Jwhois 3.2.3
Post by: desertrat on January 12, 2006, 02:13:50 pm
OK here's my first attempt at compiling and making an ipkg for pdaXrom

jwhois 3.2.3 (http://www.gnu.org/software/jwhois/jwhois.html)

I would be grateful if an "oldhand" would check it over to see whether I have made any mistakes (and let me know before I pick up some bad habits!)

-- cheers

[attachment[/attachment]
Title: Jwhois 3.2.3
Post by: inode0 on January 12, 2006, 02:43:47 pm
Quote
OK here's my first attempt at compiling and making an ipkg for pdaXrom

jwhois 3.2.3 (http://www.gnu.org/software/jwhois/jwhois.html)

I would be grateful if an "oldhand" would check it over to see whether I have made any mistakes (and let me know before I pick up some bad habits!)

-- cheers
[div align=\"right\"][a href=\"index.php?act=findpost&pid=110683\"][{POST_SNAPBACK}][/a][/div]
Here are a few thoughts in general.

control: I find it nice if you include a License line in here indicating the controlling license for the software.

Use of /usr/local: maybe I'm old school but when possible I think /usr/local should be left for the person running the machine to use. Things from package management systems should go somewhere else. Others will disagree with me about this I expect.

Location of jwhois.conf: If jwhois looks for its conf file in /usr/local/etc/ then there will be problems if someone installs this package in an unusual place. I would add a postinst script to check for the install root and create a link from /usr/local/etc/jwhois.conf to wherever it was really installed. Then a postrm script can remove that link if it was created at install.

If this is GPL software I believe you are required to distribute the license file(s) along with the binary package. I think tossing them into the CONTROL directory is fine for this purpose.

John
Title: Jwhois 3.2.3
Post by: desertrat on January 12, 2006, 03:35:06 pm
Thanks for the comments.

Quote
Here are a few thoughts in general.

control: I find it nice if you include a License line in here indicating the controlling license for the software.

Done.

Quote
Use of /usr/local: maybe I'm old school but when possible I think /usr/local should be left for the person running the machine to use. Things from package management systems should go somewhere else. Others will disagree with me about this I expect.

Heh, I think you'll be surprised at what you'll find in your /usr/local directory. In my case, so far, everything that's installed into /usr/local has been from 3rd party packages. So in keeping with "tradition" I will leave it as-is for now

Quote
Location of jwhois.conf: If jwhois looks for its conf file in /usr/local/etc/ then there will be problems if someone installs this package in an unusual place.

Correct me if I'm wrong, but I thought all the symlinking business takes care of this?

Quote
If this is GPL software I believe you are required to distribute the license file(s) along with the binary package. I think tossing them into the CONTROL directory is fine for this purpose.

Good idea, done. Although along with the license line in the control file, 99% of the people using IPKs will not know it's there and will not have a chance to read it before ipkg-install deletes it

-- cheers
Title: Jwhois 3.2.3
Post by: inode0 on January 12, 2006, 03:48:20 pm
Quote
Quote
Use of /usr/local: maybe I'm old school but when possible I think /usr/local should be left for the person running the machine to use. Things from package management systems should go somewhere else. Others will disagree with me about this I expect.

Heh, I think you'll be surprised at what you'll find in your /usr/local directory. In my case, so far, everything that's installed into /usr/local has been from 3rd party packages. So in keeping with "tradition" I will leave it as-is for now

Tradition is that /usr/local is for the system admin typing on the keyboard, not for packages managed by package management systems. There is *nothing* in /usr/local on my system except what I have put there. Perhaps your rom preference deals with this differently, I don't know.

I do know that /usr/local is where I am supposed to install things the old fashioned way. The ipkg system has no knowledge about what the local admin installs there and will eventually step on things.

Quote
Quote
Location of jwhois.conf: If jwhois looks for its conf file in /usr/local/etc/ then there will be problems if someone installs this package in an unusual place.

Correct me if I'm wrong, but I thought all the symlinking business takes care of this?

On a 6000 with a stock sharp rom nothing does this by magic. Again your rom may deal with it differently. You can easily test by installing it to a different place to see what happens.

Quote
Quote
If this is GPL software I believe you are required to distribute the license file(s) along with the binary package. I think tossing them into the CONTROL directory is fine for this purpose.

Good idea, done. Although along with the license line in the control file, 99% of the people using IPKs will not know it's there and will not have a chance to read it before ipkg-install deletes it

ipkg shouldn't delete it until the package is removed, but it will be hidden away with the install scripts.

John
Title: Jwhois 3.2.3
Post by: iamasmith on January 12, 2006, 04:06:10 pm
Quote
Quote
Use of /usr/local: maybe I'm old school but when possible I think /usr/local should be left for the person running the machine to use. Things from package management systems should go somewhere else. Others will disagree with me about this I expect.

Heh, I think you'll be surprised at what you'll find in your /usr/local directory. In my case, so far, everything that's installed into /usr/local has been from 3rd party packages. So in keeping with "tradition" I will leave it as-is for now

There is a good reason that /usr/local isn't used for stuff that's distribution compiled and that is it doesn't get confused with what you built that doesn't come from the distribution package management system.

For example if you use Gentoo linux you will use emerge to build everything from source, if you use redhat you will use the RedHat network, if you use SuSE you will use Yast etc. etc.

Anything that you install yourself will be unmanaged by the distribution stuff.

Since you are have produced an ipk that is handled by ipkg (the pdaXrom package management system) then I think inode0 truly has the higher ground here.

Basically, /usr/local should be left for folk to tinker with and delete if necessary with the certainty that they will only undo their own work.

btw: Thanks for bringing that to our attention here inode0 it is a good practice to continue.

- Andy
Title: Jwhois 3.2.3
Post by: pgas on January 13, 2006, 03:07:01 am
Quote
correct me if I'm wrong, but I thought all the symlinking business takes care of this?

on pdaxrom links are created during install

Quote
Tradition is that /usr/local is for the system admin typing on the keyboard
desertrat was talking about the other user contributed ipks for pdaxrom, hence the quote for "tradition".

Quote
it is a good practice to continue.

Maybe we could had --prefix=/usr in the list of options to pass in the howto....

If someone want to update the howtos on http://mail.pdaxrom.org/contrib/ (http://mail.pdaxrom.org/contrib/)
feel free to do it and send me the updated version.

I've mirrored jwhois on http://mail.pdaxrom.org/contrib (http://mail.pdaxrom.org/contrib)
Title: Jwhois 3.2.3
Post by: desertrat on January 13, 2006, 03:39:26 pm
Quote
Tradition is that /usr/local is for the system admin typing on the keyboard, not for packages managed by package management systems. There is *nothing* in /usr/local on my system except what I have put there. Perhaps your rom preference deals with this differently, I don't know.

OK updated to use "/" (or rather, not use /usr/local).

Quote
On a 6000 with a stock sharp rom nothing does this by magic. Again your rom may deal with it differently. You can easily test by installing it to a different place to see what happens.

I think you're in the wrong forum   , this is for pdaXrom!

Quote
ipkg shouldn't delete it until the package is removed, but it will be hidden away with the install scripts.
Yep, you're right it hides it in "<prefix>/usr/lib/ipkg/info/".

-- cheers
Title: Jwhois 3.2.3
Post by: desertrat on January 13, 2006, 03:46:57 pm
Quote
Quote
Tradition is that /usr/local is for the system admin typing on the keyboard
desertrat was talking about the other user contributed ipks for pdaxrom, hence the quote for "tradition".
Bingo

Quote
Maybe we could had --prefix=/usr in the list of options to pass in the howto....

If someone want to update the howtos on http://mail.pdaxrom.org/contrib/ (http://mail.pdaxrom.org/contrib/)
feel free to do it and send me the updated version.
I have a modified version which corrects some typos. I've also added a few words about not locating ipkg-tmp on a fat/vfat/messydos partition (as this messes up the permissions). I will email this to you.

Quote
I've mirrored jwhois on http://mail.pdaxrom.org/contrib (http://mail.pdaxrom.org/contrib)
Sorry please mirror again, as I have changed the package (corrected permissions and now does not use /usr/local).
Title: Jwhois 3.2.3
Post by: pgas on January 13, 2006, 03:57:07 pm
Quote
I have a modified version which corrects some typos. I've also added a few words about not locating ipkg-tmp on a fat/vfat/messydos partition (as this messes up the permissions). I will email this to you.
Great!

Quote
Sorry please mirror again, as I have changed the package (corrected permissions and now does not use /usr/local).

np, done.
Title: Jwhois 3.2.3
Post by: inode0 on January 13, 2006, 03:59:03 pm
Quote
Quote
On a 6000 with a stock sharp rom nothing does this by magic. Again your rom may deal with it differently. You can easily test by installing it to a different place to see what happens.

I think you're in the wrong forum   , this is for pdaXrom!
I got lost there for a minute. I'll be heading back to where I belong soon. Have fun guys.

John