Skip to contentSkip to conversation

rpm: remove incorrect packageconfig spec

PATCH In review Alex Stewart 1 participant 2 messages Feb 12, 2024 – Feb 13, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rpm: remove incorrect packageconfig spec

As of recent recipe versions, this layer's bbappend fails rpm-native recipe configuration, with an error that --with-selinux is an invalid flag.

OE-core's upstream rpm recipe uses cmake flags to enable/disable features, including selinux support. The upstream recipe already has a PACKAGECONFIG[selinux] spec which uses the correct cmake terms.

Remove this layer's attempt at using the old flag style.

---
 recipes-devtools/rpm/rpm_selinux.inc | 1 -
 1 file changed, 1 deletion(-)
recipes-devtools/rpm/rpm_selinux.inc +0 -1
index b6e0e7c..8c11cac 100644
@@ -1,2 +1 @@
 inherit enable-selinux
-PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
Signature · 1 line
2.43.0
#1 lore raw

Retracted.

I neglected to check the list before posting this and didn't realize that Denys D. already had a duplicate patch [1]. My mistake.

[1] https://lists.yoctoproject.org/g/yocto/message/62421

Quoted 22 lines · Alex Stewart

As of recent recipe versions, this layer's bbappend fails rpm-native recipe configuration, with an error that --with-selinux is an invalid flag.

OE-core's upstream rpm recipe uses cmake flags to enable/disable features, including selinux support. The upstream recipe already has a PACKAGECONFIG[selinux] spec which uses the correct cmake terms.

Remove this layer's attempt at using the old flag style.

---
  recipes-devtools/rpm/rpm_selinux.inc | 1 -
  1 file changed, 1 deletion(-)
recipes-devtools/rpm/rpm_selinux.inc +0 -1
index b6e0e7c..8c11cac 100644
@@ -1,2 +1 @@
  inherit enable-selinux
-PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
Signature · 5 lines
Alex Stewart
Software Engineer - NI Real-Time OS
NI (National Instruments)

[email protected]