Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wiringpi: DYN_VERS_MAJ variable in Makefiles is unset #362

Closed
erikhh opened this issue Dec 17, 2018 · 7 comments
Closed

Wiringpi: DYN_VERS_MAJ variable in Makefiles is unset #362

erikhh opened this issue Dec 17, 2018 · 7 comments

Comments

@erikhh
Copy link

erikhh commented Dec 17, 2018

Description
When using the wiringpi recipe, sysroot-destdir/usr/lib contains the following files after building:

Dec 14 14:16 libwiringPiDev.so -> libwiringPiDev.so.2.46
Dec 14 14:16 libwiringPiDev.so. -> libwiringPiDev.so.2.46
Dec 14 14:16 libwiringPiDev.so.2.46
Dec 14 14:16 libwiringPi.so -> libwiringPi.so.2.46
Dec 14 14:16 libwiringPi.so. -> libwiringPi.so.2.46
Dec 14 14:16 libwiringPi.so.2.46

Steps to reproduce the issue:
On the thud branch.
Just add wiringpi to IMAGE_INSTALL_append.

Describe the results you received:

Dec 14 14:16 libwiringPiDev.so -> libwiringPiDev.so.2.46
Dec 14 14:16 libwiringPiDev.so. -> libwiringPiDev.so.2.46
Dec 14 14:16 libwiringPiDev.so.2.46
Dec 14 14:16 libwiringPi.so -> libwiringPi.so.2.46
Dec 14 14:16 libwiringPi.so. -> libwiringPi.so.2.46
Dec 14 14:16 libwiringPi.so.2.46

Describe the results you expected:

Dec 14 14:16 libwiringPiDev.so -> libwiringPiDev.so.2.46
Dec 14 14:16 libwiringPiDev.so.2 -> libwiringPiDev.so.2.46
Dec 14 14:16 libwiringPiDev.so.2.46
Dec 14 14:16 libwiringPi.so -> libwiringPi.so.2.46
Dec 14 14:16 libwiringPi.so.2 -> libwiringPi.so.2.46
Dec 14 14:16 libwiringPi.so.2.46

Additional information you deem important (e.g. issue happens only occasionally):

I think this is caused by the variable DYN_VERS_MAJ in wiringPi/Makefile and devLib/Makefile not getting a value. It's not clear to me at all where it should get a value from.

I ran a build where I hardcoded DYN_VERS_MAJ=2 in both Makefiles, that does produce the right output but I doubt it's a durable fix.

If someone can point me in the direction of a durable fix I'll make a PR out of it.

@agherzan
Copy link
Owner

It sounds like a bug in the package itself. What version of wiringpi is this? Can you try to downgrade and see what you get?

@erikhh
Copy link
Author

erikhh commented Dec 19, 2018

It's wiringpi 2.46 meta-raspberrypi on thud.
I have the same behaviour on sumo. Which is 2.44 I think? I'm not really setup at the moment to try things further back.
As far as I can tell the variable DYN_VERS_MAJ is only introduced by the patch file 0001-Add-initial-cross-compile-support.patch

@agherzan
Copy link
Owner

Right. That is a very good catch. I'd need to dig into it. If you happen to figure it out in the meanwhile just shoot a PR.

erikhh pushed a commit to erikhh/meta-raspberrypi that referenced this issue Dec 20, 2018
To fix the behaviour described in
agherzan#362

Signed-off-by: ErikHH <erik.hoogeveen@outlook.com>
erikhh pushed a commit to erikhh/meta-raspberrypi that referenced this issue Dec 20, 2018
To fix the behaviour described in
agherzan#362

Signed-off-by: ErikHH <erik.hoogeveen@outlook.com>
agherzan pushed a commit that referenced this issue Feb 8, 2019
To fix the behaviour described in
#362

Signed-off-by: ErikHH <erik.hoogeveen@outlook.com>
@agherzan
Copy link
Owner

agherzan commented Feb 8, 2019

This was fixed on thud but awaits patch to master as well.

geissonator pushed a commit to openbmc/openbmc that referenced this issue Feb 9, 2019
To fix the behaviour described in
agherzan/meta-raspberrypi#362

(From meta-raspberrypi rev: d5d92f2cb7f2bf7ef3322da560f35deb59deedf6)

Change-Id: I9755d845a31aa71125463e1e97457e14ba6cd76d
Signed-off-by: ErikHH <erik.hoogeveen@outlook.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
@erikhh
Copy link
Author

erikhh commented Feb 18, 2019

Like this? #385

@agherzan
Copy link
Owner

Yes. Thanks @erikhh .

erikhh pushed a commit to erikhh/meta-raspberrypi that referenced this issue Feb 19, 2019
To fix the behaviour described in
agherzan#362

Signed-off-by: ErikHH <erik.hoogeveen@outlook.com>
agherzan pushed a commit that referenced this issue Feb 19, 2019
To fix the behaviour described in
#362

Signed-off-by: ErikHH <erik.hoogeveen@outlook.com>
@agherzan
Copy link
Owner

agherzan commented Feb 19, 2019

Fixed in master too. Thanks @erikhh .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants