Skip to contentSkip to conversation

bmap-tools: Add RDEPENDS on python3-misc

PATCH In review Alex Kiernan 3 participants 4 messages May 3, 2019 – May 8, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bmap-tools: Add RDEPENDS on python3-misc

The newer python3 recipe no longer includes python3-misc in target by default, leading to failures:

Traceback (most recent call last):
File "/usr/bin/bmaptool", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 42, in <module>
import ntpath
ModuleNotFoundError: No module named 'ntpath'

---

 meta/recipes-support/bmap-tools/bmap-tools_3.5.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-support/bmap-tools/bmap-tools_3.5.bb +1 -0
index 7c4db85b32c2..2bb4a58d4cb3 100644
@@ -18,6 +18,7 @@ PV .= "+git${SRCPV}"
 UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
 
 RDEPENDS_${PN} = "python3-core python3-compression python3-mmap python3-setuptools python3-fcntl python3-six"
+RDEPENDS_${PN}_append_class-target = " python3-misc"
 
 inherit python3native
 inherit setuptools3
Signature · 1 line
2.17.1
#1 lore raw
Quoted 9 lines · Alex Kiernan

The newer python3 recipe no longer includes python3-misc in target by default, leading to failures:

Traceback (most recent call last):
File "/usr/bin/bmaptool", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 42, in <module>
import ntpath
ModuleNotFoundError: No module named 'ntpath'

Looks like ntpath should be in a different package if pkg_resources won't run without it.

Quoted 2 lines

RDEPENDS_${PN} = "python3-core python3-compression python3-mmap python3-setuptools python3-fcntl python3-six"
+RDEPENDS_${PN}_append_class-target = " python3-misc"

Why class-target only?

Ross

#2 lore raw
Quoted 12 lines · Ross
Quoted 9 lines · Alex Kiernan

The newer python3 recipe no longer includes python3-misc in target by default, leading to failures:

Traceback (most recent call last):
File "/usr/bin/bmaptool", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 42, in <module>
import ntpath
ModuleNotFoundError: No module named 'ntpath'

Quoted 3 lines

Looks like ntpath should be in a different package if pkg_resources won't run without it.

Sorry, should've looked more closely... I'll take a look at it.

Quoted 5 lines
Quoted 2 lines

RDEPENDS_${PN} = "python3-core python3-compression python3-mmap python3-setuptools python3-fcntl python3-six"
+RDEPENDS_${PN}_append_class-target = " python3-misc"

Why class-target only?

It doesn't exist for native (which was a surprise).

Signature · 1 line
Alex Kiernan
#3 lore raw
Quoted 4 lines · Alex Kiernan
Quoted 3 lines · Ross
Quoted 2 lines · Alex Kiernan

The newer python3 recipe no longer includes python3-misc in target by default, leading to failures:

This statement isn't true, the python3 package does include python3-misc, but the bmap-tools recipe

does not RDEPEND on python3, it RDEPENDS on python3-core (which is not the same).

Quoted 11 lines
Quoted 10 lines
Quoted 7 lines

Traceback (most recent call last):
File "/usr/bin/bmaptool", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 42, in <module>
import ntpath
ModuleNotFoundError: No module named 'ntpath'

Looks like ntpath should be in a different package if pkg_resources won't run without it.

Sorry, should've looked more closely... I'll take a look at it.

Yeah, it might be worth checking if ntpath either belongs on its own package or in another one.

Quoted 6 lines
Quoted 5 lines
Quoted 3 lines

RDEPENDS_${PN} = "python3-core python3-compression python3-mmap python3-setuptools python3-fcntl python3-six"
+RDEPENDS_${PN}_append_class-target = " python3-misc"

Why class-target only?

It doesn't exist for native (which was a surprise).

I think you're looking at this incorrectly, the python3-misc package does not exists for python3-native (because python3-native isn't split),

but, here, the class override you are using is stating that only bmap-tools(target) should RDEPEND on python3-misc, which I don't think

it should be the case, its likely that bmap-tools-native should RDEPEND on python3-misc-native, which although it doesn't actually exists

python3-native should be able to RPROVIDE.

Cheers,

Alejandro

Quoted 1 line