[CMake] package detection with pkgsrc install ?

Asmodehn Shade asmodehn at gmail.com
Thu Dec 29 18:24:36 EST 2005


Mmm true...

With this package system you can build the package from source or install an
already built binary package (if you dont want to tune compile options). In
both cases there is a package database that is updated...

So the best way to do the check might be using the database with pkg_info -e
<pkg_name> -L
and check the files listed for this package are actually present.
http://man.netbsd.se/?find=pkg_info+1+20
Not sure how this can fit in the CMake package detection system ...

However pkgsrc has been ported to many unix platforms including linux and I
dont know how it works exactly on those platforms (never tried), but I guess
the raw commands like pkg_info might be the same...

FYI, cmake is itself a package in pkgsrc (version 2.0 now...)
ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/devel/cmake/README.html

So you might consider contacting the pkgsrc guys to be sure... they will now
the best way to do it :-)

The following mailing lists may be of interest to pkgsrc users:

   - pkgsrc-bugs<http://www.netbsd.org/MailingLists/index.html#pkgsrc-bugs>--
a list where problem reports related to pkgsrc are sent and discussed
   - pkgsrc-bulk<http://www.netbsd.org/MailingLists/index.html#pkgsrc-bulk>--
a list where the results of pkgsrc bulk builds are sent and discussed
   - pkgsrc-changes<http://www.netbsd.org/MailingLists/index.html#pkgsrc-changes>--
a list where all commit messages to pkgsrc are sent
   - tech-pkg <http://www.netbsd.org/MailingLists/index.html#tech-pkg> --
   a general discussion list for all things related to pkgsrc


It would be really nice for Cmake to be able to shipout with up-to-date and
widely tested package detection scripts :-) Many tests needed tho...
The pkgsrc system is frozen every quarter of the year to test them all as
much as possible.
To have a generic detection scheme depending on the package system would be
awesome :-)

Not sure how it works now on different package systems, and how this can be
achieved...

Anyway dont hesitate to let me know if I can be of any help ;-)

Thanks a lot for that !







2005/12/30, Brad King <brad.king at kitware.com>:
>
> Asmodehn Shade wrote:
> > I would like the detection scripts to detect the packaged installed by
> > pkgsrc (www.pkgsrc.org <http://www.pkgsrc.org>)
> >
> > pkgsrc is a portable package management system, and by default it
> > install all the packages under /usr/pkg (on my NetBSD at least...) like
> > linux pkg systems installs on /usr/local...
>
> Do packages installed by this system have any kind of manifest?  It
> would be easier to detect packages by loading files that describe them
> instead of searching for separate pieces.
>
> -Brad
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20051230/8b82eeab/attachment.html


More information about the CMake mailing list