Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package picotool for openSUSE:Factory 
checked in at 2021-10-20 20:24:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/picotool (Old)
 and      /work/SRC/openSUSE:Factory/.picotool.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "picotool"

Wed Oct 20 20:24:07 2021 rev:7 rq:926563 version:1.0.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/picotool/picotool.changes        2021-07-23 
23:41:45.293789702 +0200
+++ /work/SRC/openSUSE:Factory/.picotool.new.1890/picotool.changes      
2021-10-20 20:25:03.909406996 +0200
@@ -1,0 +2,6 @@
+Wed Oct 20 14:56:24 UTC 2021 - Guillaume GARDET <guillaume.gar...@opensuse.org>
+
+- Backport patch to fix installation path:
+  * picotool-ce76970.patch
+
+-------------------------------------------------------------------

New:
----
  picotool-ce76970.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ picotool.spec ++++++
--- /var/tmp/diff_new_pack.9n3s0c/_old  2021-10-20 20:25:04.313407246 +0200
+++ /var/tmp/diff_new_pack.9n3s0c/_new  2021-10-20 20:25:04.317407248 +0200
@@ -31,21 +31,22 @@
 Source1:        
https://github.com/raspberrypi/pico-sdk/archive/%{sdk_version}.tar.gz#/pico-sdk-%{sdk_version}.tar.gz
 # PATCH-FIX-UPSTREAM - https://github.com/raspberrypi/picotool/pull/30
 Patch1:         picotool-gh30.patch
+# PATCH-FIX-UPSTREAM - https://github.com/raspberrypi/picotool/issues/4
+Patch2:         picotool-ce76970.patch
 
 %description
 Picotool is a tool for inspecting RP2040 binaries, and interacting with RP2040 
devices when they are in BOOTSEL mode.
 
 %prep
 %setup -q -a 1
-%patch1 -p1
+%autopatch -p1
 
 %build
 %cmake -DPICO_SDK_PATH="../pico-sdk-%{sdk_version}"
 %cmake_build
 
 %install
-# No install target yet - https://github.com/raspberrypi/picotool/issues/4
-install -D -m 0755 build/picotool %{buildroot}%{_bindir}/picotool
+%cmake_install
 
 %files
 %defattr(-,root,root)

++++++ picotool-ce76970.patch ++++++
>From ce769705338cb57abc57d1a586983abe3a5e5199 Mon Sep 17 00:00:00 2001
From: graham sanderson <graham.sander...@raspberrypi.com>
Date: Thu, 22 Jul 2021 09:21:15 -0500
Subject: [PATCH] Add install-ability via [100%] Built target picotool Install
 the project... -- Install configuration: "Debug" -- Installing:
 /usr/local/bin/picotool

---
 CMakeLists.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index b0343b5..fb72351 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -40,4 +40,6 @@ 
     add_executable(picotool main.cpp)
     target_include_directories(picotool PRIVATE ${LIBUSB_INCLUDE_DIR})
     target_link_libraries(picotool pico_binary_info boot_uf2_headers 
boot_picoboot_headers pico_platform_headers picoboot_connection_cxx 
${LIBUSB_LIBRARIES})
+    # allow `make install`
+    install(TARGETS picotool)
 endif()

Reply via email to