Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Sep 2021 11:30:30 -0700
From:      Mark Millard via freebsd-ports <freebsd-ports@freebsd.org>
To:        Bryan Drewery <bdrewery@FreeBSD.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: An example poudriere-devel pkgclean failure, multiple issues involved
Message-ID:  <E032A8A1-96B8-42AB-B4F6-6D74A02421F7@yahoo.com>
In-Reply-To: <aa3d19f8-db03-ac93-bbdb-5483e5e010ee@FreeBSD.org>
References:  <DAEB4346-4E9C-4F3F-B6C4-A7E87645C96B.ref@yahoo.com> <DAEB4346-4E9C-4F3F-B6C4-A7E87645C96B@yahoo.com> <60228553-6aed-7335-0178-5903805893ae@FreeBSD.org> <CB1DE35F-30A6-4791-899D-C83D282E5B8E@yahoo.com> <aa3d19f8-db03-ac93-bbdb-5483e5e010ee@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2021-Sep-25, at 10:04, Bryan Drewery <bdrewery@FreeBSD.org> wrote:

> On 9/25/2021 12:31 AM, Mark Millard wrote:
>>=20
>>=20
>> On 2021-Sep-24, at 12:06, Bryan Drewery <bdrewery at FreeBSD.org> =
wrote:
>>=20
>>> On 9/22/2021 12:26 PM, Mark Millard wrote:
>>>> When I just tried to pkgclean -a I got:
>>>>=20
>>>> # poudriere pkgclean -jmain-CA7 -a -y
>>>> [00:00:00] Gathering all expected packages
>>>> [00:00:00] Creating the reference jail... done
>>>> [00:00:03] Mounting system devices for main-CA7-default
>>>> [00:00:03] Mounting ports from: /usr/ports
>>>> [00:00:03] Mounting packages from:=20
>>>> [00:00:03] Mounting distfiles from: /usr/ports/distfiles
>>>> [00:00:03] Copying /var/db/ports from: =
/usr/local/etc/poudriere.d/options
>>>> [00:00:03] Appending to make.conf: =
/usr/local/etc/poudriere.d/make.conf
>>>> [00:00:03] Appending to make.conf: =
/usr/local/etc/poudriere.d/main-CA7-make.conf
>>>> /etc/resolv.conf -> =
/usr/local/poudriere/data/.m/main-CA7-default/ref/etc/resolv.conf
>>>> [00:00:03] Starting jail main-CA7-default
>>>> [00:00:04] Loading MOVED for =
/usr/local/poudriere/data/.m/main-CA7-default/ref/usr/ports
>>>> [00:00:05] Ports supports: FLAVORS SELECTED_OPTIONS
>>>> [00:00:05] Gathering ports metadata
>>>> [00:02:11] Calculating ports order and dependencies
>>>> [00:02:46] Sanity checking the repository
>>>> [00:02:46] Unqueueing existing packages
>>>> [00:02:50] Sanity checking build queue
>>>> [00:02:52] Error: Packages stuck in queue (depended on but not in =
queue): HPCombi-0.0.6_1
>>>=20
>>> I had not seen this one before. I was able to repro it locally. git
>>> bisect run is amazing and identified the bad commit. I'll probably =
have
>>> a fix in a few days.
>>>=20
>>>> IPA-1.08_2
>>>> R-cran-s2-1.0.6
>>>> . . .
>>>> zig-0.8.1
>>>> zxid-1.42_1
>>>> [: -gt: unexpected operator
>>>> [: -gt: unexpected operator
>>>> [: -gt: unexpected operator
>>>> /usr/local/share/poudriere/pkgclean.sh: POUDRIERE_BUILD_TYPE: =
parameter not set
>>>=20
>>> This is fixed in Poudriere git at least.
>>>=20
>>> Thanks for ccing me.
>>>=20
>>=20
>> You are welcome.
>>=20
>> I tried another use of pkgclean after building lang/rust explicitly
>> (just to measure some resource use via a patched top). But the
>> context is not as up to date:
>>=20
>> # poudriere version
>> poudriere-git-3.3.99.20210907_1
>>=20
>> I tried to see what the following would do:
>>=20
>> # poudriere pkgclean -j13_0R-CA72 -a -f ~/origins/CA72-origins.txt=20
>> [00:00:00] Gathering all expected packages
>> [00:00:00] Creating the reference jail... done
>> [00:00:05] Mounting system devices for 13_0R-CA72-default
>> [00:00:05] Mounting ports from: /usr/ports
>> [00:00:05] Mounting packages from:=20
>> [00:00:05] Mounting distfiles from: /usr/ports/distfiles
>> [00:00:05] Copying /var/db/ports from: =
/usr/local/etc/poudriere.d/options
>> [00:00:05] Appending to make.conf: =
/usr/local/etc/poudriere.d/make.conf
>> [00:00:05] Appending to make.conf: =
/usr/local/etc/poudriere.d/13_0R-CA72-make.conf
>> /etc/resolv.conf -> =
/usr/local/poudriere/data/.m/13_0R-CA72-default/ref/etc/resolv.conf
>> [00:00:05] Starting jail 13_0R-CA72-default
>> [00:00:07] Loading MOVED for =
/usr/local/poudriere/data/.m/13_0R-CA72-default/ref/usr/ports
>> [00:00:08] Ports supports: FLAVORS SELECTED_OPTIONS
>> [00:00:08] Gathering ports metadata
>> [00:03:01] Warning: (graphics/qgis): make: "/etc/make.conf" line 69: =
Need an operator
>> [00:03:01] Warning: (graphics/qgis): make: Fatal errors encountered =
-- cannot continueError: Error looking up dependencies for graphics/qgis
>> [00:03:01] Warning: (graphics/qgis-ltr): make: "/etc/make.conf" line =
69: Need an operator
>> [00:03:01] Warning: (graphics/qgis-ltr): make: Fatal errors =
encountered -- cannot continueError: Error looking up dependencies for =
graphics/qgis-ltr
>> [00:05:46] Warning: (www/chromium): make: =
"/usr/ports/www/chromium/Makefile" line 210: warning: "/usr/bin/grep =
mempcpy /usr/include/string.h" returned non-zero status
>> [00:06:39] Error: Fatal errors encountered gathering initial ports =
metadata
>> [: -gt: unexpected operator
>> [: -gt: unexpected operator
>> [: -gt: unexpected operator
>> /usr/local/share/poudriere/pkgclean.sh: POUDRIERE_BUILD_TYPE: =
parameter not set
>> [00:06:39] Cleaning up
>> [00:06:39] Unmounting file systems
>>=20
>> The (www/chromium) one is for:
>>=20
>> BASE_MEMPCPY!=3D  ${GREP} mempcpy =
${CROSS_SYSROOT}/usr/include/string.h
>=20
> I fixed that in the chromium port yesterday.
>=20
>>=20
>> which is oroginal material, not something of mine.
>>=20
>> It is less obvious what line 69 "Need an operator" messags are for
>> in /etc/make.conf is since the file is probably generated from other
>> files. Is it line 69 of /usr/local/etc/poudriere.d/make.conf ? That
>=20
> Not quite as it uses that to generate a temporary one. You could add a
> cat ${dst_makeconf} or cp or something at the end of setup_makeconf() =
in
> /usr/local/share/poudriere/common.sh to get to the make.conf being =
used.

Thanks. It was definitely my problem, not yours for the line 69 =
messages.

>> would be:
>>=20
>> #.if ${.MAKE.LEVEL} =3D=3D 0
>>=20
>> But that is a comment line.
>>=20
>> It is not obvious how to get rid of ust the temporary www/rust =
package
>> in a supported way.
>=20
> Just rm -f the file from the packages dir. pkgclean doesn't do much
> special. There is a hidden cache that is related but it will be =
cleaned
> up when accessed or on the next successful pkgclean.

Okay. Done. Thanks.

=3D=3D=3D
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E032A8A1-96B8-42AB-B4F6-6D74A02421F7>