The NetBSD Project

CVS log for pkgsrc/mk/pkgformat/pkg/reduce-resolved-depends.awk

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / mk / pkgformat / pkg

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Oct 11 08:24:48 2024 UTC (2 years, 1 month ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3, pkgsrc-2026Q2-base, pkgsrc-2026Q2, pkgsrc-2026Q1-base, pkgsrc-2026Q1, pkgsrc-2025Q4-base, pkgsrc-2025Q4, pkgsrc-2025Q3-base, pkgsrc-2025Q3, pkgsrc-2025Q2-base, pkgsrc-2025Q2, pkgsrc-2025Q1-base, pkgsrc-2025Q1, pkgsrc-2024Q4-base, pkgsrc-2024Q4, HEAD
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +17 -1 lines
mk: Add support for stricter USE_INDIRECT_DEPENDS.

The current and historical behaviour is that the BUILDLINK_DEPMETHOD for
a package defaults to "full", regardless of what any parent package that
included it has set for its BUILDLINK_DEPMETHOD.  In addition, only
direct dependencies and indirect "build" dependencies are logged as
dependencies in the files that are used for check-shlibs verification
and package dependency metadata for pkg_install.  Any indirect "full"
dependency is ignored.

This combination of factors can lead to a broken package being produced.
A package may end up linking against a pkgsrc library, but because it is
an indirect dependency, and because indirect "full" dependencies are not
registered, check-shlibs will have no knowledge of it and has to assume
that it is correct.  This situation will occur if any packages that are
a parent dependency of the required library have set BUILDLINK_DEPMETHOD
to "build".

To mitigate this problem, a more accurate algorithm is implemented to
calculate BUILDLINK_DEFAULT_DEPMETHOD for each package based on the
setting of its parent(s), rather than simply defaulting to "full".  If
USE_INDIRECT_DEPENDS is enabled, then the output of this algorithm is
used, and both "build" and "full" indirect dependencies are calculated
and added to the dependency metadata files.  check-shlibs can then use
this extra information to issue an error if a library is found to belong
to an indirect build dependency.

Unfortunately due to buildlink3.mk inclusion guards, we cannot currently
guarantee that the BUILDLINK_DEFAULT_DEPMETHOD setting for each package
is 100% accurate, and so there may be the occasional false positive when
USE_INDIRECT_DEPENDS is enabled.  For this reason it is currently not
enabled by default, but it is strongly recommended that developers, and
especially anyone producing public binary packages, enable it.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu May 9 23:37:26 2013 UTC (13 years, 6 months ago) by riastradh
Branches: MAIN
CVS tags: pkgsrc-2024Q3-base, pkgsrc-2024Q3, pkgsrc-2024Q2-base, pkgsrc-2024Q2, pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +37 -9 lines
Split BUILD_DEPENDS into TOOL_DEPENDS and BUILD_DEPENDS in mk/.

Build depends are target packages that are needed at build-time for,
e.g., static libraries to link against, header files to include, &c.
Tool depends are native packages that are needed at build-time for,
e.g., compilers/linkers/&c. to run.

ok agc

Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Tue Jul 3 23:24:24 2012 UTC (14 years, 4 months ago) by tron
Branches: pkgsrc-2012Q2
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.1: +121 -0 lines
Pullup ticket #3846 - requested by joerg
mk: improve shared library check

Revisions pulled up:
- mk/check/check-shlibs.mk                                      1.21
- mk/pkgformat/pkg/depends.mk                                   1.2
- mk/pkgformat/pkg/reduce-resolved-depends.awk                  1.1

---
   Module Name:	pkgsrc
   Committed By:	joerg
   Date:		Mon Jul  2 14:53:13 UTC 2012

   Modified Files:
   	pkgsrc/mk/check: check-shlibs.mk
   	pkgsrc/mk/pkgformat/pkg: depends.mk
   Added Files:
   	pkgsrc/mk/pkgformat/pkg: reduce-resolved-depends.awk

   Log Message:
   Expand the list of full dependencies, so that the shared library check
   can work without further calls for indirect full dependencies.

Revision 1.1.2.1
Mon Jul 2 14:53:13 2012 UTC (14 years, 4 months ago) by tron
Branches: pkgsrc-2012Q2
FILE REMOVED
Changes since revision 1.1: +0 -121 lines
file reduce-resolved-depends.awk was added on branch pkgsrc-2012Q2 on 2012-07-03 23:24:24 +0000

Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Jul 2 14:53:13 2012 UTC (14 years, 4 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3
Branch point for: pkgsrc-2012Q2
Expand the list of full dependencies, so that the shared library check
can work without further calls for indirect full dependencies.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>