Date: Mon, 23 Sep 2019 11:24:47 -0700 From: George Hartzell <hartzell@alerce.com> To: hartzell@alerce.com Cc: freebsd-ports <freebsd-ports@freebsd.org>, FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Problem overriding ports with portshaker. Message-ID: <23945.3567.44900.631073@alice.local> In-Reply-To: <23943.45748.104392.96450@alice.local> References: <23943.45748.104392.96450@alice.local>
next in thread | previous in thread | raw e-mail | index | archive | help
George Hartzell writes: > > I've been happily using portshaker to merge my "personal" ports tree > [1] with the standard tree, then building things with poudriere. Up > until today the things in my tree were additions. > > Today I tried replacing the standard copy of audio/logitechmusicserver > with a customized version that includes my SSL patch [2] and I suspect > I'll also need something like the Perl 5.30 patch [3]. I'm getting a > confusing error when I try to merge the trees: > > ``` > hartzell@corvid:/usr/portshaker/github_hartzell_freebsd-ports/audio % sudo portshaker -M > make: "/usr/share/mk/bsd.port.mk" line 32: Cannot open /usr/ports/Mk/bsd.port.mk > make: "/usr/portshaker/github_hartzell_freebsd-ports/audio/logitechmediaserver/Makefile" line 87: Malformed conditional (${ARCH} == "i386") > make: "/usr/portshaker/github_hartzell_freebsd-ports/audio/logitechmediaserver/Makefile" line 94: Malformed conditional (${ARCH} == "amd64") > make: "/usr/share/mk/bsd.port.mk" line 32: Cannot open /usr/ports/Mk/bsd.port.mk > make: Fatal errors encountered -- cannot continue[: make: stopped in /usr/portshaker/github_hartzell_freebsd-ports/audio/logitechmediaserver: bad number > make: "/usr/share/mk/bsd.port.mk" line 32: Cannot open /usr/ports/Mk/bsd.port.mk > make: "/usr/portshaker/github_hartzell_freebsd-ports/audio/logitechmediaserver/Makefile" line 87: Malformed conditional (${ARCH} == "i386") > make: "/usr/portshaker/github_hartzell_freebsd-ports/audio/logitechmediaserver/Makefile" line 94: Malformed conditional (${ARCH} == "amd64") > make: "/usr/share/mk/bsd.port.mk" line 32: Cannot open /usr/ports/Mk/bsd.port.mk > make: Fatal errors encountered -- cannot continue[: make: stopped in /usr/portshaker/github_hartzell_freebsd-ports/audio/logitechmediaserver: bad number > [: make: stopped in /usr/portshaker/github_hartzell_freebsd-ports/audio/logitechmediaserver: bad number > hartzell@corvid:/usr/portshaker/github_hartzell_freebsd-ports/audio % > ``` > > Interestingly, adding `PORTREVISION= 1` to my copy of the port gives a > shorter version of the same error message: > > ``` > hartzell@corvid:/usr/portshaker/github_hartzell_freebsd-ports/audio % sudo portshaker -M > make: "/usr/share/mk/bsd.port.mk" line 32: Cannot open /usr/ports/Mk/bsd.port.mk > make: "/usr/portshaker/github_hartzell_freebsd-ports/audio/logitechmediaserver/Makefile" line 88: Malformed conditional (${ARCH} == "i386") > make: "/usr/portshaker/github_hartzell_freebsd-ports/audio/logitechmediaserver/Makefile" line 95: Malformed conditional (${ARCH} == "amd64") > make: "/usr/share/mk/bsd.port.mk" line 32: Cannot open /usr/ports/Mk/bsd.port.mk > make: Fatal errors encountered -- cannot continue[: make: stopped in /usr/portshaker/github_hartzell_freebsd-ports/audio/logitechmediaserver: bad number > hartzell@corvid:/usr/portshaker/github_hartzell_freebsd-ports/audio % > ``` > > Everything works fine if I rename my customized port to > e.g. `gh-logitechmusicserver`, but I thought that one of the goals of > portshaker was to override local ports. > > I can live with just giving my port a custom name, but I'd like to > understand where my disconnect is (am I doing it wrong, or > misunderstanding something, or ...). > > Thanks for any insights, Answering my own question, the issue seems to be that I didn't have /usr/ports populated. Since I'm doing all of my builds and etc via poudriere I have no need of wasting the disk space, but populating it via portsnap has "fixed" the problem. g.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?23945.3567.44900.631073>