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

Fix of build errors for Debian Stretch #707

Closed
wants to merge 2 commits into from

Conversation

joede
Copy link
Contributor

@joede joede commented Apr 11, 2018

Since I have to start using STM32 MCUs, I've built Debian packages out of your sources. There were some errors which I have fixed. As a result of these fixes, I have working Debian packages which I can install. I haven't had the time and hardware to test the code!

This PR should fix the issue #700.

Note: the entry in debian/Changelog is not what you need. ;-)

@slyshykO
Copy link
Collaborator

I try to fix #700 in #701.
Can you check it?

@joede
Copy link
Contributor Author

joede commented Apr 12, 2018

@slyshykO doesn't work for me here with Debian 9! IMO the debian/*.install files are wrong.

   dh_install -O--buildsystem=cmake
dh_install: Cannot find (any matches for) "usr/lib/*/lib*.a" (tried in "." and "debian/tmp")
dh_install: libstlink-dev missing files: usr/lib/*/lib*.a
dh_install: Cannot find (any matches for) "usr/lib/*/pkgconfig/*" (tried in "." and "debian/tmp")
dh_install: libstlink-dev missing files: usr/lib/*/pkgconfig/*
dh_install: Cannot find (any matches for) "usr/lib/*/lib*.so" (tried in "." and "debian/tmp")
dh_install: libstlink-dev missing files: usr/lib/*/lib*.so
dh_install: Cannot find (any matches for) "usr/lib/*/lib*.so.*" (tried in "." and "debian/tmp")
dh_install: libstlink1 missing files: usr/lib/*/lib*.so.*
dh_install: missing files, aborting
debian/rules:14: die Regel für Ziel „binary“ scheiterte

@bluca
Copy link
Contributor

bluca commented Apr 12, 2018

Sorry but these changes are wrong, they break multiarch - it's the cmake option passed in d/rules that needs changing

@joede
Copy link
Contributor Author

joede commented Apr 12, 2018

@bluca what does you mean with "break multiarch"?

@bluca
Copy link
Contributor

bluca commented Apr 12, 2018

See section 9.1.1.4 of the Policy: https://www.debian.org/doc/debian-policy/

@joede
Copy link
Contributor Author

joede commented Apr 12, 2018

@bluca thanks for the link. So the CMake system must be configured to use "/usr/lib/triplet" (i.e. /usr/lib/x86_64-linux-gnu) instead of the "deprecated" /usr/lib?

@bluca
Copy link
Contributor

bluca commented Apr 12, 2018

See #701 (comment)

@xor-gate
Copy link
Member

Not sure but after merge of #701 this PR should not be necessary anymore. @joede could you verify?

@joede
Copy link
Contributor Author

joede commented Apr 17, 2018

@xor-gate yes, it's obsolete now. Sorry, I've forgotten to close it.

@joede joede closed this Apr 17, 2018
@xor-gate
Copy link
Member

No problem, thanks for the effort.

@Nightwalker-87 Nightwalker-87 added this to the v1.5.1 milestone Mar 18, 2020
@Nightwalker-87 Nightwalker-87 linked an issue Mar 18, 2020 that may be closed by this pull request
@stlink-org stlink-org locked as resolved and limited conversation to collaborators Apr 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Installation issue under linux
5 participants