From patchwork Mon Apr 12 09:36:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Leo Prikler X-Patchwork-Id: 28459 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 0D57E27BC86; Mon, 12 Apr 2021 10:37:42 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 7E3D527BC85 for ; Mon, 12 Apr 2021 10:37:41 +0100 (BST) Received: from localhost ([::1]:45356 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVt0m-0000G4-MZ for patchwork@mira.cbaines.net; Mon, 12 Apr 2021 05:37:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49350) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVt0B-0008OJ-RK for guix-patches@gnu.org; Mon, 12 Apr 2021 05:37:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44964) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lVt0B-0000Z3-Dt for guix-patches@gnu.org; Mon, 12 Apr 2021 05:37:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lVt0B-0003Mo-BT for guix-patches@gnu.org; Mon, 12 Apr 2021 05:37:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47643] [PATCH staging v2 3/9] gnu: gst-plugins-base: Enable more features. Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 12 Apr 2021 09:37:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47643 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 47643@debbugs.gnu.org Cc: iyzsong@outlook.com, rg@raghavgururajan.name, =?utf-8?b?5a6L5paH5q2m?= , leo@famulari.name Received: via spool by 47643-submit@debbugs.gnu.org id=B47643.161822021212832 (code B ref 47643); Mon, 12 Apr 2021 09:37:03 +0000 Received: (at 47643) by debbugs.gnu.org; 12 Apr 2021 09:36:52 +0000 Received: from localhost ([127.0.0.1]:56491 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVszz-0003Ko-RH for submit@debbugs.gnu.org; Mon, 12 Apr 2021 05:36:52 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:60036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVszx-0003KT-OR for 47643@debbugs.gnu.org; Mon, 12 Apr 2021 05:36:50 -0400 Received: from localhost.localdomain (194-96-13-79.adsl.highway.telekom.at [194.96.13.79]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4FJkCM10Z5z3wVt; Mon, 12 Apr 2021 11:36:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1618220207; bh=tBnvUtoeMzmoMsVMNJZer7ZxJw+J2O6TgGrDBweycmQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=UJw3IY1wHyID9ypBaghkyCM6O4xucYgeq6M2LcqOWjz92SuM/VwuXldKEdFP6CnxV BBb7LjcZVl2njb/9Lpf7EtaSUg8tCRSL+beTpW727SEMDrGMDEEvBTKOjiIQsMpx+I wVS1xSijLezCsNXM/maS+cY28Fs/7Vfj0g+tIrSQ= From: Leo Prikler Date: Mon, 12 Apr 2021 11:36:08 +0200 Message-Id: <20210412093614.9393-3-leo.prikler@student.tugraz.at> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210412093614.9393-1-leo.prikler@student.tugraz.at> References: <20210412093614.9393-1-leo.prikler@student.tugraz.at> MIME-Version: 1.0 X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From: Raghav Gururajan * gnu/packages/gstreamer.scm (gst-plugins-base) [inputs]: Add graphene, iso-codes, libgudev, libjpeg-turbo, libpng, libvisual, mesa, wayland-protocols, wayland. [native-inputs]: Add gettext-minimal and xorg-server-for-test. [arguments]: Remove '-Dgl=disabled' from configure flags. Add pre-check phase. Signed-off-by: Leo Prikler Co-authored-by: 宋文武 --- gnu/packages/gstreamer.scm | 37 ++++++++++++++++++++++++++++++------- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/gnu/packages/gstreamer.scm b/gnu/packages/gstreamer.scm index cc8b29adcf..54bc5dfa22 100644 --- a/gnu/packages/gstreamer.scm +++ b/gnu/packages/gstreamer.scm @@ -559,6 +559,7 @@ This package provides the core library and elements.") '() `(("orc" ,orc))))) ;required by gstreamer-audio-1.0.pc (inputs + ;; TODO: Add libvorbisidec `(("cdparanoia" ,cdparanoia) ("pango" ,pango) ("libogg" ,libogg) @@ -569,21 +570,43 @@ This package provides the core library and elements.") ("libXext" ,libxext) ("libxv" ,libxv) ("alsa-lib" ,alsa-lib) - ("opus" ,opus))) + ("opus" ,opus) + ("graphene" ,graphene) + ("iso-codes" ,iso-codes) + ("libgudev" ,libgudev) + ("libjpeg" ,libjpeg-turbo) + ("libpng" ,libpng) + ("libvisual" ,libvisual) + ("mesa" ,mesa) + ("wayland-protocols" ,wayland-protocols) + ("wayland" ,wayland))) (native-inputs - `(("pkg-config" ,pkg-config) - ("glib:bin" ,glib "bin") - ("gobject-introspection" ,gobject-introspection) - ("python-wrapper" ,python-wrapper))) + `(("pkg-config" ,pkg-config) + ("glib:bin" ,glib "bin") + ("gobject-introspection" ,gobject-introspection) + ("python-wrapper" ,python-wrapper) + ("gettext" ,gettext-minimal) + ("xorg-server" ,xorg-server-for-tests))) (arguments - `(#:configure-flags '("-Dgl=disabled") - #:phases + `(#:phases (modify-phases %standard-phases ,@%common-gstreamer-phases (add-before 'configure 'patch (lambda _ (substitute* "tests/check/libs/pbutils.c" (("/bin/sh") (which "sh"))) + #t)) + (add-before 'check 'pre-check + (lambda _ + ;; Tests require a running X server. + (system "Xvfb :1 +extension GLX &") + (setenv "DISPLAY" ":1") + ;; Tests write to $HOME. + (setenv "HOME" (getcwd)) + ;; Tests look for $XDG_RUNTIME_DIR. + (setenv "XDG_RUNTIME_DIR" (getcwd)) + ;; For missing '/etc/machine-id'. + (setenv "DBUS_FATAL_WARNINGS" "0") #t))))) (home-page "https://gstreamer.freedesktop.org/") (synopsis