unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#62201] [PATCH] gnu: Add payload-dumper.
@ 2023-03-15 12:34 conses
  2023-06-13 10:58 ` Andrew Tropin
  2023-06-28  7:51 ` Miguel Ángel Moreno
  0 siblings, 2 replies; 7+ messages in thread
From: conses @ 2023-03-15 12:34 UTC (permalink / raw)
  To: 62201; +Cc: contact

* gnu/packages/android.scm (payload-dumper): New variable.
---
 gnu/packages/android.scm | 53 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm
index 881b75d763..d7a308775f 100644
--- a/gnu/packages/android.scm
+++ b/gnu/packages/android.scm
@@ -51,6 +51,7 @@ (define-module (gnu packages android)
   #:use-module (gnu packages java)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages pcre)
+  #:use-module (gnu packages protobuf)
   #:use-module (gnu packages python)
   #:use-module (gnu packages python-crypto)
   #:use-module (gnu packages python-web)
@@ -982,6 +983,58 @@ (define-public git-repo
 script that you can put anywhere in your path.")
     (license license:asl2.0)))
 
+(define-public payload-dumper
+  (let ((commit "35134a28d641deda899c30aed57aace21bfd4a3c")
+        (revision "0"))
+    (package
+      (name "payload-dumper")
+      (version (git-version "0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri
+          (git-reference
+           (url "https://github.com/vm03/payload_dumper")
+           (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "1sdq6dgva5yxz147bkv8xbf79pz60vwc33f0cmj9awgfbxha2b43"))))
+      (inputs
+       (list python-3 python-protobuf python-six python-bsdiff4))
+      (build-system python-build-system)
+      (arguments
+       (list
+        #:use-setuptools? #f
+        #:tests? #f
+        #:phases
+        #~(modify-phases %standard-phases
+            (delete 'build)
+            (replace 'install
+              (lambda* (#:key outputs #:allow-other-keys)
+                (begin
+                  (use-modules (guix build utils))
+                  (let* ((python (string-append
+                                  #$(this-package-input "python")
+                                  "/bin"))
+                         (bin (string-append #$output "/bin"))
+                         (target (string-append bin "/payload_dumper"))
+                         (version (python-version
+                                   #$(this-package-input "python")))
+                         (pydir (string-append #$output "/lib/python"
+                                               version "/site-packages")))
+                    (mkdir-p bin)
+                    (copy-file (string-append #$source "/payload_dumper.py")
+                               target)
+                    (install-file "update_metadata_pb2.py" pydir)
+                    (substitute* target
+                      (("/usr/bin/env python") (which "python3")))
+                    (chmod target #o555))))))))
+      (synopsis "Android OTA payload dumper")
+      (description "Script to extract the payload of incremental and full
+OTA's.")
+      (home-page "https://github.com/vm03/payload_dumper")
+      (license license:gpl3+))))
+
 (define-public abootimg
   (package
     (name "abootimg")
-- 
2.39.1



-- 
Best regards,
conses




^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#62201] [PATCH] gnu: Add payload-dumper.
  2023-03-15 12:34 [bug#62201] [PATCH] gnu: Add payload-dumper conses
@ 2023-06-13 10:58 ` Andrew Tropin
  2023-06-28  7:51 ` Miguel Ángel Moreno
  1 sibling, 0 replies; 7+ messages in thread
From: Andrew Tropin @ 2023-06-13 10:58 UTC (permalink / raw)
  To: conses, 62201; +Cc: contact, me

[-- Attachment #1: Type: text/plain, Size: 3461 bytes --]

On 2023-03-15 13:34, conses wrote:

> * gnu/packages/android.scm (payload-dumper): New variable.
> ---
>  gnu/packages/android.scm | 53 ++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 53 insertions(+)
>
> diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm
> index 881b75d763..d7a308775f 100644
> --- a/gnu/packages/android.scm
> +++ b/gnu/packages/android.scm
> @@ -51,6 +51,7 @@ (define-module (gnu packages android)
>    #:use-module (gnu packages java)
>    #:use-module (gnu packages linux)
>    #:use-module (gnu packages pcre)
> +  #:use-module (gnu packages protobuf)
>    #:use-module (gnu packages python)
>    #:use-module (gnu packages python-crypto)
>    #:use-module (gnu packages python-web)
> @@ -982,6 +983,58 @@ (define-public git-repo
>  script that you can put anywhere in your path.")
>      (license license:asl2.0)))
>  
> +(define-public payload-dumper
> +  (let ((commit "35134a28d641deda899c30aed57aace21bfd4a3c")
> +        (revision "0"))
> +    (package
> +      (name "payload-dumper")
> +      (version (git-version "0" revision commit))
> +      (source
> +       (origin
> +         (method git-fetch)
> +         (uri
> +          (git-reference
> +           (url "https://github.com/vm03/payload_dumper")
> +           (commit commit)))
> +         (file-name (git-file-name name version))
> +         (sha256
> +          (base32 "1sdq6dgva5yxz147bkv8xbf79pz60vwc33f0cmj9awgfbxha2b43"))))
> +      (inputs
> +       (list python-3 python-protobuf python-six python-bsdiff4))
> +      (build-system python-build-system)
> +      (arguments
> +       (list
> +        #:use-setuptools? #f
> +        #:tests? #f
> +        #:phases
> +        #~(modify-phases %standard-phases
> +            (delete 'build)
> +            (replace 'install
> +              (lambda* (#:key outputs #:allow-other-keys)
> +                (begin
> +                  (use-modules (guix build utils))
> +                  (let* ((python (string-append
> +                                  #$(this-package-input "python")
> +                                  "/bin"))
> +                         (bin (string-append #$output "/bin"))
> +                         (target (string-append bin "/payload_dumper"))
> +                         (version (python-version
> +                                   #$(this-package-input "python")))
> +                         (pydir (string-append #$output "/lib/python"
> +                                               version "/site-packages")))
> +                    (mkdir-p bin)
> +                    (copy-file (string-append #$source "/payload_dumper.py")
> +                               target)
> +                    (install-file "update_metadata_pb2.py" pydir)
> +                    (substitute* target
> +                      (("/usr/bin/env python") (which "python3")))
> +                    (chmod target #o555))))))))
> +      (synopsis "Android OTA payload dumper")
> +      (description "Script to extract the payload of incremental and full
> +OTA's.")
> +      (home-page "https://github.com/vm03/payload_dumper")
> +      (license license:gpl3+))))
> +
>  (define-public abootimg
>    (package
>      (name "abootimg")
> -- 
> 2.39.1

Hi Miguel!

I can't find the license for this project, can you ask an author to
specify it, please?

-- 
Best regards,
Andrew Tropin

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#62201] [PATCH] gnu: Add payload-dumper.
  2023-03-15 12:34 [bug#62201] [PATCH] gnu: Add payload-dumper conses
  2023-06-13 10:58 ` Andrew Tropin
@ 2023-06-28  7:51 ` Miguel Ángel Moreno
  2023-06-29 13:14   ` Andrew Tropin
  1 sibling, 1 reply; 7+ messages in thread
From: Miguel Ángel Moreno @ 2023-06-28  7:51 UTC (permalink / raw)
  To: 62201; +Cc: mail, Andrew Tropin

[-- Attachment #1: Type: text/plain, Size: 340 bytes --]

Hi Andrew,

Thanks for having a look.  I raised an issue on the repo, but
the maintainer told me he isn't the original author of the tool and thus
doesn't feel comfortable adding a license to it, see
<https://github.com/vm03/payload_dumper/issues/58>.  How should we
proceed in this case?

-- 
Best regards,
Miguel Ángel Moreno

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#62201] [PATCH] gnu: Add payload-dumper.
  2023-06-28  7:51 ` Miguel Ángel Moreno
@ 2023-06-29 13:14   ` Andrew Tropin
  2023-06-29 16:59     ` Liliana Marie Prikler
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew Tropin @ 2023-06-29 13:14 UTC (permalink / raw)
  To: Miguel Ángel Moreno, 62201
  Cc: mail, Ludovic Courtès, Liliana Marie Prikler

[-- Attachment #1: Type: text/plain, Size: 484 bytes --]

On 2023-06-28 09:51, Miguel Ángel Moreno wrote:

> Hi Andrew,
>
> Thanks for having a look.  I raised an issue on the repo, but
> the maintainer told me he isn't the original author of the tool and thus
> doesn't feel comfortable adding a license to it, see
> <https://github.com/vm03/payload_dumper/issues/58>.  How should we
> proceed in this case?

I would summon more advanced in this topic colleagues :)

CCed Ludo and Liliana.

-- 
Best regards,
Andrew Tropin

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#62201] [PATCH] gnu: Add payload-dumper.
  2023-06-29 13:14   ` Andrew Tropin
@ 2023-06-29 16:59     ` Liliana Marie Prikler
  2023-06-30  8:52       ` Miguel Ángel Moreno
  0 siblings, 1 reply; 7+ messages in thread
From: Liliana Marie Prikler @ 2023-06-29 16:59 UTC (permalink / raw)
  To: Andrew Tropin, Miguel Ángel Moreno, 62201; +Cc: Ludovic Courtès

Am Donnerstag, dem 29.06.2023 um 17:14 +0400 schrieb Andrew Tropin:
> On 2023-06-28 09:51, Miguel Ángel Moreno wrote:
> 
> > Hi Andrew,
> > 
> > Thanks for having a look.  I raised an issue on the repo, but
> > the maintainer told me he isn't the original author of the tool and
> > thus doesn't feel comfortable adding a license to it, see
> > <https://github.com/vm03/payload_dumper/issues/58>.  How should we
> > proceed in this case?
> 
> I would summon more advanced in this topic colleagues :)
> 
> CCed Ludo and Liliana.
No license, no original source?  No, thanks.  
For more background, see [1,2].

Cheers

[1] https://www.gnu.org/licenses/license-list.html#NoLicense
[2] https://www.gnu.org/licenses/license-list.html.en#NoLicense




^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#62201] [PATCH] gnu: Add payload-dumper.
  2023-06-29 16:59     ` Liliana Marie Prikler
@ 2023-06-30  8:52       ` Miguel Ángel Moreno
  2023-07-10 21:29         ` bug#62201: " Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: Miguel Ángel Moreno @ 2023-06-30  8:52 UTC (permalink / raw)
  To: Liliana Marie Prikler; +Cc: mail, Ludovic Courtès, 62201, Andrew Tropin

On 2023-06-29 18:59, Liliana Marie Prikler wrote:

> Am Donnerstag, dem 29.06.2023 um 17:14 +0400 schrieb Andrew Tropin:
>> On 2023-06-28 09:51, Miguel Ángel Moreno wrote:
>> 
>> > Hi Andrew,
>> > 
>> > Thanks for having a look.  I raised an issue on the repo, but
>> > the maintainer told me he isn't the original author of the tool and
>> > thus doesn't feel comfortable adding a license to it, see
>> > <https://github.com/vm03/payload_dumper/issues/58>.  How should we
>> > proceed in this case?
>> 
>> I would summon more advanced in this topic colleagues :)
>> 
>> CCed Ludo and Liliana.
> No license, no original source?  No, thanks.  
> For more background, see [1,2].
>
> Cheers
>
> [1] https://www.gnu.org/licenses/license-list.html#NoLicense
> [2] https://www.gnu.org/licenses/license-list.html.en#NoLicense

Thanks for the heads up.  Unless Ludo or someone else has some pointers
on what could be done to tackle this scenario, I'll try to package this
elsewhere.

-- 
Best regards,
Miguel Ángel Moreno




^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#62201: [PATCH] gnu: Add payload-dumper.
  2023-06-30  8:52       ` Miguel Ángel Moreno
@ 2023-07-10 21:29         ` Ludovic Courtès
  0 siblings, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2023-07-10 21:29 UTC (permalink / raw)
  To: Miguel Ángel Moreno; +Cc: 62201-done, Liliana Marie Prikler, Andrew Tropin

Hi,

Miguel Ángel Moreno <mail@migalmoreno.com> skribis:

> On 2023-06-29 18:59, Liliana Marie Prikler wrote:
>
>> Am Donnerstag, dem 29.06.2023 um 17:14 +0400 schrieb Andrew Tropin:
>>> On 2023-06-28 09:51, Miguel Ángel Moreno wrote:
>>> 
>>> > Hi Andrew,
>>> > 
>>> > Thanks for having a look.  I raised an issue on the repo, but
>>> > the maintainer told me he isn't the original author of the tool and
>>> > thus doesn't feel comfortable adding a license to it, see
>>> > <https://github.com/vm03/payload_dumper/issues/58>.  How should we
>>> > proceed in this case?
>>> 
>>> I would summon more advanced in this topic colleagues :)
>>> 
>>> CCed Ludo and Liliana.
>> No license, no original source?  No, thanks.  
>> For more background, see [1,2].
>>
>> Cheers
>>
>> [1] https://www.gnu.org/licenses/license-list.html#NoLicense
>> [2] https://www.gnu.org/licenses/license-list.html.en#NoLicense
>
> Thanks for the heads up.  Unless Ludo or someone else has some pointers
> on what could be done to tackle this scenario, I'll try to package this
> elsewhere.

Sorry for the delay!  If there’s no license, it’s indeed not
even distributable, so definitely not suitable for Guix.

Ludo’.




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-07-10 21:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-15 12:34 [bug#62201] [PATCH] gnu: Add payload-dumper conses
2023-06-13 10:58 ` Andrew Tropin
2023-06-28  7:51 ` Miguel Ángel Moreno
2023-06-29 13:14   ` Andrew Tropin
2023-06-29 16:59     ` Liliana Marie Prikler
2023-06-30  8:52       ` Miguel Ángel Moreno
2023-07-10 21:29         ` bug#62201: " Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).