Skip to contentSkip to conversation

rpm: modify the rpm bbappend file to suitable for rpm4

PATCH In review Dengke Du 2 participants 2 messages May 11, 2017

lore
Share & tools
lore

Dengke Du

author
#0 lore raw

PATCH v5 1/1 rpm: modify the rpm bbappend file to suitable for rpm4

Changed in V5:
Let the subject more clear.

Changed in V4:
Make the comments more clear.
Changed in V3:
Rebase the patch on the latest master branch.

Delete the does not exist files when run task do_package.

---
 recipes-devtools/rpm/rpm_%.bbappend | 4 ----
 1 file changed, 4 deletions(-)
recipes-devtools/rpm/rpm_%.bbappend +0 -4
index 199a7e4..9f3ec90 100644
@@ -1,8 +1,4 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
-FILES_${PN} += "${libdir}/rpm/bin/spooktool \
-                ${libdir}/rpm/bin/semodule \
-               "
-
 inherit with-selinux
 PACKAGECONFIG[selinux] = "${WITH_SELINUX},${WITHOUT_SELINUX},libsemanage,"
Signature · 1 line
2.8.1
#1 lore raw
Quoted 8 lines · [[meta-selinux][PATCH V5] rpm: modify the rpm bbappend file to suitable for…

Changed in V5:
Let the subject more clear.

Changed in V4:
Make the comments more clear.
Changed in V3:
Rebase the patch on the latest master branch.

Quoted 6 lines

Delete the does not exist files when run task do_package.

---
 recipes-devtools/rpm/rpm_%.bbappend | 4 ----
 1 file changed, 4 deletions(-)

I'll merge this and modify the commit log myself, but please note this still isn't what I was asking for in the attached. All of the "Changed in..." lines should be after the --- line in your email.

-J.

Quoted 14 lines
recipes-devtools/rpm/rpm_%.bbappend +0 -4
index 199a7e4..9f3ec90 100644
@@ -1,8 +1,4 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
-FILES_${PN} += "${libdir}/rpm/bin/spooktool \
-                ${libdir}/rpm/bin/semodule \
-               "
-
 inherit with-selinux
 PACKAGECONFIG[selinux] = "${WITH_SELINUX},${WITHOUT_SELINUX},libsemanage,"
Signature · 2 lines
-Joe MacDonald.
:wq
Quoted 8 lines · [[yocto] [meta-selinux][PATCH V3] rpm: modify the rpm bbappend file to…

Changed in V3:
rebase the patch on the latest master branch.

1. change the rpm_5.4.16.bbappend to rpm_git.bbappend, this is because the rpm in oe-core has become rpm4 from rpm5.

2. drop the patch for rpm5.

Quoted 7 lines

3. delete the does not exist files when run task do_package.

---
 recipes-devtools/rpm/{rpm_%.bbappend => rpm_git.bbappend} | 4 ----
 1 file changed, 4 deletions(-)
 rename recipes-devtools/rpm/{rpm_%.bbappend => rpm_git.bbappend} (56%)

I think I understand what you're looking to do here, but the comments are completely unclear. A commit log should look something like:

rpm: move rpm recipe to rpm_git

<explanation of the problem and how this solves it>

---
<diffstat, possibly commentary or further explanation that's not important to the commit log itself and explanation of what's changed between different versions of the patch, since this is a v3>

You can accomplish this with the --annotate flag to git-send-email and then in your editor just ensure the revision history and additional commentary goes after the --- line.

As for the change, deleting package contents that are no longer present is fine, but why change % to git in the recipe name? We moved from a specific version number to % so we would be somewhat divorced from the changes in oe-core, this change reverses that decision.

-J.

Quoted 19 lines
recipes-devtools/rpm/rpm_git.bbappend renamed from recipes-devtools/rpm/rpm_%.bbappend +0 -4
similarity index 56%
rename from recipes-devtools/rpm/rpm_%.bbappend
rename to recipes-devtools/rpm/rpm_git.bbappend
index 199a7e4..9f3ec90 100644
@@ -1,8 +1,4 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
-FILES_${PN} += "${libdir}/rpm/bin/spooktool \
-                ${libdir}/rpm/bin/semodule \
-               "
-
 inherit with-selinux
 PACKAGECONFIG[selinux] = "${WITH_SELINUX},${WITHOUT_SELINUX},libsemanage,"
Signature · 1 line
2.11.0
Signature · 2 lines
-Joe MacDonald.
:wq