pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Can pkgin and pkgsrc (binary and source) cooperate better?
On 31 October 2015 at 03:03, Mayuresh <mayuresh%acm.org@localhost> wrote:
> Build from source is more relevant when A. A binary package is not
> available B. You want to configure options.
>
> If above is not the case, a binary package helps you quickly get going.
>
> Particularly when you are in situation where you are building something
> like libreoffice after a long time and most of the dependencies need
> upgrade, you wish some of the packages could be readily installed as
> binary.
>
> For a while I tried breaking the build when it tries to download a new
> package, make a pkgin install of the package and resumed. But obviously
> not a scalable approach...
>
> Is there or could there be a way pkgsrc would work exactly like that?
> Could it have an option to use pkgin for dependencies, unless PKG_OPTIONS
> are specified in /etc/mk.conf?
I don't think there is a straightforward option but there should be.
I have this script:
$ cat /root/bin/update-pkgin
#!/bin/sh
cd /home/oc/pkgsrc/packages/All
pkg_info -X *gz | bzip2 > pkg_summary.bz2
cd /home/oc
pkgin update
Then I do "pkgin search" and select the package I need. I use "make
package" instead of "make install" and then I use the script above to
find the package I want (sometimes I tweak the Makefile and have
custom options).
I have DEPENDS_TARGET=bin-installs in mk.conf. I' d be interested in
having pkgin to do the job of installing binaries instead.
--
Ottavio
Home |
Main Index |
Thread Index |
Old Index