pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: How to get pkgsrc to search pkgsrc/packages/All for dependencies ?
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Thursday, January 6th, 2022 at 2:37 PM, Greg Troxel <gdt%lexort.com@localhost> wrote:
> Jonathan Perkin jperkin%joyent.com@localhost writes:
>
> > - On 2022-01-06 at 12:44 GMT, Rhialto wrote:
> >
> > > Plain pkgsrc (without pkgin or so) downloading binary packages? Is that
> > >
> > > new? PACKAGES does still default to ${PKGSRCDIR}/packages, doesn't it?
> > >
> > > (I found that in ../../mk/bsd.prefs.mk) At least it never downloads
> > >
> > > packages for me, unless I use pkgin and tell it where to download
> > >
> > > from...
> >
> > Unfortunately BINPKG_SITES is set by default on a bunch of OS,
> >
> > including NetBSD, and has been ~forever.
> >
> > This is almost certainly wrong in my opinion, or at the very least
> >
> > will cause confusion when users try to build software with alternative
> >
> > options to those chosen by the upstream packages (why else would you
> >
> > be building manually?)
>
> I think it's wrong too. I was about to suggest a new target like
>
> bin-install but only local. However, it makes sense (Joerg's POLA
>
> point) that building from pkgsrc, by default, even with non-default
>
> targets, would be local only.
>
> So what do people think about not setting BINPKG_SITES by default, as a
>
> bug fix? Is there anybody who would be bothered?
>
> If people are bothered, maybe
>
> bin-install: local only
>
> bin-net-install: local first, then BINPKG_SITES
>
> or PKGSRC_BIN_INSTALL NET to default BINKPK_SITES.
>
> But as I see it, if you want binary packages from the net you use pkgin,
>
> and if you want to build you use pkgsrc. I count "reusing the package
>
> you build" as part of "build".
I don't know if I'm alone doing this, but I do mix pre-built binaries with self-compiled ones.
Honestly, I even mix self-compiled binaries from git-HEAD in some cases.
Yes, I know things can break.
Yes, I know this is not recommended.
But, I've been doing this for a few years now and, as long as I know the pitfalls, things are rather stable.
So yes, I would really appreciate if I could set BINPKG_SITES and pull pre-compiled binaries as dependencies while building.
Regards
Home |
Main Index |
Thread Index |
Old Index