GNU bug report logs - #57902
[PATCH] New package idevicerestore + libirecovery

Previous Next

Package: guix-patches;

Reported by: Jacob Hrbek <kreyren <at> rixotstudio.cz>

Date: Sun, 18 Sep 2022 06:39:02 UTC

Severity: normal

Tags: patch

Done: Julien Lepiller <julien <at> lepiller.eu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 57902 in the body.
You can then email your comments to 57902 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#57902; Package guix-patches. (Sun, 18 Sep 2022 06:39:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jacob Hrbek <kreyren <at> rixotstudio.cz>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 18 Sep 2022 06:39:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jacob Hrbek <kreyren <at> rixotstudio.cz>
To: guix-patches <at> gnu.org
Cc: Jacob Hrbek <kreyren <at> rixotstudio.cz>
Subject: [PATCH] New package idevicerestore + libirecovery
Date: Sun, 18 Sep 2022 06:38:10 +0000
[Message part 1 (text/plain, inline)]
---
 gnu/packages/libusb.scm | 49 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/gnu/packages/libusb.scm b/gnu/packages/libusb.scm
index 8a5967f7b4..c718146745 100644
--- a/gnu/packages/libusb.scm
+++ b/gnu/packages/libusb.scm
@@ -41,6 +41,8 @@ (define-module (gnu packages libusb)
   #:use-module (guix build-system glib-or-gtk)
   #:use-module (guix build-system python)
   #:use-module (gnu packages autotools)
+  #:use-module (gnu packages compression)
+  #:use-module (gnu packages curl)
   #:use-module (gnu packages gnupg)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages java)
@@ -49,6 +51,7 @@ (define-module (gnu packages libusb)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages python)
   #:use-module (gnu packages python-xyz)
+  #:use-module (gnu packages readline)
   #:use-module (gnu packages tls)
   #:use-module (gnu packages xiph))

@@ -389,6 +392,52 @@ (define-public libu
sbmuxd
 @code{usbmuxd} daemon.")
     (license license:lgpl2.1+)))

+(define-public libirecovery
+  (package
+    (name "libirecovery")
+    (version "1.0.0")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://github.com/libimobiledevice"
+                                  "/libirecovery/releases/download/" version
+                                  "/libirecovery-" version ".tar.bz2"))
+              (sha256
+               (base32
+                "1d6r9984plynbbiqda8jd7ihnkg6wc4v0iirv3hw4vsv1ahsp86d"))))
+    (build-system gnu-build-system)
+    (native-inputs (list readline
+                         pkg-config
+                         libusb))
+    (home-page "https://libimobiledevice.org/")
+    (synopsis "The libirecovery library allows communication with iBoot/iBSS of iOS devices via USB")
+    (description "libirecovery is a cross-platform library which implements communication to iBoot/iBSS found on Apple'
s iOS devices via USB.")
+    (license license:lgpl2.1)))
+
+(define-public idevicerestore
+  (package
+    (name "idevicerestore")
+    (version "1.0.0")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://github.com/libimobiledevice"
+                                  "/idevicerestore/releases/download/" version
+                                  "/idevicerestore-" version ".tar.bz2"))
+              (sha256
+               (base32
+                "1xrnk1hc9cjcqv8x8l5ankv6f33r5wnpmrwri4pgv5sk6632ww9j"))))
+    (build-system gnu-build-system)
+    (native-inputs (list pkg-config
+                         libusb
+                         libirecovery
+                         libimobiledevice
+                         libzip
+                         curl
+                         zlib))
+    (home-page "https://libimobiledevice.org/")
+    (synopsis "CLI tool to restore firmware files to iOS devices")
+    (descr
iption "Utility used to restore bricked or otherwise broken iOS devices")
+    (license license:lgpl3)))
+
 (define-public libimobiledevice
   (package
     (name "libimobiledevice")
--
2.37.1

[publickey - kreyren@rixotstudio.cz - 1677db82.asc (application/pgp-keys, attachment)]
[signature.asc (application/pgp-signature, attachment)]

Reply sent to Julien Lepiller <julien <at> lepiller.eu>:
You have taken responsibility. (Thu, 22 Sep 2022 19:46:01 GMT) Full text and rfc822 format available.

Notification sent to Jacob Hrbek <kreyren <at> rixotstudio.cz>:
bug acknowledged by developer. (Thu, 22 Sep 2022 19:46:01 GMT) Full text and rfc822 format available.

Message #10 received at 57902-done <at> debbugs.gnu.org (full text, mbox):

From: Julien Lepiller <julien <at> lepiller.eu>
To: Jacob Hrbek <kreyren <at> rixotstudio.cz>
Cc: 57902-done <at> debbugs.gnu.org
Subject: Re: [bug#57902] [PATCH] New package idevicerestore + libirecovery
Date: Thu, 22 Sep 2022 21:45:10 +0200
Hi Jacob,

pushed to master as 5f9d9471c7ef522a04d9f197346c32d810afae81 and
f7a68436edb0bb1dd8a5dd0d65c38cb2fee16773.

Note that when adding packages to Guix, you have to submit a separate
patch for each package. I took the time to split this patch, but in the
future, please make sure to follow the guidelines at
https://guix.gnu.org/manual/devel/en/html_node/Submitting-Patches.html#Submitting-Patches

As with your other patch I pushed today, this patch had a few issues
that "guix lint" would have easily caught.

I fixed line length (which caused wrapping issues), native-inputs vs
inputs, synopsis and description, source from git instead of url.

Also fixed the license of the second package, the source explicitely
says "or later", so it's lgpl3+. (weirdly though, the source says 2.1
or later, but COPYING is lgpl 3). lgpl2.1 is correct for the library,
since the source does not say "or later".

I think you have other patches waiting on the mailing list. It would
help reviewers if you could run "guix lint", fix warnings (except
for the archival one if you get it) and send a v2 on their respective
bug number.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 21 Oct 2022 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 186 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.