diff options
author | Olliver Schinagl <oliver@schinagl.nl> | 2019-04-12 08:22:39 +0200 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-04-19 20:59:00 +0000 |
commit | 9a92e00856b85bd22f1bd0c51a7c5827d77617eb (patch) | |
tree | 2db0ae46efcf6e644e72a98ea80d183a95c42278 /community/mtd-utils/0003-unittests-Define-the-use-of-_GNU_SOURCE.patch | |
parent | 6c10903577dc6c9b9768ba62c54701b1abd7c2c5 (diff) | |
download | aports-9a92e00856b85bd22f1bd0c51a7c5827d77617eb.tar.bz2 aports-9a92e00856b85bd22f1bd0c51a7c5827d77617eb.tar.xz |
community/mtd-utils: Version bump to 2.1.0
2.1.0 was released 4 weeks ago, so lets bump the version while we're
here.
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Diffstat (limited to 'community/mtd-utils/0003-unittests-Define-the-use-of-_GNU_SOURCE.patch')
-rw-r--r-- | community/mtd-utils/0003-unittests-Define-the-use-of-_GNU_SOURCE.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/community/mtd-utils/0003-unittests-Define-the-use-of-_GNU_SOURCE.patch b/community/mtd-utils/0003-unittests-Define-the-use-of-_GNU_SOURCE.patch new file mode 100644 index 0000000000..b795317889 --- /dev/null +++ b/community/mtd-utils/0003-unittests-Define-the-use-of-_GNU_SOURCE.patch @@ -0,0 +1,29 @@ +From 3022a9900380b4547d158ce3cca59b71b5a32780 Mon Sep 17 00:00:00 2001 +From: Olliver Schinagl <oliver@schinagl.nl> +Date: Mon, 15 Apr 2019 09:50:22 +0200 +Subject: [PATCH 3/3] unittests: Define the use of _GNU_SOURCE + +The unittest suite actually makes use of some _GNU extensions during the +build (loff_t for example). So lets enable this in the makefile. + +Signed-off-by: Olliver Schinagl <oliver@schinagl.nl> +--- + tests/unittests/Makemodule.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/unittests/Makemodule.am b/tests/unittests/Makemodule.am +index b7ae575..df1041d 100644 +--- a/tests/unittests/Makemodule.am ++++ b/tests/unittests/Makemodule.am +@@ -6,7 +6,7 @@ ubilib_test_CPPFLAGS = -O0 --std=gnu99 $(CMOCKA_CFLAGS) -I$(top_srcdir)/include + mtdlib_test_SOURCES = tests/unittests/libmtd_test.c lib/libmtd.c lib/libmtd_legacy.c + mtdlib_test_LDADD = $(CMOCKA_LIBS) + mtdlib_test_LDFLAGS = -Wl,--wrap=open -Wl,--wrap=close -Wl,--wrap=ioctl -Wl,--wrap=read -Wl,--wrap=lseek -Wl,--wrap=write +-mtdlib_test_CPPFLAGS = -O0 --std=gnu99 $(CMOCKA_CFLAGS) -I$(top_srcdir)/lib/ -I$(top_srcdir)/include -DSYSFS_ROOT='"$(top_srcdir)/tests/unittests/sysfs_mock"' ++mtdlib_test_CPPFLAGS = -O0 -D_GNU_SOURCE --std=gnu99 $(CMOCKA_CFLAGS) -I$(top_srcdir)/lib/ -I$(top_srcdir)/include -DSYSFS_ROOT='"$(top_srcdir)/tests/unittests/sysfs_mock"' + + TEST_BINS = \ + ubilib_test \ +-- +2.20.1 + |