Summary: | devel/stlink: Fails to build on 32-bit architectures: error: implicit conversion loses integer precision | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Robert Clausecker <fuz> | ||||||
Component: | Individual Port(s) | Assignee: | Yasuhiro Kimura <yasu> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Some People | CC: | lev, sid, yasu | ||||||
Priority: | --- | Flags: | koobs:
maintainer-feedback?
(lev) yasu: merge-quarterly+ |
||||||
Version: | Latest | ||||||||
Hardware: | i386 | ||||||||
OS: | Any | ||||||||
URL: | https://lists.freebsd.org/archives/freebsd-pkg-fallout/2021-August/073895.html | ||||||||
Attachments: |
|
Description
Robert Clausecker
2021-08-09 12:14:54 UTC
Created attachment 227367 [details] devel/stlink/files/patch-src_common.c Attached is a patch that fixes the build once again. It can be added to the port as /usr/ports/devel/stlink/files/patch-src_common.c to fix the build. Tested on armv7 FreeBSD 13.0-RELEASE. The contents of this patch have been proposed upstream and may be included in a future release: https://github.com/stlink-org/stlink/issues/1175 Please also consider making the GTK3 option into a flavour in a future version of the port. maintainer timeout. Comment on attachment 227367 [details]
devel/stlink/files/patch-src_common.c
Maintainer timeout for patch.
@Robert Thanks for the report and patch. Could you: - Update the patch to include a comment in the header - Look for a method to disable, or override -Werror, which shouldn't be used/included in release builds. Created attachment 227911 [details]
devel/stlink: fix build on 32 bit platforms
Improved patch as per koobs' wishes.
While we are at it, pet portlint and portclippy and regenerate existing patches.
Tested with Poudriere on armv7 arm64 i386 amd64 FreeBSD 13.0-RELEASE.
Comment on attachment 227911 [details]
devel/stlink: fix build on 32 bit platforms
maintainer timeout
^Triage: Reset assignee (maintainer/assignee timeout), open to take Take. A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=b6534ecd950cf32e1b76733d34a2ec929b690704 commit b6534ecd950cf32e1b76733d34a2ec929b690704 Author: Robert Clausecker <fuz@fuz.su> AuthorDate: 2021-08-22 16:54:30 +0000 Commit: Yasuhiro Kimura <yasu@FreeBSD.org> CommitDate: 2021-10-27 15:53:07 +0000 devel/stlink: Fix build on 32 bit platforms * Remove settings of optimization from cmake/modules/c_flags.cmake as per section 13.9 of Porter's Handbook * Switch to DISTVERSION * Pet portclippy * Reformat Makefile with portfmt PR: 257708 Approved by: maitainer timeout (> 1 month) Differential Revision: https://reviews.freebsd.org/D32545 devel/stlink/Makefile | 31 +++++++++----------- devel/stlink/files/patch-CMakeLists.txt | 8 +++-- .../files/patch-cmake_modules_c__flags.cmake (new) | 18 ++++++++++++ .../files/patch-doc_dev_pkg-config_CMakeLists.txt | 6 ++-- devel/stlink/files/patch-doc_man_CMakeLists.txt | 6 ++-- devel/stlink/files/patch-src_common.c (new) | 34 ++++++++++++++++++++++ 6 files changed, 77 insertions(+), 26 deletions(-) A commit in branch 2021Q4 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=8c44014b13ddb0392fab868ed5822e11ea3af0f4 commit 8c44014b13ddb0392fab868ed5822e11ea3af0f4 Author: Robert Clausecker <fuz@fuz.su> AuthorDate: 2021-08-22 16:54:30 +0000 Commit: Yasuhiro Kimura <yasu@FreeBSD.org> CommitDate: 2021-10-27 16:00:19 +0000 devel/stlink: Fix build on 32 bit platforms * Remove settings of optimization from cmake/modules/c_flags.cmake as per section 13.9 of Porter's Handbook * Switch to DISTVERSION * Pet portclippy * Reformat Makefile with portfmt PR: 257708 Approved by: maitainer timeout (> 1 month) Differential Revision: https://reviews.freebsd.org/D32545 (cherry picked from commit b6534ecd950cf32e1b76733d34a2ec929b690704) devel/stlink/Makefile | 31 +++++++++----------- devel/stlink/files/patch-CMakeLists.txt | 8 +++-- .../files/patch-cmake_modules_c__flags.cmake (new) | 18 ++++++++++++ .../files/patch-doc_dev_pkg-config_CMakeLists.txt | 6 ++-- devel/stlink/files/patch-doc_man_CMakeLists.txt | 6 ++-- devel/stlink/files/patch-src_common.c (new) | 34 ++++++++++++++++++++++ 6 files changed, 77 insertions(+), 26 deletions(-) Committed and merged to quarterly branch. Thanks! (In reply to Yasuhiro Kimura from comment #11) Thanks! Could you please also bump PORTREVISION for this change as it seems that it affects build flags? |