From owner-freebsd-bugs@FreeBSD.ORG Thu Aug 6 00:20:09 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C6C3106566B for ; Thu, 6 Aug 2009 00:20:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0B64A8FC12 for ; Thu, 6 Aug 2009 00:20:09 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n760K8dt045715 for ; Thu, 6 Aug 2009 00:20:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n760K8LX045714; Thu, 6 Aug 2009 00:20:08 GMT (envelope-from gnats) Date: Thu, 6 Aug 2009 00:20:08 GMT Message-Id: <200908060020.n760K8LX045714@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Andy Clayton Cc: Subject: Re: bin/116908: pkg_create(1): pkg_create -b makes invalid packages for bsdpan-* X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andy Clayton List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Aug 2009 00:20:09 -0000 The following reply was made to PR bin/116908; it has been noted by GNATS. From: Andy Clayton To: bug-followup@FreeBSD.org, steve@mouf.net Cc: Subject: Re: bin/116908: pkg_create(1): pkg_create -b makes invalid packages for bsdpan-* Date: Wed, 05 Aug 2009 18:40:00 -0500 This is a multi-part message in MIME format. --------------090805070108010607080302 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Here's a patch that fixes this issue, though I'm not sure if it is the right way to go about it. Anyways, the issue seems to simply be that the files listed in the packing list have an unexpected slash before them (when compared to other non-BSDPAN packages). Andy Clayton --------------090805070108010607080302 Content-Type: text/x-patch; name="BSDPAN_package_creation.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="BSDPAN_package_creation.patch" --- /usr/local/lib/perl5/5.8.9/BSDPAN/ExtUtils/Packlist.pm 2009-07-09 23:32:50.000000000 -0500 +++ ./Packlist.pm.fixed 2009-08-05 18:35:23.000000000 -0500 @@ -54,12 +54,14 @@ push @packinglist, "\@comment This package was generated by BSDPAN\n"; push @packinglist, "\@pkgdep perl-5.8.9_3\n", "\@comment DEPORIGIN:lang/perl5.8\n"; - push @packinglist, "$_\n" - for @files; + for (@files) { + s|^/||; + push @packinglist, "$_\n"; + } push @packinglist, "\@unexec rmdir $_ 2>/dev/null || true\n" for @dirs; my $packinglist_file = write_tmp_file($him, join '', @packinglist); last TRY unless $packinglist_file; --------------090805070108010607080302--