From owner-freebsd-pkg@FreeBSD.ORG Thu Apr 9 12:26:47 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 4E7B1A58 for ; Thu, 9 Apr 2015 12:26:47 +0000 (UTC) Received: from astart2.astart.com (wsip-72-214-30-30.sd.sd.cox.net [72.214.30.30]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1D586F30 for ; Thu, 9 Apr 2015 12:26:46 +0000 (UTC) Received: from laptop_93.private (localhost [127.0.0.1]) by astart2.astart.com (8.14.9/8.14.9) with ESMTP id t39C24aL096564 for ; Thu, 9 Apr 2015 05:02:04 -0700 (PDT) (envelope-from papowell@astart.com) Message-ID: <55266A3C.8000309@astart.com> Date: Thu, 09 Apr 2015 05:02:04 -0700 From: Patrick Powell Reply-To: papowell@astart.com Organization: Astart Technologies User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: freebsd-pkg@freebsd.org Subject: Re: Use of pkg plugins breaks the build of /usr/ports software References: <55257B54.4050700@xinuos.com> <20150408235900.GK95321@ivaldir.etoilebsd.net> <55261AD6.6020104@xinuos.com> In-Reply-To: <55261AD6.6020104@xinuos.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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 12:26:47 -0000 Based on experiences with other utilities that allow plugins or similar things, I would strongly recommend that the pkg-static NOT (by default) allow plugins or similar extensions UNLESS explicitly enabled in a configuration file. Perhaps not even then. Remember the BASH shell stuff and the environment variables? On 04/08/15 23:23, John Wolfe wrote: > On 4/8/2015 7:59 PM, 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 >>> https://github.com/freebsd/pkg-plugins and adding >>> >>>> PLUGINS [ >>>> "x-adminsync", >>>> ] >>> the plugin is working as desired. Good so far...... >>> >>> I was caught off guard when later attempting to "make" something in >>> /usr/ports. The builds fail miserably with multiple >>> >>>> pkg-static: Loading of plugin 'x-adminsync' failed: Service >>>> unavailable >>>> pkg-static: Plugins cannot be loaded >>>> make[1]: "/usr/ports/Mk/bsd.port.mk" line 1206: warning: >>>> "/usr/local/sbin/pkg-static version -t 1.4.12 1.3.8" returned non-zero >>>> status >>> I would not expect that a static binary be able to load and use a >>> relocatable object so I am surprised that it even tried to do so. Even >>> so, a failure should be expected and not terminate the pkg-static >>> process. >>> >>> Is this a bug, works as designed? >>> >> 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. >> >> 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. >> >> Btw I'm happy to see someone is actually using the plugin interface, >> I haven't >> spent time on it since 1.3 and happy to see that I haven't broken it :) >> >> I would like to hear more feedback about the usage of plugins, how >> good/bad it >> is, how we could improve it etc, this is the first time I'm coding a >> plugin >> interface I do not expect it so be good :) >> >> > > Thanks for the quick response. A fix that would have pkg-static > avoid attempting to load a plugin would allow us to continue use of > and extend the plugin without drastically impacting the use of > /usr/ports and poudriere. > > Do you need or would you like me to file a bug report? And of course > I will be happy to test any changes that are proposed. > > -- John > > _______________________________________________ > freebsd-pkg@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-pkg > To unsubscribe, send any mail to "freebsd-pkg-unsubscribe@freebsd.org" > -- Patrick Powell Astart Technologies papowell@astart.com 1530 Jamacha Rd, Suite X Network and System San Diego, CA 92019 Consulting 858-874-6543 FAX 858-751-2435 Web: www.astart.com