| #
abf911af
|
| 05-Feb-2026 |
Pavel Knoblokh <info@software-advisory.com.au> |
pkg: Fix mirror type parsing and service discovery
Signed-off-by: Pavel Knoblokh <info@software-advisory.com.au> Reviewed by: emaste, imp, kevans Fixes: dc4581589a3 ("pkg: clean support for reposit
pkg: Fix mirror type parsing and service discovery
Signed-off-by: Pavel Knoblokh <info@software-advisory.com.au> Reviewed by: emaste, imp, kevans Fixes: dc4581589a3 ("pkg: clean support for repositories") Closes: https://github.com/freebsd/freebsd-src/pull/1989
show more ...
|
| #
c1557708
|
| 16-Jan-2025 |
Mark Johnston <markj@FreeBSD.org> |
pkg: Fix Coverity warnings
- Fix allocation size in config_get_repositories(). - Fix a memory leak in read_conf_file(). - Avoid a null pointer dereference in an error path in verify_pubsignature()
pkg: Fix Coverity warnings
- Fix allocation size in config_get_repositories(). - Fix a memory leak in read_conf_file(). - Avoid a null pointer dereference in an error path in verify_pubsignature().
Fixes: e3b4a51580fc ("pkg(7): expand VERSION_MAJOR, VERSION_MINOR, RELEASE and OSNAME") Fixes: dc4581589a32 ("pkg: clean support for repositories")
show more ...
|
| #
e3b4a515
|
| 16-Jan-2025 |
Baptiste Daroussin <bapt@FreeBSD.org> |
pkg(7): expand VERSION_MAJOR, VERSION_MINOR, RELEASE and OSNAME
Catchup with pkg(8) by expanding more variable when parsing repositories The only missing variable now is ARCH, this will have to wait
pkg(7): expand VERSION_MAJOR, VERSION_MINOR, RELEASE and OSNAME
Catchup with pkg(8) by expanding more variable when parsing repositories The only missing variable now is ARCH, this will have to wait for pkg 2.0 to be the lowest supported version.
show more ...
|
| #
5c341fe5
|
| 15-Jan-2025 |
Baptiste Daroussin <bapt@FreeBSD.org> |
pkg(7): support configuration overwrite like pkg(8)
with pkg(8) it is possible to overwrite a configuration like adding FreeBSD { enabled: false }
in /usr/local/etc/pkg/repo/overwrite.conf which a
pkg(7): support configuration overwrite like pkg(8)
with pkg(8) it is possible to overwrite a configuration like adding FreeBSD { enabled: false }
in /usr/local/etc/pkg/repo/overwrite.conf which allows to change any value which can have been reviously configured in anything in /etc/pkg/*.conf
now the bootstrap supports the same
MFC After: 3 weeks
show more ...
|
| #
eccf736c
|
| 15-Jan-2025 |
Baptiste Daroussin <bapt@FreeBSD.org> |
pkg: make sure the repositories have at least an url
While here, factorize code to free the repository structure
|
| #
49f4e3d2
|
| 14-Jan-2025 |
Benedict Reuschling <bcr@FreeBSD.org> |
pkg: Fix two typos in visible error messages
No functional changes.
|
| #
dc458158
|
| 14-Jan-2025 |
Baptiste Daroussin <bapt@FreeBSD.org> |
pkg: clean support for repositories
Rework the way the bootstrap fetches pkg, by implementing a full support for the repositories, the boostrap will now loop over all available repo and try to fetch
pkg: clean support for repositories
Rework the way the bootstrap fetches pkg, by implementing a full support for the repositories, the boostrap will now loop over all available repo and try to fetch the full package from there. It will at the first valid package found.
Fallback to packagesite (which has been deprecated for a while) if needed, by transforming it into a repo, if no repo is found.
MFC After: 3 weeks
show more ...
|
| #
4d65a7c6
|
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
usr.sbin: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
usr.sbin: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/
Sponsored by: Netflix
show more ...
|
| #
fd9ae9ac
|
| 16-Nov-2023 |
John Baldwin <jhb@FreeBSD.org> |
pkg: Allocate a suitably-sized string for the local ABI
Previously the local ABI string was written to an on-stack buffer and the pointer to that buffer was saved in a global before the function ret
pkg: Allocate a suitably-sized string for the local ABI
Previously the local ABI string was written to an on-stack buffer and the pointer to that buffer was saved in a global before the function returned. This had two issues: c[ABI].val pointed to a no-longer-valid on-stack buffer after config_init returned, and the string could potentially be truncated. Fix both of those by changing pkg_get_myabi to return a pointer to a string allocated by asprintf.
Note that the allocated string is left in the global config array until it is implicitly freed on process exit.
Reported by: GCC 13 -Wdangling-pointer Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D42623
show more ...
|
| #
1d386b48
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
| #
4d846d26
|
| 10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause.
Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
show more ...
|
| #
c816aea7
|
| 09-Mar-2023 |
Kyle Evans <kevans@FreeBSD.org> |
Revert "grep: remove tautological condition"
This reverts commit f6d6c66889001208aee7b0c46efe1c8ddffda57c.
Gremlins snuck into my tree and injected some WIP.
|
| #
f6d6c668
|
| 09-Mar-2023 |
Kyle Evans <kevans@FreeBSD.org> |
grep: remove tautological condition
st_size is an off_t, it cannot hold values larger than OFF_MAX.
CID: 1008931
|
| #
cc9a8a11
|
| 27-Apr-2021 |
Baptiste Daroussin <bapt@FreeBSD.org> |
pkg(7): replace usage of sbuf(9) with open_memstream(3)
open_memstream(3) is a standard way to obtain the same feature we do get by using sbuf(9) (aka dynamic size buffer), switching to using it mak
pkg(7): replace usage of sbuf(9) with open_memstream(3)
open_memstream(3) is a standard way to obtain the same feature we do get by using sbuf(9) (aka dynamic size buffer), switching to using it makes pkg(7) more portable, and reduces its number of dependencies.
Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D30005
show more ...
|
| #
f648d757
|
| 27-Apr-2021 |
Baptiste Daroussin <bapt@FreeBSD.org> |
pkg(7): indentation fixes
Non functional changes
|
| #
e869d3c6
|
| 27-Apr-2021 |
Moritz Schmitt <moritz@schmi.tt> |
Make pkg(7) use environment variables specified in pkg.conf
Modify /usr/sbin/pkg to use environment variables specified in pkg.conf. This allows control over underlying libraries like fetch(3), whic
Make pkg(7) use environment variables specified in pkg.conf
Modify /usr/sbin/pkg to use environment variables specified in pkg.conf. This allows control over underlying libraries like fetch(3), which can be configured by setting HTTP_PROXY.
MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D29820
show more ...
|
| #
18418e19
|
| 12-Feb-2021 |
Kyle Evans <kevans@FreeBSD.org> |
pkg(7): add an -r reponame option for bootstrap and add
This is limited to bootstrap/add because some real pkg(8) commands have -r flags with an incompatible meaning/usage, e.g., pkg-audit. pkg(7) w
pkg(7): add an -r reponame option for bootstrap and add
This is limited to bootstrap/add because some real pkg(8) commands have -r flags with an incompatible meaning/usage, e.g., pkg-audit. pkg(7) will still commence the search as it has, but it will ignore any repo objects without the given name so that overrides and whatnot still work as expected.
The use of it for add is noted in the manpage; notably, that the signature config for that repository will be used over global config if it's specified. i.e., pkg(7) should assume that the given pkg did come from that repository and treat it appropriately.
Reviewed by: bapt, manu MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D28524
show more ...
|
| #
9a0a48b1
|
| 28-Jan-2021 |
Alex Richardson <arichardson@FreeBSD.org> |
usr.sbin/pkg: Don't re-define roundup2
The file already includes sys/param.h and should use that definition. I found this while testing D28332.
Reviewed By: bapt Differential Revision: https://revi
usr.sbin/pkg: Don't re-define roundup2
The file already includes sys/param.h and should use that definition. I found this while testing D28332.
Reviewed By: bapt Differential Revision: https://reviews.freebsd.org/D28331
show more ...
|
| #
56d11d4a
|
| 18-Nov-2020 |
Stefan Eßer <se@FreeBSD.org> |
Make use of the getlocalbase() function for run-time adjustment of the local software base directory, as committed in SVN rev. 367813.
The pkg and mailwrapper programs used the LOCALBASE environment
Make use of the getlocalbase() function for run-time adjustment of the local software base directory, as committed in SVN rev. 367813.
The pkg and mailwrapper programs used the LOCALBASE environment variable for this purpose and this functionality is preserved by getlocalbase().
After this change, the value of the user.localbase sysctl variable is used if present (and not overridden in the environment).
The nvmecontrol program gains support of a dynamic path to its plugin directory with this update.
Differential Revision: https://reviews.freebsd.org/D27237
show more ...
|
| #
1f474190
|
| 27-Oct-2020 |
Stefan Eßer <se@FreeBSD.org> |
Replace literal uses of /usr/local in C sources with _PATH_LOCALBASE
Literal references to /usr/local exist in a large number of files in the FreeBSD base system. Many are in contributed software, i
Replace literal uses of /usr/local in C sources with _PATH_LOCALBASE
Literal references to /usr/local exist in a large number of files in the FreeBSD base system. Many are in contributed software, in configuration files, or in the documentation, but 19 uses have been identified in C source files or headers outside the contrib and sys/contrib directories.
This commit makes it possible to set _PATH_LOCALBASE in paths.h to use a different prefix for locally installed software.
In order to avoid changes to openssh source files, LOCALBASE is passed to the build via Makefiles under src/secure. While _PATH_LOCALBASE could have been used here, there is precedent in the construction of the path used to a xauth program which depends on the LOCALBASE value passed on the compiler command line to select a non-default directory.
This could be changed in a later commit to make the openssh build consistently use _PATH_LOCALBASE. It is considered out-of-scope for this commit.
Reviewed by: imp MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D26942
show more ...
|
| #
ae659caa
|
| 19-Oct-2020 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Use asprintf instead of sbuf
|
| #
c1557708
|
| 16-Jan-2025 |
Mark Johnston <markj@FreeBSD.org> |
pkg: Fix Coverity warnings
- Fix allocation size in config_get_repositories(). - Fix a memory leak in read_conf_file(). - Avoid a null pointer dereference in an error path in verify_pubsignature()
pkg: Fix Coverity warnings
- Fix allocation size in config_get_repositories(). - Fix a memory leak in read_conf_file(). - Avoid a null pointer dereference in an error path in verify_pubsignature().
Fixes: e3b4a51580fc ("pkg(7): expand VERSION_MAJOR, VERSION_MINOR, RELEASE and OSNAME") Fixes: dc4581589a32 ("pkg: clean support for repositories")
show more ...
|
| #
e3b4a515
|
| 16-Jan-2025 |
Baptiste Daroussin <bapt@FreeBSD.org> |
pkg(7): expand VERSION_MAJOR, VERSION_MINOR, RELEASE and OSNAME
Catchup with pkg(8) by expanding more variable when parsing repositories The only missing variable now is ARCH, this will have to wait
pkg(7): expand VERSION_MAJOR, VERSION_MINOR, RELEASE and OSNAME
Catchup with pkg(8) by expanding more variable when parsing repositories The only missing variable now is ARCH, this will have to wait for pkg 2.0 to be the lowest supported version.
show more ...
|
| #
5c341fe5
|
| 15-Jan-2025 |
Baptiste Daroussin <bapt@FreeBSD.org> |
pkg(7): support configuration overwrite like pkg(8)
with pkg(8) it is possible to overwrite a configuration like adding FreeBSD { enabled: false }
in /usr/local/etc/pkg/repo/overwrite.conf which a
pkg(7): support configuration overwrite like pkg(8)
with pkg(8) it is possible to overwrite a configuration like adding FreeBSD { enabled: false }
in /usr/local/etc/pkg/repo/overwrite.conf which allows to change any value which can have been reviously configured in anything in /etc/pkg/*.conf
now the bootstrap supports the same
MFC After: 3 weeks
show more ...
|
| #
eccf736c
|
| 15-Jan-2025 |
Baptiste Daroussin <bapt@FreeBSD.org> |
pkg: make sure the repositories have at least an url
While here, factorize code to free the repository structure
|