CVS log for pkgsrc/mk/pkgformat/pkg/depends.mk
Up to [cvs.NetBSD.org] / pkgsrc / mk / pkgformat / pkg
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.24: 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.23: preferred, colored
Changes since revision 1.23: +17 -14
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.23: download - view: text, markup, annotated - select for diffs
Fri Oct 4 07:45:59 2024 UTC (2 years, 1 month ago) by jperkin
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -7
lines
mk: Remove superfluous resolve-dependencies args.
These are never used, never have been, and have just ended up being added to
over time unnecessarily.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Fri Apr 12 19:57:34 2024 UTC (2 years, 7 months ago) by riastradh
Branches: MAIN
CVS tags: pkgsrc-2024Q3-base,
pkgsrc-2024Q3,
pkgsrc-2024Q2-base,
pkgsrc-2024Q2
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +16 -5
lines
mk/pkgformat/pkg: When updating pkg_install, don't cross-build it.
Also clear the same variables that are cleared on recursive package
builds to avoid leakage. Generally, make this all better match the
logic in DEPENDS_INSTALL_CMD.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Fri Apr 12 19:55:29 2024 UTC (2 years, 7 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +8 -6
lines
mk/pkgformat/pkg: Handle OBJECT_FMT mismatch in cross builds.
No change to native builds because OBJECT_FMT = NATIVE_OBJECT_FMT in
native builds.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Apr 12 19:54:44 2024 UTC (2 years, 7 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +13 -7
lines
mk: Pass through all CROSSVARS as TARGET_* for tool depends.
Use this for cross-libtool-base.
Name it cross-libtool-base-${MACHINE_PLATFORM} instead of
cross-libtool-base-${MACHINE_ARCH}. MACHINE_GNU_PLATFORM isn't quite
enough, because it doesn't reflect OS versions (e.g., aarch64--netbsd
covers both NetBSD 9 and NetBSD 10).
No functional change intended in native builds -- everything here is
conditional on cross builds. The _DEPENDS_INSTALL_CMD shell fragment
is changed in native builds, but only to move around some of the
shell-based cross-build fragments (which could maybe be factored out
to save a bit of shell execution in native builds, but that's for
another day).
XXX MACHINE_PLATFORM doesn't cover all the other little exotic OS
knobs like LOWER_OPSYS_VERSUFFIX. Do we care?
Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Mar 31 13:41:23 2024 UTC (2 years, 7 months ago) by js
Branches: MAIN
CVS tags: pkgsrc-2024Q1-base,
pkgsrc-2024Q1
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -3
lines
mk/pkgformat/pkg/depends.mk: Fix installing dependencies on QNX
Revision 1.18: download - view: text, markup, annotated - select for diffs
Fri Mar 31 10:50:26 2023 UTC (3 years, 7 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2023Q4-base,
pkgsrc-2023Q4,
pkgsrc-2023Q3-base,
pkgsrc-2023Q3,
pkgsrc-2023Q2-base,
pkgsrc-2023Q2
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -2
lines
depends.mk: PATH must be quoted
Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Mar 30 22:51:23 2023 UTC (3 years, 7 months ago) by joerg
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +4 -2
lines
Drop environment when pulling in dependencies. This fixes test-depends.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Nov 23 11:17:51 2022 UTC (3 years, 11 months ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2023Q1-base,
pkgsrc-2023Q1,
pkgsrc-2022Q4-base,
pkgsrc-2022Q4
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +9 -10
lines
mk: pkgformat performance improvements.
Inline ${RUN} calls where appropriate. Only call mkdir when necessary.
Remove useless use of cat(1). Avoid unnecessary expr(1). Use bmake
loop expansion. Avoid unnecessary temporary files.
Saves around 50 execs per build.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Mar 28 10:49:12 2022 UTC (4 years, 7 months ago) by tnn
Branches: MAIN
CVS tags: pkgsrc-2022Q3-base,
pkgsrc-2022Q3,
pkgsrc-2022Q2-base,
pkgsrc-2022Q2,
pkgsrc-2022Q1-base,
pkgsrc-2022Q1
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +0 -2
lines
mk: revert local change
Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Mar 28 10:45:22 2022 UTC (4 years, 7 months ago) by tnn
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -1
lines
m*/*: revbump(1) for libsndfile
Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Apr 6 18:46:06 2021 UTC (5 years, 7 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2021Q4-base,
pkgsrc-2021Q4,
pkgsrc-2021Q3-base,
pkgsrc-2021Q3,
pkgsrc-2021Q2-base,
pkgsrc-2021Q2
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +8 -6
lines
Preserve stdin for the bootstrap and dependency handling like done for
normal dependencies.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Dec 2 10:22:39 2020 UTC (5 years, 11 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2021Q1-base,
pkgsrc-2021Q1,
pkgsrc-2020Q4-base,
pkgsrc-2020Q4
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +5 -1
lines
*: move default database directory from /var/db/pkg to ${PREFIX}/pkgdb
As discussed in August 2020 and previously on pkgsrcCon 2019.
Ok pkgsrc-pmc@
Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Jan 14 22:22:34 2020 UTC (6 years, 10 months ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2020Q3-base,
pkgsrc-2020Q3,
pkgsrc-2020Q2-base,
pkgsrc-2020Q2,
pkgsrc-2020Q1-base,
pkgsrc-2020Q1
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -2
lines
mk/pkgformat: fix documentation
Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Jan 14 22:21:19 2020 UTC (6 years, 10 months ago) by rillig
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -2
lines
mk/pkgformat: fix documentation
Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Apr 3 18:38:16 2019 UTC (7 years, 7 months ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2019Q4-base,
pkgsrc-2019Q4,
pkgsrc-2019Q3-base,
pkgsrc-2019Q3,
pkgsrc-2019Q2-base,
pkgsrc-2019Q2
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +6 -1
lines
mk/pkgformat: add show-all-depends target
Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Jan 25 00:34:27 2018 UTC (8 years, 9 months ago) by joerg
Branches: MAIN
CVS tags: 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
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2
lines
Don't include TEST_DEPENDS in the normal dependency reduction run.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Jan 14 10:47:43 2018 UTC (8 years, 10 months ago) by joerg
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2
lines
Add missing empty TEST_DEPENDS for the bootstrap case.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Jan 13 12:48:57 2018 UTC (8 years, 10 months ago) by joerg
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +46 -6
lines
Introduce TEST_DEPENDS.
Place them in ALL_DEPENDS iff PKGSRC_RUN_TESTS is set, so that bulk
builds will pick them up.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Jul 18 09:57:10 2016 UTC (10 years, 4 months ago) by leot
Branches: MAIN
CVS tags: 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
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2
lines
Fix a typo in a comment
Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Mar 8 11:46:14 2014 UTC (12 years, 8 months ago) by obache
Branches: MAIN
CVS tags: 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
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -4
lines
Clean up target file if failed.
fixes PR pkg/48294.
Revision 1.3: 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-2013Q4-base,
pkgsrc-2013Q4,
pkgsrc-2013Q3-base,
pkgsrc-2013Q3,
pkgsrc-2013Q2-base,
pkgsrc-2013Q2
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +53 -10
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.6.1: 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: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +15 -2
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.2: 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
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +15 -2
lines
Expand the list of full dependencies, so that the shared library check
can work without further calls for indirect full dependencies.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Oct 15 00:23:09 2011 UTC (15 years, 1 month ago) by reed
Branches: MAIN
CVS tags: pkgsrc-2012Q2-base,
pkgsrc-2012Q1-base,
pkgsrc-2012Q1,
pkgsrc-2011Q4-base,
pkgsrc-2011Q4
Branch point for: pkgsrc-2012Q2
Rename "flavor" to "pkgformat".
This is from Anton Panev's GSoC 2011 project to add RPM and DPKG
support to pkgsrc. (I am not adding that further support in this
commit.)
This is just a rename of the existing functionality. Now it will
be easy to test the GSoC work by simply putting in a single
directory (such as "rpm" or "deb"). See
http://addpackageforma.sourceforge.net/ for some details.
This is from Anton's CVS, but I made some minor changes:
- changed plural pkgformats to singular pkgformat (to be consistent)
- fixed a few places (in comments) that were missed
- catch up on some additions to flavor not in the pkgforma cvs:
PKGSRC_SETENV and _flavor-destdir-undo-replace and
undo-destdir-replace-install.
CVSweb <webmaster@jp.NetBSD.org>