Skip to contentSkip to conversation

ypbind-mt: add dependency but keep as broken

PATCH In review Joe Slater 4 participants 7 messages Jul 22, 2015 – Jul 30, 2015

lore
Share & tools
lore

Joe Slater

author
#0 lore raw

PATCH 1/1 ypbind-mt: add dependency but keep as broken

We will need the conditional dependency on systemd. It is not a good idea to use PNBLACKLIST in a recipe, and the version here does not suppress lib32-ypbind-mt.

---
 recipes-support/nis/ypbind-mt_2.2.bb |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta-networking/recipes-support/nis/ypbind-mt_2.2.bb +4 -2
index 4f8bf48..359b020 100644
@@ -15,10 +15,12 @@ of known secure NIS server (/etc/yp.conf) Binds to \
 the server which answered as first. \
 "
 HOMEPAGE = "http://www.linux-nis.org/nis/ypbind-mt/index.html"
-DEPENDS = "yp-tools"
+DEPENDS = "yp-tools ${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
 PROVIDES += "ypbind"
 
-PNBLACKLIST[ypbind-mt] ?= "BROKEN: Depends on broken yp-tools"
+python () {
+    raise bb.parse.SkipPackage("BROKEN: Depends on broken yp-tools")
+}
 
 SRC_URI = "http://www.linux-nis.org/download/ypbind-mt/${BP}.tar.bz2 \
            file://ypbind-yocto.init \
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 2 lines · [[oe] [meta-networking][PATCH 1/1] ypbind-mt: add dependency but keep as…

We will need the conditional dependency on systemd. It is not a good idea to use PNBLACKLIST in a recipe, and the

It isn't a good idea to have a recipe that needs to be blacklisted. :-)

That said, it's here and there's still an argument for supporting it, so why remove PNBLACKLIST and replace it with something less obvious?

No objection to a conditional dependency on systemd.

-J.

Quoted 29 lines

version here does not suppress lib32-ypbind-mt.

---
 recipes-support/nis/ypbind-mt_2.2.bb |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta-networking/recipes-support/nis/ypbind-mt_2.2.bb +4 -2
index 4f8bf48..359b020 100644
@@ -15,10 +15,12 @@ of known secure NIS server (/etc/yp.conf) Binds to \
 the server which answered as first. \
 "
 HOMEPAGE = "http://www.linux-nis.org/nis/ypbind-mt/index.html"
-DEPENDS = "yp-tools"
+DEPENDS = "yp-tools ${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
 PROVIDES += "ypbind"
 
-PNBLACKLIST[ypbind-mt] ?= "BROKEN: Depends on broken yp-tools"
+python () {
+    raise bb.parse.SkipPackage("BROKEN: Depends on broken yp-tools")
+}
 
 SRC_URI = "http://www.linux-nis.org/download/ypbind-mt/${BP}.tar.bz2 \
            file://ypbind-yocto.init \
Signature · 1 line
1.7.9.5
Signature · 2 lines
-Joe MacDonald.
:wq
#2 lore raw
Quoted 13 lines

-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of Joe MacDonald
Sent: Wednesday, July 22, 2015 1:31 PM
To: [email protected]
Subject: Re: [oe] [meta-networking][PATCH 1/1] ypbind-mt: add dependency but keep as broken

[[oe] [meta-networking][PATCH 1/1] ypbind-mt: add dependency but keep as broken] On 15.07.22 (Wed 11:54) Joe Slater wrote:

Quoted 7 lines
Quoted 2 lines

We will need the conditional dependency on systemd. It is not a good idea to use PNBLACKLIST in a recipe, and the

It isn't a good idea to have a recipe that needs to be blacklisted. :-)

That said, it's here and there's still an argument for supporting it, so why remove PNBLACKLIST and replace it with something less obvious?

Blacklisting oneself is esthetically unpleasing. But, beyond that, it doesn't work for multilib variants, and for some reason PNBLACKLIST[${PN}] does not parse.

Joe

Quoted 38 lines

No objection to a conditional dependency on systemd.

-J.

meta-

Quoted 8 lines

version here does not suppress lib32-ypbind-mt.

---
 recipes-support/nis/ypbind-mt_2.2.bb |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta- renamed from meta-networking/recipes-support/nis/ypbind-mt_2.2.bb +0 -0

networking/recipes-support/nis/ypbind-mt_2.2.bb

Quoted 19 lines

index 4f8bf48..359b020 100644

meta-networking/recipes-support/nis/ypbind-mt_2.2.bb +4 -3
@@ -15,10 +15,12 @@ of known secure NIS server (/etc/yp.conf) Binds to \
 the server which answered as first. \
 "
 HOMEPAGE = "http://www.linux-nis.org/nis/ypbind-mt/index.html"
-DEPENDS = "yp-tools"
+DEPENDS = "yp-tools ${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
 PROVIDES += "ypbind"
 
-PNBLACKLIST[ypbind-mt] ?= "BROKEN: Depends on broken yp-tools"
+python () {
+    raise bb.parse.SkipPackage("BROKEN: Depends on broken yp-tools")
+}
 
 SRC_URI = "http://www.linux-nis.org/download/ypbind-mt/${BP}.tar.bz2 \
            file://ypbind-yocto.init \
--
Quoted 2 lines

1.7.9.5

--
-Joe MacDonald.
:wq

#3 lore raw
Quoted 15 lines · Joseph
Quoted 15 lines

-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of Joe MacDonald
Sent: Wednesday, July 22, 2015 1:31 PM
To: [email protected]
Subject: Re: [oe] [meta-networking][PATCH 1/1] ypbind-mt: add dependency but keep as broken

[[oe] [meta-networking][PATCH 1/1] ypbind-mt: add dependency but keep as broken] On

Quoted 2 lines · 15.07.22 (Wed 11:54) Joe Slater wrote:

We will need the conditional dependency on systemd. It is not a good idea to use PNBLACKLIST in a recipe, and the

Quoted 6 lines
Quoted 4 lines

It isn't a good idea to have a recipe that needs to be blacklisted. :-)

That said, it's here and there's still an argument for supporting it, so why remove PNBLACKLIST and replace it with something less obvious?

Blacklisting oneself is esthetically unpleasing.

I won't argue there. But it happens because it's a less violent option than kicking the recipe to the curb and waiting for pick-up day. It does allow someone using the recipe to come along and still use it for their scenario if they need it and they know the reason for the blacklisting doesn't apply to them.

Quoted 2 lines

But, beyond that, it doesn't work for multilib variants, and for some reason PNBLACKLIST[${PN}] does not parse.

I don't know about that, but maybe a patch to poky is appropriate instead. It's nothing to be proud of, but there are dozens of recipes in meta-openembedded/ right now that are blacklisted, unless you're planning on submitting the same construct to replace all of them, I don't think there's much more to discuss on it.

I'm marking this 'changes requested'. Do you think you could re-submit with just the dependency change?

Thanks,
-J.

Quoted 42 lines

Joe

Quoted 38 lines

No objection to a conditional dependency on systemd.

-J.

meta-

Quoted 8 lines

version here does not suppress lib32-ypbind-mt.

---
 recipes-support/nis/ypbind-mt_2.2.bb |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta- renamed from meta-networking/recipes-support/nis/ypbind-mt_2.2.bb +0 -0

networking/recipes-support/nis/ypbind-mt_2.2.bb

Quoted 19 lines

index 4f8bf48..359b020 100644

meta-networking/recipes-support/nis/ypbind-mt_2.2.bb +4 -3
@@ -15,10 +15,12 @@ of known secure NIS server (/etc/yp.conf) Binds to \
 the server which answered as first. \
 "
 HOMEPAGE = "http://www.linux-nis.org/nis/ypbind-mt/index.html"
-DEPENDS = "yp-tools"
+DEPENDS = "yp-tools ${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
 PROVIDES += "ypbind"
 
-PNBLACKLIST[ypbind-mt] ?= "BROKEN: Depends on broken yp-tools"
+python () {
+    raise bb.parse.SkipPackage("BROKEN: Depends on broken yp-tools")
+}
 
 SRC_URI = "http://www.linux-nis.org/download/ypbind-mt/${BP}.tar.bz2 \
            file://ypbind-yocto.init \
--
Quoted 2 lines

1.7.9.5

--
-Joe MacDonald.
:wq

Signature · 2 lines
-Joe MacDonald.
:wq
#4 lore raw
Quoted 44 lines

-----Original Message-----
From: Joe MacDonald [mailto:[email protected]]
Sent: Thursday, July 30, 2015 8:41 AM
To: Slater, Joseph
Cc: [email protected]
Subject: Re: [oe] [meta-networking][PATCH 1/1] ypbind-mt: add dependency but keep as broken

[Re: [oe] [meta-networking][PATCH 1/1] ypbind-mt: add dependency but keep as broken] On

Quoted 15 lines · Joseph
Quoted 15 lines

-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of Joe MacDonald
Sent: Wednesday, July 22, 2015 1:31 PM
To: [email protected]
Subject: Re: [oe] [meta-networking][PATCH 1/1] ypbind-mt: add dependency but keep as broken

[[oe] [meta-networking][PATCH 1/1] ypbind-mt: add dependency but keep as broken] On

Quoted 2 lines · 15.07.22 (Wed 11:54) Joe Slater wrote:

We will need the conditional dependency on systemd. It is not a good idea to use PNBLACKLIST in a recipe, and the

Quoted 6 lines
Quoted 4 lines

It isn't a good idea to have a recipe that needs to be blacklisted. :-)

That said, it's here and there's still an argument for supporting it, so why remove PNBLACKLIST and replace it with something less obvious?

Blacklisting oneself is esthetically unpleasing.

I won't argue there. But it happens because it's a less violent option than kicking the recipe to the curb and waiting for pick-up day. It does allow someone using the recipe to come along and still use it for their scenario if they need it and they know the reason for the blacklisting doesn't apply to them.

Quoted 2 lines

But, beyond that, it doesn't work for multilib variants, and for some reason PNBLACKLIST[${PN}] does not parse.

Quoted 8 lines

I don't know about that, but maybe a patch to poky is appropriate instead. It's nothing to be proud of, but there are dozens of recipes in meta-openembedded/ right now that are blacklisted, unless you're planning on submitting the same construct to replace all of them, I don't think there's much more to discuss on it.

I'm marking this 'changes requested'. Do you think you could re-submit with just the dependency change?

Sure. I'll check, though, if maybe PNBLACKLIST["${PN}"] parses, in which case I'll use that for the blacklisting.

Joe

Quoted 50 lines

Thanks,
-J.

Quoted 18 lines

Joe

Quoted 14 lines

No objection to a conditional dependency on systemd.

-J.

meta-

Quoted 8 lines

version here does not suppress lib32-ypbind-mt.

---
 recipes-support/nis/ypbind-mt_2.2.bb |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta- renamed from meta-networking/recipes-support/nis/ypbind-mt_2.2.bb +0 -0

networking/recipes-support/nis/ypbind-mt_2.2.bb

Quoted 9 lines
Quoted 9 lines

meta-networking/recipes-support/nis/ypbind-mt_2.2.bb of known secure NIS server (/etc/yp.conf) Binds to \ · line 18

Quoted 9 lines

index 4f8bf48..359b020 100644

meta-networking/recipes-support/nis/ypbind-mt_2.2.bb +1 -1
@@ -15,10 +15,12 @@ of known secure NIS server (/etc/yp.conf) Binds to \
 the server which answered as first. \
 "
 HOMEPAGE = "http://www.linux-nis.org/nis/ypbind-mt/index.html"
-DEPENDS = "yp-tools"
+DEPENDS = "yp-tools ${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '',

d)}"

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
meta-networking/recipes-support/nis/ypbind-mt_2.2.bb +3 -1
 PROVIDES += "ypbind"
 
-PNBLACKLIST[ypbind-mt] ?= "BROKEN: Depends on broken yp-tools"
+python () {
+    raise bb.parse.SkipPackage("BROKEN: Depends on broken yp-tools")
+}
 
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
meta-networking/recipes-support/nis/ypbind-mt_2.2.bb +0 -1
 SRC_URI = "http://www.linux-nis.org/download/ypbind-mt/${BP}.tar.bz2 \
            file://ypbind-yocto.init \
--

1.7.9.5

--
-Joe MacDonald.
:wq

--
-Joe MacDonald.
:wq

#5 lore raw
Quoted 50 lines · Joseph
Quoted 50 lines

-----Original Message-----
From: Joe MacDonald [mailto:[email protected]]
Sent: Thursday, July 30, 2015 8:41 AM
To: Slater, Joseph
Cc: [email protected]
Subject: Re: [oe] [meta-networking][PATCH 1/1] ypbind-mt: add dependency but keep as broken

[Re: [oe] [meta-networking][PATCH 1/1] ypbind-mt: add dependency but keep as broken] On

Quoted 15 lines · Joseph
Quoted 15 lines

-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of Joe MacDonald
Sent: Wednesday, July 22, 2015 1:31 PM
To: [email protected]
Subject: Re: [oe] [meta-networking][PATCH 1/1] ypbind-mt: add dependency but keep as broken

[[oe] [meta-networking][PATCH 1/1] ypbind-mt: add dependency but keep as broken] On

Quoted 2 lines · 15.07.22 (Wed 11:54) Joe Slater wrote:

We will need the conditional dependency on systemd. It is not a good idea to use PNBLACKLIST in a recipe, and the

Quoted 6 lines
Quoted 4 lines

It isn't a good idea to have a recipe that needs to be blacklisted. :-)

That said, it's here and there's still an argument for supporting it, so why remove PNBLACKLIST and replace it with something less obvious?

Blacklisting oneself is esthetically unpleasing.

I won't argue there. But it happens because it's a less violent option than kicking the recipe to the curb and waiting for pick-up day. It does allow someone using the recipe to come along and still use it for their scenario if they need it and they know the reason for the blacklisting doesn't apply to them.

Quoted 2 lines

But, beyond that, it doesn't work for multilib variants, and for some reason PNBLACKLIST[${PN}] does not parse.

I don't know about that, but maybe a patch to poky is appropriate instead. It's nothing to be proud of, but there are dozens of recipes in meta-openembedded/ right now that are blacklisted, unless you're planning on submitting the same construct to replace all of them, I don't think there's much more to discuss on it.

Quoted 5 lines
Quoted 2 lines

I'm marking this 'changes requested'. Do you think you could re-submit with just the dependency change?

Sure. I'll check, though, if maybe PNBLACKLIST["${PN}"] parses, in which case I'll use that for the blacklisting.

I still don't see any reason to change "PNBLACKLIST[ypbind-mt]".

Quoted 57 lines

Joe

Quoted 50 lines

Thanks,
-J.

Quoted 18 lines

Joe

Quoted 14 lines

No objection to a conditional dependency on systemd.

-J.

meta-

Quoted 8 lines

version here does not suppress lib32-ypbind-mt.

---
 recipes-support/nis/ypbind-mt_2.2.bb |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta- renamed from meta-networking/recipes-support/nis/ypbind-mt_2.2.bb +0 -0

networking/recipes-support/nis/ypbind-mt_2.2.bb

Quoted 9 lines
Quoted 9 lines

meta-networking/recipes-support/nis/ypbind-mt_2.2.bb of known secure NIS server (/etc/yp.conf) Binds to \ · line 18

Quoted 9 lines

index 4f8bf48..359b020 100644

meta-networking/recipes-support/nis/ypbind-mt_2.2.bb +1 -1
@@ -15,10 +15,12 @@ of known secure NIS server (/etc/yp.conf) Binds to \
 the server which answered as first. \
 "
 HOMEPAGE = "http://www.linux-nis.org/nis/ypbind-mt/index.html"
-DEPENDS = "yp-tools"
+DEPENDS = "yp-tools ${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '',

d)}"

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
meta-networking/recipes-support/nis/ypbind-mt_2.2.bb +3 -1
 PROVIDES += "ypbind"
 
-PNBLACKLIST[ypbind-mt] ?= "BROKEN: Depends on broken yp-tools"
+python () {
+    raise bb.parse.SkipPackage("BROKEN: Depends on broken yp-tools")
+}
 
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
meta-networking/recipes-support/nis/ypbind-mt_2.2.bb +0 -1
 SRC_URI = "http://www.linux-nis.org/download/ypbind-mt/${BP}.tar.bz2 \
            file://ypbind-yocto.init \
--

1.7.9.5

--
-Joe MacDonald.
:wq

--
-Joe MacDonald.
:wq

Signature · 4 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#6 lore raw
In reply to Joe Slater
Quoted 3 lines · Joe Slater

We will need the conditional dependency on systemd. It is

not a good idea to use PNBLACKLIST in a recipe, and the

Why?

Quoted 34 lines

version here does not suppress lib32-ypbind-mt.

---
 recipes-support/nis/ypbind-mt_2.2.bb |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta-networking/recipes-support/nis/ypbind-mt_2.2.bb +4 -2
index 4f8bf48..359b020 100644
@@ -15,10 +15,12 @@ of known secure NIS server (/etc/yp.conf) Binds to \
 the server which answered as first. \
 "
 HOMEPAGE = "http://www.linux-nis.org/nis/ypbind-mt/index.html"
-DEPENDS = "yp-tools"
+DEPENDS = "yp-tools ${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
 PROVIDES += "ypbind"
 
-PNBLACKLIST[ypbind-mt] ?= "BROKEN: Depends on broken yp-tools"
+python () {
+    raise bb.parse.SkipPackage("BROKEN: Depends on broken yp-tools")
+}
 
 SRC_URI = "http://www.linux-nis.org/download/ypbind-mt/${BP}.tar.bz2 \
            file://ypbind-yocto.init \
Signature · 7 lines
1.7.9.5

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]