Skip to contentSkip to conversation

abseil-cpp: Relax build requirements

PATCH In review Anatol Belski 3 participants 4 messages Feb 19, 2021 – Mar 24, 2021 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 abseil-cpp: Relax build requirements

While better hardware acceleration is definitely advantageous, there is no hard requirement defined by the upstream. Removing this will allow builds targeting older hardware where DEFAULTTUNE can't be changed. If found useful, this can also be backported to lower branches.

---
 .../abseil-cpp/abseil-cpp_git.bb              | 24 -------------------
 1 file changed, 24 deletions(-)
meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_git.bb +0 -24
index cc7bf01d73..7d935d523b 100644
@@ -34,27 +34,3 @@ ALLOW_EMPTY_${PN} = "1"
 FILES_${PN} = "${libdir}/libabsl_*.so ${libdir}/cmake"
 FILES_${PN}-dev = "${includedir}"
 
-python () {
-    arch = d.getVar("TARGET_ARCH")
-
-    if arch == "aarch64":
-        tunes = d.getVar("TUNE_FEATURES")
-        if not tunes:
-            raise bb.parse.SkipRecipe("%s-%s Needs support for crypto on armv8" % (pkgn, pkgv))
-            return
-        pkgn = d.getVar("PN")
-        pkgv = d.getVar("PV")
-        if "crypto" not in tunes:
-            raise bb.parse.SkipRecipe("%s-%s Needs support for crypto on armv8" % (pkgn, pkgv))
-
-    if arch == "x86_64":
-        tunes = d.getVar("TUNE_FEATURES")
-        if not tunes:
-           raise bb.parse.SkipRecipe("%s-%s Needs support for corei7 on x86_64" % (pkgn, pkgv))
-           return
-        pkgn = d.getVar("PN")
-        pkgv = d.getVar("PV")
-        if "corei7" not in tunes:
-            raise bb.parse.SkipRecipe("%s-%s Needs support for corei7 on x86_64" % (pkgn, pkgv))
-
-}
Signature · 1 line
2.17.1
#1 lore raw

You should remove abseil-cpp from the _remove in the packagegroup as well, see:

meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb:RDEPENDS_packagegroup-meta-oe-devtools_remove_aarch64 = "${@bb.utils.contains("TUNE_FEATURES", "crypto", "", "abseil-cpp", d)}
concurrencykit" meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb:RDEPENDS_packagegroup-meta-oe-devtools_remove_x86-64 = "${@bb.utils.contains("TUNE_FEATURES", "corei7", "", "abseil-cpp", d)}"

Please send follow-up patch.

Quoted 54 lines · Anatol Belski

While better hardware acceleration is definitely advantageous, there is no hard requirement defined by the upstream. Removing this will allow builds targeting older hardware where DEFAULTTUNE can't be changed. If found useful, this can also be backported to lower branches.

---
 .../abseil-cpp/abseil-cpp_git.bb              | 24 -------------------
 1 file changed, 24 deletions(-)
meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_git.bb +0 -7
index cc7bf01d73..7d935d523b 100644
@@ -34,27 +34,3 @@ ALLOW_EMPTY_${PN} = "1"
 FILES_${PN} = "${libdir}/libabsl_*.so ${libdir}/cmake"
 FILES_${PN}-dev = "${includedir}"
 
-python () {
-    arch = d.getVar("TARGET_ARCH")
-
-    if arch == "aarch64":
-        tunes = d.getVar("TUNE_FEATURES")
-        if not tunes:
-            raise bb.parse.SkipRecipe("%s-%s Needs support for crypto on

armv8" % (pkgn, pkgv))

meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_git.bb +0 -5
-            return
-        pkgn = d.getVar("PN")
-        pkgv = d.getVar("PV")
-        if "crypto" not in tunes:
-            raise bb.parse.SkipRecipe("%s-%s Needs support for crypto on

armv8" % (pkgn, pkgv))

meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_git.bb +0 -5
-
-    if arch == "x86_64":
-        tunes = d.getVar("TUNE_FEATURES")
-        if not tunes:
-           raise bb.parse.SkipRecipe("%s-%s Needs support for corei7 on

x86_64" % (pkgn, pkgv))

meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_git.bb +0 -5
-           return
-        pkgn = d.getVar("PN")
-        pkgv = d.getVar("PV")
-        if "corei7" not in tunes:
-            raise bb.parse.SkipRecipe("%s-%s Needs support for corei7 on

x86_64" % (pkgn, pkgv))

meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_git.bb +0 -3
-
-}
--

2.17.1

#3 lore raw
In reply to a message not in the archive
Quoted 11 lines · Martin Jansa via lists.openembedded.org

You should remove abseil-cpp from the _remove in the packagegroup as well, see:

meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb:RDEPENDS_packagegroup-meta-oe-devtools_remove_aarch64 = "${@bb.utils.contains("TUNE_FEATURES", "crypto", "", "abseil-cpp", d)}
concurrencykit" meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb:RDEPENDS_packagegroup-meta-oe-devtools_remove_x86-64 = "${@bb.utils.contains("TUNE_FEATURES", "corei7", "", "abseil-cpp", d)}"

Please send follow-up patch.

Still no follow-up patch, I'll send it myself.

#4 lore raw
Quoted 15 lines · Martin Jansa

On Tue, Feb 23, 2021 at 6:23 PM Martin Jansa via lists.openembedded.org <http://lists.openembedded.org> <[email protected] <mailto:[email protected]>> wrote:

    You should remove abseil-cpp from the _remove in the packagegroup as
    well, see:

    meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb:RDEPENDS_packagegroup-meta-oe-devtools_remove_aarch64
    = "${@bb.utils.contains("TUNE_FEATURES", "crypto", "", "abseil-cpp",
    d)} concurrencykit"
    meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb:RDEPENDS_packagegroup-meta-oe-devtools_remove_x86-64
    = "${@bb.utils.contains("TUNE_FEATURES", "corei7", "", "abseil-cpp",
    d)}"

    Please send follow-up patch.
Quoted 2 lines

Still no follow-up patch, I'll send it myself.

Thanks Martin

Quoted 3 lines