Skip to contentSkip to conversation

arptables: Fix do_install task

PATCH Superseded Fabio Berton 2 participants 5 messages Oct 30, 2017 – Oct 31, 2017

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arptables: Fix do_install task

We need to set DESTDIR variable and run eo_runmake install to install all arptables files. Without this the only file installed in package is systemd unit.

---
 meta-networking/recipes-support/arptables/arptables_git.bb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
meta-networking/recipes-support/arptables/arptables_git.bb +3 -2
index 274a55d91..55903e450 100644
@@ -21,9 +21,10 @@ SYSTEMD_SERVICE_${PN} = "arptables.service"
 
 inherit systemd
 
-EXTRA_OEMAKE = "'BINDIR=${sbindir}' 'MANDIR=${mandir}'"
+EXTRA_OEMAKE += "'DESTDIR=${D}' 'BINDIR=${sbindir}' 'MANDIR=${mandir}'"
 
-do_install_append() {
+do_install() {
+    oe_runmake install
     if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
         install -d ${D}${systemd_unitdir}/system
         install -m 644 ${WORKDIR}/arptables.service ${D}${systemd_unitdir}/system
Signature · 1 line
2.14.2
#1 lore raw
Quoted 1 line · Fabio Berton

We need to set DESTDIR variable and run eo_runmake install to install all

                                                                        ^^

typo

Quoted 13 lines

arptables files. Without this the only file installed in package is systemd unit.

---
 meta-networking/recipes-support/arptables/arptables_git.bb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
meta-networking/recipes-support/arptables/arptables_git.bb +0 -0
index 274a55d91..55903e450 100644

meta-networking/recipes-support/arptables/arptables_git.bb SYSTEMD_SERVICE_${PN} = "arptables.service" · line 25

Quoted 6 lines
meta-networking/recipes-support/arptables/arptables_git.bb +1 -1
@@ -21,9 +21,10 @@ SYSTEMD_SERVICE_${PN} = "arptables.service"
 
 inherit systemd
 
-EXTRA_OEMAKE = "'BINDIR=${sbindir}' 'MANDIR=${mandir}'"
+EXTRA_OEMAKE += "'DESTDIR=${D}' 'BINDIR=${sbindir}' 'MANDIR=${mandir}'"
 

if its needed just during install then we could pass it directly in oe_runmake in do_install below

Quoted 14 lines
meta-networking/recipes-support/arptables/arptables_git.bb +2 -2
-do_install_append() {
+do_install() {
+    oe_runmake install
     if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
         install -d ${D}${systemd_unitdir}/system
         install -m 644 ${WORKDIR}/arptables.service ${D}${systemd_unitdir}/system
--

2.14.2

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#2 lore raw

Hi Khem,

do_compile task uses these EXTRA_OEMAKE variables too.

Quoted 47 lines · Khem Raj
Quoted 1 line · Fabio Berton

We need to set DESTDIR variable and run eo_runmake install to install all

                                                                        ^^

typo

Review

Quoted 9 lines

arptables files. Without this the only file installed in package is systemd unit.

---
 meta-networking/recipes-support/arptables/arptables_git.bb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/meta-networking/recipes-support/arptables/arptables_git.bb

meta-networking/recipes-support/arptables/arptables_git.bb SYSTEMD_SERVICE_${PN} = "arptables.service" · line 25

Quoted 10 lines

index 274a55d91..55903e450 100644

meta-networking/recipes-support/arptables/arptables_git.bb +1 -1
@@ -21,9 +21,10 @@ SYSTEMD_SERVICE_${PN} = "arptables.service"
 
 inherit systemd
 
-EXTRA_OEMAKE = "'BINDIR=${sbindir}' 'MANDIR=${mandir}'"
+EXTRA_OEMAKE += "'DESTDIR=${D}' 'BINDIR=${sbindir}' 'MANDIR=${mandir}'"
 

if its needed just during install then we could pass it directly in oe_runmake in do_install below

meta-networking/recipes-support/arptables/arptables_git.bb SYSTEMD_SERVICE_${PN} = "arptables.service"

Quoted 4 lines
meta-networking/recipes-support/arptables/arptables_git.bb +2 -1
-do_install_append() {
+do_install() {
+    oe_runmake install
     if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true',

'false', d)}; then

meta-networking/recipes-support/arptables/arptables_git.bb SYSTEMD_SERVICE_${PN} = "arptables.service" · line 30

Quoted 2 lines
meta-networking/recipes-support/arptables/arptables_git.bb +0 -0
         install -d ${D}${systemd_unitdir}/system
         install -m 644 ${WORKDIR}/arptables.service

${D}${systemd_unitdir}/system

Quoted 8 lines

--
2.14.2

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#3 lore raw
Quoted 4 lines · Fabio Berton

Hi Khem,

do_compile task uses these EXTRA_OEMAKE variables too.

Yes, however the question is do we use DESTDIR when compiling

Quoted 53 lines · Khem Raj
Quoted 49 lines
Quoted 1 line · Fabio Berton

We need to set DESTDIR variable and run eo_runmake install to install

all

                                                                        ^^

typo

Review

Quoted 9 lines

arptables files. Without this the only file installed in package is systemd unit.

---
 meta-networking/recipes-support/arptables/arptables_git.bb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/meta-networking/recipes-support/arptables/arptables_git.bb

meta-networking/recipes-support/arptables/arptables_git.bb SYSTEMD_SERVICE_${PN} = "arptables.service" · line 25

Quoted 10 lines

index 274a55d91..55903e450 100644

meta-networking/recipes-support/arptables/arptables_git.bb +1 -1
@@ -21,9 +21,10 @@ SYSTEMD_SERVICE_${PN} = "arptables.service"
 
 inherit systemd
 
-EXTRA_OEMAKE = "'BINDIR=${sbindir}' 'MANDIR=${mandir}'"
+EXTRA_OEMAKE += "'DESTDIR=${D}' 'BINDIR=${sbindir}' 'MANDIR=${mandir}'"
 

if its needed just during install then we could pass it directly in oe_runmake in do_install below

meta-networking/recipes-support/arptables/arptables_git.bb SYSTEMD_SERVICE_${PN} = "arptables.service"

Quoted 4 lines
meta-networking/recipes-support/arptables/arptables_git.bb +2 -1
-do_install_append() {
+do_install() {
+    oe_runmake install
     if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true',

'false', d)}; then

meta-networking/recipes-support/arptables/arptables_git.bb SYSTEMD_SERVICE_${PN} = "arptables.service" · line 30

Quoted 2 lines
meta-networking/recipes-support/arptables/arptables_git.bb +0 -0
         install -d ${D}${systemd_unitdir}/system
         install -m 644 ${WORKDIR}/arptables.service

${D}${systemd_unitdir}/system

Quoted 8 lines

--
2.14.2

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#4 lore raw

You right, work using oe_runmake install DESTDIR=${D} and DESTDIR is not using when compiling.

Thanks

Quoted 66 lines · Khem Raj
Quoted 4 lines · Fabio Berton

Hi Khem,

do_compile task uses these EXTRA_OEMAKE variables too.

Yes, however the question is do we use DESTDIR when compiling

Quoted 55 lines · Khem Raj
Quoted 51 lines
Quoted 1 line · Fabio Berton

We need to set DESTDIR variable and run eo_runmake install to install

all

^^
typo

Review

Quoted 9 lines

arptables files. Without this the only file installed in package is systemd unit.

---
 meta-networking/recipes-support/arptables/arptables_git.bb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

git.bb b/meta-networking/recipes-support/arptables/arptables_git.bb

meta-networking/recipes-support/arptables/arptables_git.bb SYSTEMD_SERVICE_${PN} = "arptables.service" · line 24

Quoted 9 lines

index 274a55d91..55903e450 100644

meta-networking/recipes-support/arptables/arptables_git.bb +1 -1
@@ -21,9 +21,10 @@ SYSTEMD_SERVICE_${PN} = "arptables.service"
 
 inherit systemd
 
-EXTRA_OEMAKE = "'BINDIR=${sbindir}' 'MANDIR=${mandir}'"
+EXTRA_OEMAKE += "'DESTDIR=${D}' 'BINDIR=${sbindir}'

'MANDIR=${mandir}'"

Quoted 1 line

if its needed just during install then we could pass it directly in oe_runmake in do_install below

meta-networking/recipes-support/arptables/arptables_git.bb SYSTEMD_SERVICE_${PN} = "arptables.service"

Quoted 4 lines
meta-networking/recipes-support/arptables/arptables_git.bb +2 -1
-do_install_append() {
+do_install() {
+    oe_runmake install
     if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true',

'false', d)}; then

Quoted 2 lines
         install -d ${D}${systemd_unitdir}/system
         install -m 644 ${WORKDIR}/arptables.service

${D}${systemd_unitdir}/system

Quoted 8 lines

--
2.14.2

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel