dl9pf / meta-spdxscanner

SPDX scanner support
MIT License
9 stars 10 forks source link

[Question] ParseError : inherit setuptools pypi distutils native #18

Closed soimsoim closed 4 years ago

soimsoim commented 4 years ago

When I try to build meta-spdxscanner in pocky, I get the following error: How could I solve it?

ERROR: ParseError at /pocky_spdx/poky/meta-spdxscanner/recipes-devtools/scancode-toolkit/scancode-toolkit-native_3.1.1.bb:13: Could not inherit file classes/setuptools.bbclass (inherit setuptools pypi distutils native)

Is there a pokcy version suitable for testing?

Thanks & Regards, Soim

soimsoim commented 4 years ago

When I try to build git://git.openembedded.org/openembedded-core by adding meta-spdxscanner, it doesn't show ParseError that I mentioned.

I tried to scancode anlysis by adding below to conf/local.conf.

INHERIT += "scancode-tk"

But it shows below error message.

Aborted dependency loops search after 10 matches.

soimsoim commented 4 years ago

The following description was found. How do I use meta-spdxscanner/classes/nopackages.bbclass instead the file comes from oe-core?

To aviod loop dependence,please use meta-spdxscanner/classes/nopackages.bbclass instead the file comes from oe-core.

Now we're building with ihherit += scancode-tk, nopackages as well. The build seems to be successful.

leimaohui commented 4 years ago

That’s great! Please contact me when you have any question.

soimsoim commented 4 years ago

The following description was found. How do I use meta-spdxscanner/classes/nopackages.bbclass instead the file comes from oe-core?

I tried to build with ihherit + = scancode-tk, nopackages, but I failed.

leimaohui commented 4 years ago

The following description was found. How do I use meta-spdxscanner/classes/nopackages.bbclass instead the file comes from oe-core?

Please modified nopackages.bbclass of oe-core manually or cover it by meta-spdxscanner/classes/nopackages.bbclass. Later I'll try to submit this patch into poky community again.

soimsoim commented 4 years ago

I modified it as you commented and it is analyzed for every package in the whole build! Thank you so much.