Skip to contentSkip to conversation

rpm: update PACKAGECONFIG for CMake

PATCH In review Denys Dmytriyenko 2 participants 5 messages Jan 30, 2024 – Jan 31, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rpm: update PACKAGECONFIG for CMake

Version 4.19 has migrated from autoconf to CMake, update PACKAGECONFIG accordingly.

https://git.openembedded.org/openembedded-core/commit/?id=38549d462b399e3a63335f60a44c8bbced98639a

---
 recipes-devtools/rpm/rpm_selinux.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-devtools/rpm/rpm_selinux.inc +1 -1
index b6e0e7c..29eefbf 100644
@@ -1,2 +1,2 @@
 inherit enable-selinux
-PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
+PACKAGECONFIG[selinux] = "-DWITH_SELINUX=ON,-DWITH_SELINUX=OFF,libselinux"
Signature · 1 line
2.25.1
#1 lore raw
Quoted 15 lines · Denys Dmytriyenko

Version 4.19 has migrated from autoconf to CMake, update PACKAGECONFIG accordingly.

https://git.openembedded.org/openembedded-core/commit/?id=38549d462b399e3a63335f60a44c8bbced98639a

---
  recipes-devtools/rpm/rpm_selinux.inc | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
recipes-devtools/rpm/rpm_selinux.inc +0 -0
index b6e0e7c..29eefbf 100644

recipes-devtools/rpm/rpm_selinux.inc line 2

Quoted 3 lines
recipes-devtools/rpm/rpm_selinux.inc +1 -1
@@ -1,2 +1,2 @@
  inherit enable-selinux
-PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
+PACKAGECONFIG[selinux] = "-DWITH_SELINUX=ON,-DWITH_SELINUX=OFF,libselinux"

I see that PACKAGECONFIG[selinux] has been added to rpm recipe in oe-core. We can just remove this line.

//Yi

Quoted 9 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62340):https://lists.yoctoproject.org/g/yocto/message/62340 Mute This Topic:https://lists.yoctoproject.org/mt/104062620/7283133 Group Owner:[email protected] Unsubscribe:https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw
Quoted 12 lines · Yi Zhao
Quoted 10 lines · Denys Dmytriyenko

Version 4.19 has migrated from autoconf to CMake, update PACKAGECONFIG accordingly.

https://git.openembedded.org/openembedded-core/commit/?id=38549d462b399e3a63335f60a44c8bbced98639a

---
 recipes-devtools/rpm/rpm_selinux.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 11 lines

recipes-devtools/rpm/rpm_selinux.inc line 2

Quoted 8 lines
recipes-devtools/rpm/rpm_selinux.inc +1 -1
index b6e0e7c..29eefbf 100644
@@ -1,2 +1,2 @@
 inherit enable-selinux
-PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
+PACKAGECONFIG[selinux] = "-DWITH_SELINUX=ON,-DWITH_SELINUX=OFF,libselinux"

I see that PACKAGECONFIG[selinux] has been added to rpm recipe in oe-core. We can just remove this line.

Unfortunately, it doesn't have the required "libselinux" dependency in oe-core.

Signature · 1 line
Denys
#3 lore raw
Quoted 22 lines · Denys Dmytriyenko
Quoted 11 lines · Yi Zhao
Quoted 10 lines · Denys Dmytriyenko

Version 4.19 has migrated from autoconf to CMake, update PACKAGECONFIG accordingly.

https://git.openembedded.org/openembedded-core/commit/?id=38549d462b399e3a63335f60a44c8bbced98639a

---
  recipes-devtools/rpm/rpm_selinux.inc | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 10 lines

recipes-devtools/rpm/rpm_selinux.inc line 2

Quoted 8 lines
recipes-devtools/rpm/rpm_selinux.inc +1 -1
index b6e0e7c..29eefbf 100644
@@ -1,2 +1,2 @@
  inherit enable-selinux
-PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
+PACKAGECONFIG[selinux] = "-DWITH_SELINUX=ON,-DWITH_SELINUX=OFF,libselinux"

I see that PACKAGECONFIG[selinux] has been added to rpm recipe in oe-core. We can just remove this line.

Quoted 2 lines

Unfortunately, it doesn't have the required "libselinux" dependency in oe-core.

We can send a patch to fix it :-)

//Yi

Quoted 1 line
#4 lore raw
Quoted 24 lines · Yi Zhao
Quoted 22 lines · Denys Dmytriyenko
Quoted 21 lines · Yi Zhao
Quoted 15 lines · Denys Dmytriyenko

Version 4.19 has migrated from autoconf to CMake, update PACKAGECONFIG accordingly.

https://git.openembedded.org/openembedded-core/commit/?id=38549d462b399e3a63335f60a44c8bbced98639a

---
 recipes-devtools/rpm/rpm_selinux.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-devtools/rpm/rpm_selinux.inc +0 -0
index b6e0e7c..29eefbf 100644

recipes-devtools/rpm/rpm_selinux.inc line 2

Quoted 3 lines
recipes-devtools/rpm/rpm_selinux.inc +1 -1
@@ -1,2 +1,2 @@
 inherit enable-selinux
-PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
+PACKAGECONFIG[selinux] = "-DWITH_SELINUX=ON,-DWITH_SELINUX=OFF,libselinux"

I see that PACKAGECONFIG[selinux] has been added to rpm recipe in oe-core. We can just remove this line.

Quoted 4 lines
Quoted 2 lines

Unfortunately, it doesn't have the required "libselinux" dependency in oe-core.

We can send a patch to fix it :-)

Well, libselinux is not provided by oe-core, only by meta-selinux...

On the other hand, non-default external inter-layer PACKAGECONFIG dependencies is a grey area and can be tolerated these days.

Anyone has any preferences?

Signature · 1 line
Denys