diff mbox series

[meta-oe] 7-zip: add new recipe

Message ID 20241216114349.125642-1-miroslav.nagy@siemens.com
State Under Review
Headers show
Series [meta-oe] 7-zip: add new recipe | expand

Commit Message

miroslav.nagy Dec. 16, 2024, 11:43 a.m. UTC
From: Miroslav Nagy <miroslav.nagy@siemens.com>

This recipe should eventually replace p7zip recipe.
p7zip is very old and not updated with unfixed security vulnerabilities.
Using real upstream package should solve this.

Signed-off-by: Miroslav Nagy <miroslav.nagy@siemens.com>
Reviewed-by: Peter Marko <peter.marko@siemens.com>
---
 meta-oe/recipes-extended/7-zip/7-zip_24.09.bb | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 meta-oe/recipes-extended/7-zip/7-zip_24.09.bb

Comments

Marko, Peter Dec. 19, 2024, 4:37 p.m. UTC | #1
Please drop this patch.
The newer patch from Hongxu Jia adds the same component under different recipe name and is more feature-rich.

Peter

> -----Original Message-----
> From: Nagy, Miroslav (FT D EU SK BFS1) <miroslav.nagy@siemens.com>
> Sent: Monday, December 16, 2024 12:44
> To: openembedded-devel@lists.openembedded.org
> Cc: Nagy, Miroslav (FT D EU SK BFS1) <miroslav.nagy@siemens.com>; Marko,
> Peter (FT D EU SK BFS1) <Peter.Marko@siemens.com>
> Subject: [meta-oe][PATCH] 7-zip: add new recipe
> 
> From: Miroslav Nagy <miroslav.nagy@siemens.com>
> 
> This recipe should eventually replace p7zip recipe.
> p7zip is very old and not updated with unfixed security vulnerabilities.
> Using real upstream package should solve this.
> 
> Signed-off-by: Miroslav Nagy <miroslav.nagy@siemens.com>
> Reviewed-by: Peter Marko <peter.marko@siemens.com>
> ---
>  meta-oe/recipes-extended/7-zip/7-zip_24.09.bb | 28 +++++++++++++++++++
>  1 file changed, 28 insertions(+)
>  create mode 100644 meta-oe/recipes-extended/7-zip/7-zip_24.09.bb
> 
> diff --git a/meta-oe/recipes-extended/7-zip/7-zip_24.09.bb b/meta-oe/recipes-
> extended/7-zip/7-zip_24.09.bb
> new file mode 100644
> index 000000000..6e8d0ba77
> --- /dev/null
> +++ b/meta-oe/recipes-extended/7-zip/7-zip_24.09.bb
> @@ -0,0 +1,28 @@
> +SUMMARY = "7-Zip is a file archiver with a high compression ratio."
> +HOMEPAGE = "https://www.7-zip.org"
> +LICENSE = "LGPL-2.1-or-later & BSD-3-Clause & unRAR"
> +LIC_FILES_CHKSUM =
> "file://DOC/copying.txt;md5=b0d181292c99cf9bb2ae9166dd3a0239 \
> +
> file://DOC/unRarLicense.txt;md5=9c87ddde469ef94aed153b0951d088de \
> +                    file://DOC/License.txt;md5=8bfe22e0285a3043b61ea408d234c55d"
> +CVE_PRODUCT = "7-zip 7zip"
> +
> +PV_WITHOUT_DOT = "${@d.getVar('PV').replace('.', '')}"
> +
> +SRC_URI = "https://www.7-zip.org/a/7z${PV_WITHOUT_DOT}-
> src.tar.xz;subdir=${BP}"
> +SRC_URI[sha256sum] =
> "49c05169f49572c1128453579af1632a952409ced028259381dac30726b6133a"
> +
> +B = "${WORKDIR}/build"
> +
> +EXTRA_OEMAKE += 'LDFLAGS="${LDFLAGS}" LFLAGS_STRIP="" O="${B}"'
> +
> +do_compile() {
> +    cd ${S}/CPP/7zip/Bundles/Alone2
> +    oe_runmake --file makefile.gcc
> +}
> +
> +do_install() {
> +    install -d ${D}${bindir}
> +    install -m 0755 ${B}/7zz ${D}${bindir}/7zz
> +}
> +
> +BBCLASSEXTEND = "native nativesdk"
> --
> 2.39.5
Khem Raj Dec. 19, 2024, 5:41 p.m. UTC | #2
On Thu, Dec 19, 2024 at 8:38 AM Peter Marko via lists.openembedded.org
<peter.marko=siemens.com@lists.openembedded.org> wrote:
>
> Please drop this patch.
> The newer patch from Hongxu Jia adds the same component under different recipe name and is more feature-rich.
>

Thanks for letting us know

> Peter
>
> > -----Original Message-----
> > From: Nagy, Miroslav (FT D EU SK BFS1) <miroslav.nagy@siemens.com>
> > Sent: Monday, December 16, 2024 12:44
> > To: openembedded-devel@lists.openembedded.org
> > Cc: Nagy, Miroslav (FT D EU SK BFS1) <miroslav.nagy@siemens.com>; Marko,
> > Peter (FT D EU SK BFS1) <Peter.Marko@siemens.com>
> > Subject: [meta-oe][PATCH] 7-zip: add new recipe
> >
> > From: Miroslav Nagy <miroslav.nagy@siemens.com>
> >
> > This recipe should eventually replace p7zip recipe.
> > p7zip is very old and not updated with unfixed security vulnerabilities.
> > Using real upstream package should solve this.
> >
> > Signed-off-by: Miroslav Nagy <miroslav.nagy@siemens.com>
> > Reviewed-by: Peter Marko <peter.marko@siemens.com>
> > ---
> >  meta-oe/recipes-extended/7-zip/7-zip_24.09.bb | 28 +++++++++++++++++++
> >  1 file changed, 28 insertions(+)
> >  create mode 100644 meta-oe/recipes-extended/7-zip/7-zip_24.09.bb
> >
> > diff --git a/meta-oe/recipes-extended/7-zip/7-zip_24.09.bb b/meta-oe/recipes-
> > extended/7-zip/7-zip_24.09.bb
> > new file mode 100644
> > index 000000000..6e8d0ba77
> > --- /dev/null
> > +++ b/meta-oe/recipes-extended/7-zip/7-zip_24.09.bb
> > @@ -0,0 +1,28 @@
> > +SUMMARY = "7-Zip is a file archiver with a high compression ratio."
> > +HOMEPAGE = "https://www.7-zip.org"
> > +LICENSE = "LGPL-2.1-or-later & BSD-3-Clause & unRAR"
> > +LIC_FILES_CHKSUM =
> > "file://DOC/copying.txt;md5=b0d181292c99cf9bb2ae9166dd3a0239 \
> > +
> > file://DOC/unRarLicense.txt;md5=9c87ddde469ef94aed153b0951d088de \
> > +                    file://DOC/License.txt;md5=8bfe22e0285a3043b61ea408d234c55d"
> > +CVE_PRODUCT = "7-zip 7zip"
> > +
> > +PV_WITHOUT_DOT = "${@d.getVar('PV').replace('.', '')}"
> > +
> > +SRC_URI = "https://www.7-zip.org/a/7z${PV_WITHOUT_DOT}-
> > src.tar.xz;subdir=${BP}"
> > +SRC_URI[sha256sum] =
> > "49c05169f49572c1128453579af1632a952409ced028259381dac30726b6133a"
> > +
> > +B = "${WORKDIR}/build"
> > +
> > +EXTRA_OEMAKE += 'LDFLAGS="${LDFLAGS}" LFLAGS_STRIP="" O="${B}"'
> > +
> > +do_compile() {
> > +    cd ${S}/CPP/7zip/Bundles/Alone2
> > +    oe_runmake --file makefile.gcc
> > +}
> > +
> > +do_install() {
> > +    install -d ${D}${bindir}
> > +    install -m 0755 ${B}/7zz ${D}${bindir}/7zz
> > +}
> > +
> > +BBCLASSEXTEND = "native nativesdk"
> > --
> > 2.39.5
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#114399): https://lists.openembedded.org/g/openembedded-devel/message/114399
> Mute This Topic: https://lists.openembedded.org/mt/110142798/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
diff mbox series

Patch

diff --git a/meta-oe/recipes-extended/7-zip/7-zip_24.09.bb b/meta-oe/recipes-extended/7-zip/7-zip_24.09.bb
new file mode 100644
index 000000000..6e8d0ba77
--- /dev/null
+++ b/meta-oe/recipes-extended/7-zip/7-zip_24.09.bb
@@ -0,0 +1,28 @@ 
+SUMMARY = "7-Zip is a file archiver with a high compression ratio."
+HOMEPAGE = "https://www.7-zip.org"
+LICENSE = "LGPL-2.1-or-later & BSD-3-Clause & unRAR"
+LIC_FILES_CHKSUM = "file://DOC/copying.txt;md5=b0d181292c99cf9bb2ae9166dd3a0239 \
+                    file://DOC/unRarLicense.txt;md5=9c87ddde469ef94aed153b0951d088de \
+                    file://DOC/License.txt;md5=8bfe22e0285a3043b61ea408d234c55d"
+CVE_PRODUCT = "7-zip 7zip"
+
+PV_WITHOUT_DOT = "${@d.getVar('PV').replace('.', '')}"
+
+SRC_URI = "https://www.7-zip.org/a/7z${PV_WITHOUT_DOT}-src.tar.xz;subdir=${BP}"
+SRC_URI[sha256sum] = "49c05169f49572c1128453579af1632a952409ced028259381dac30726b6133a"
+
+B = "${WORKDIR}/build"
+
+EXTRA_OEMAKE += 'LDFLAGS="${LDFLAGS}" LFLAGS_STRIP="" O="${B}"'
+
+do_compile() {
+    cd ${S}/CPP/7zip/Bundles/Alone2
+    oe_runmake --file makefile.gcc
+}
+
+do_install() {
+    install -d ${D}${bindir}
+    install -m 0755 ${B}/7zz ${D}${bindir}/7zz
+}
+
+BBCLASSEXTEND = "native nativesdk"