Re: [arch-general] New User(sort of) and a packaging question

2008-01-29 Thread Jason Chu
On Tue, Jan 29, 2008 at 10:47:11AM -0600, Kevin Monceaux wrote:
 Jason,

 On Tue, 29 Jan 2008, Jason Chu wrote:

 Ok, after building the PKGBUILD and running namcap on it, I got these
 messages:

 [EMAIL PROTECTED] a]$ namcap c3270-3.3.7p1-1-i686.pkg.tar.gz
 c3270  W: Dependency included but already satisfied (ncurses)
 c3270  W: Dependency included but already satisfied (readline)

 On my box, when I run namcap on the package built from the PKGBUILD I sent 
 you, I get:

 c3270  W: Dependency included and not needed (ncurses)
 c3270  W: Dependency included and not needed (openssl)
 c3270  W: Dependency included and not needed (readline)

 And, if I remove all the dependencies, it doesn't report any missing 
 dependencies.  It sounds like at the very least it should report openssl as 
 a missing dependency if it's removed.  Is there perhaps something I'm 
 missing on my system?  It's a fresh install, installed last Friday, from 
 the current ISO and all recent updates have been applied via yaourt.

What does readelf -d /usr/bin/c3270 tell you?  Namcap doesn't actually use
ldd, it uses something faster and more accurate.

Jason


pgpJPc90WipWH.pgp
Description: PGP signature


Re: [arch-general] New User(sort of) and a packaging question

2008-01-29 Thread Travis Willard
On Jan 29, 2008 11:22 AM, Jason Chu [EMAIL PROTECTED] wrote:
 On Tue, Jan 29, 2008 at 07:55:26AM -0600, Kevin Monceaux wrote:
  Jason,
 
  On Mon, 28 Jan 2008, Jason Chu wrote:
 
  Being the guy who wrote namcap, I'm pretty sure it doesn't do this at all.
 
  Can I get a copy of the PKGBUILD to test with?  It sounds like it should be
  detecting these...
 
  I sent you a private e-mail with the PKGBUILD attached.

 Ok, after building the PKGBUILD and running namcap on it, I got these
 messages:

 [EMAIL PROTECTED] a]$ namcap c3270-3.3.7p1-1-i686.pkg.tar.gz
 c3270  W: Dependency included but already satisfied (ncurses)
 c3270  W: Dependency included but already satisfied (readline)

 The depends line looks like this:

 depends=('ncurses' 'openssl' 'readline')

 Notice how openssl isn't listed by namcap as already satisfied?  If you
 follow the dependency tree, you'll find that ncurses and readline and
 covered by a dependency on openssl (openssl - glibc - bash - readline -
 ncurses).

 Namcap tries to give you the smallest subset of dependencies that your
 package needs.

 Now, there was a proposal to change the functionality.  To list all of the
 packages that your package directly depends on.  This will eventually
 happen, but that's not how it works right now.

 In conclusion, there is nothing in namcap about ignoring dependencies in
 the base group.

Ah - yeah, that makes more sense - sorry for the confusion.  I'm
curious, though, why he reported it listing no deps missing at all
when his depends=() array was empty.



Re: [arch-general] New User(sort of) and a packaging question

2008-01-29 Thread Kevin Monceaux

Jason,

On Tue, 29 Jan 2008, Jason Chu wrote:



What does readelf -d /usr/bin/c3270 tell you?  Namcap doesn't actually use
ldd, it uses something faster and more accurate.


I'm guessing it's the Shared Library section that important to namcap. 
readelf shows:


 0x0001 (NEEDED) Shared library: [libssl.so.0.9.8]
 0x0001 (NEEDED) Shared library: [libcrypto.so.0.9.8]
 0x0001 (NEEDED) Shared library: [libnsl.so.1]
 0x0001 (NEEDED) Shared library: [libreadline.so.5]
 0x0001 (NEEDED) Shared library: [libncursesw.so.5]
 0x0001 (NEEDED) Shared library: [libutil.so.1]
 0x0001 (NEEDED) Shared library: [libc.so.6]



Kevin
http://www.RawFedDogs.net
http://www.WacoAgilityGroup.org
Bruceville, TX

Si hoc legere scis nimium eruditionis habes.
Longum iter est per praecepta, breve et efficax per exempla!!!




Re: [arch-general] New User(sort of) and a packaging question

2008-01-29 Thread Jason Chu
On Tue, Jan 29, 2008 at 12:03:17PM -0600, Kevin Monceaux wrote:
 Jason,

 On Tue, 29 Jan 2008, Jason Chu wrote:


 What does readelf -d /usr/bin/c3270 tell you?  Namcap doesn't actually use
 ldd, it uses something faster and more accurate.

 I'm guessing it's the Shared Library section that important to namcap. 
 readelf shows:

  0x0001 (NEEDED) Shared library: [libssl.so.0.9.8]
  0x0001 (NEEDED) Shared library: [libcrypto.so.0.9.8]
  0x0001 (NEEDED) Shared library: [libnsl.so.1]
  0x0001 (NEEDED) Shared library: [libreadline.so.5]
  0x0001 (NEEDED) Shared library: [libncursesw.so.5]
  0x0001 (NEEDED) Shared library: [libutil.so.1]
  0x0001 (NEEDED) Shared library: [libc.so.6]

Ok, this is probably going to take a little bit of fiddling.  Let's get off
the mailing list.  Can you open a ticket in the bug tracker where we can
talk about this more?

Jason


pgpdTFJHYRR48.pgp
Description: PGP signature


Re: [arch-general] New User(sort of) and a packaging question

2008-01-28 Thread Colin Pitrat
Hi,

You should also try to run namcap on the resulting package and not only on 
the PKGBUILD ;-)

Regards,
Colin Pitrat




Kevin Monceaux [EMAIL PROTECTED] 
To
Arch General User Mailing List Arch-General@ArchLinux.org
cc

Subject
[arch-general] New User(sort of) and a packaging question





Kevin Monceaux [EMAIL PROTECTED] 
Please respond to : General Discusson about Arch Linux 
arch-general@archlinux.org
Sent by: [EMAIL PROTECTED] 
28/01/2008 17:46


Fellow Arch Enthusiasts,

I discovered Arch about a year ago, and loved it.  I played around with it 

under VMware for a while, and even created a couple of packages for 
myself.  At the time my hard drive really needed some 
reorganization/repartitioning before switching to another distribution. 
But, my DVD burner was acting flaky.  Anyway, one year later with a 
second hard drive installed, and with a new DVD burner on order, I've made 

the switch to Arch, after trying a few other distros along the way.

I can't find the packages I created back when I first started using Arch. 
At some point I ended up deleting the VMware image to free up some space 
and neglected to copy the packages.  Anyway, I've created a package for 
c3270.  I found an x3270 package but prefer the text console version.  Is 
there a utility that can be used to help set the package's dependencies? 
I found a few mentions of namcap on the wiki.  I tried it on the package I 

created, which I don't currently have any dependencies listed in, and the 
only problems it reports are missing maintainer and CVS id tags.  It 
mentions nothing about the missing dependencies.  By the way, What does 
the name namcap stand for?



Kevin
http://www.RawFedDogs.net
http://www.WacoAgilityGroup.org
Bruceville, TX

Si hoc legere scis nimium eruditionis habes.
Longum iter est per praecepta, breve et efficax per exempla!!!





Re: [arch-general] New User(sort of) and a packaging question

2008-01-28 Thread Kevin Monceaux

On Mon, 28 Jan 2008, Travis Willard wrote:


That's odd - it looks like it ought to depend on ncurses (and
openssl?) at the very least.  You can run pacman -Qo on those files to
see what packages they belong to, and stick 'em in the deps.


Well, it gets even stranger.  I tried adding dependencies for openssl, 
ncurses, and readline, which according to ldd are needed.  When I then run 
namcap on the package file is says those dependencies are unneeded.




Kevin
http://www.RawFedDogs.net
http://www.WacoAgilityGroup.org
Bruceville, TX

Si hoc legere scis nimium eruditionis habes.
Longum iter est per praecepta, breve et efficax per exempla!!!




[arch-general] New User(sort of) and a packaging question

2008-01-28 Thread Kevin Monceaux

Fellow Arch Enthusiasts,

I discovered Arch about a year ago, and loved it.  I played around with it 
under VMware for a while, and even created a couple of packages for 
myself.  At the time my hard drive really needed some 
reorganization/repartitioning before switching to another distribution. 
But, my DVD burner was acting flaky.  Anyway, one year later with a 
second hard drive installed, and with a new DVD burner on order, I've made 
the switch to Arch, after trying a few other distros along the way.


I can't find the packages I created back when I first started using Arch. 
At some point I ended up deleting the VMware image to free up some space 
and neglected to copy the packages.  Anyway, I've created a package for 
c3270.  I found an x3270 package but prefer the text console version.  Is 
there a utility that can be used to help set the package's dependencies? 
I found a few mentions of namcap on the wiki.  I tried it on the package I 
created, which I don't currently have any dependencies listed in, and the 
only problems it reports are missing maintainer and CVS id tags.  It 
mentions nothing about the missing dependencies.  By the way, What does 
the name namcap stand for?




Kevin
http://www.RawFedDogs.net
http://www.WacoAgilityGroup.org
Bruceville, TX

Si hoc legere scis nimium eruditionis habes.
Longum iter est per praecepta, breve et efficax per exempla!!!




Re: [arch-general] New User(sort of) and a packaging question

2008-01-28 Thread David Rosenstrauch

Kevin Monceaux wrote:
By 
the way, What does the name namcap stand for?




Kevin


I think it's just pacman spelled backwards.

DR



Re: [arch-general] New User(sort of) and a packaging question

2008-01-28 Thread Kevin Monceaux

On Mon, 28 Jan 2008, Travis Willard wrote:


I think namcap ignores dependencies in the 'base' group, since
everyone is expected to have base installed, maybe?  I'm not 100% sure
of its internals in this sense.


That sounds like a reasonable possibility.  To get an idea of whether 
it's more common to explicitly list base dependencies or leave them out I 
checked a couple of other packages that depend on ncurses. 
extra/editors/vim and aur/unsupported/alpine both depend on ncurses but 
don't have ncurses listed as a dependency.  extra/network/irssi and 
extra/network/mutt, on the other hand, explicitly list ncurses as a 
dependency.  So, it looks like there's a mixture in both official and aur 
based packages.



I'd say leave them in - they're clearly needed.


I looked through the Arch Packaging Standards page and didn't really get a 
clear impression on which is the preferred method, but I might have missed 
something.  So, unless I hear otherwise, I'll explicitly list them.




Kevin
http://www.RawFedDogs.net
http://www.WacoAgilityGroup.org
Bruceville, TX

Si hoc legere scis nimium eruditionis habes.
Longum iter est per praecepta, breve et efficax per exempla!!!




Re: [arch-general] New User(sort of) and a packaging question

2008-01-28 Thread Travis Willard
On Jan 28, 2008 11:46 AM, Kevin Monceaux [EMAIL PROTECTED] wrote:
 I found a few mentions of namcap on the wiki.  I tried it on the package I
 created, which I don't currently have any dependencies listed in, and the
 only problems it reports are missing maintainer and CVS id tags.  It
 mentions nothing about the missing dependencies.  By the way, What does
 the name namcap stand for?

namcap will find dependencies only when run on a built package - it
can't analyse a PKGBUILD and discover deps for you.

Build the package, then run namcap
/path/to/pkgname-pkgver-pkgrel.pkg.tar.gz and it'll tell you.  If you
can't even build the package because of missing deps on your system,
then check out the project's documentation - they're usually pretty
good about telling you what you need.