arptables: Fix do_install task
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
@@ -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
Quoted 1 line · Fabio Berton
We need to set DESTDIR variable and run
eo_runmakeinstall to install all
^^
typo
Quoted 13 lines
arptables files. Without this the only file installed in package is systemd unit.
Signed-off-by Fabio Berton <[email protected]>--- 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
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
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_runmakeinstall to install all^^typo
Review
Quoted 9 lines
arptables files. Without this the only file installed in package is systemd unit.
Signed-off-by Fabio Berton <[email protected]>--- meta-networking/recipes-support/arptables/arptables_git.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)(quoted diff) +0
-0b/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..55903e450100644meta-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_runmakeindo_installbelowmeta-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
-0install -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
Quoted 4 lines · Fabio Berton
Hi Khem,
do_compiletask uses theseEXTRA_OEMAKEvariables 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_runmakeinstall to installall
^^typo
Review
Quoted 9 lines
arptables files. Without this the only file installed in package is systemd unit.
Signed-off-by Fabio Berton <[email protected]>--- meta-networking/recipes-support/arptables/arptables_git.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)(quoted diff) +0
-0b/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..55903e450100644meta-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_runmakeindo_installbelowmeta-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
-0install -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
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_compiletask uses theseEXTRA_OEMAKEvariables 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_runmakeinstall to installall
^^
typoReview
Quoted 9 lines
arptables files. Without this the only file installed in package is systemd unit.
Signed-off-by Fabio Berton <[email protected]>--- meta-networking/recipes-support/arptables/arptables_git.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)(quoted diff) +0
-0git.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..55903e450100644meta-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_runmakeindo_installbelowmeta-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