Page MenuHomeFreeBSD

Vendor import of pkgconf 2.9.90
Needs ReviewPublic

Authored by khorben on Thu, Jun 25, 1:02 AM.

Details

Reviewers
emaste
markj
Summary

Obtained from https://github.com/pkgconf/pkgconf/archive/refs/tags/pkgconf-2.9.90.tar.gz

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

AUTHORS                                       |   68 +-
CONTRIBUTING.md                               |  110 ++
COPYING                                       |    3 +-
DCO                                           |   34 +
Kyuafile.in                                   |    5 -
Makefile.am                                   |  465 ++++-
Makefile.lite                                 |   84 +-
NEWS                                          |  141 ++
README.md                                     |   82 +-
autogen.sh                                    |    4 +-
cli/bomtool/main.c                            |  224 ++-
cli/core.c                                    | 1464 ++++++++++++++
cli/core.h                                    |  103 +
cli/getopt_long.c                             |    3 +-
cli/getopt_long.h                             |    2 +
cli/main.c                                    | 1717 ++---------------
cli/renderer-msvc.c                           |  144 +-
cli/renderer-msvc.h                           |    4 +-
cli/spdxtool/core.c                           |  729 +++++++
cli/spdxtool/core.h                           |   77 +
cli/spdxtool/main.c                           |  425 ++++
cli/spdxtool/serialize.c                      |  467 +++++
cli/spdxtool/serialize.h                      |  539 ++++++
cli/spdxtool/simplelicensing.c                |  113 ++
cli/spdxtool/simplelicensing.h                |   36 +
cli/spdxtool/software.c                       |  447 +++++
cli/spdxtool/software.h                       |   37 +
cli/spdxtool/util.c                           |  331 ++++
cli/spdxtool/util.h                           |  130 ++
codecov.yml                                   |    8 +
configure.ac                                  |   43 +-
fuzzer/alloc-inject.c                         |  130 ++
fuzzer/alloc-inject.h                         |   32 +
fuzzer/meson.build                            |   52 +
fuzzer/parser-fuzzer.c                        |  132 ++
fuzzer/solver-corpus/chain                    |  Bin 0 -> 170 bytes
fuzzer/solver-corpus/constraints              |  Bin 0 -> 125 bytes
fuzzer/solver-corpus/cycle                    |  Bin 0 -> 93 bytes
fuzzer/solver-fuzzer.c                        |  186 ++
libpkgconf.pc.in                              |    6 +-
libpkgconf/argvsplit.c                        |   19 +-
libpkgconf/audit.c                            |   28 +-
libpkgconf/bsdstubs.c                         |  174 +-
libpkgconf/bsdstubs.h                         |    4 +
libpkgconf/buffer.c                           |  483 ++++-
libpkgconf/bufferset.c                        |   65 +
libpkgconf/bytecode.c                         |  535 +++++
libpkgconf/cache.c                            |   24 +-
libpkgconf/client.c                           |  141 +-
libpkgconf/config.h.meson                     |    9 +-
libpkgconf/dependency.c                       |  102 +-
libpkgconf/fileio.c                           |  132 +-
libpkgconf/fragment.c                         |  608 +++---
libpkgconf/iter.h                             |    4 +
libpkgconf/libpkgconf.h                       |  419 +++-
libpkgconf/license.c                          |  329 ++++
libpkgconf/output.c                           |  153 ++
libpkgconf/parser.c                           |  183 +-
libpkgconf/path.c                             |  229 ++-
libpkgconf/path.h                             |    9 +
libpkgconf/personality.c                      |  109 +-
libpkgconf/pkg.c                              |  918 ++++-----
libpkgconf/queue.c                            |  113 ++
libpkgconf/stdinc.h                           |   45 +-
libpkgconf/tuple.c                            |  329 +---
libpkgconf/variable.c                         |  162 ++
libpkgconf/version.c                          |  252 +++
libpkgconf/win-dirent.h                       | 1111 ++---------
man/bomtool.1                                 |    7 +
man/pc.5                                      |  120 +-
man/pkgconf.1                                 |   52 +-
man/spdxtool.1                                |  127 ++
meson.build                                   |  253 ++-
meson_options.txt                             |   19 +-
pkg.m4                                        |   21 +-
pkgconf.manifest.in                           |    9 +
pkgconf.rc.in                                 |    2 +
pkgconf.wxs.in                                |   62 +-
t/basic/arbitrary-path.test                   |    3 +
t/basic/builtin-pkg-config-exists.test        |    3 +
.../builtin-pkg-config-pc_path-variable.test  |    5 +
t/basic/builtin-pkgconf-exists.test           |    3 +
t/basic/builtin-pkgconf-pc_path-variable.test |    5 +
t/basic/cflags-shared-static.test             |    4 +
t/basic/cflags-shared.test                    |    4 +
t/basic/define-prefix-child-prefix-env.test   |    5 +
t/basic/define-prefix-child-prefix.test       |    4 +
t/basic/define-prefix.test                    |    4 +
.../direct-query-with-pkg_config_path.test    |    4 +
t/basic/env-tuple.test                        |    5 +
t/basic/exists-cflags-env.test                |    8 +
t/basic/exists-cflags.test                    |    6 +
t/basic/exists-nonexistent.test               |    4 +
...xists-version-greater-than-with-tilde.test |    3 +
t/basic/exists-version-greater-than.test      |    4 +
.../exists-version-less-than-with-tilde.test  |    3 +
t/basic/exists-version-malformed.test         |    4 +
t/basic/exists-version-minimum.test           |    4 +
t/basic/exists-version-with-tilde.test        |    3 +
t/basic/incomplete-cflags.test                |    4 +
t/basic/incomplete-libs.test                  |    4 +
t/basic/keep-system-libs-2.test               |    4 +
t/basic/keep-system-libs.test                 |    6 +
.../libs-cflags-version-multiple-comma.test   |    5 +
t/basic/libs-cflags-version-multiple.test     |    5 +
t/basic/libs-cflags-version-not-provided.test |    6 +
t/basic/libs-cflags-version-not.test          |    5 +
t/basic/libs-cflags-version.test              |    5 +
t/basic/libs-cflags.test                      |    5 +
t/basic/libs-env.test                         |    6 +
t/basic/libs-only.test                        |    4 +
t/basic/libs-shared-static.test               |    4 +
t/basic/libs-shared.test                      |    4 +
t/basic/libs.test                             |    5 +
t/basic/malformed-empty-package.test          |    3 +
t/basic/modversion-fullpath.test              |    3 +
t/basic/modversion-noflatten.test             |    4 +
t/basic/modversion-uninstalled.test           |    4 +
t/basic/modversion-verbose-prefix.test        |    7 +
t/basic/noargs.test                           |    3 +
t/basic/nocflags.test                         |    5 +
t/basic/nolibs.test                           |    5 +
t/basic/pkg-config-path.test                  |    4 +
t/basic/print-variables-env.test              |   12 +
t/basic/requires-shared-static.test           |    4 +
t/basic/requires-shared.test                  |    4 +
t/basic/single-depth-selectors.test           |    5 +
t/basic/static-archive-libs.test              |    4 +
t/basic/uninstalled-not.test                  |    4 +
t/basic/uninstalled.test                      |    4 +
t/basic/utf8-pkg-config-path.test             |    5 +
t/basic/variable-env.test                     |    5 +
t/basic/variable-no-recursion.test            |    4 +
t/basic/variable.test                         |    4 +
t/basic/version-atleast-1.test                |    5 +
t/basic/version-atleast-2.test                |    5 +
t/basic/version-exact-1.test                  |    5 +
t/basic/version-exact-2.test                  |    5 +
t/basic/version-max-1.test                    |    5 +
t/basic/version-max-2.test                    |    5 +
t/link-abi/cxx-leaf-static.test               |    5 +
t/link-abi/cxx-leaf.test                      |    5 +
t/link-abi/default-c.test                     |    5 +
t/link-abi/multi-dedup.test                   |    5 +
t/link-abi/private-requires-shared.test       |    5 +
t/link-abi/private-requires-static.test       |    5 +
t/link-abi/public-requires.test               |    5 +
t/ordering/cflags-never-mergeback.test        |    4 +
t/ordering/cflags-only.test                   |    4 +
t/ordering/flag-order-1.test                  |    4 +
t/ordering/flag-order-2.test                  |    4 +
t/ordering/flag-order-3.test                  |    4 +
t/ordering/flag-order-4.test                  |    4 +
t/ordering/fragment-collision.test            |    4 +
t/ordering/framework-1.test                   |    4 +
t/ordering/framework-2.test                   |    4 +
t/ordering/framework-3.test                   |    4 +
t/ordering/idirafter-munge-ordering.test      |    4 +
t/ordering/idirafter-ordering.test            |    4 +
t/ordering/isystem-munge-ordering.test        |    4 +
t/ordering/libs-never-mergeback.test          |    4 +
t/parser/argv-parse-1.test                    |    4 +
t/parser/argv-parse-2.test                    |    4 +
t/parser/argv-parse-3.test                    |    4 +
t/parser/c-comments-should-warn.test          |    5 +
t/parser/comments-in-fields.test              |    4 +
t/parser/comments.test                        |    4 +
t/parser/dollar-sign-escape-2.test            |    4 +
t/parser/dollar-sign-escape.test              |    4 +
t/parser/dos-lineendings.test                 |    4 +
t/parser/escaped-backslashes-in-output.test   |    5 +
t/parser/fragment-comment.test                |    5 +
t/parser/fragment-escaping-1.test             |    4 +
t/parser/fragment-escaping-2.test             |    4 +
t/parser/fragment-escaping-3.test             |    4 +
t/parser/fragment-groups-composite.test       |    4 +
t/parser/fragment-groups.test                 |    4 +
t/parser/fragment-quoting-2.test              |    4 +
t/parser/fragment-quoting-3.test              |    4 +
t/parser/fragment-quoting-5.test              |    4 +
t/parser/fragment-quoting-7.test              |    4 +
t/parser/fragment-quoting.test                |    4 +
t/parser/fragment-tree.test                   |    8 +
t/parser/framework-with-libs.test             |    4 +
t/parser/malformed-no-newlines.test           |    4 +
t/parser/malformed-quoting.test               |    4 +
t/parser/msvc-fragment-quoting.test           |    6 +
t/parser/msvc-fragment-render-cflags.test     |    6 +
t/parser/multiline-bogus-header.test          |    4 +
t/parser/multiline-field.test                 |    5 +
t/parser/multiline-folding-cflags.test        |    4 +
t/parser/multiline-folding-libs.test          |    4 +
t/parser/no-trailing-newline.test             |    4 +
t/parser/paren-quoting.test                   |    4 +
t/parser/shell-quoted-output.test             |    5 +
t/parser/tilde-quoting-1.test                 |    4 +
t/parser/tilde-quoting-2.test                 |    4 +
.../truncated-files-should-fail-to-parse.test |    4 +
t/parser/tuple-dequote.test                   |    4 +
t/parser/variable-fragment-expansion.test     |    7 +
t/parser/variable-whitespace.test             |    4 +
t/parser/version-with-whitespace-2.test       |    4 +
.../version-with-whitespace-diagnostic.test   |    5 +
t/parser/version-with-whitespace.test         |    4 +
t/personality/dump-personality.test           |    8 +
t/personality/pc-path-var.test                |    5 +
t/personality/pc-system-includedirs.test      |    5 +
t/personality/pc-system-libdirs.test          |    5 +
t/sbom/license-file-bar.test                  |    6 +
t/sbom/license-file-foo.test                  |    4 +
t/sbom/license-isc.test                       |    4 +
t/sbom/license-malformed-token.test           |    5 +
t/sbom/license-noassertion.test               |    6 +
t/sbom/source-tag-bar.test                    |    6 +
t/sbom/source-tag-foo.test                    |    4 +
t/solver/circular-reference-1.test            |    5 +
t/solver/circular-reference-2.test            |    5 +
t/solver/circular-reference-directpc.test     |    3 +
t/solver/compound-foo-metapackage-3.test      |    4 +
t/solver/conflicts-solution-error.test        |    4 +
t/solver/conflicts-solution-ignore.test       |    4 +
...conflicts-solution-is-fine-standalone.test |    4 +
t/solver/depgraph-break-1.test                |    4 +
t/solver/depgraph-break-2.test                |    4 +
t/solver/depgraph-break-3.test                |    4 +
t/solver/libs-intermediary.test               |    4 +
t/solver/libs-metapackage.test                |    4 +
t/solver/libs-static-ordering.test            |    4 +
t/solver/missing-required-dep.test            |    4 +
t/solver/modversion-provides.test             |    4 +
.../private-libs-duplication-digraph.test     |   10 +
t/solver/private-libs-duplication.test        |    4 +
t/solver/provides-bar-any.test                |    4 +
t/solver/provides-bar-versioned-equal.test    |    4 +
...ides-bar-versioned-greater-than-equal.test |    4 +
.../provides-bar-versioned-greater-than.test  |    4 +
...rovides-bar-versioned-less-than-equal.test |    4 +
.../provides-bar-versioned-less-than-new.test |    4 +
.../provides-bar-versioned-less-than-old.test |    4 +
.../provides-bar-versioned-not-equal-old.test |    4 +
.../provides-bar-versioned-not-equal.test     |    4 +
t/solver/provides-foo-any.test                |    4 +
t/solver/provides-foo-versioned-exact.test    |    4 +
...ides-foo-versioned-greater-than-equal.test |    4 +
.../provides-foo-versioned-greater-than.test  |    4 +
...rovides-foo-versioned-less-than-equal.test |    4 +
.../provides-foo-versioned-less-than.test     |    4 +
.../provides-foo-versioned-not-equal.test     |    4 +
...rovides-indirect-dependency-versioned.test |    4 +
t/solver/provides-indirect-dependency.test    |    4 +
t/solver/provides-print-simple.test           |   11 +
.../provides-request-simple-no-provides.test  |    4 +
t/solver/provides-request-simple.test         |    4 +
t/solver/query-no-space-0.test                |    4 +
t/solver/query-no-space-1.test                |    4 +
t/solver/query-order-1.test                   |    4 +
t/solver/query-order-2.test                   |    4 +
t/solver/requires-cflags-libs-private-1.test  |    4 +
t/solver/requires-cflags-libs-private-2.test  |    4 +
t/solver/requires-internal-collision.test     |    4 +
...nternal-missing-nonstatic-cflags-libs.test |    4 +
.../requires-internal-missing-nonstatic.test  |    4 +
...quires-internal-missing-static-cflags.test |    4 +
t/solver/requires-internal-missing.test       |    4 +
t/solver/requires-internal.test               |    4 +
t/solver/requires-libs-cflags.test            |    4 +
t/solver/requires-libs-static-2.test          |    4 +
t/solver/requires-libs-static-pure.test       |    4 +
t/solver/requires-libs-static.test            |    4 +
t/solver/requires-libs.test                   |    4 +
t/solver/requires-private-debounce.test       |    4 +
t/solver/requires-private-missing.test        |    5 +
t/solver/requires-static-cflags.test          |    4 +
t/spdxtool/basic-with-colon.test              |    5 +
t/spdxtool/basic-with-spdx-base-id.test       |    5 +
t/spdxtool/basic.test                         |    5 +
.../define-variable-with-depencency.test      |    5 +
t/spdxtool/define-variable.test               |    5 +
.../meta-package-with-colon-spdx-base-id.test |    5 +
t/spdxtool/meta-package.test                  |    5 +
t/spdxtool/with-dependency.test               |    5 +
.../pcfiledir_symlink_absolute_env1.test      |    9 +
.../pcfiledir_symlink_absolute_env10.test     |   10 +
.../pcfiledir_symlink_absolute_env11.test     |   10 +
.../pcfiledir_symlink_absolute_env12.test     |   10 +
.../pcfiledir_symlink_absolute_env2.test      |    9 +
.../pcfiledir_symlink_absolute_env3.test      |    9 +
.../pcfiledir_symlink_absolute_env4.test      |   10 +
.../pcfiledir_symlink_absolute_env5.test      |   10 +
.../pcfiledir_symlink_absolute_env6.test      |    9 +
.../pcfiledir_symlink_absolute_env7.test      |   10 +
.../pcfiledir_symlink_absolute_env8.test      |   10 +
.../pcfiledir_symlink_absolute_env9.test      |   10 +
.../pcfiledir_symlink_relative_env1.test      |    9 +
.../pcfiledir_symlink_relative_env10.test     |   10 +
.../pcfiledir_symlink_relative_env11.test     |   10 +
.../pcfiledir_symlink_relative_env12.test     |   10 +
.../pcfiledir_symlink_relative_env2.test      |    9 +
.../pcfiledir_symlink_relative_env3.test      |    9 +
.../pcfiledir_symlink_relative_env4.test      |    9 +
.../pcfiledir_symlink_relative_env5.test      |    9 +
.../pcfiledir_symlink_relative_env6.test      |    9 +
.../pcfiledir_symlink_relative_env7.test      |   10 +
.../pcfiledir_symlink_relative_env8.test      |   10 +
.../pcfiledir_symlink_relative_env9.test      |   10 +
t/sysroot/cflags-rewriting.test               |    5 +
t/sysroot/explicit-sysroot.test               |    5 +
t/sysroot/idirafter-munge-sysroot.test        |    6 +
t/sysroot/isystem-munge-sysroot.test          |    6 +
t/sysroot/isystem-sysroot-prefixed.test       |    5 +
t/sysroot/no-pc_sysrootdir-rewriting-2.test   |    5 +
t/sysroot/no-pc_sysrootdir-rewriting-3.test   |    5 +
t/sysroot/no-pc_sysrootdir-rewriting-4.test   |    5 +
t/sysroot/no-pc_sysrootdir-rewriting-5.test   |    5 +
.../no-pc_sysrootdir-rewriting-variable.test  |    5 +
t/sysroot/path-segment-awareness.test         |    5 +
...ewriting-when-sysroot-dir-is-root-dir.test |    5 +
...defined-pc_sysrootdir-should-be-empty.test |    5 +
...ewriting-fdo-rules-with-pc_sysrootdir.test |    6 +
.../uninstalled-rewriting-fdo-rules.test      |    6 +
...uninstalled-rewriting-pkgconf-1-rules.test |    6 +
t/sysroot/uninstalled-rewriting.test          |    5 +
t/sysroot/variable-rewriting-1.test           |    5 +
t/sysroot/variable-rewriting-2.test           |    5 +
t/tuple/billion-laughs.test                   |    5 +
t/tuple/case-sensitivity-1.test               |    4 +
t/tuple/case-sensitivity-2.test               |    4 +
t/tuple/define-variable-override.test         |    5 +
t/tuple/define-variable.test                  |    5 +
t/tuple/duplicate-upsert.test                 |    4 +
t/tuple/empty-tuple.test                      |    5 +
tests/Kyuafile.in                             |   14 -
tests/api/test-api.h                          |  186 ++
tests/api/test-audit.c                        |  171 ++
tests/api/test-buffer.c                       |  417 ++++
tests/api/test-bytecode.c                     |  643 ++++++
tests/api/test-client.c                       |  334 ++++
tests/api/test-dependency.c                   |  551 ++++++
tests/api/test-fileio.c                       |  236 +++
tests/api/test-fragment.c                     |  376 ++++
tests/api/test-license.c                      |  311 +++
tests/api/test-path-utils.c                   |  119 ++
tests/api/test-tuple.c                        |  258 +++
tests/api/test-variable.c                     |  247 +++
tests/basic.sh                                |  391 ----
tests/builtins.sh                             |   68 -
tests/conflicts.sh                            |   23 -
tests/framework.sh                            |   20 -
tests/lib-sbom-files/basic-spdx-base-id.json  |   90 +
tests/lib-sbom-files/basic-use-uri.json       |   90 +
tests/lib-sbom-files/basic.json               |   90 +
tests/lib-sbom-files/define_variable.json     |   90 +
.../define_variable_with_dependency.json      |  162 ++
.../meta_package-use-uri-spdx-base-id.json    |  544 ++++++
tests/lib-sbom-files/meta_package.json        |  544 ++++++
tests/lib-sbom-files/with_dependency.json     |  162 ++
tests/lib-sbom/meta_package.pc                |   12 +
tests/lib-sbom/test1.pc                       |    6 +
tests/lib-sbom/test2.pc                       |    7 +
tests/lib-sbom/test3.pc                       |    8 +
tests/lib-sbom/test4.pc                       |    8 +
tests/lib-sbom/test5.pc                       |    7 +
tests/lib-sbom/test6.pc                       |    7 +
tests/lib-sbom/variable-test1.pc              |    7 +
tests/lib-sbom/variable-test2.pc              |    7 +
tests/lib1/c-comment.pc                       |    1 +
tests/lib1/cflags-shared-test.pc              |   12 +
tests/lib1/dollar-sign-escape-2.pc            |    7 +
tests/lib1/dollar-sign-escape.pc              |    7 +
tests/lib1/duplicate-tuple.pc                 |    6 +
tests/lib1/flag-whitespace-2.pc               |    5 +
tests/lib1/flag-whitespace.pc                 |    5 +
tests/lib1/foo.pc                             |    2 +
tests/lib1/foobar.pc                          |    1 +
tests/lib1/fragment-group-c.pc                |    2 +-
tests/lib1/framework-with-libs.pc             |    4 +
tests/lib1/idirafter-ordering.pc              |    2 +-
tests/lib1/isystem-sysroot-prefixed.pc        |    4 +
tests/lib1/libs-shared-test.pc                |   10 +
tests/lib1/license-malformed.pc               |   10 +
tests/lib1/link-abi-cxx.pc                    |    5 +
tests/lib1/link-abi-multi.pc                  |    5 +
tests/lib1/link-abi-plainc.pc                 |    4 +
tests/lib1/link-abi-private.pc                |    5 +
tests/lib1/link-abi-public.pc                 |    5 +
tests/lib1/multiline-folding.pc               |    9 +
tests/lib1/requires-shared-dep.pc             |   10 +
tests/lib1/requires-shared.pc                 |   11 +
.../lib/pkgconfig/utf8.pc"                    |    0
tests/lib1/variable-fragment-expansion.pc     |    7 +
tests/meson.build                             |   23 -
tests/parser.sh                               |  372 ----
.../i386-linux-gnu.personality                |    4 +
tests/provides.sh                             |  310 ---
tests/regress.sh                              |  354 ----
tests/requires.sh                             |  176 --
tests/symlink.sh                              |  122 --
tests/sysroot.sh                              |  110 --
tests/test-runner.c                           | 1576 +++++++++++++++
tests/test_env.sh.in                          |   50 -
tests/version.sh                              |   38 -
tests/win-shim.h                              |   57 +
402 files changed, 20404 insertions(+), 6341 deletions(-)
Test Plan

Import into the base system and test there:

  • Building software with pkg-config(1)
  • Generating SBOMs with bomtool(1) and spdxtool(1)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

khorben added reviewers: emaste, markj.

Removed a test folder in tests/lib1 which broke the generation of source packages (UTF-8).