From owner-freebsd-ports@FreeBSD.ORG Mon Jan 15 03:03:05 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B244A16A412 for ; Mon, 15 Jan 2007 03:03:05 +0000 (UTC) (envelope-from flz@FreeBSD.org) Received: from postfix1-g20.free.fr (postfix1-g20.free.fr [212.27.60.42]) by mx1.freebsd.org (Postfix) with ESMTP id 44DAF13C459 for ; Mon, 15 Jan 2007 03:03:05 +0000 (UTC) (envelope-from flz@FreeBSD.org) Received: from smtp8-g19.free.fr (smtp8-g19.free.fr [212.27.42.65]) by postfix1-g20.free.fr (Postfix) with ESMTP id 62B397C4245 for ; Mon, 15 Jan 2007 03:33:13 +0100 (CET) Received: from smtp.xbsd.org (unknown [82.233.2.192]) by smtp8-g19.free.fr (Postfix) with ESMTP id 0688A5480; Mon, 15 Jan 2007 03:33:12 +0100 (CET) Received: from localhost (localhost.xbsd.org [127.0.0.1]) by smtp.xbsd.org (Postfix) with ESMTP id B475911AD6; Mon, 15 Jan 2007 03:33:11 +0100 (CET) X-Virus-Scanned: amavisd-new at xbsd.org Received: from smtp.xbsd.org ([127.0.0.1]) by localhost (srv1.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uM5AHotqhZ8F; Mon, 15 Jan 2007 03:33:06 +0100 (CET) Received: from [193.120.13.130] (cream.xbsd.org [193.120.13.130]) by smtp.xbsd.org (Postfix) with ESMTP id AF86D11AD2; Mon, 15 Jan 2007 03:33:05 +0100 (CET) Message-ID: <45AAE80F.1050605@FreeBSD.org> Date: Mon, 15 Jan 2007 02:33:51 +0000 From: Florent Thoumie User-Agent: Thunderbird 1.5.0.8 (X11/20061126) MIME-Version: 1.0 To: Kris Kennaway References: <41278.192.168.1.101.1168810387.squirrel@webmail.thilelli.net> <20070114215610.GA1019@xor.obsecurity.org> In-Reply-To: <20070114215610.GA1019@xor.obsecurity.org> X-Enigmail-Version: 0.94.1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig50EB2C4B73185D14F4D5F654" Cc: freebsd-ports@freebsd.org Subject: Re: "Recommended test ordering" question. X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2007 03:03:05 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig50EB2C4B73185D14F4D5F654 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Kris Kennaway wrote: > On Sun, Jan 14, 2007 at 10:33:07PM +0100, Julien Gabel wrote: >> Hello, >> >> I just updated the patch for a little port i maintained, and encounter= ed >> a curious error following the "Recommended test ordering" found in the= >> FreeBSD Porter's Handbook to test it properly. Here are the steps: >> - make install >> =3D> ok. >> - make package >> =3D> ok. >> - make deinstall >> =3D> ok. >> - pkg_add package-name >> =3D> ok. >> - make deinstall >> =3D> Errors about directories which can't be deleted. >> =3D> Directories _not_ present anymore, but were present after the >> pkg_add step. >> =3D> ok (port seems deinstalled correctly). >> - make reinstall >> =3D> ok. >> - make package >> =3D> ok. >> >> Any suggestion on why i get these errors, although all "seems" fine? >=20 > Your pkg-plist is incorrect. Perhaps you are doing things in your > post-install script that are only executed when the port makefile is > run, but do not have a corresponding @exec statement in your > pkg-plist. [...] or the "make install" step might also create empty directories. You should add those with "@exec mkdir -p %D/share/foo" in the packing list. Note that these steps won't tell you if you have installed files not recorded in the packing list. Using PREFIX=3D/tmp/foo usually help, assuming it is prefix-clean. --=20 Florent Thoumie flz@FreeBSD.org FreeBSD Committer --------------enig50EB2C4B73185D14F4D5F654 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFqugPMxEkbVFH3PQRCn76AJ9pa/BK3N+bPOks29owVgvahShT8gCffhJB QQ1UPmbv5xjoC+x2i4WWRC8= =1pfC -----END PGP SIGNATURE----- --------------enig50EB2C4B73185D14F4D5F654--