Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Sep 2021 10:04:34 -0700
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        Mark Millard <marklmi@yahoo.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: An example poudriere-devel pkgclean failure, multiple issues involved
Message-ID:  <aa3d19f8-db03-ac93-bbdb-5483e5e010ee@FreeBSD.org>
In-Reply-To: <CB1DE35F-30A6-4791-899D-C83D282E5B8E@yahoo.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--980A6GgDZmlyojMgc5ZPSeT0Xk4977Ilo
Content-Type: multipart/mixed; boundary="fLHJE50v9clLmhQzEdMHFerpGjm1X1gFh";
 protected-headers="v1"
From: Bryan Drewery <bdrewery@FreeBSD.org>
To: Mark Millard <marklmi@yahoo.com>
Cc: freebsd-ports@freebsd.org
Message-ID: <aa3d19f8-db03-ac93-bbdb-5483e5e010ee@FreeBSD.org>
Subject: Re: An example poudriere-devel pkgclean failure, multiple issues
 involved
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>
In-Reply-To: <CB1DE35F-30A6-4791-899D-C83D282E5B8E@yahoo.com>

--fLHJE50v9clLmhQzEdMHFerpGjm1X1gFh
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

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:
>>>
>>> # 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/opt=
ions
>>> [00:00:03] Appending to make.conf: /usr/local/etc/poudriere.d/make.co=
nf
>>> [00:00:03] Appending to make.conf: /usr/local/etc/poudriere.d/main-CA=
7-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-de=
fault/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 que=
ue): HPCombi-0.0.6_1
>>
>> 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 hav=
e
>> a fix in a few days.
>>
>>> 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: paramet=
er not set
>>
>> This is fixed in Poudriere git at least.
>>
>> Thanks for ccing me.
>>
>=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/optio=
ns
> [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-CA7=
2-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-de=
fault/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: Ne=
ed 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/Make=
file" line 210: warning: "/usr/bin/grep mempcpy /usr/include/string.h" re=
turned non-zero status
> [00:06:39] Error: Fatal errors encountered gathering initial ports meta=
data
> [: -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=


I fixed that in the chromium port yesterday.

>=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

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.

> 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.

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.

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


--=20
Bryan Drewery


--fLHJE50v9clLmhQzEdMHFerpGjm1X1gFh--

--980A6GgDZmlyojMgc5ZPSeT0Xk4977Ilo
Content-Type: application/pgp-signature; name="OpenPGP_signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="OpenPGP_signature"

-----BEGIN PGP SIGNATURE-----

wsB5BAABCAAjFiEE+Rc8ssOq6npcih8JNddxu25Gl88FAmFPVqIFAwAAAAAACgkQNddxu25Gl89e
rwgA00Gdnlx2gTJVYU1wDKe3MhR/PGLTSSv7LRS9mutX2qBP2KwzMPiPZufvgUfifnHBOEJCSCRv
YWd31bOa92+DC8KEX/7J7BA8X6J0TSjdNcqkFrEpB7bN/EwswenAUpG4xZm1G7qpkk3vBK8CFHZj
ICaWFl/75ScntCu038u8kyeWFEqJt3jutKOiE3+40F8GBhvtkO/BSlpRfO6Exb2cJ69freewh1tv
7u4m3A7OYaYFD/6wAxKeCGGCEO88YN7T7Whx8m8e8Mp9quRX2A9UZM+3k2xD9NeLuv98BMr7DnwW
hCa4h5NkVgqOzZmaBLPSEWB3eBsbF0JnNOtb/z+GeQ==
=C9Qk
-----END PGP SIGNATURE-----

--980A6GgDZmlyojMgc5ZPSeT0Xk4977Ilo--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aa3d19f8-db03-ac93-bbdb-5483e5e010ee>