You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
packaging: Debian packaging is broken yet again #482
Do we really need to duplicate all the file installation rules in debian/rules? I suggest we do as much of the installation as possible with CMakeLists.txt, so that debian/rules would do as much as possible automatically.
Is there any rationale for building both debug and release builds of stlink when packaging?
Use of cmake install would be better in terms of maintenance.
I am not sure how to tell cmake where to install
adapt debian/*.install files to copy from cmake install dir, instead of from debian/tmp
or you can manage to install to debain/tmp with cmake
cmake should handle multiarch library paths
Just that tests depends on debug build. The build stage calls make all and all depends on release. The tests stage calls make test and test depends on debug. This is why both where build. I think automated tests where a good thing and should run, but you can disable it by add override_dh_auto_tests: to debian/rules, if you want.
@OsterlaD As @texane noted, you can just add DESTDIR= make install. In debian rules you don't have to mention this, as default debian stuff gets the job done already. Basically:
Is the only thing required and the only thing that I keep around my cmake-based projects. dpkg does the rest automatically.
@texane For my projects (See http://github.com/nekromant/aura) I add tests for production builds as well, but only those that don't require hardware connected by default. They are just not installed during the 'make install' phase. If dpkg-buildpackage won't find any tests it just won't run any, and since we have a CI I really think we can safely skip tests for packaging.
I thought about this way too.
dh_auto_build will call make all, which calls cmake at its own.
This is why dh_auto_configure has no effect.
So I removed code from dh_auto_configure.
There is no make install.
Activity
xor-gate commentedon Sep 22, 2016
I quote:
xor-gate commentedon Sep 22, 2016
xor-gate commentedon Sep 22, 2016
xor-gate commentedon Sep 22, 2016
You can tell cmake to install into
DESTDIRwithmake install. See https://cmake.org/cmake/help/v3.0/variable/CMAKE_INSTALL_PREFIX.html (stackoverflow question)nekromant commentedon Sep 22, 2016
@OsterlaD As @texane noted, you can just add DESTDIR= make install. In debian rules you don't have to mention this, as default debian stuff gets the job done already. Basically:
Is the only thing required and the only thing that I keep around my cmake-based projects. dpkg does the rest automatically.
@texane For my projects (See http://github.com/nekromant/aura) I add tests for production builds as well, but only those that don't require hardware connected by default. They are just not installed during the 'make install' phase. If dpkg-buildpackage won't find any tests it just won't run any, and since we have a CI I really think we can safely skip tests for packaging.
xor-gate commentedon Sep 22, 2016
@nekromant i'm @xor-gate :=) not @texane :D
OsterlaD commentedon Sep 22, 2016
I thought about this way too.
dh_auto_build will call
make all, which callscmakeat its own.This is why dh_auto_configure has no effect.
So I removed code from dh_auto_configure.
There is no
make install.xor-gate commentedon Sep 22, 2016
We could add
make installto the toplevelMakefilewhich just callsmake installin the release buildOsterlaD commentedon Sep 22, 2016
Sounds good. Maybe I have some time to try it later on.
nekromant commentedon Sep 22, 2016
@xor-gate I'll give it a proper try tomorrow. And sorry for the typo. Tough day.
OsterlaD commentedon Sep 22, 2016
#484 use of
make installLintian has some suggestions
I would like to add a postinst script to libstlink to reload udev rules.
xor-gate commentedon Oct 9, 2016
I think this is now completely resolved?
13 remaining items
[-]distribution: Debian packaging is broken yet again[/-][+]packaging: Debian packaging is broken yet again[/+]Nightwalker-87 commentedon Mar 17, 2020
Finally closed by #485.