overlayfs-tools: Drop unneeded dependency
PATCH 1/3 overlayfs-tools: Drop unneeded dependency
--- meta-filesystems/recipes-utils/overlayfs/overlayfs-tools_git.bb | 1 - 1 file changed, 1 deletion(-)
meta-filesystems/recipes-utils/overlayfs/overlayfs-tools_git.bb +0 -1
@@ -15,7 +15,6 @@ SRCREV = "291c7f4a3fb548d06c572700650c2e3bccb0cd27" S = "${WORKDIR}/git" B = "${S}" -DEPENDS += "attr" # Required to have the fts.h header for musl DEPENDS:append:libc-musl = " fts"
Signature · 1 line
2.35.1
PATCH 2/3 overlayfs-tools: Bump up the version
Drop the patches, they have been merged upstream.
--- ...-so-that-it-compiles-on-Ubuntu-20.04.patch | 43 ------------------- .../0002-makefile-fix-linking-flags.patch | 33 -------------- .../overlayfs/overlayfs-tools_git.bb | 4 +- 3 files changed, 1 insertion(+), 79 deletions(-) delete mode 100644 meta-filesystems/recipes-utils/overlayfs/overlayfs-tools/0001-Fixed-includes-so-that-it-compiles-on-Ubuntu-20.04.patch delete mode 100644 meta-filesystems/recipes-utils/overlayfs/overlayfs-tools/0002-makefile-fix-linking-flags.patch
meta-filesystems/recipes-utils/overlayfs/overlayfs-tools/0001-Fixed-includes-so-that-it-compiles-on-Ubuntu-20.04.patch deleted +0 -43
@@ -1,43 +0,0 @@ -From 81b4fbb5f52044cb348534c23f10b3884972b09b Mon Sep 17 00:00:00 2001 -From: Beat Schaer <[email protected]> -Date: Fri, 19 Mar 2021 08:18:58 +0100 -Subject: [PATCH] Fixed includes so that it compiles on Ubuntu 20.04 - ---- -Upstream-Status: Pending - - logic.c | 3 +-- - main.c | 3 ++- - 2 files changed, 3 insertions(+), 3 deletions(-) - -diff --git a/logic.c b/logic.c -index 97767f5..47ebfaa 100644 ---- a/logic.c -+++ b/logic.c -@@ -7,8 +7,7 @@ - #include <string.h> - #include <errno.h> - #include <unistd.h> --#include <attr/xattr.h> --#include <attr/attributes.h> -+#include <sys/xattr.h> - #include <fts.h> - #include <libgen.h> - #include "logic.h" -diff --git a/main.c b/main.c -index aa11239..f462b98 100644 ---- a/main.c -+++ b/main.c -@@ -12,7 +12,8 @@ - #include <linux/limits.h> - #include <stdbool.h> - #include <sys/stat.h> --#include <attr/xattr.h> -+#include <sys/xattr.h> -+#include <errno.h> - #ifndef _SYS_STAT_H - #include <linux/stat.h> - #endif --- -2.25.1 -
meta-filesystems/recipes-utils/overlayfs/overlayfs-tools/0002-makefile-fix-linking-flags.patch deleted +0 -33
@@ -1,33 +0,0 @@ -From b4ff5886797e72d1c21da43261ca7648412f3186 Mon Sep 17 00:00:00 2001 -From: Vyacheslav Yurkov <[email protected]> -Date: Mon, 23 May 2022 19:53:21 +0200 -Subject: [PATCH] makefile: fix linking flags - -LDLIBS should be placed at the end according to -https://www.gnu.org/software/make/manual/html_node/Catalogue-of-Rules.html - -Signed-off-by: Vyacheslav Yurkov <[email protected]> ---- -Upstream-Status: Pending - - makefile | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/makefile b/makefile -index fb1bed4..038c7ce 100644 ---- a/makefile -+++ b/makefile -@@ -1,11 +1,11 @@ - CFLAGS = -Wall -std=c99 --LFLAGS = -lm -+LDLIBS = -lm - CC = gcc - - all: overlay - - overlay: main.o logic.o sh.o -- $(CC) $(LFLAGS) main.o logic.o sh.o -o overlay -+ $(CC) main.o logic.o sh.o -o overlay $(LDLIBS) - - main.o: main.c logic.h - $(CC) $(CFLAGS) -c main.c
meta-filesystems/recipes-utils/overlayfs/overlayfs-tools_git.bb +1 -3
@@ -5,12 +5,10 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=f312a7c4d02230e8f2b537295d375c69" SRC_URI = "\ git://github.com/kmxz/overlayfs-tools.git;protocol=https;branch=master \ - file://0001-Fixed-includes-so-that-it-compiles-on-Ubuntu-20.04.patch \ - file://0002-makefile-fix-linking-flags.patch \ " PV = "1.0+git${SRCPV}" -SRCREV = "291c7f4a3fb548d06c572700650c2e3bccb0cd27" +SRCREV = "b5e5a829895ac98ccfe4629fbfbd8b819262bd00" S = "${WORKDIR}/git" B = "${S}"
Signature · 1 line
2.35.1
PATCH 3/3 overlayfs-tools: Install fsck binary
In reply to Vyacheslav YurkovTwo projects, overlayfs-tools and overlayfs-progs, were combined upstream.
--- ...-Makefile-proper-location-of-LDFLAGS.patch | 32 ------------------- .../overlayfs/overlayfs-progs_git.bb | 32 ------------------- .../overlayfs/overlayfs-tools_git.bb | 5 +-- 3 files changed, 1 insertion(+), 68 deletions(-) delete mode 100644 meta-filesystems/recipes-utils/overlayfs/overlayfs-progs/0001-Makefile-proper-location-of-LDFLAGS.patch delete mode 100644 meta-filesystems/recipes-utils/overlayfs/overlayfs-progs_git.bb
meta-filesystems/recipes-utils/overlayfs/overlayfs-progs/0001-Makefile-proper-location-of-LDFLAGS.patch deleted +0 -32
@@ -1,32 +0,0 @@ -From 8eeaee82dcfdf47f16ad880e416b722827f41bdb Mon Sep 17 00:00:00 2001 -From: Vyacheslav Yurkov <[email protected]> -Date: Mon, 23 May 2022 19:37:32 +0200 -Subject: [PATCH] Makefile: proper location of LDFLAGS - -Signed-off-by: Vyacheslav Yurkov <[email protected]> ---- -Upstream-Status: Pending - - Makefile | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/Makefile b/Makefile -index e3c5207..14b155e 100644 ---- a/Makefile -+++ b/Makefile -@@ -1,5 +1,5 @@ - CFLAGS = -Wall -g --LFLAGS = -lm -+LDFLAGS = -lm - CC = gcc - - all: overlay -@@ -7,7 +7,7 @@ all: overlay - objects = fsck.o common.o lib.o check.o mount.o path.o overlayfs.o - - overlay: $(objects) -- $(CC) $(LFLAGS) $(objects) -o fsck.overlay -+ $(CC) $(objects) -o fsck.overlay $(LDFLAGS) - - .c.o: - $(CC) $(CFLAGS) -c $<
meta-filesystems/recipes-utils/overlayfs/overlayfs-progs_git.bb deleted +0 -32
@@ -1,32 +0,0 @@ -SUMMARY = "File system check utility for OverlayFS" -HOMEPAGE = "https://github.com/hisilicon/overlayfs-progs" -LICENSE = "PD" -LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/PD;md5=b3597d12946881e13cb3b548d1173851" - -SRC_URI = "\ - git://github.com/hisilicon/overlayfs-progs.git;protocol=https;branch=master \ - file://0001-Makefile-proper-location-of-LDFLAGS.patch \ -" - -PV = "1.0+git${SRCPV}" -SRCREV = "e10ef686570d9c7eff42f52461593a5c15da56bd" - -S = "${WORKDIR}/git" -B = "${S}" - -# Required to have the fts.h header for musl -DEPENDS:append:libc-musl = " fts" -# Fix the missing fts libs when using musl -EXTRA_OEMAKE:append:libc-musl = " LDFLAGS='-lfts'" - -EXTRA_OEMAKE += "'CC=${CC} -O2' " -TARGET_CC_ARCH += "${LDFLAGS}" - -do_compile () { - oe_runmake -} - -do_install () { - install -d ${D}${bindir} - install -m 0755 ${B}/fsck.overlay ${D}${bindir} -}
meta-filesystems/recipes-utils/overlayfs/overlayfs-tools_git.bb +1 -4
@@ -21,11 +21,8 @@ EXTRA_OEMAKE += "'CC=${CC} -O2'" EXTRA_OEMAKE:append:libc-musl = " LDLIBS=-lfts" TARGET_CC_ARCH += "${LDFLAGS}" -do_compile () { - oe_runmake -} - do_install () { install -d ${D}${bindir} install -m 0755 ${B}/overlay ${D}${bindir} + install -m 0755 ${B}/fsck.overlay ${D}${bindir} }
Signature · 1 line
2.35.1
Re: [oe] [meta-filesystems][PATCH 3/3] overlayfs-tools: Install fsck binary
Quoted 3 lines · Vyacheslav Yurkov
Two projects, overlayfs-tools and overlayfs-progs, were combined upstream.
Merging into one is fine however there are dependencies on overlayfs-progs so perhaps we need to add
RPROVIDES = "overlayfs-progs" to overlayfs-tools_git.bb and then update the recipes e.g. xftests to depend on overayfs-tools
Quoted 115 lines
Signed-off-by Vyacheslav Yurkov <[email protected]>--- ...-Makefile-proper-location-of-LDFLAGS.patch | 32 ------------------- .../overlayfs/overlayfs-progs_git.bb | 32 ------------------- .../overlayfs/overlayfs-tools_git.bb | 5 +-- 3 files changed, 1 insertion(+), 68 deletions(-) delete mode 100644 meta-filesystems/recipes-utils/overlayfs/overlayfs-progs/0001-Makefile-proper-location-of-LDFLAGS.patch delete mode 100644 meta-filesystems/recipes-utils/overlayfs/overlayfs-progs_git.bbmeta-filesystems/recipes-utils/overlayfs/overlayfs-progs/0001-Makefile-proper-location-of-LDFLAGS.patch deleted +0
-32@@ -1,32 +0,0 @@ -From 8eeaee82dcfdf47f16ad880e416b722827f41bdb Mon Sep 17 00:00:00 2001 -From: Vyacheslav Yurkov <[email protected]> -Date: Mon, 23 May 2022 19:37:32 +0200 -Subject: [PATCH] Makefile: proper location of LDFLAGS - -Signed-off-by: Vyacheslav Yurkov <[email protected]> ---- -Upstream-Status: Pending - - Makefile | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/Makefile b/Makefile -index e3c5207..14b155e 100644 ---- a/Makefile -+++ b/Makefile -@@ -1,5 +1,5 @@ - CFLAGS = -Wall -g --LFLAGS = -lm -+LDFLAGS = -lm - CC = gcc - - all: overlay -@@ -7,7 +7,7 @@ all: overlay - objects = fsck.o common.o lib.o check.o mount.o path.o overlayfs.o - - overlay: $(objects) -- $(CC) $(LFLAGS) $(objects) -o fsck.overlay -+ $(CC) $(objects) -o fsck.overlay $(LDFLAGS) - - .c.o: - $(CC) $(CFLAGS) -c $<meta-filesystems/recipes-utils/overlayfs/overlayfs-progs_git.bb deleted +0
-32@@ -1,32 +0,0 @@ -SUMMARY = "File system check utility for OverlayFS" -HOMEPAGE = "https://github.com/hisilicon/overlayfs-progs" -LICENSE = "PD" -LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/PD;md5=b3597d12946881e13cb3b548d1173851" - -SRC_URI = "\ - git://github.com/hisilicon/overlayfs-progs.git;protocol=https;branch=master \ - file://0001-Makefile-proper-location-of-LDFLAGS.patch \ -" - -PV = "1.0+git${SRCPV}" -SRCREV = "e10ef686570d9c7eff42f52461593a5c15da56bd" - -S = "${WORKDIR}/git" -B = "${S}" - -# Required to have the fts.h header for musl -DEPENDS:append:libc-musl = " fts" -# Fix the missing fts libs when using musl -EXTRA_OEMAKE:append:libc-musl = " LDFLAGS='-lfts'" - -EXTRA_OEMAKE += "'CC=${CC} -O2' " -TARGET_CC_ARCH += "${LDFLAGS}" - -do_compile () { - oe_runmake -} - -do_install () { - install -d ${D}${bindir} - install -m 0755 ${B}/fsck.overlay ${D}${bindir} -}meta-filesystems/recipes-utils/overlayfs/overlayfs-tools_git.bb +1
-5@@ -21,11 +21,8 @@ EXTRA_OEMAKE += "'CC=${CC} -O2'" EXTRA_OEMAKE:append:libc-musl = " LDLIBS=-lfts" TARGET_CC_ARCH += "${LDFLAGS}" -do_compile () { - oe_runmake -} - do_install () { install -d ${D}${bindir} install -m 0755 ${B}/overlay ${D}${bindir} + install -m 0755 ${B}/fsck.overlay ${D}${bindir} } --2.35.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#105245): https://lists.openembedded.org/g/openembedded-devel/message/105245
Mute This Topic: https://lists.openembedded.org/mt/101657502/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-filesystems][PATCH 3/3] overlayfs-tools: Install fsck binary
Thanks for catching this. I'd rather change the dependency in V2.
Slava
Quoted 140 lines · On Fri, Sep 29, 2023, 10:22 Khem Raj <[email protected]> wrote:
Quoted 3 lines · Vyacheslav Yurkov
Two projects, overlayfs-tools and overlayfs-progs, were combined upstream.
Merging into one is fine however there are dependencies on overlayfs-progs so perhaps we need to add
RPROVIDES = "overlayfs-progs" to overlayfs-tools_git.bb and then update the recipes e.g. xftests to depend on overayfs-toolsQuoted 8 lines
Signed-off-by Vyacheslav Yurkov <[email protected]>--- ...-Makefile-proper-location-of-LDFLAGS.patch | 32 ------------------- .../overlayfs/overlayfs-progs_git.bb | 32 ------------------- .../overlayfs/overlayfs-tools_git.bb | 5 +-- 3 files changed, 1 insertion(+), 68 deletions(-) delete mode 100644
meta-filesystems/recipes-utils/overlayfs/overlayfs-progs/0001-Makefile-proper-location-of-LDFLAGS.patchQuoted 1 line
delete mode 100644 meta-filesystems/recipes-utils/overlayfs/overlayfs-progs_git.bb
Quoted 2 lines
diff --git
a/meta-filesystems/recipes-utils/overlayfs/overlayfs-progs/0001-Makefile-proper-location-of-LDFLAGS.patchb/meta-filesystems/recipes-utils/overlayfs/overlayfs-progs/0001-Makefile-proper-location-of-LDFLAGS.patchQuoted 3 lines
deleted file mode 100644
index 2c001834b..000000000
---
a/meta-filesystems/recipes-utils/overlayfs/overlayfs-progs/0001-Makefile-proper-location-of-LDFLAGS.patchReview
Quoted 35 lines
+++
/dev/nullmeta-filesystems/recipes-utils/overlayfs/overlayfs-progs/0001-Makefile-proper-location-of-LDFLAGS.patch deleted +0
-32@@ -1,32 +0,0 @@ -From 8eeaee82dcfdf47f16ad880e416b722827f41bdb Mon Sep 17 00:00:00 2001 -From: Vyacheslav Yurkov <[email protected]> -Date: Mon, 23 May 2022 19:37:32 +0200 -Subject: [PATCH] Makefile: proper location of LDFLAGS - -Signed-off-by: Vyacheslav Yurkov <[email protected]> ---- -Upstream-Status: Pending - - Makefile | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/Makefile b/Makefile -index e3c5207..14b155e 100644 ---- a/Makefile -+++ b/Makefile -@@ -1,5 +1,5 @@ - CFLAGS = -Wall -g --LFLAGS = -lm -+LDFLAGS = -lm - CC = gcc - - all: overlay -@@ -7,7 +7,7 @@ all: overlay - objects = fsck.o common.o lib.o check.o mount.o path.o overlayfs.o - - overlay: $(objects) -- $(CC) $(LFLAGS) $(objects) -o fsck.overlay -+ $(CC) $(objects) -o fsck.overlay $(LDFLAGS) - - .c.o: - $(CC) $(CFLAGS) -c $<(quoted diff) +0
-0overlayfs-progs_git.bb b/meta-filesystems/recipes-utils/overlayfs/ overlayfs-progs_git.bb
meta-filesystems/recipes-utils/overlayfs/overlayfs-progs_git.bb line 4
Quoted 9 lines
deleted file mode 100644
index 9d58b9a63..000000000meta-filesystems/recipes-utils/overlayfs/overlayfs-progs_git.bb deleted +0
-4@@ -1,32 +0,0 @@ -SUMMARY = "File system check utility for OverlayFS" -HOMEPAGE = "https://github.com/hisilicon/overlayfs-progs" -LICENSE = "PD" -LIC_FILES_CHKSUM ="file://${COREBASE}/meta/files/common-licenses/PD;md5=b3597d12946881e13cb3b548d1173851"
meta-filesystems/recipes-utils/overlayfs/overlayfs-progs_git.bb
Quoted 3 lines
meta-filesystems/recipes-utils/overlayfs/overlayfs-progs_git.bb deleted +0
-3- -SRC_URI = "\ - git://github.com/hisilicon/overlayfs-progs.git;protocol=https;branch=master \
Review
Quoted 26 lines
meta-filesystems/recipes-utils/overlayfs/overlayfs-progs_git.bb deleted +0
-25- file://0001-Makefile-proper-location-of-LDFLAGS.patch \ -" - -PV = "1.0+git${SRCPV}" -SRCREV = "e10ef686570d9c7eff42f52461593a5c15da56bd" - -S = "${WORKDIR}/git" -B = "${S}" - -# Required to have the fts.h header for musl -DEPENDS:append:libc-musl = " fts" -# Fix the missing fts libs when using musl -EXTRA_OEMAKE:append:libc-musl = " LDFLAGS='-lfts'" - -EXTRA_OEMAKE += "'CC=${CC} -O2' " -TARGET_CC_ARCH += "${LDFLAGS}" - -do_compile () { - oe_runmake -} - -do_install () { - install -d ${D}${bindir} - install -m 0755 ${B}/fsck.overlay ${D}${bindir} -}(quoted diff) +0
-0overlayfs-tools_git.bb b/meta-filesystems/recipes-utils/overlayfs/ overlayfs-tools_git.bb
Quoted 20 lines
index
de5155133..ca2ec9cc4100644meta-filesystems/recipes-utils/overlayfs/overlayfs-tools_git.bb +1
-5@@ -21,11 +21,8 @@ EXTRA_OEMAKE += "'CC=${CC} -O2'" EXTRA_OEMAKE:append:libc-musl = " LDLIBS=-lfts" TARGET_CC_ARCH += "${LDFLAGS}" -do_compile () { - oe_runmake -} - do_install () { install -d ${D}${bindir} install -m 0755 ${B}/overlay ${D}${bindir} + install -m 0755 ${B}/fsck.overlay ${D}${bindir} } --2.35.1
Quoted 3 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#105245):https://lists.openembedded.org/g/openembedded-devel/message/105245
Quoted 3 lines
Mute This Topic: https://lists.openembedded.org/mt/101657502/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [Quoted 2 lines
-=-=-=-=-=-=-=-=-=-=-=-