Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jan 2007 20:43:52 +0100 (CET)
From:      "Julien Gabel" <julien.gabel@thilelli.net>
To:        "Florent Thoumie" <flz@FreeBSD.org>, "Kris Kennaway" <kris@obsecurity.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: "Recommended test ordering" question.
Message-ID:  <44474.192.168.1.101.1168890232.squirrel@webmail.thilelli.net>
In-Reply-To: <45AAE80F.1050605@FreeBSD.org>
References:  <41278.192.168.1.101.1168810387.squirrel@webmail.thilelli.net> <20070114215610.GA1019@xor.obsecurity.org> <45AAE80F.1050605@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
>>> I just updated the patch for a little port i maintained, and
>>> encountered 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
>>>    => ok.
>>>  - make package
>>>    => ok.
>>>  - make deinstall
>>>    => ok.
>>>  - pkg_add package-name
>>>    => ok.
>>>  - make deinstall
>>>    => Errors about directories which can't be deleted.
>>>    => Directories _not_ present anymore, but were present after
>>>       the pkg_add step.
>>>    => ok (port seems deinstalled correctly).
>>>  - make reinstall
>>>    => ok.
>>>  - make package
>>>    => ok.
>>>
>>> Any suggestion on why i get these errors, although all "seems" fine?

>> 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=/tmp/foo usually help,
> assuming it is prefix-clean.

In fact i use both of the proposed suggestions, but the second was the
one which created the warnings.  Fixed now, at least my tests are all
ok by now.  I am going to fill a PR to update the corresponding port.

Thank you Florent, and Kris.
-- 
julien.
http://www.thilelli.net/~jgabel/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44474.192.168.1.101.1168890232.squirrel>