diff options
3 files changed, 1 insertions, 79 deletions
diff --git a/meta-filesystems/recipes-utils/overlayfs/overlayfs-tools/0001-Fixed-includes-so-that-it-compiles-on-Ubuntu-20.04.patch b/meta-filesystems/recipes-utils/overlayfs/overlayfs-tools/0001-Fixed-includes-so-that-it-compiles-on-Ubuntu-20.04.patch deleted file mode 100644 index ed84d92c7c..0000000000 --- a/meta-filesystems/recipes-utils/overlayfs/overlayfs-tools/0001-Fixed-includes-so-that-it-compiles-on-Ubuntu-20.04.patch +++ /dev/null | |||
| @@ -1,43 +0,0 @@ | |||
| 1 | From 81b4fbb5f52044cb348534c23f10b3884972b09b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Beat Schaer <beat.schaer@wabtec.com> | ||
| 3 | Date: Fri, 19 Mar 2021 08:18:58 +0100 | ||
| 4 | Subject: [PATCH] Fixed includes so that it compiles on Ubuntu 20.04 | ||
| 5 | |||
| 6 | --- | ||
| 7 | Upstream-Status: Pending | ||
| 8 | |||
| 9 | logic.c | 3 +-- | ||
| 10 | main.c | 3 ++- | ||
| 11 | 2 files changed, 3 insertions(+), 3 deletions(-) | ||
| 12 | |||
| 13 | diff --git a/logic.c b/logic.c | ||
| 14 | index 97767f5..47ebfaa 100644 | ||
| 15 | --- a/logic.c | ||
| 16 | +++ b/logic.c | ||
| 17 | @@ -7,8 +7,7 @@ | ||
| 18 | #include <string.h> | ||
| 19 | #include <errno.h> | ||
| 20 | #include <unistd.h> | ||
| 21 | -#include <attr/xattr.h> | ||
| 22 | -#include <attr/attributes.h> | ||
| 23 | +#include <sys/xattr.h> | ||
| 24 | #include <fts.h> | ||
| 25 | #include <libgen.h> | ||
| 26 | #include "logic.h" | ||
| 27 | diff --git a/main.c b/main.c | ||
| 28 | index aa11239..f462b98 100644 | ||
| 29 | --- a/main.c | ||
| 30 | +++ b/main.c | ||
| 31 | @@ -12,7 +12,8 @@ | ||
| 32 | #include <linux/limits.h> | ||
| 33 | #include <stdbool.h> | ||
| 34 | #include <sys/stat.h> | ||
| 35 | -#include <attr/xattr.h> | ||
| 36 | +#include <sys/xattr.h> | ||
| 37 | +#include <errno.h> | ||
| 38 | #ifndef _SYS_STAT_H | ||
| 39 | #include <linux/stat.h> | ||
| 40 | #endif | ||
| 41 | -- | ||
| 42 | 2.25.1 | ||
| 43 | |||
diff --git a/meta-filesystems/recipes-utils/overlayfs/overlayfs-tools/0002-makefile-fix-linking-flags.patch b/meta-filesystems/recipes-utils/overlayfs/overlayfs-tools/0002-makefile-fix-linking-flags.patch deleted file mode 100644 index 8fbb250f04..0000000000 --- a/meta-filesystems/recipes-utils/overlayfs/overlayfs-tools/0002-makefile-fix-linking-flags.patch +++ /dev/null | |||
| @@ -1,33 +0,0 @@ | |||
| 1 | From b4ff5886797e72d1c21da43261ca7648412f3186 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Vyacheslav Yurkov <Vyacheslav.Yurkov@bruker.com> | ||
| 3 | Date: Mon, 23 May 2022 19:53:21 +0200 | ||
| 4 | Subject: [PATCH] makefile: fix linking flags | ||
| 5 | |||
| 6 | LDLIBS should be placed at the end according to | ||
| 7 | https://www.gnu.org/software/make/manual/html_node/Catalogue-of-Rules.html | ||
| 8 | |||
| 9 | Signed-off-by: Vyacheslav Yurkov <Vyacheslav.Yurkov@bruker.com> | ||
| 10 | --- | ||
| 11 | Upstream-Status: Pending | ||
| 12 | |||
| 13 | makefile | 4 ++-- | ||
| 14 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/makefile b/makefile | ||
| 17 | index fb1bed4..038c7ce 100644 | ||
| 18 | --- a/makefile | ||
| 19 | +++ b/makefile | ||
| 20 | @@ -1,11 +1,11 @@ | ||
| 21 | CFLAGS = -Wall -std=c99 | ||
| 22 | -LFLAGS = -lm | ||
| 23 | +LDLIBS = -lm | ||
| 24 | CC = gcc | ||
| 25 | |||
| 26 | all: overlay | ||
| 27 | |||
| 28 | overlay: main.o logic.o sh.o | ||
| 29 | - $(CC) $(LFLAGS) main.o logic.o sh.o -o overlay | ||
| 30 | + $(CC) main.o logic.o sh.o -o overlay $(LDLIBS) | ||
| 31 | |||
| 32 | main.o: main.c logic.h | ||
| 33 | $(CC) $(CFLAGS) -c main.c | ||
diff --git a/meta-filesystems/recipes-utils/overlayfs/overlayfs-tools_git.bb b/meta-filesystems/recipes-utils/overlayfs/overlayfs-tools_git.bb index c638be9af6..de51551337 100644 --- a/meta-filesystems/recipes-utils/overlayfs/overlayfs-tools_git.bb +++ b/meta-filesystems/recipes-utils/overlayfs/overlayfs-tools_git.bb | |||
| @@ -5,12 +5,10 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=f312a7c4d02230e8f2b537295d375c69" | |||
| 5 | 5 | ||
| 6 | SRC_URI = "\ | 6 | SRC_URI = "\ |
| 7 | git://github.com/kmxz/overlayfs-tools.git;protocol=https;branch=master \ | 7 | git://github.com/kmxz/overlayfs-tools.git;protocol=https;branch=master \ |
| 8 | file://0001-Fixed-includes-so-that-it-compiles-on-Ubuntu-20.04.patch \ | ||
| 9 | file://0002-makefile-fix-linking-flags.patch \ | ||
| 10 | " | 8 | " |
| 11 | 9 | ||
| 12 | PV = "1.0+git${SRCPV}" | 10 | PV = "1.0+git${SRCPV}" |
| 13 | SRCREV = "291c7f4a3fb548d06c572700650c2e3bccb0cd27" | 11 | SRCREV = "b5e5a829895ac98ccfe4629fbfbd8b819262bd00" |
| 14 | 12 | ||
| 15 | S = "${WORKDIR}/git" | 13 | S = "${WORKDIR}/git" |
| 16 | B = "${S}" | 14 | B = "${S}" |
