From owner-freebsd-pkg@FreeBSD.ORG Thu Apr 9 13:27:45 2015 Return-Path: Delivered-To: freebsd-pkg@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 B894EF2F for ; Thu, 9 Apr 2015 13:27:45 +0000 (UTC) Received: from mail-vn0-x230.google.com (mail-vn0-x230.google.com [IPv6:2607:f8b0:400c:c0f::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6635B914 for ; Thu, 9 Apr 2015 13:27:45 +0000 (UTC) Received: by vnbf190 with SMTP id f190so22417958vnb.1 for ; Thu, 09 Apr 2015 06:27:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=BiaUYcSQ1xIfUskcRNS+6qTGmV82RwXdoOrLtuVQ0iI=; b=b87zWQ6lpfEyukEBhUHyqHwEIdvFH3oJBjwDGzaKUC87rto92khWGGI8iYG2KRQEHO UR0CuT4rpqVf9+3pR+FkOUHd0I2db2HTmhn//KczTFTzyiSjeB7+/ZIA5mjKkmlkr+54 yC6qGODEe8OkGtoBANXDuVi79RGLtqBjS4BJNViaGqjqDE7IvfqPsj6cu+Qs8HWovbdW hFDwN4Dk9xisKQBmieTG4Cuvih9pAWHTAinu9WgIzNPBdgXXPXaV32RFFZwhAYGTyac0 BkfucdSLTC00CC/PT4m6S9P7W6ovtvHAL+9qoT/7Ri9/PuMQyVty4vXwIQkUfRs1HWZl mI1Q== X-Received: by 10.52.61.227 with SMTP id t3mr23555897vdr.37.1428586064371; Thu, 09 Apr 2015 06:27:44 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by mx.google.com with ESMTPSA id k10sm2582644vdi.18.2015.04.09.06.27.41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Apr 2015 06:27:42 -0700 (PDT) Sender: Baptiste Daroussin Date: Thu, 9 Apr 2015 15:27:39 +0200 From: Baptiste Daroussin To: John Wolfe Subject: Re: Use of pkg plugins breaks the build of /usr/ports software Message-ID: <20150409132738.GR95321@ivaldir.etoilebsd.net> References: <55257B54.4050700@xinuos.com> <20150408235900.GK95321@ivaldir.etoilebsd.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QFliEIXSSz7hGqqc" Content-Disposition: inline In-Reply-To: <20150408235900.GK95321@ivaldir.etoilebsd.net> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: freebsd-pkg@freebsd.org X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Apr 2015 13:27:45 -0000 --QFliEIXSSz7hGqqc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 09, 2015 at 01:59:00AM +0200, Baptiste Daroussin wrote: > On Wed, Apr 08, 2015 at 03:02:44PM -0400, John Wolfe wrote: > > Having built a pkg-plugin based on the pkg-plugin-template at=20 > > https://github.com/freebsd/pkg-plugins and adding > >=20 > > > PLUGINS [ > > > "x-adminsync", > > > ] > >=20 > > the plugin is working as desired. Good so far...... > >=20 > > I was caught off guard when later attempting to "make" something in=20 > > /usr/ports. The builds fail miserably with multiple > >=20 > > > pkg-static: Loading of plugin 'x-adminsync' failed: Service unavailab= le > > > pkg-static: Plugins cannot be loaded > > > make[1]: "/usr/ports/Mk/bsd.port.mk" line 1206: warning:=20 > > > "/usr/local/sbin/pkg-static version -t 1.4.12 1.3.8" returned non-zer= o=20 > > > status > >=20 > > I would not expect that a static binary be able to load and use a=20 > > relocatable object so I am surprised that it even tried to do so. Even= =20 > > so, a failure should be expected and not terminate the pkg-static proce= ss. > >=20 > > Is this a bug, works as designed? > >=20 > Hum probably both, I need to rework pkg-static so that it is not entierly= static > but static for all but libc so that it allows plugins, Haven't done that = work > yet. >=20 > What bothers me is that pkg-static should not even tried to load plugins = so it > should not return any failure, that is a bug, I'll try to see fix it. >=20 > Btw I'm happy to see someone is actually using the plugin interface, I ha= ven't > spent time on it since 1.3 and happy to see that I haven't broken it :) >=20 > I would like to hear more feedback about the usage of plugins, how good/b= ad it > is, how we could improve it etc, this is the first time I'm coding a plug= in > interface I do not expect it so be good :) >=20 > Best regards, > Bapt This is fixed in our git master, pkg 1.5.0 is to be release on April 14th s= o I won't merge that to 1.4 if you are interesting in testing here the fix: https://github.com/freebsd/pkg/commit/efd65a842f3d67b546ee6d95621c2a2ff1896= c12 Regards, Bapt --QFliEIXSSz7hGqqc Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlUmfkoACgkQ8kTtMUmk6Exo5wCggZMNOm90qFtSd/VeEZXG8N9V qF8An3rtBntb2tPtca6AW9qRBv9qHJRh =RUkl -----END PGP SIGNATURE----- --QFliEIXSSz7hGqqc--