From owner-freebsd-ports@FreeBSD.ORG Tue Dec 16 15:30:16 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 80AF4DD5 for ; Tue, 16 Dec 2014 15:30:16 +0000 (UTC) Received: from mail-qa0-x232.google.com (mail-qa0-x232.google.com [IPv6:2607:f8b0:400d:c00::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 376842B for ; Tue, 16 Dec 2014 15:30:16 +0000 (UTC) Received: by mail-qa0-f50.google.com with SMTP id w8so9662238qac.37 for ; Tue, 16 Dec 2014 07:30:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=L3jZW2mJjMXH1IcP7e+z/7hCxL+dILT2lcw+IN+SkRQ=; b=GbcLJOpBLp0EhcT4jZJuKcaV58eluSt8BMupHlJ0m/NWxQRDn9/Dt8+ikdr1FrQjzd 97ruVF+sfk3MwRzQFHKa9OBrC6fuCyNuXF+3et3M9Dj9J1PhUFByM23iP01OIxWT+6oB dbdipOWHE53rr5tfBJ7HMVW99mTQp/f2QzFyNFFcduOwKCrM/89AXLpS/2b7GTKxwPsb JYbMhsgsdpwnD01j5gMLeN5Q5myto99RElVlKagYgIpcCCVEeEA88hr6/SBC+FBfnFvX Et/V5tU0b5FBl9HO9FqdXJfLAv+KB8/PBJ7+qu73KMwhXiIZQ9/tDzMihMxzC2z5D+dN 4wAQ== X-Received: by 10.224.73.135 with SMTP id q7mr5213226qaj.6.1418743814689; Tue, 16 Dec 2014 07:30:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.17.49 with HTTP; Tue, 16 Dec 2014 07:29:34 -0800 (PST) In-Reply-To: <20141216140747.GR1115@albert.catwhisker.org> References: <20141216140747.GR1115@albert.catwhisker.org> From: Henry Hu Date: Tue, 16 Dec 2014 10:29:34 -0500 Message-ID: Subject: Re: emulators/pipelight, BUILD_DEPENDS, and gpg2 To: David Wolfskill Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-ports@freebsd.org" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2014 15:30:16 -0000 On Tue, Dec 16, 2014 at 9:07 AM, David Wolfskill wrote: > > On my laptop, I try to keep things fairly up-to-date: I perform source > updates daily on stable/10, and then update the installed ports (using > portmaster); I keep a local private mirror of the FreeBSD SVN repo > (which I update automagically overnight) locally on the laptop. > > Back on 20 Nov, one of the ports that was updated was security/gnupg -- > updating that port from gnupg-2.0 to -2.1. I then discovered > (empirically) that gnupg-2.1 would not decrypt some rather important > information that I had stored, though at the time, I didn't know what > caused this (and I wasn't expecting such a silent POLA-contravening > change merely from a revision number bump). > > After a bit of flailing about (on my part), I found that: > > portmaster -o security/gnupg20 gnupg-2.1\* > > (thus forcing a reversion to gnupg-2.0) resolved the problem in a way > that preserved my access to the information in question. > > > This morning, one of the ports for which an update was attempted was > emulators/pipelight: > > ===>>> The following actions will be taken if you choose to proceed: > ... > Upgrade pipelight-0.2.7.3_5 to pipelight-0.2.7.3_6 > Install security/gnupg > > > Now, I plead "guilty as charged" to failing to note the stated intent to > try to "Install security/gnupg". (That attempt failed, by the way: > > ... > ===> Installing for gnupg-2.1.0_1 > ===> Registering installation for gnupg-2.1.0_1 as automatic > Installing gnupg-2.1.0_1... > pkg-static: gnupg-2.1.0_1 conflicts with gnupg20-2.0.26_2 (installs files > into the same place). Problematic file: /usr/local/bin/gpg-agent > .... > > But that's not the focus of this note.) > > Apparently "gpg2 is a BUILD_DEPENDS for emulators/pipelight: > > # Created by: Kris Moore > # $FreeBSD: head/emulators/pipelight/Makefile 374755 2014-12-15 17:00:22Z > kmoore $ > > PORTNAME= pipelight > DISTVERSION= 0.2.7.3 > PORTREVISION= 6 > CATEGORIES= emulators > ... > BUILD_DEPENDS= ${LOCALBASE}/bin/gpg2:${PORTSDIR}/security/gnupg \ > ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash > LIB_DEPENDS= libxml2.so:${PORTSDIR}/textproc/libxml2 > .... > > > And I have "gpg2" available: > > g1-253(11.0-C)[19] ls -lToi `which gpg2` > 16133409 -r-xr-xr-x 1 root wheel - 652956 Nov 22 05:00:32 2014 > /usr/local/bin/gpg2 > > > But I have it from security/gnupg20: > > g1-253(11.0-C)[23] pkg-static which `which gpg2` > pkg-static: Warning: Major OS version upgrade detected. Running > "pkg-static install -f pkg" recommended > /usr/local/bin/gpg2 was installed by package gnupg20-2.0.26_2 > > > Is there, perhaps, a way to construct the BUILD_DEPENDS for pipelight > so that it can use gpg2 from ... well, wherever it was installed > from, and revert to bringing in a new port only if gpg2 isn't > already available? > Have you tried to do "make && make install" in the pipelight port directory? I think that the port system would consider the dependency resolved if it finds the file. > > [PS: Don't let the above-quoted whines about "Major OS version > upgrade detected..." distract you: I had attempted the emulators/pipelight > update under stable/10, as described above. At the time of this > writing, I had flipped the laptop to boot from a different slice, > where I am performing my daily update of head.] > > Peace, > david > -- > David H. Wolfskill david@catwhisker.org > Actions have consequences ... as do inactions. > > See http://www.catwhisker.org/~david/publickey.gpg for my public key. > -- Cheers, Henry