Commit Graph

33 Commits

Author SHA1 Message Date
jmmv
285456ed54 Fix bundling of the atf version into pkgconfig files and atf-version.
Sigh; one more attempt.  This time I'm sure I've verified that the
.pc files contain the right number and that atf-version also outputs
the right stuff...  Both with a clean and non-clean obj directory.

Should fix part of the problems reported in PR bin/48624.
2014-03-02 22:50:13 +00:00
jmmv
752fe084c0 Fix the bundling of the version number in built files.
Yes, attempting yet another fix at this so that the version number that
gets recorded in the pkgconfig files and inside atf-version really matches
the latest imported version.  Should resolve issues where the built files
get stuck with an older version number during update builds.

This time, I'm trying the same approach I applied in the FreeBSD source
tree, which has been working fine so far across various release imports.
2014-02-15 04:19:46 +00:00
jmmv
a38e0b43c5 Homogenize reachover build file structure with that of kyua-cli:
- Move the majority of the common build definitions to the top-level
  Makefile.inc and ensure this gets included everywhere.
- Move the bconfig.h file to the top-level directory.
- Add a statically-generated defs.h file instead of creating one
  during the build.  Easier to understand and less chances for things
  to go wrong.
- Make sure all files using ATF_VERSION have the right dependency to
  trigger a rebuild when the value changes.
- Clean up stale -I flags.

This is all mostly for simplicity reasons and to reduce the cognitive
load required to understand the build of the atf and kyua-* packages.

I have tested this with both MKKYUA=no/yes and non-clean/clean builds
so hopefully I got the details right.  But if not, let me know please.
2014-02-12 04:08:31 +00:00
jmmv
fd47ea3b40 Stop using bconfig.h in the tools code.
Just assume the code is being built for NetBSD for simplicity reasons.
2014-02-11 17:28:20 +00:00
jmmv
ad23a81712 Remove defs.hpp.
Because we now own the 'tools' subdirectory in the tree, we can yank some
of the upstream autoconf-related complexity.  Start doing so by removing
defs.hpp and using the real compiler attributes where necessary.
2014-02-11 16:31:38 +00:00
jmmv
25347c603f Update reachover build files for atf-0.20. 2014-02-11 16:11:28 +00:00
jmmv
fd82d5173d Update for atf 0.19. 2014-02-09 14:02:39 +00:00
jmmv
152d2ecbea Adjust reachover Makefiles for atf-0.19.
The main change here is that the atf-config, atf-report, atf-run and
atf-version tools no longer depend on libatf-c nor libatf-c++.  Instead,
they depend on an internal libtools.a that contains code specifically
for these tools and nothing else, making them self-contained.
2014-02-08 19:15:33 +00:00
joerg
36a6d19157 Handle dependency on libstdc++ / libc++ in bsd.lib.mk. 2013-09-12 17:14:20 +00:00
jmmv
29a902d3bf Deduce the version number to encode in pkgconfig files by getting it from
bconfig.h.  Also make the build of these files depends on bconfig.h itself.

This should fix once and for all the problems of the
atf/atf-{c,c++}/pkg_config_test:version tests breaking because the
pkgconfig files hold an old version number during update builds.
2013-03-14 07:10:05 +00:00
jmmv
2ff3d6baf3 Fix atf version in pkgconfig files (should be 0.17).
Keeping these files up to date with every new import is too easy to get
wrong.  Would be nice if we'd extract the version number in some other
manner, like from lib/libatf-c/bconfig.h.

Found by martin@.
2013-02-19 15:35:42 +00:00
jmmv
a9d87426d0 Update reachover Makefiles for atf 0.17. 2013-02-15 17:08:34 +00:00
abs
e1e1c8c184 Check for ${HAVE_GCC} and pick the right path to stdc++ 2012-07-15 00:05:51 +00:00
christos
b48e242cbc depend on more libraries 2012-07-12 22:15:29 +00:00
christos
a931a66df8 Properly include dependent library, unbreaks objdir build. 2012-07-12 16:15:40 +00:00
jmmv
5b0d95a977 Update reachover Makefiles for atf 0.16.
As part of this change (and as done upstream and in various packaging
systems), start shipping shared libraries of both libatf-c and libatf-c++.
2012-07-11 22:40:16 +00:00
jmmv
5436766ad5 Update reachover build files and scripts to deal with the just-imported
atf 0.15.
2012-01-16 22:42:40 +00:00
joerg
ba0add90b0 Disable noreturn checks for remaining external code 2011-09-16 16:41:20 +00:00
jmmv
1a674c628c Update reachover build files for atf-0.14. 2011-06-14 15:27:11 +00:00
christos
7267577190 turn on printf warnings for all the printf-like atf functions. 2011-06-11 18:03:57 +00:00
jmmv
8f2e7abf72 Set LIBISCXX=yes; from joerg@. 2011-04-05 16:37:06 +00:00
jmmv
914575b7d1 Adjust reachover build files with the import of atf-0.13. 2011-03-31 16:45:44 +00:00
jmmv
a3b86068ff Fix the values of atf_arch and atf_machine: the former is supposed to be
the cpu name and the latter the port name.  They had been reversed until
now due to some "smart" stupidity^Wlogic in the upstream configure script,
which is now gone.

This is a pullup of revision f9329ca68da7e8557e0803b5747a12f8c10b1258
plus the corresponding reachover build changes.

Addresses PR bin/44305.
2011-02-20 20:56:34 +00:00
jmmv
4d916cb08c Set DPADD to point to the static versions of libatf-c and libatf-c++ as
appropriate.
2011-02-20 20:18:56 +00:00
jmmv
773d35b30a Add missing DPADD on libatf-c.a. Spotted by Garrett Cooper. 2011-02-06 19:34:20 +00:00
jmmv
3b8333d3c0 Adjust reachover build files after import of atf-0.12. 2010-11-07 17:46:45 +00:00
jmmv
41e4dfff04 Adjust reachover makefiles for atf 0.11. 2010-10-20 09:20:09 +00:00
jmmv
b8cf2cafb0 Update reachover makefiles for atf 0.10. 2010-07-03 08:14:11 +00:00
jmmv
bd35535074 Adjust reachover makefiles for atf 0.9. 2010-06-04 08:33:40 +00:00
jmmv
ac02bdbd72 Update reachover Makefiles for atf 0.8. 2010-05-08 08:12:33 +00:00
jmmv
8fd5b13660 Update build files to match atf 0.7. 2009-12-22 13:38:10 +00:00
christos
744913a534 fix defs.h building. 2009-01-26 16:30:14 +00:00
jmmv
36b1da6c51 Add reachover Makefiles to build ATF 0.6. These replace the old Makefiles
that were spread all around the tree when ATF lived in dist/atf.
2009-01-19 07:13:03 +00:00