From owner-freebsd-ports@FreeBSD.ORG Tue Apr 9 18:43:16 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 40320CDC for ; Tue, 9 Apr 2013 18:43:16 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-ia0-x22e.google.com (mail-ia0-x22e.google.com [IPv6:2607:f8b0:4001:c02::22e]) by mx1.freebsd.org (Postfix) with ESMTP id 125331CB for ; Tue, 9 Apr 2013 18:43:16 +0000 (UTC) Received: by mail-ia0-f174.google.com with SMTP id r13so295126iar.5 for ; Tue, 09 Apr 2013 11:43:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=2PuNZnSk15DNnHrrDvpUbOag1pcr/zlbAPCrdUQTqs0=; b=pXv0Z2mmbn46nW2HS6qCVjsYRu9cmLoVD5JUCy7xCXScj0lfonJE3rGx80qrHAadXo t+wejNC/2ZI24c7qatRzG9aTFsKdnMYlwPVVLMFH80eGlUn+9H77dxFYkaISi00IB5f8 0x2bcpUrsnTlxijppEc8o6vQLkbMdnBet0yweOp2MMOVGS/1VVdMi80mVU5A6LkXS4fw C6FOC87HUR3odYIP+fIEQg7U8/kge9XvAw251pAYibmJjhX14EbeqWF3XOJvsjKrpz0l EPLLkivCzKg1NSVkE36zBuayrQWOWXYx2uNo95O7cq7BLeY4hcWIh1YS/KW9udxNp+Iz RqSg== MIME-Version: 1.0 X-Received: by 10.50.13.175 with SMTP id i15mr11443736igc.75.1365532995799; Tue, 09 Apr 2013 11:43:15 -0700 (PDT) Received: by 10.64.58.52 with HTTP; Tue, 9 Apr 2013 11:43:15 -0700 (PDT) Received: by 10.64.58.52 with HTTP; Tue, 9 Apr 2013 11:43:15 -0700 (PDT) In-Reply-To: <20130408103118.67ea695a@bsd64.grem.de> References: <20130330034028.0f8cefc8@bsd64.grem.de> <5156C0D9.50909@FreeBSD.org> <20130330142320.38010126@bsd64.grem.de> <20130408103118.67ea695a@bsd64.grem.de> Date: Tue, 9 Apr 2013 19:43:15 +0100 Message-ID: Subject: Re: www/nginx pkg-plist + pkgng (detectable?) From: Chris Rees To: Michael Gmelin Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD Mailing List X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Apr 2013 18:43:16 -0000 On 8 Apr 2013 10:31, "Michael Gmelin" wrote: > > On Sat, 30 Mar 2013 14:23:20 +0100 > Michael Gmelin wrote: > > > On Sat, 30 Mar 2013 05:39:21 -0500 > > Bryan Drewery wrote:> > > Let me elaborate this with a complete test sequence (starting in a > > clean jail): > > > > # cd /usr/ports/ports-mgmt/pkg > > # make install clean > > # pkg -v > > 1.0.9 > > (which is port version 1.0.9_2) > > # echo "WITH_PKGNG=1" >> /etc/make.conf > > # pkg2ng > > # cd /usr/ports/www/nginx > > # make && make clean > > (this is so only dependencies get installed) > > # find /usr | sort | uniq >/tmp/beforeinstall > > # make install clean > > # find /usr | sort | uniq >/tmp/afterinstall > > # diff /tmp/beforeinstall /tmp/afterinstall | wc -l > > 32 > > # pkg delete -y nginx > > # find /usr | sort | uniq >/tmp/afterdelete > > # diff /tmp/beforeinstall /tmp/afterdelete | wc -l > > 0 > > > > (At this point it's clear that the package cleans up after itself > > ok after removal) > > > > # make install clean > > # mkdir /tmp/pkg > > # cd /tmp/pkg > > # pkg create nginx > > # pkg repo . > > # find . > > . > > ./nginx-1.2.7_1,1.txz > > ./repo.txz > > # pkg delete -y nginx > > # PACKAGESITE=file:/tmp/pkg pkg update > > # PACKAGESITE=file:/tmp/pkg pkg install -y nginx > > # find . > > . > > ./nginx-1.2.7_1,1.txz > > ./repo.txz > > ./www > > ./www/nginx-dist > > > > > > I did the same procedure using pkg_* (starting from scratch): > > # cd /usr/ports/www/nginx > > # make install clean > > # mkdir /tmp/pkg > > # cd /tmp/pkg > > # pkg_create -b nginx-\* > > # find . > > . > > ./nginx-1.2.7_1,1.tbz > > # pkg_delete nginx-\* > > # pkg_add nginx-* > > # find . > > . > > ./nginx-1.2.7_1,1.tbz > > # pkg_info > > nginx-1.2.7_1,1 Robust and small WWW server > > pcre-8.32 Perl Compatible Regular Expressions library > > > > So the problem only happens when using pkgng, not when using pkg_*. > > With pkg_* it seems like "mkdir www/nginx-dist" is executed relative > > to @cwd, while with pkgng it's executed relative to `pwd`. > > Any news on this? Has it been fixed in pkg (I think it's primarily a > bug in the port) No, it's a bug in pkgng; it should respect @cwd. Chris > > > > On a different note, two things I noticed while playing with pkgng: > > - The bootstrap code delivered with 9.1 installs pkg version 1.0.2, > > since pkg is still improved rapidly, wouldn't it make sense to > > bootstrap to the latest version from ports (or at least output a > > warning, that there might be a more recent version)? > Seems like it's fixed. > > > - pkg2ng does not alter make.conf, nor tell the user to do so. If you > > assume that all users of pkg only use binary packages that might > > make sense. But since you'll see a lot of converting users (in > > the end this is what pkg2ng is for) either altering make.conf or at > > least giving a hint to the user (something like "Don't forget to > > add 'WITH_PKGNG=1' to your /etc/make.conf") would be nice. Even > > though I'm really should know that at this point, I forgot it > > several times, which puts the machines affected in a pretty ugly > > state after installing additional ports. > > pkg-message or pkg2ng could warn about this. Actually, I think it would > be best if pkg2ng should add the line to make.conf. > > > > > > Cheers, > > Michael > > > > > > > > -- > Michael Gmelin > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" >