From owner-freebsd-pkg@FreeBSD.ORG Thu Apr 9 17:08:22 2015 Return-Path: Delivered-To: freebsd-pkg@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4763AC59 for ; Thu, 9 Apr 2015 17:08:22 +0000 (UTC) Received: from list.sco.com (list.sco.com [69.36.163.214]) by mx1.freebsd.org (Postfix) with SMTP id 21C4E8B3 for ; Thu, 9 Apr 2015 17:08:21 +0000 (UTC) Received: (qmail 24021 invoked from network); 9 Apr 2015 17:08:19 -0000 Received: from nimbus.nj.sco.com (69.36.163.214) by tasmania.ut.sco.com with SMTP; 9 Apr 2015 17:08:19 -0000 Received: from [127.0.0.1] (host10.nj.vpn.unxisco.com [10.147.73.10]) by nimbus.nj.sco.com (8.12.9/UW7.1.3) with ESMTP id t39H8HHH004357; Thu, 9 Apr 2015 13:08:18 -0400 (EDT) Message-ID: <5526B206.6050109@xinuos.com> Date: Thu, 09 Apr 2015 13:08:22 -0400 From: John Wolfe User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Baptiste Daroussin Subject: Re: Use of pkg plugins breaks the build of /usr/ports software References: <55257B54.4050700@xinuos.com> <20150408235900.GK95321@ivaldir.etoilebsd.net> <20150409132738.GR95321@ivaldir.etoilebsd.net> In-Reply-To: <20150409132738.GR95321@ivaldir.etoilebsd.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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 17:08:22 -0000 On 4/9/2015 9:27 AM, Baptiste Daroussin wrote: > 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 >>> 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 :) >> >> Best regards, >> Bapt > This is fixed in our git master, pkg 1.5.0 is to be release on April 14th so I > won't merge that to 1.4 > > if you are interesting in testing here the fix: > https://github.com/freebsd/pkg/commit/efd65a842f3d67b546ee6d95621c2a2ff1896c12 > Thanks very much, Baptiste. We are preparing a distribution based on the releng/10.1 source tree and the Q12015 /usr/ports. I will add the fix into our local source repositories and rebuild pkg 1.4.12+ for the development team in India. I will let you know how the testing went. Thanks again. -- John