From owner-freebsd-questions@freebsd.org Mon Sep 23 18:24:56 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DE5DEFBE6D; Mon, 23 Sep 2019 18:24:56 +0000 (UTC) (envelope-from hartzell@alerce.com) Received: from corvid.alerce.com (corvid.alerce.com [206.125.171.163]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46cXmR59mTz4LRZ; Mon, 23 Sep 2019 18:24:55 +0000 (UTC) (envelope-from hartzell@alerce.com) Received: from postfix.alerce.com (76-226-160-236.lightspeed.sntcca.sbcglobal.net [76.226.160.236]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by corvid.alerce.com (Postfix) with ESMTPSA id C4E1A515FA; Mon, 23 Sep 2019 11:24:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alerce.com; s=dkim; t=1569263086; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=n9Df9x9RuzbkenArrIxR+ictZ6MkU6rR639K1cnrmaw=; b=Ed5nEo14Pvo1WMolfSLdlRooSoQdtTJa2BMPRIUHt940hswFeH5zuf0ojSwUWaA8FJE6NX hm3nYeqmaviGzy74xG4XTAZiuKnIjIl/UT2TrZgudpp9J5jE8lBPzN1AN51IukIKy0aSFM nFfPgbc1cALWpjKACS9YefIB73kW8p6WdMm20NeV6cy58uFfVj4hCSaCdSzKOX15EFs+ZK ie3FAfSm/ZJRmluElV/PTNJcdbftZUZpX2Jg1DPu+iaYWshevQgE0rW0mhAoAKM3XpfEtp NSZWAVK3SvI1BzFsWz/epqaSPoZfKWNzRAXwG3VeXd7XiemHxdV2ib8nXUbMoA== Received: by postfix.alerce.com (Postfix, from userid 501) id 19AB320125F060; Mon, 23 Sep 2019 11:24:47 -0700 (PDT) From: George Hartzell MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <23945.3567.44900.631073@alice.local> Date: Mon, 23 Sep 2019 11:24:47 -0700 To: hartzell@alerce.com Cc: freebsd-ports , FreeBSD Questions Subject: Re: Problem overriding ports with portshaker. In-Reply-To: <23943.45748.104392.96450@alice.local> References: <23943.45748.104392.96450@alice.local> X-Mailer: VM undefined under 26.1 (x86_64-apple-darwin14.5.0) Reply-To: hartzell@alerce.com X-Rspamd-Queue-Id: 46cXmR59mTz4LRZ X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=alerce.com header.s=dkim header.b=Ed5nEo14; dmarc=pass (policy=none) header.from=alerce.com; spf=pass (mx1.freebsd.org: domain of hartzell@alerce.com designates 206.125.171.163 as permitted sender) smtp.mailfrom=hartzell@alerce.com X-Spamd-Result: default: False [-5.61 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[alerce.com:s=dkim]; HAS_REPLYTO(0.00)[hartzell@alerce.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_ADDR_EQ_FROM(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[alerce.com:+]; DMARC_POLICY_ALLOW(-0.50)[alerce.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-2.61)[ip: (-8.22), ipnet: 206.125.168.0/21(-4.49), asn: 25795(-0.31), country: US(-0.05)]; ASN(0.00)[asn:25795, ipnet:206.125.168.0/21, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Sep 2019 18:24:56 -0000 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.