28 Commits
Author SHA1 Message Date
Pierre Pronchery 16eb1901dc pkgconf: vendor import of version 3.0.9
Merge commit 'fe9da42ef146a6f93ea15fcbcc14872d2e6788c3' into main

Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D60852
2026-11-04 19:06:51 +01:00
Pierre Pronchery fe9da42ef1 Vendor import of pkgconf 3.0.9
Obtained from https://github.com/pkgconf/pkgconf/archive/refs/tags/pkgconf-3.0.9.tar.gz

SHA1: a390f016a7a5ff419c9eef9e2b2c01fe86c11971  -
SHA256: 32310a33bb97425ebc0707cb5af59f9dc05d10282dcd4db628a45ed904993dc6  -
SHA512: 30776d31f860910286b96fbf60a19b5a6d1e73cb6a1077a019d763ae6e5ed1e8d81bc3649978c83f40e5e90ae779f7e530c513b700c8e73bb6399883dd6ef7ab  -

Sponsored by:	The FreeBSD Foundation
2026-11-02 00:28:01 +01:00
Pierre Pronchery c146f5ae30 pkgconf: determine the default paths dynamically
This automatically computes the correct PKG_CONFIG_PATH with LOCALBASE
from the environment (when set) or from the "user.localbase" sysctl, in
this order.

Reviewed by:	des
Approved by:	des
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D57246
2026-07-02 02:57:45 +02:00
Pierre Pronchery 43b1ade21e pkgconf: match the update to version 2.9.93
This update brings spdxtool(1), with the ability to generate software
bill of material files (SBOM) in the SPDX 3.0.1 format (JSON-LD).

Reviewed by:	markj
Approved by:	markj
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D57953
2026-07-01 02:25:46 +02:00
Pierre Pronchery 592efe2524 Merge commit '0cf7106da9f36671ef62142c27de98eee9d874d6' into khorben/pkgconf-2.9.93 2026-07-01 02:24:13 +02:00
Pierre Pronchery 0cf7106da9 Vendor import of pkgconf 2.9.93
Obtained from https://github.com/pkgconf/pkgconf/archive/refs/tags/pkgconf-2.9.93.tar.gz

SHA1: 6bcbedc97081e17ea58e0164adea2ab827acfe23  -
SHA256: b9632d0d91321f56645de720fd8cd3584b0d0ca8ff13a3d9d5285888869fcc98  -
SHA512: e014096f5486b7cdfa8c6410992b9143b63c7ef0ba540c7cad09923867c3924b951c1dfbd9a85f6d786b0deb30be1b7284f67317f4b261b6e0eca70b20ace1af  -

One test folder in tests/lib1 had to be removed to avoid UTF-8 filenames
in the tree. (Breaks `make create-source-packages`)

Reviewed by:	markj
Sponsored by:   The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D57890
2026-06-29 07:21:50 +02:00
Pierre Pronchery b0fc1b7a2f Vendor import of pkgconf 2.9.92
Obtained from https://github.com/pkgconf/pkgconf/archive/refs/tags/pkgconf-2.9.92.tar.gz

SHA1: 865d15aac5e720a8897b14e0f475736a810a9340  -
SHA256: 1eeda57d5f7b8dd346278ea164536f313366bb10d531d7c490be439638942f6d  -
SHA512: a66960f79f83508e372ef948ec98f906abb31aed0b4c1a667f2cf8235f55ede1553fc5dfd1baaa6217a2d82c725448e64207b1dfb858f21fdb12f82e6771546f  -

One test folder in tests/lib1 had to be removed to avoid UTF-8 filenames
in the tree. (Breaks `make create-source-packages`)

Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D57856
2026-06-29 07:21:48 +02:00
Pierre Pronchery eaa637963b Vendor import of pkgconf 2.9.91
Obtained from https://github.com/pkgconf/pkgconf/archive/refs/tags/pkgconf-2.9.91.tar.gz

SHA1: 8ac84e584ff568dace16f9012efcec603b78ca34  -
SHA256: 68de1892189f085ab21e735561c67b5a077b85e0ce29f91ac774c3ad1afbfc94  -
SHA512: b069c7e9266059a126443392853b353845f0ebffd1591bdbc5582853016074d284d3b2f3a2b6588deb29a662bb712f05261c9bca81452d6de536018dbc9d4314  -

One test folder in tests/lib1 had to be removed to avoid UTF-8 filenames
in the tree. (Breaks `make create-source-packages`)

Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D57855
2026-06-29 07:21:46 +02:00
Pierre Pronchery ebcc78644e Vendor import of pkgconf 2.9.90
Obtained from https://github.com/pkgconf/pkgconf/archive/refs/tags/pkgconf-2.9.90.tar.gz

SHA1: ebfb0525c019eda14190d463680cb1625f3177f9  -
SHA256: f5c10610be8ea7278fc31ad63b943525b5b2a2f6e5038d3c11947f5bd6fd214d  -
SHA512: f93e6d15d25d02869a03ba339e18582f01a9b7241be89a87183c0f373a3df78d1be005dee376ea464f7942735700f51dab57b8688bc802ec152ff343af721f46  -

One test folder in tests/lib1 had to be removed to avoid UTF-8 filenames
in the tree. (Breaks `make create-source-packages`)

Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D57837
2026-06-29 07:21:29 +02:00
Pierre Pronchery e0b74e7b17 Revert "packages: Register pkgconf"
This reverts commit 970cef9f65.

I made a mistake when rebasing 1342eb5a832fa10e689a29faab3acb6054e4778c;
I did not mean to re-introduce this one.
2026-04-25 21:23:23 +02:00
Pierre Pronchery 1342eb5a83 pkgconf: fix the build with GCC 14
Building pkgconf with GCC 14 currently fails with:
no option '-Wincompatible-pointer-types-discards-qualifiers'

This relaxes warnings for libpkgconf, pkgconf(1), and bomtool(1) until
the improvements are published upstream (see PR #444).

Co-authored-by:	ngie
Approved by:	ngie
Sponsored by:	The FreeBSD Foundation
Event:		Wiesbaden Hackathon 202604
Differential Revision:	https://reviews.freebsd.org/D56591
2026-04-25 21:13:57 +02:00
Pierre Pronchery 970cef9f65 packages: Register pkgconf
This should fix the creation of the new packages introduced by the
import of pkgconf into the base system.

Fixes:			b8352da33f ("pkgconf: import into the base system")
Sponsored by:		The FreeBSD Foundation
Differential revision:	https://reviews.freebsd.org/D56589
2026-04-25 21:03:34 +02:00
Pierre Pronchery c875afcbcd packages: Register pkgconf
This should fix the creation of the new packages introduced by the
import of pkgconf into the base system.

Fixes:		b8352da33f ("pkgconf: import into the base system")
PR:		294724
Reviewed by:	ivy, ngie
Approved by:	ngie
Sponsored by:	The FreeBSD Foundation
Differential revision:	https://reviews.freebsd.org/D56589
2026-04-24 03:13:50 +02:00
Pierre Pronchery 57db556be4 src.conf(5): rebuild after introduction of WITHOUT_PKGCONF
Sponsored by:	The FreeBSD Foundation
Reviewed by:	bapt, philip
Approved by:	philip (mentor)
2026-04-22 15:43:20 +02:00
Pierre Pronchery b8352da33f pkgconf: import into the base system
This introduces the following option:

* MK_PKGCONF: determines if pkgconf and bomtool should be built

The objective is to allow the creation of SBOM information while
building FreeBSD's src tree. The build system cannot rely on the
presence of bomtool (and eventually also spdxtool) in the build
environment, except for having it as part of the src tree directly.

The framework implementing the generation of SBOM files is under review
in D56474.

This will also help simplifying the build, with the introduction of
another framework relying on the availability of pkgconf.

Sponsored by:		Alpha-Omega, The FreeBSD Foundation
Reviewed by:		bapt, philip
Approved by:		philip (mentor)
Differential Revision:	https://reviews.freebsd.org/D56404
2026-04-22 15:42:56 +02:00
Pierre Pronchery a3cefe7f2b Add 'contrib/pkgconf/' from commit '6294b6ab217a2d5f1d2bc23a64505a228294c508'
git-subtree-dir: contrib/pkgconf
git-subtree-mainline: 45827f9ad2
git-subtree-split: 6294b6ab21
2026-04-22 15:13:42 +02:00
Pierre Pronchery 6294b6ab21 Vendor import of pkgconf 2.5.1
Obtained from https://github.com/pkgconf/pkgconf/archive/refs/tags/pkgconf-2.5.1.tar.gz

SHA1: c5d6a0e62f293b2c9078c815b2343b0f208c9879  -
SHA256: 79721badcad1987dead9c3609eb4877ab9b58821c06bdacb824f2c8897c11f2a  -
SHA512: 53244f372ea21125a1d97c5b89a84299740b55a66165782e807ed23adab3a07408a1547f1f40156e3060359660d07f49846c8b4893beef10ac9440ab7e8611cc  -
2026-04-22 15:13:41 +02:00
Pierre Pronchery 4c72e5cde0 calendar.freebsd: add myself (khorben@)
This adds my date and place of birth to FreeBSD's calendar file, so I
can let the system(tm) remind me when that counter increments.

Confirmed to be working with the following command:

```
$ calendar -f usr.bin/calendar/calendars/calendar.freebsd -t 18.08
Aug 18  Pierre Pronchery <[email protected]> born in Nantes, France, 1982
[...]
```

Reviewed by:	philip (mentor)
Approved by:	philip (mentor)
Differential Revision:	https://reviews.freebsd.org/D55825
2026-03-12 23:53:32 +01:00
Pierre Pronchery 1095efe41f openssl: import 3.5.1
This change adds OpenSSL 3.5.1 from upstream [1].

The 3.5.1 artifact was been verified via PGP key [2] and by SHA256 checksum [3].

More information about the release (from a high level) can be found in
the release notes [4].

1. https://github.com/openssl/openssl/releases/download/openssl-3.5.1/openssl-3.5.1.tar.gz
2. https://github.com/openssl/openssl/releases/download/openssl-3.5.1/openssl-3.5.1.tar.gz.asc
3. https://github.com/openssl/openssl/releases/download/openssl-3.5.1/openssl-3.5.1.tar.gz.sha256
4. https://github.com/openssl/openssl/blob/openssl-3.5.1/NEWS.md

Reviewed by:	ngie, philip
Approved by:	philip (mentor)
Sponsored by:	The FreeBSD Foundation
2025-08-07 13:54:09 +02:00
Pierre Pronchery 09a2519227 openssl: import missing files from 3.5.0
This change completes the import of OpenSSL 3.5.0 from upstream.

The source archive has been verified via PGP and SHA256:

1. https://github.com/openssl/openssl/releases/download/openssl-3.5.0/openssl-3.5.0.tar.gz
2. https://github.com/openssl/openssl/releases/download/openssl-3.5.0/openssl-3.5.0.tar.gz.asc
3. https://github.com/openssl/openssl/releases/download/openssl-3.5.0/openssl-3.5.0.tar.gz.sha256
4. https://github.com/openssl/openssl/blob/openssl-3.5.0/NEWS.md

Reviewed by:	ngie, philip
Approved by:	philip (mentor)
Sponsored by:	The FreeBSD Foundation
2025-08-07 13:53:44 +02:00
Pierre Pronchery 4757b351ea openssl: Import version 3.5.1
Migrate to OpenSSL 3.5 in advance of FreeBSD 15.0. OpenSSL 3.0 will be
EOL after 2026-09-07.

Approved by:	philip (mentor)
Sponsored by:	Alpha-Omega Beach Cleaning Project
Sponsored by:	The FreeBSD Foundation
Differential revision:	https://reviews.freebsd.org/D51613
2025-08-07 15:54:34 +02:00
Pierre Pronchery e7be843b4a Merge commit '1095efe41feed8ea5a6fe5ca123c347ae0914801'
Approved by:	philip (mentor)
Sponsored by:	Alpha-Omega Beach Cleaning Project
Sponsored by:	The FreeBSD Foundation
2025-08-07 15:50:32 +02:00
Pierre Pronchery 9de72af2cc bsdinstall: restore the environment when restarting
It is possible to restart the installation process upon errors, when
installing normally through the `auto` script, or when installing a jail
with the `jail` script. However, some values obtained interactively from
the user or guessed by some scripts were kept in the environment when
restarting the process; this made it impossible to re-run some steps as
expected after the restart.

For instance, if a bad choice of mirror was made in the `mirrorselect`
phase, restarting the installer remembered the choice made, and would
never prompt for a different one again. Rebooting was then the only easy
way out of this situation.

This change restores a pre-defined list of environment variables when
restarting the installation process.

PR:		266987
Reviewed by:	emaste
Approved by:	philip (mentor)
Sponsored by:	The FreeBSD Foundation
Differential revision:	https://reviews.freebsd.org/D42281
2025-06-01 14:53:16 +02:00
Pierre Pronchery 046800313a bsdinstall: implement rootpass with bsddialog
This provides a more consistent user experience to the FreeBSD
installer.

Tested by:	thj
Approved by:	philip (mentor)
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D44280
2025-05-30 16:45:48 +02:00
Pierre Pronchery 82c41c9ffc umb: avoid wild pointer dereference in umb_decap()
When processing messages produced by the USB device, umb_decap() trusts
ptroff and later dlen and doff with pointer arithmetic, without
sufficient sanity checks. The resulting pointer address may be outside
of the valid boundary, causing the wrong memory to be copied or a page
fault.

This fix from Gerhard Roth was obtained after coordination upstream with
OpenBSD. It converts the variables to 64-bit integers, which should
mitigate the risk of overflows.

PR:             284920
Reported by:    Robert Morris <[email protected]>
Approved by:	philip (mentor)
Sponsored by:   The FreeBSD Foundation
2025-05-29 15:07:57 +02:00
Pierre Pronchery 152bb8e302 umb: avoid buffer overflow in umb_getinfobuf()
umb_getinfobuf() is called with offs and size taken from messages sent
by the USB device. The sanity check is not sufficient, due to a possible
integer wrap. This can allow a broken or malicious USB device, or
possibly the network operator, to cause a buffer overflow.

This fix from Gerhard Roth was obtained after coordination upstream with
OpenBSD. It converts the variables to 64-bit integers, which should
mitigate the risk of overflows.

PR:             284906
Reported by:    Robert Morris <[email protected]>
Approved by:	philip (mentor)
Sponsored by:   The FreeBSD Foundation
2025-05-29 15:07:54 +02:00
Pierre Pronchery 5ed36e2e17 umb: avoid buffer overflow in umb_in_len2mask()
len comes from ipv4elem.prefixlen in a MBIM_CID_IP_CONFIGURATION message
from the USB device, and should not be trusted, as it could be any
uint32_t value. Without this extra check, a potential buffer overflow
could subsequently occur in umb_in_len2mask().

Fix from Gerhard Roth, after coordination upstream with OpenBSD.

PR:		284904
Reported by:	Robert Morris <[email protected]>
Approved by:	philip (mentor)
Sponsored by:	The FreeBSD Foundation
2025-05-29 15:07:52 +02:00
Pierre Pronchery 8414a2e9ca committers-src: add myself (khorben@) with philip@ as mentor
Approved by:    philip (mentor)
Differential Revision:	https://reviews.freebsd.org/D50255
2025-05-09 21:43:26 +02:00