ports-mgmt/pkg is broken. please fix.

Freddie Cash fjwcash at gmail.com
Tue Feb 26 17:54:54 UTC 2013


Why, oh why, oh why, oh why is the ports framework pulling in
/etc/src.conf?  Beyond being the biggest POLA infraction out there, it
blatenly states in many different locations that /etc/src.conf is only to
be used by make(1) when it is invoked within the /usr/src tree.

Please, let's not pollute the ports tree with src.conf, and let's not water
down the clear separation of duties between /etc/make.conf and
/etc/src.conf.


On Tue, Feb 26, 2013 at 9:50 AM, Baptiste Daroussin <bapt at freebsd.org>wrote:

> On Tue, Feb 26, 2013 at 09:30:34AM -0800, Steve Kargl wrote:
> > % portmaster texinfo
> >
> > leads to
> >
> > ===>>> Currently installed version: texinfo-5.0.20130217
> > ===>>> Port directory: /usr/ports/print/texinfo
> >
> > ===>>> Gathering distinfo list for installed ports
> >
> > ===>>> Launching 'make checksum' for print/texinfo in background
> > ===> No options to configure
> > ===>>> Gathering dependency list for print/texinfo from ports
> > ===>>> Launching child to update pkg-1.0.7 to pkg-1.0.8
> >
> > ...
> >
> > ===>>> Launching child to update pkg-1.0.7 to pkg-1.0.8
> >
> > ...
> >
> > ===>  Cleaning for pkg-1.0.8
> > ===>  License BSD accepted by the user
> > ===>  Extracting for pkg-1.0.8
> > => SHA256 Checksum OK for pkg-1.0.8.tar.xz.
> > ===>  Patching for pkg-1.0.8
> > ===>  Configuring for pkg-1.0.8
> > ===>   FreeBSD 10 autotools fix applied to
> /usr/ports/ports-mgmt/pkg/work/pkg-1.0.8/external/libyaml/aclocal.m4
> > ===>   FreeBSD 10 autotools fix applied to
> /usr/ports/ports-mgmt/pkg/work/pkg-1.0.8/external/libyaml/configure
> > ===>  Building for pkg-1.0.8
> > "/usr/share/mk/bsd.own.mk", line 423: WITH_PROFILE and WITHOUT_PROFILE
> can't both be set.
> > *** [do-build] Error code 1
> >
> > Stop in /usr/ports/ports-mgmt/pkg.
> >
> > ===>>> make failed for ports-mgmt/pkg
> > ===>>> Aborting update
> >
> > ===>>> Update for pkg-1.0.7 failed
> > ===>>> Aborting update
> >
> > Terminated
> >
> > ===>>> You can restart from the point of failure with this command line:
> >        portmaster <flags> print/texinfo ports-mgmt/pkg
> >
>
> No pkgng is not broken but it is using bsd.prog.mk and bsd.lib.mk meaning
> it is
> sensitive to any /etc/make.conf and /etc/src.conf configuration.
>
> Can you try adding the following to
> ports-mgmt/pkg/Makefile
> line 23:
> replace
> MAKE_ENV+= WITHOUT_PROFILE=yes
> by
> MAKE_ENV+= WITHOUT_PROFILE=yes __MAKE_CONF=/dev/null SRCCONF=/dev/null
>
> And tell me if it fixes the problem for you?
>
> regards,
> Bapt
>



-- 
Freddie Cash
fjwcash at gmail.com


More information about the freebsd-ports mailing list