all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#64767] [PATCH 0/5] Update libcamera and pipewire
@ 2023-07-21 12:12 iyzsong--- via Guix-patches via
  2023-07-21 12:14 ` [bug#64767] [PATCH 1/5] gnu: libcamera: Update to 0.1.0 iyzsong--- via Guix-patches via
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: iyzsong--- via Guix-patches via @ 2023-07-21 12:12 UTC (permalink / raw)
  To: 64767; +Cc: 宋文武

From: 宋文武 <iyzsong@member.fsf.org>

Hello, this update libcamera and pipewire, and enable
libcamera support in pipewire to fix issue #64736.

Sou Bunnbu (宋文武) (5):
  gnu: libcamera: Update to 0.1.0.
  gnu: libcamera: Split off gst and tools outputs.
  gnu: pipewire: Update to 0.3.75.
  gnu: pipewire: Enable libcamera support.
  gnu: libcamera: Rewrite package argument to G-expression.

 gnu/packages/linux.scm      |  5 ++--
 gnu/packages/networking.scm | 58 ++++++++++++++++++-------------------
 2 files changed, 31 insertions(+), 32 deletions(-)


base-commit: 182be30fb1a8b847c30492462ec22c08ec7a9849
-- 
2.41.0





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

* [bug#64767] [PATCH 1/5] gnu: libcamera: Update to 0.1.0.
  2023-07-21 12:12 [bug#64767] [PATCH 0/5] Update libcamera and pipewire iyzsong--- via Guix-patches via
@ 2023-07-21 12:14 ` iyzsong--- via Guix-patches via
  2023-07-21 12:14 ` [bug#64767] [PATCH 2/5] gnu: libcamera: Split off gst and tools outputs iyzsong--- via Guix-patches via
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: iyzsong--- via Guix-patches via @ 2023-07-21 12:14 UTC (permalink / raw)
  To: 64767; +Cc: 宋文武

From: 宋文武 <iyzsong@member.fsf.org>

* gnu/packages/networking.scm (libcamera): Update to 0.1.0.
[native-inputs]: Add googletest.
[arguments]: Add "-Dtest=true" to configure-flags.  Remove
disable-failing-tests phase.
---
 gnu/packages/networking.scm | 20 +++++++-------------
 1 file changed, 7 insertions(+), 13 deletions(-)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 18d5c26ce0..52178785d3 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -350,37 +350,30 @@ (define-public lcsync
 (define-public libcamera
   (package
     (name "libcamera")
-    (version "0.0.0-1")
+    (version "0.1.0")
     (source
      (origin
        (method git-fetch)
        (uri
         (git-reference
-         (url "git://linuxtv.org/libcamera.git")
-         (commit "10be87fa7c3bfb097b21ca3d469c67e40c333f7e")))
+         (url "https://git.libcamera.org/libcamera/libcamera.git")
+         (commit (string-append "v" version))))
        (file-name
         (git-file-name name version))
        (sha256
-        (base32 "0qgirhlalmk9f9v6piwz50dr2asb64rvbb9zb1vix7y9zh7m11by"))))
+        (base32 "06dj3dpfbayj61015n5kffin2g3hyys11ra0px2g4hmrznvdkhc9"))))
     (build-system meson-build-system)
     (outputs '("out" "doc"))
     (arguments
      `(#:glib-or-gtk? #t     ; To wrap binaries and/or compile schemas
        #:configure-flags
        (list
+        "-Dtest=true"
         "-Dv4l2=true"
         ;; XXX: Requires bundled pybind11.
         "-Dpycamera=disabled")
        #:phases
        (modify-phases %standard-phases
-         (add-after 'unpack 'disable-failing-tests
-           (lambda _
-             (substitute* "test/meson.build"
-               (("\\['list-cameras',                    'list-cameras.cpp'\\],")
-                "")
-               ;; TODO: Why do the gstreamer tests fail.
-               (("^subdir\\('gstreamer'\\)")
-                ""))))
          (add-after 'install 'move-doc
            (lambda* (#:key outputs #:allow-other-keys)
              (let* ((out (assoc-ref outputs "out"))
@@ -390,7 +383,8 @@ (define-public libcamera
                 (string-append out "/share/doc")
                 (string-append doc "/share/doc"))))))))
     (native-inputs
-     (list graphviz                     ;for 'dot'
+     (list googletest
+           graphviz                     ;for 'dot'
            doxygen
            pkg-config
            python-wrapper
-- 
2.41.0





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

* [bug#64767] [PATCH 2/5] gnu: libcamera: Split off gst and tools outputs.
  2023-07-21 12:12 [bug#64767] [PATCH 0/5] Update libcamera and pipewire iyzsong--- via Guix-patches via
  2023-07-21 12:14 ` [bug#64767] [PATCH 1/5] gnu: libcamera: Update to 0.1.0 iyzsong--- via Guix-patches via
@ 2023-07-21 12:14 ` iyzsong--- via Guix-patches via
  2023-07-21 12:14 ` [bug#64767] [PATCH 3/5] gnu: pipewire: Update to 0.3.75 iyzsong--- via Guix-patches via
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: iyzsong--- via Guix-patches via @ 2023-07-21 12:14 UTC (permalink / raw)
  To: 64767; +Cc: 宋文武

From: 宋文武 <iyzsong@member.fsf.org>

* gnu/packages/networking.scm (libcamera)[outputs]: Add gst and tools.
[arguments]: Pass "-Dbindir" to configure-flags.  Adjust 'move-doc phase
to 'move-doc-and-gst.
---
 gnu/packages/networking.scm | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 52178785d3..84091274f0 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -363,25 +363,31 @@ (define-public libcamera
        (sha256
         (base32 "06dj3dpfbayj61015n5kffin2g3hyys11ra0px2g4hmrznvdkhc9"))))
     (build-system meson-build-system)
-    (outputs '("out" "doc"))
+    (outputs '("out" "doc" "gst" "tools"))
     (arguments
      `(#:glib-or-gtk? #t     ; To wrap binaries and/or compile schemas
        #:configure-flags
        (list
+        (string-append "-Dbindir=" (assoc-ref %outputs "tools") "/bin")
         "-Dtest=true"
         "-Dv4l2=true"
         ;; XXX: Requires bundled pybind11.
         "-Dpycamera=disabled")
        #:phases
        (modify-phases %standard-phases
-         (add-after 'install 'move-doc
+         (add-after 'install 'move-doc-and-gst
            (lambda* (#:key outputs #:allow-other-keys)
              (let* ((out (assoc-ref outputs "out"))
-                    (doc (assoc-ref outputs "doc")))
+                    (doc (assoc-ref outputs "doc"))
+                    (gst (assoc-ref outputs "gst")))
                (mkdir-p (string-append doc "/share"))
                (rename-file
                 (string-append out "/share/doc")
-                (string-append doc "/share/doc"))))))))
+                (string-append doc "/share/doc"))
+               (mkdir-p (string-append gst "/lib"))
+               (rename-file
+                (string-append out "/lib/gstreamer-1.0")
+                (string-append gst "/lib/gstreamer-1.0"))))))))
     (native-inputs
      (list googletest
            graphviz                     ;for 'dot'
-- 
2.41.0





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

* [bug#64767] [PATCH 3/5] gnu: pipewire: Update to 0.3.75.
  2023-07-21 12:12 [bug#64767] [PATCH 0/5] Update libcamera and pipewire iyzsong--- via Guix-patches via
  2023-07-21 12:14 ` [bug#64767] [PATCH 1/5] gnu: libcamera: Update to 0.1.0 iyzsong--- via Guix-patches via
  2023-07-21 12:14 ` [bug#64767] [PATCH 2/5] gnu: libcamera: Split off gst and tools outputs iyzsong--- via Guix-patches via
@ 2023-07-21 12:14 ` iyzsong--- via Guix-patches via
  2023-07-21 12:14 ` [bug#64767] [PATCH 4/5] gnu: pipewire: Enable libcamera support iyzsong--- via Guix-patches via
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: iyzsong--- via Guix-patches via @ 2023-07-21 12:14 UTC (permalink / raw)
  To: 64767; +Cc: 宋文武, Leo Famulari, Tobias Geerinckx-Rice

From: 宋文武 <iyzsong@member.fsf.org>

* gnu/packages/linux.scm (pipewire): Update to 0.3.75.
---
 gnu/packages/linux.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 67128524ff..9821707754 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -9287,7 +9287,7 @@ (define-public inputattach
 (define-public pipewire
   (package
     (name "pipewire")
-    (version "0.3.70")
+    (version "0.3.75")
     (source (origin
               (method git-fetch)
               (uri (git-reference
@@ -9296,7 +9296,7 @@ (define-public pipewire
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "1n74rrbwymm89ri4daa4v092f4b81wrak4vg685xfz2wl89p64n6"))))
+                "0dmhsdvhlg6cav6cmxkm178j377yqbbz21lx0axgz2w935nxhans"))))
     (build-system meson-build-system)
     (arguments
      (list
-- 
2.41.0





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

* [bug#64767] [PATCH 4/5] gnu: pipewire: Enable libcamera support.
  2023-07-21 12:12 [bug#64767] [PATCH 0/5] Update libcamera and pipewire iyzsong--- via Guix-patches via
                   ` (2 preceding siblings ...)
  2023-07-21 12:14 ` [bug#64767] [PATCH 3/5] gnu: pipewire: Update to 0.3.75 iyzsong--- via Guix-patches via
@ 2023-07-21 12:14 ` iyzsong--- via Guix-patches via
  2023-07-21 12:14 ` [bug#64767] [PATCH 5/5] gnu: libcamera: Rewrite package argument to G-expression iyzsong--- via Guix-patches via
  2023-08-13  8:04 ` bug#64767: [PATCH 0/5] Update libcamera and pipewire 宋文武 via Guix-patches via
  5 siblings, 0 replies; 7+ messages in thread
From: iyzsong--- via Guix-patches via @ 2023-07-21 12:14 UTC (permalink / raw)
  To: 64767; +Cc: 宋文武, Leo Famulari, Tobias Geerinckx-Rice

From: 宋文武 <iyzsong@member.fsf.org>

This fixes <https://issues.guix.gnu.org/64736>.

* gnu/packages/linux.scm (pipewire)[inputs]: Add libcamera.
---
 gnu/packages/linux.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 9821707754..91b2bd3571 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -9321,6 +9321,7 @@ (define-public pipewire
                   gstreamer
                   jack-2
                   ldacbt
+                  libcamera
                   libfdk
                   libfreeaptx
                   libsndfile
-- 
2.41.0





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

* [bug#64767] [PATCH 5/5] gnu: libcamera: Rewrite package argument to G-expression.
  2023-07-21 12:12 [bug#64767] [PATCH 0/5] Update libcamera and pipewire iyzsong--- via Guix-patches via
                   ` (3 preceding siblings ...)
  2023-07-21 12:14 ` [bug#64767] [PATCH 4/5] gnu: pipewire: Enable libcamera support iyzsong--- via Guix-patches via
@ 2023-07-21 12:14 ` iyzsong--- via Guix-patches via
  2023-08-13  8:04 ` bug#64767: [PATCH 0/5] Update libcamera and pipewire 宋文武 via Guix-patches via
  5 siblings, 0 replies; 7+ messages in thread
From: iyzsong--- via Guix-patches via @ 2023-07-21 12:14 UTC (permalink / raw)
  To: 64767; +Cc: 宋文武

From: 宋文武 <iyzsong@member.fsf.org>

* gnu/packages/networking.scm (libcamera)[arguments]: Use G-expression.
---
 gnu/packages/networking.scm | 44 ++++++++++++++++++-------------------
 1 file changed, 21 insertions(+), 23 deletions(-)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 84091274f0..ac11855ac8 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -365,29 +365,27 @@ (define-public libcamera
     (build-system meson-build-system)
     (outputs '("out" "doc" "gst" "tools"))
     (arguments
-     `(#:glib-or-gtk? #t     ; To wrap binaries and/or compile schemas
-       #:configure-flags
-       (list
-        (string-append "-Dbindir=" (assoc-ref %outputs "tools") "/bin")
-        "-Dtest=true"
-        "-Dv4l2=true"
-        ;; XXX: Requires bundled pybind11.
-        "-Dpycamera=disabled")
-       #:phases
-       (modify-phases %standard-phases
-         (add-after 'install 'move-doc-and-gst
-           (lambda* (#:key outputs #:allow-other-keys)
-             (let* ((out (assoc-ref outputs "out"))
-                    (doc (assoc-ref outputs "doc"))
-                    (gst (assoc-ref outputs "gst")))
-               (mkdir-p (string-append doc "/share"))
-               (rename-file
-                (string-append out "/share/doc")
-                (string-append doc "/share/doc"))
-               (mkdir-p (string-append gst "/lib"))
-               (rename-file
-                (string-append out "/lib/gstreamer-1.0")
-                (string-append gst "/lib/gstreamer-1.0"))))))))
+     (list #:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
+           #:configure-flags
+           #~(list (string-append "-Dbindir="
+                                  (assoc-ref %outputs "tools") "/bin")
+                   "-Dtest=true" "-Dv4l2=true"
+                   ;; XXX: Requires bundled pybind11.
+                   "-Dpycamera=disabled")
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'install 'move-doc-and-gst
+                 (lambda* (#:key outputs #:allow-other-keys)
+                   (let* ((out (assoc-ref outputs "out"))
+                          (doc (assoc-ref outputs "doc"))
+                          (gst (assoc-ref outputs "gst")))
+                     (mkdir-p (string-append doc "/share"))
+                     (rename-file (string-append out "/share/doc")
+                                  (string-append doc "/share/doc"))
+                     (mkdir-p (string-append gst "/lib"))
+                     (rename-file
+                      (string-append out "/lib/gstreamer-1.0")
+                      (string-append gst "/lib/gstreamer-1.0"))))))))
     (native-inputs
      (list googletest
            graphviz                     ;for 'dot'
-- 
2.41.0





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

* bug#64767: [PATCH 0/5] Update libcamera and pipewire
  2023-07-21 12:12 [bug#64767] [PATCH 0/5] Update libcamera and pipewire iyzsong--- via Guix-patches via
                   ` (4 preceding siblings ...)
  2023-07-21 12:14 ` [bug#64767] [PATCH 5/5] gnu: libcamera: Rewrite package argument to G-expression iyzsong--- via Guix-patches via
@ 2023-08-13  8:04 ` 宋文武 via Guix-patches via
  5 siblings, 0 replies; 7+ messages in thread
From: 宋文武 via Guix-patches via @ 2023-08-13  8:04 UTC (permalink / raw)
  To: 64767-done; +Cc: 宋文武

iyzsong@envs.net writes:

>   gnu: libcamera: Update to 0.1.0.
>   gnu: libcamera: Split off gst and tools outputs.
>   gnu: pipewire: Update to 0.3.75.
>   gnu: pipewire: Enable libcamera support.
>   gnu: libcamera: Rewrite package argument to G-expression.
>

Pushed to master, with pipewire update to 0.3.77.




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

end of thread, other threads:[~2023-08-13  8:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-21 12:12 [bug#64767] [PATCH 0/5] Update libcamera and pipewire iyzsong--- via Guix-patches via
2023-07-21 12:14 ` [bug#64767] [PATCH 1/5] gnu: libcamera: Update to 0.1.0 iyzsong--- via Guix-patches via
2023-07-21 12:14 ` [bug#64767] [PATCH 2/5] gnu: libcamera: Split off gst and tools outputs iyzsong--- via Guix-patches via
2023-07-21 12:14 ` [bug#64767] [PATCH 3/5] gnu: pipewire: Update to 0.3.75 iyzsong--- via Guix-patches via
2023-07-21 12:14 ` [bug#64767] [PATCH 4/5] gnu: pipewire: Enable libcamera support iyzsong--- via Guix-patches via
2023-07-21 12:14 ` [bug#64767] [PATCH 5/5] gnu: libcamera: Rewrite package argument to G-expression iyzsong--- via Guix-patches via
2023-08-13  8:04 ` bug#64767: [PATCH 0/5] Update libcamera and pipewire 宋文武 via Guix-patches via

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.