diff options
| -rw-r--r-- | meta-filesystems/recipes-filesystems/owfs/owfs/0001-Fix-compilation-with-GCC10.patch | 44 | ||||
| -rw-r--r-- | meta-filesystems/recipes-filesystems/owfs/owfs_3.2p3.bb | 1 |
2 files changed, 45 insertions, 0 deletions
diff --git a/meta-filesystems/recipes-filesystems/owfs/owfs/0001-Fix-compilation-with-GCC10.patch b/meta-filesystems/recipes-filesystems/owfs/owfs/0001-Fix-compilation-with-GCC10.patch new file mode 100644 index 0000000000..6426ecb247 --- /dev/null +++ b/meta-filesystems/recipes-filesystems/owfs/owfs/0001-Fix-compilation-with-GCC10.patch | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | From a812202d22a2861318b8e39f1cd74cd222f8e76f Mon Sep 17 00:00:00 2001 | ||
| 2 | From: "Azamat H. Hackimov" <azamat.hackimov@gmail.com> | ||
| 3 | Date: Tue, 9 Jun 2020 11:30:38 +0300 | ||
| 4 | Subject: [PATCH] Fix compilation with GCC10 | ||
| 5 | |||
| 6 | Fixed compilation with -fno-common, which enabled in GCC 10 by default. | ||
| 7 | See https://bugs.gentoo.org/707438. | ||
| 8 | |||
| 9 | Upstream-Status: Backport [https://github.com/owfs/owfs/pull/62] | ||
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 11 | --- | ||
| 12 | module/owserver/src/c/owserver.c | 2 ++ | ||
| 13 | module/owserver/src/include/owserver.h | 2 +- | ||
| 14 | 2 files changed, 3 insertions(+), 1 deletion(-) | ||
| 15 | |||
| 16 | diff --git a/module/owserver/src/c/owserver.c b/module/owserver/src/c/owserver.c | ||
| 17 | index db29988e..2ed29161 100644 | ||
| 18 | --- a/module/owserver/src/c/owserver.c | ||
| 19 | +++ b/module/owserver/src/c/owserver.c | ||
| 20 | @@ -36,6 +36,8 @@ | ||
| 21 | |||
| 22 | #include "owserver.h" | ||
| 23 | |||
| 24 | +pthread_mutex_t persistence_mutex ; | ||
| 25 | + | ||
| 26 | /* --- Prototypes ------------ */ | ||
| 27 | static void SetupAntiloop(int argc, char **argv); | ||
| 28 | |||
| 29 | diff --git a/module/owserver/src/include/owserver.h b/module/owserver/src/include/owserver.h | ||
| 30 | index 8be582f0..a257ed02 100644 | ||
| 31 | --- a/module/owserver/src/include/owserver.h | ||
| 32 | +++ b/module/owserver/src/include/owserver.h | ||
| 33 | @@ -18,7 +18,7 @@ | ||
| 34 | #include "ow.h" | ||
| 35 | #include "ow_connection.h" | ||
| 36 | |||
| 37 | -pthread_mutex_t persistence_mutex ; | ||
| 38 | +extern pthread_mutex_t persistence_mutex ; | ||
| 39 | #define PERSISTENCELOCK _MUTEX_LOCK( persistence_mutex ) ; | ||
| 40 | #define PERSISTENCEUNLOCK _MUTEX_UNLOCK( persistence_mutex ) ; | ||
| 41 | |||
| 42 | -- | ||
| 43 | 2.28.0 | ||
| 44 | |||
diff --git a/meta-filesystems/recipes-filesystems/owfs/owfs_3.2p3.bb b/meta-filesystems/recipes-filesystems/owfs/owfs_3.2p3.bb index 414084449f..7f56c88fcc 100644 --- a/meta-filesystems/recipes-filesystems/owfs/owfs_3.2p3.bb +++ b/meta-filesystems/recipes-filesystems/owfs/owfs_3.2p3.bb | |||
| @@ -12,6 +12,7 @@ DEPENDS = "fuse virtual/libusb0" | |||
| 12 | SRCREV = "3744375dfaa350e31c9b360eb1e1a517bbeb5c47" | 12 | SRCREV = "3744375dfaa350e31c9b360eb1e1a517bbeb5c47" |
| 13 | SRC_URI = "git://github.com/owfs/owfs \ | 13 | SRC_URI = "git://github.com/owfs/owfs \ |
| 14 | file://0001-Add-build-rule-for-README.patch \ | 14 | file://0001-Add-build-rule-for-README.patch \ |
| 15 | file://0001-Fix-compilation-with-GCC10.patch \ | ||
| 15 | file://owhttpd \ | 16 | file://owhttpd \ |
| 16 | file://owserver \ | 17 | file://owserver \ |
| 17 | " | 18 | " |
