* [PATCH 0/4] fstests: GDBM detection cleanup
@ 2018-03-15 21:53 jeffm
0 siblings, 0 replies; 3+ messages in thread
From: jeffm @ 2018-03-15 21:53 UTC (permalink / raw)
To: xfstests list; +Cc: Jeff Mahoney, Luis Rodriguez, Eryu Guan
From: Jeff Mahoney <jeffm@suse.com>
Commit 2353022 (build: update AC_PACKAGE_WANT_GDBM() and src/dbtest.c
to build) fixed building on newer SUSE systems but broke older ones. Where
we used to skip building src/dbtest on SLES systems, now we'd fail
to build on SLES11. The reason was that we were now detecting
ndbm.h but also including gdbm.h, which doesn't work on older systems due
to both defining the datum type. It turns out that no system needs
gdbm.h at all.
This series cleans up the macros and fixes detection for all systems that
only have /usr/include/ndbm.h.
-Jeff
---
Jeff Mahoney (4):
build: remove dead AC_PACKAGE_WANT_NDBM macro
build: AC_PACKAGE_WANT_GDBM, fall back to compat if libgdbm detection
fails
build: clean up AC_PACKAGE_WANT_GDBM
build: fix <ndbm.h> detection in AC_PACKAGE_WANT_GDBM
m4/package_gdbmdev.m4 | 104 ++++++++++++++++++++++----------------------------
src/dbtest.c | 3 --
2 files changed, 46 insertions(+), 61 deletions(-)
--
2.15.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 0/4] fstests: GDBM detection cleanup
@ 2018-03-15 21:54 jeffm
2018-03-23 3:30 ` Eryu Guan
0 siblings, 1 reply; 3+ messages in thread
From: jeffm @ 2018-03-15 21:54 UTC (permalink / raw)
To: xfstests list; +Cc: Luis Rodriguez, Eryu Guan, Jeff Mahoney
From: Jeff Mahoney <jeffm@suse.com>
Commit 2353022 (build: update AC_PACKAGE_WANT_GDBM() and src/dbtest.c
to build) fixed building on newer SUSE systems but broke older ones. Where
we used to skip building src/dbtest on SLES systems, now we'd fail
to build on SLES11. The reason was that we were now detecting
ndbm.h but also including gdbm.h, which doesn't work on older systems due
to both defining the datum type. It turns out that no system needs
gdbm.h at all.
This series cleans up the macros and fixes detection for all systems that
only have /usr/include/ndbm.h.
-Jeff
---
Jeff Mahoney (4):
build: remove dead AC_PACKAGE_WANT_NDBM macro
build: AC_PACKAGE_WANT_GDBM, fall back to compat if libgdbm detection
fails
build: clean up AC_PACKAGE_WANT_GDBM
build: fix <ndbm.h> detection in AC_PACKAGE_WANT_GDBM
m4/package_gdbmdev.m4 | 104 ++++++++++++++++++++++----------------------------
src/dbtest.c | 3 --
2 files changed, 46 insertions(+), 61 deletions(-)
--
2.15.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 0/4] fstests: GDBM detection cleanup
2018-03-15 21:54 jeffm
@ 2018-03-23 3:30 ` Eryu Guan
0 siblings, 0 replies; 3+ messages in thread
From: Eryu Guan @ 2018-03-23 3:30 UTC (permalink / raw)
To: jeffm; +Cc: xfstests list, Luis Rodriguez
On Thu, Mar 15, 2018 at 05:54:51PM -0400, jeffm@suse.com wrote:
> From: Jeff Mahoney <jeffm@suse.com>
>
> Commit 2353022 (build: update AC_PACKAGE_WANT_GDBM() and src/dbtest.c
> to build) fixed building on newer SUSE systems but broke older ones. Where
> we used to skip building src/dbtest on SLES systems, now we'd fail
> to build on SLES11. The reason was that we were now detecting
> ndbm.h but also including gdbm.h, which doesn't work on older systems due
> to both defining the datum type. It turns out that no system needs
> gdbm.h at all.
>
> This series cleans up the macros and fixes detection for all systems that
> only have /usr/include/ndbm.h.
Thanks for the fixes and cleanups! I tested them on Fedora 27, RHEL7 and
Debian stretch, with/without gdbm devel package installed, all worked
fine. But I don't have SUSE systems by hand, I assume you've tested them
successfully.
Thanks,
Eryu
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-03-23 3:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-15 21:53 [PATCH 0/4] fstests: GDBM detection cleanup jeffm
-- strict thread matches above, loose matches on Subject: below --
2018-03-15 21:54 jeffm
2018-03-23 3:30 ` Eryu Guan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox