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

Fixes for Debian package distribution #1004

Merged
merged 37 commits into from
Jul 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
64ef6a8
Change format to non-native, set myself as maintainer
bluca Mar 13, 2018
8488390
Repack tarball to remove debian/ and stlinkv1_macosx_driver/
bluca Mar 16, 2018
abdf4ce
Remove breaks and replaces, not applicable to Debian
bluca Mar 16, 2018
ef9d527
Update changelog for 1.5.0+ds-1 release
bluca Mar 16, 2018
4031f53
Merge tag 'v1.5.1' into debian
bluca Sep 28, 2018
66e5e3a
Mark packages as linux-any, other systems not supported.
bluca Sep 28, 2018
acd192f
Update changelog for 1.5.1+ds-1 release
bluca Sep 28, 2018
8a07f12
Mark library packages as Multi-Arch: same.
bluca Sep 28, 2018
bc01701
Apply cross.patch to fix cross-compiling the GUI.
bluca Sep 29, 2019
ecfb5be
Vcs-Git: add -b debian
bluca Sep 29, 2019
52189af
Set Rules-Requires-Root: no
bluca Sep 29, 2019
4f29ef9
Bump Standards-Version to 4.4.0
bluca Sep 29, 2019
0b62960
Update changelog for 1.5.1+ds-2 release
bluca Sep 29, 2019
7915663
Merge tag 'v1.6.0' into debian
bluca Feb 25, 2020
14c2cbe
Bump Standards-Version to 4.5.0, no changes.
bluca Feb 25, 2020
d3021e5
Add d/s/options to ignore repacked files
bluca Feb 25, 2020
0044113
Update libstlink1 symbols file for 1.6.0.
bluca Feb 25, 2020
f92878d
Update changelog for 1.6.0+ds-1 release
bluca Feb 25, 2020
6aa08a6
Merge pull request #969 from stlink-org/develop
Nightwalker-87 May 31, 2020
348903b
Merge tag 'v1.6.1' into debian
bluca Jun 6, 2020
77df52f
Update Files-Excluded in d/copyright for new layout
bluca Jun 6, 2020
3775e75
Fix d/watch intermediary file name
bluca Jun 6, 2020
b4ddd0d
Drop cross.patch, merged upstream in v1.6.1
bluca Jun 6, 2020
fbaf536
Bump Build-Depends to cmake >= 3.4.2
bluca Jun 6, 2020
1ea5b4d
Add new symbols from upstream version 1.6.1
bluca Jun 6, 2020
c74c942
Adjust install files, some files moved
bluca Jun 6, 2020
f509507
Remove unused variable from d/rules
bluca Jun 6, 2020
0052b90
Generate pkgconfig file from d/rules, upstream doesn't do it
bluca Jun 6, 2020
b85c7fb
Switch to debhelper-compat 12
bluca Jun 6, 2020
7056afe
Update changelog for 1.6.1+ds-1 release
bluca Jun 6, 2020
44c7de7
Update d/copyright to remove GPL-2+ stanza about flashloaders
bluca Jun 21, 2020
1195dae
Update upstream URLs for new Github org
bluca Jun 21, 2020
9fd796c
Patch CMake's hard-coded define of XML gui file location
bluca Jun 21, 2020
a741f41
Update changelog for 1.6.1+ds-2 release
bluca Jun 21, 2020
66c6696
Corrected settings for deb pkg distribution
Nightwalker-87 Jun 28, 2020
2694214
Corrected install paths & changelog files
Nightwalker-87 Jun 29, 2020
eb386ba
Merge branch 'develop' into debian
Nightwalker-87 Jul 5, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmake/packaging/deb/changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
stlink (1.6.1+ds-1) unstable; urgency=medium
stlink (1.6.1) unstable; urgency=medium

* Initial cpack-based package release for Debian/Ubuntu

-- Nightwalker-87 <stlink-org> Sat, 06 Jun 2020 00:00:00 +0100
-- Nightwalker-87 <stlink-org> Mon, 01 Jun 2020 00:00:00 +0100
3 changes: 2 additions & 1 deletion cmake/packaging/deb/control
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
Source: stlink
Priority: optional
Maintainer: stlink-org
Build-Depends: cmake, dh-cmake, debhelper (>= 9), libusb-1.0-0-dev, libgtk-3-dev
Standards-Version: 4.5.0
Rules-Requires-Root: no
Section: electronics
Priority: optional
Homepage: https://github.com/stlink-org/stlink
Vcs-Git: https://github.com/stlink-org/stlink.git
Vcs-Browser: https://github.com/stlink-org/stlink
5 changes: 3 additions & 2 deletions cmake/packaging/deb/copyright
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: stlink
Upstream-Contact: stlink-org
Upstream-Contact: Nightwalker-87 <stlink-org>
Source: https://github.com/stlink-org/stlink
Files-Excluded: stlinkv1_macos_driver

Files: *
Copyright: 2011-2020 stlink-org
Expand All @@ -10,7 +11,7 @@ Copyright: 2011-2020 stlink-org
Jerry Jacobs [xor-gate]
[Nightwalker-87]
and many others...
A list of contributors can be found in "contributors.txt".
An extended list of contributors can be found in "contributors.txt".
License: BSD-3-clause
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Expand Down
10 changes: 10 additions & 0 deletions debian/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.debhelper
files
debhelper-build-stamp
*.log
*.substvars
libstlink-dev
libstlink
stlink-gui
stlink-tools
tmp
74 changes: 74 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
stlink (1.6.1+ds-2) unstable; urgency=medium

* Update d/copyright to remove GPL-2+ stanza about flashloaders
* Update upstream URLs for new Github org
* Patch CMake's hard-coded define of XML gui file location (Closes:
#963219)

-- Luca Boccassi <bluca@debian.org> Sun, 21 Jun 2020 13:41:37 +0100

stlink (1.6.1+ds-1) unstable; urgency=medium

* Merge tag 'v1.6.1' into debian
* Update Files-Excluded in d/copyright for new layout
* Fix d/watch intermediary file name
* Drop cross.patch, merged upstream in v1.6.1
* Bump Build-Depends to cmake >= 3.4.2
* Add new symbols from upstream version 1.6.1
* Adjust install files, some files moved
* Remove unused variable from d/rules
* Generate pkgconfig file from d/rules, upstream doesn't do it
* Switch to debhelper-compat 12

-- Luca Boccassi <bluca@debian.org> Sat, 06 Jun 2020 14:44:54 +0100

stlink (1.6.0+ds-1) unstable; urgency=medium

* Merge tag 'v1.6.0' into debian
* Bump Standards-Version to 4.5.0, no changes.
* Update libstlink1 symbols file for 1.6.0.

-- Luca Boccassi <bluca@debian.org> Tue, 25 Feb 2020 22:08:33 +0000

stlink (1.5.1+ds-2) unstable; urgency=medium

* Mark library packages as Multi-Arch: same.
* Apply cross.patch to fix cross-compiling the GUI. Thanks Helmut for
the patch! (Closes: #941320)
* Vcs-Git: add -b debian
* Set Rules-Requires-Root: no
* Bump Standards-Version to 4.4.0

-- Luca Boccassi <bluca@debian.org> Sun, 29 Sep 2019 12:50:58 +0100

stlink (1.5.1+ds-1) unstable; urgency=medium

* Merge tag 'v1.5.1' into debian. See upstream changelog for info:
https://github.com/stlink-org/stlink/releases/tag/v1.5.1
* Mark packages as linux-any, other systems not supported.

-- Luca Boccassi <bluca@debian.org> Fri, 28 Sep 2018 10:26:39 +0100

stlink (1.5.0+ds-1) unstable; urgency=medium

* Upload to unstable. (Closes: #869421)

-- Luca Boccassi <bluca@debian.org> Fri, 16 Mar 2018 16:56:17 +0000

stlink (1.4.0) unstable; urgency=low

-- Andrew 'Necromant' Andrianov <andrew@ncrmnt.org> Sat, 01 Jul 2017 00:00:00 +0000

stlink (1.3.1) unstable; urgency=low

-- Andrew 'Necromant' Andrianov <andrew@ncrmnt.org> Sat, 25 Feb 2017 00:00:00 +0000

stlink (1.3.0) unstable; urgency=low

-- Andrew 'Necromant' Andrianov <andrew@ncrmnt.org> Sat, 28 Jan 2017 00:00:00 +0000

stlink (1.2.1) unstable; urgency=low

* Initial Debian-Packaged Release.

-- Andrew 'Necromant' Andrianov <andrew@ncrmnt.org> Sat, 09 Jul 2016 23:16:07 +0300
44 changes: 44 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
Source: stlink
Priority: optional
Maintainer: Luca Boccassi <bluca@debian.org>
Build-Depends: debhelper-compat (= 12), cmake (>= 3.4.2), libusb-1.0-0-dev, libgtk-3-dev
Standards-Version: 4.5.0
Rules-Requires-Root: no
Section: electronics
Homepage: https://github.com/stlink-org/stlink
Vcs-Git: https://github.com/bluca/stlink.git -b debian
Vcs-Browser: https://github.com/bluca/stlink

Package: libstlink-dev
Section: libdevel
Architecture: linux-any
Multi-Arch: same
Depends: libstlink1 (= ${binary:Version}), ${misc:Depends}
Description: Open source STM32 MCU programming toolset.
.
This package contains the development files for stlink.

Package: libstlink1
Section: libs
Architecture: linux-any
Multi-Arch: same
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Open source STM32 MCU programming toolset.
.
This package contains the shared library for stlink.

Package: stlink-tools
Architecture: linux-any
Depends: libstlink1 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
Description: Open source STM32 MCU programming toolset.
.
This package contains commandline utilities for stlink, modprobe- and
udev-rules.

Package: stlink-gui
Architecture: linux-any
Depends: libstlink1 (= ${binary:Version}), stlink-tools (= ${binary:Version}),
${shlibs:Depends}, ${misc:Depends}
Description: Open source STM32 MCU programming toolset.
.
This package contains a GUI for stlink.
37 changes: 37 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: stlink
Upstream-Contact: Luca Boccassi <bluca@debian.org>
Source: https://github.com/stlink-org/stlink
Files-Excluded: stlinkv1_macos_driver

Files: *
Copyright: 2011-2020 stlink-org
Martin Capitanio [capnm]
Fabien Le Mentec [texane]
Jerry Jacobs [xor-gate]
[Nightwalker-87]
and many others...
An extended list of contributors can be found in "contributors.txt".
License: BSD-3-clause
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
.
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7 changes: 7 additions & 0 deletions debian/gbp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[buildpackage]
upstream-tag = %(version)s
debian-branch = debian

[dch]
git-log = --first-parent
customizations = /usr/share/doc/git-buildpackage/examples/wrap_cl.py
4 changes: 4 additions & 0 deletions debian/libstlink-dev.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
usr/include/*
usr/lib/*/lib*.a
usr/lib/*/pkgconfig/*
usr/lib/*/lib*.so
1 change: 1 addition & 0 deletions debian/libstlink1.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/lib/*/lib*.so.*
141 changes: 141 additions & 0 deletions debian/libstlink1.symbols
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
libstlink.so.1 libstlink1 #MINVER#
Md5Calculate@Base 1.6.1
Md5Finalise@Base 1.6.1
Md5Initialise@Base 1.6.1
Md5Update@Base 1.6.1
_parse_version@Base 1.5.0
_stlink_sg_close@Base 1.5.0
_stlink_sg_core_id@Base 1.5.0
_stlink_sg_current_mode@Base 1.5.0
_stlink_sg_enter_jtag_mode@Base 1.5.0
_stlink_sg_enter_swd_mode@Base 1.5.0
_stlink_sg_exit_debug_mode@Base 1.5.0
_stlink_sg_exit_dfu_mode@Base 1.5.0
_stlink_sg_force_debug@Base 1.5.0
_stlink_sg_jtag_reset@Base 1.5.0
_stlink_sg_read_all_regs@Base 1.5.0
_stlink_sg_read_debug32@Base 1.5.0
_stlink_sg_read_mem32@Base 1.5.0
_stlink_sg_read_reg@Base 1.5.0
_stlink_sg_reset@Base 1.5.0
_stlink_sg_run@Base 1.5.0
_stlink_sg_status@Base 1.5.0
_stlink_sg_step@Base 1.5.0
_stlink_sg_version@Base 1.5.0
_stlink_sg_write_debug32@Base 1.5.0
_stlink_sg_write_mem32@Base 1.5.0
_stlink_sg_write_mem8@Base 1.5.0
_stlink_sg_write_reg@Base 1.5.0
_stlink_usb_close@Base 1.5.0
_stlink_usb_core_id@Base 1.5.0
_stlink_usb_current_mode@Base 1.5.0
_stlink_usb_enter_swd_mode@Base 1.5.0
_stlink_usb_exit_debug_mode@Base 1.5.0
_stlink_usb_exit_dfu_mode@Base 1.5.0
_stlink_usb_force_debug@Base 1.5.0
_stlink_usb_get_rw_status@Base 1.6.1
_stlink_usb_jtag_reset@Base 1.5.0
_stlink_usb_read_all_regs@Base 1.5.0
_stlink_usb_read_all_unsupported_regs@Base 1.5.0
_stlink_usb_read_debug32@Base 1.5.0
_stlink_usb_read_mem32@Base 1.5.0
_stlink_usb_read_reg@Base 1.5.0
_stlink_usb_read_unsupported_reg@Base 1.5.0
_stlink_usb_reset@Base 1.5.0
_stlink_usb_run@Base 1.5.0
_stlink_usb_set_swdclk@Base 1.5.0
_stlink_usb_status@Base 1.5.0
_stlink_usb_status_v2@Base 1.6.1
_stlink_usb_step@Base 1.5.0
_stlink_usb_target_voltage@Base 1.5.0
_stlink_usb_version@Base 1.5.0
_stlink_usb_write_debug32@Base 1.5.0
_stlink_usb_write_mem32@Base 1.5.0
_stlink_usb_write_mem8@Base 1.5.0
_stlink_usb_write_reg@Base 1.5.0
_stlink_usb_write_unsupported_reg@Base 1.5.0
calculate_F4_sectornum@Base 1.5.0
calculate_F7_sectornum@Base 1.5.0
calculate_L4_page@Base 1.5.0
is_bigendian@Base 1.5.0
read_uint16@Base 1.5.0
read_uint32@Base 1.5.0
send_recv@Base 1.5.0
send_usb_data_only@Base 1.5.0
send_usb_mass_storage_command@Base 1.5.0
stlink_calculate_pagesize@Base 1.5.0
stlink_chip_id@Base 1.5.0
stlink_chipid_get_params@Base 1.5.0
stlink_close@Base 1.5.0
stlink_clr_hw_bp@Base 1.5.0
stlink_core_id@Base 1.5.0
stlink_core_stat@Base 1.5.0
stlink_cpu_id@Base 1.5.0
stlink_current_mode@Base 1.5.0
stlink_enter_swd_mode@Base 1.5.0
stlink_erase_flash_mass@Base 1.5.0
stlink_erase_flash_page@Base 1.5.0
stlink_exit_debug_mode@Base 1.5.0
stlink_exit_dfu_mode@Base 1.5.0
stlink_fcheck_flash@Base 1.5.0
stlink_flash_loader_init@Base 1.5.0
stlink_flash_loader_run@Base 1.5.0
stlink_flash_loader_write_to_sram@Base 1.5.0
stlink_force_debug@Base 1.5.0
stlink_fread@Base 1.5.0
stlink_fwrite_flash@Base 1.5.0
stlink_fwrite_option_bytes@Base 1.6.0
#MISSING: 1.6.1# stlink_fwrite_option_bytes_32bit@Base 1.6.0
stlink_fwrite_sram@Base 1.5.0
stlink_get_erased_pattern@Base 1.5.0
stlink_is_core_halted@Base 1.5.0
stlink_jtag_reset@Base 1.5.0
stlink_load_device_params@Base 1.5.0
stlink_mwrite_flash@Base 1.5.0
stlink_mwrite_sram@Base 1.5.0
stlink_open_usb@Base 1.5.0
stlink_parse_ihex@Base 1.5.0
stlink_print_data@Base 1.5.0
stlink_probe_usb@Base 1.5.0
stlink_probe_usb_free@Base 1.5.0
stlink_q@Base 1.5.0
stlink_read_all_regs@Base 1.5.0
stlink_read_all_unsupported_regs@Base 1.5.0
stlink_read_debug32@Base 1.5.0
stlink_read_mem32@Base 1.5.0
stlink_read_option_bytes32@Base 1.6.1
stlink_read_option_bytes_Gx@Base 1.6.1
stlink_read_option_bytes_f2@Base 1.6.0
stlink_read_option_bytes_f4@Base 1.6.0
stlink_read_option_bytes_generic@Base 1.6.1
stlink_read_reg@Base 1.5.0
stlink_read_unsupported_reg@Base 1.5.0
stlink_reset@Base 1.5.0
stlink_run@Base 1.5.0
stlink_run_at@Base 1.5.0
stlink_set_hw_bp@Base 1.5.0
stlink_set_swdclk@Base 1.5.0
stlink_stat@Base 1.5.0
stlink_status@Base 1.5.0
stlink_step@Base 1.5.0
stlink_target_voltage@Base 1.5.0
stlink_v1_open@Base 1.5.0
stlink_v1_open_inner@Base 1.5.0
stlink_verify_write_flash@Base 1.5.0
stlink_version@Base 1.5.0
stlink_write_debug32@Base 1.5.0
stlink_write_dreg@Base 1.5.0
stlink_write_flash@Base 1.5.0
stlink_write_mem32@Base 1.5.0
stlink_write_mem8@Base 1.5.0
stlink_write_option_bytes32@Base 1.6.1
stlink_write_option_bytes@Base 1.6.0
stlink_write_reg@Base 1.5.0
stlink_write_unsupported_reg@Base 1.5.0
stm32l1_write_half_pages@Base 1.5.0
ugly_init@Base 1.5.0
ugly_libusb_log_level@Base 1.6.1
ugly_log@Base 1.5.0
write_buffer_to_sram@Base 1.5.0
write_uint16@Base 1.5.0
write_uint32@Base 1.5.0
11 changes: 11 additions & 0 deletions debian/patches/guipath.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/src/stlink-gui/CMakeLists.txt
+++ b/src/stlink-gui/CMakeLists.txt
@@ -32,7 +32,7 @@
add_executable(stlink-gui ${GUI_SOURCES})
install(FILES stlink-gui.ui DESTINATION ${CMAKE_INSTALL_BINDIR})
set_target_properties(stlink-gui PROPERTIES
- COMPILE_DEFINITIONS STLINK_UI_DIR="${CMAKE_INSTALL_PREFIX}/bin")
+ COMPILE_DEFINITIONS STLINK_UI_DIR="/usr/share/stlink")
target_link_libraries(stlink-gui ${STLINK_LIB_SHARED} ${SSP_LIB} ${GTK3_LDFLAGS})
install(TARGETS stlink-gui DESTINATION ${CMAKE_INSTALL_BINDIR})

1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
guipath.patch
Loading