From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id ANzhBYOnV2SCdgAASxT56A (envelope-from ) for ; Sun, 07 May 2023 15:28:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aGvwBIOnV2RZQQAAG6o9tA (envelope-from ) for ; Sun, 07 May 2023 15:28:35 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C90F42F588 for ; Sun, 7 May 2023 15:28:34 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pveQm-0001Oc-G2; Sun, 07 May 2023 09:28:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pveQl-0001OD-IK for guix-patches@gnu.org; Sun, 07 May 2023 09:28:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pveQl-00011w-AQ for guix-patches@gnu.org; Sun, 07 May 2023 09:28:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pveQl-00057k-5r for guix-patches@gnu.org; Sun, 07 May 2023 09:28:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63348] [PATCH 3/4] gnu: Add rust-webbrowser-0.8. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 07 May 2023 13:28:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63348 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63348@debbugs.gnu.org Cc: Pierre Langlois Received: via spool by 63348-submit@debbugs.gnu.org id=B63348.168346603919611 (code B ref 63348); Sun, 07 May 2023 13:28:03 +0000 Received: (at 63348) by debbugs.gnu.org; 7 May 2023 13:27:19 +0000 Received: from localhost ([127.0.0.1]:36713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pveQ2-00056F-Em for submit@debbugs.gnu.org; Sun, 07 May 2023 09:27:18 -0400 Received: from mout.gmx.net ([212.227.17.22]:53333) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pveQ0-00055n-GW for 63348@debbugs.gnu.org; Sun, 07 May 2023 09:27:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.com; s=s31663417; t=1683466030; i=pierre.langlois@gmx.com; bh=fwYIypa5LmABw7t9QTTOXGphjblUlcbkhqs1d92Mt7c=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=XIbdL10TYu6ZxVp5GgyG3Tu5aXQ9gbnms26chSrnscnvNx41hGZ8Vtj5k73A8F+F7 nAvkgHBBgaUA26oN843Uw6X6XAkHtpIf8qWAsXqcVz9E2DhlYayC40gdJ94X0uNc1I e6w/QYXP73FcyUUOjYMuu86IJ5mmDoGgFm4sZDHs2bylQsolRm/Q+QyMcTfLifTTF4 K7ZQHRGurZdiB54Zz/7MOwRN24ajCtym97DBNipZ8JBPP4zLc4mR5+nbSklG9qYRCL PYIO2hJk6Z87QMesVBMQ4prqxmJWZBXBq6xlYxCdzmKm26BPlNmMwwwYERPaC9kk5S tGdSfAJ1PCsAA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from localhost.localdomain ([82.69.64.142]) by mail.gmx.net (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MuUjC-1qCd6S34Jm-00rZ1H; Sun, 07 May 2023 15:27:10 +0200 From: Pierre Langlois Date: Sun, 7 May 2023 14:26:21 +0100 Message-Id: X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:Wbp/3dEx0QEDD4zb2A48cYeREoCExBaAi8I8VAs8xbjhUeqcw+2 I3CqTv1uPgrFAJc85Ult0R/HU71n/Uhk1GK9PuizbRkEwNcYFJRVvwopKi57bHbdJ5sbcfr G0YMyaK5gONFEh7AOaqPUjnOhEbfN53oPnRyAG9U4HSUZFq2UgiFu8N4tUtsjmWEy06AUX2 wFoYASTQ6mDGb5+GnE6dg== UI-OutboundReport: notjunk:1;M01:P0:/KpxlAfwhKo=;GW3GvJlfHlZXA5XlSZ/QhyJrHA/ LKYZSlWFivS8usdPE0ER2plcFsWcN8Hut2fXymFG7Xkw2ZOW4P0i0Vwvi2hCo31y/+NQjWvia quP+AJZo7iwIRy+Ut2QSC/R/RmxPO6w+gSTmOlDjnNGnGt4BCNE5OscKmQuQT1eqfuedPdn7j r5JUBRi8PezH8aoqikdlqoyZA0muR24NbpCGadSajnzOewkhiI6gDaS68V9sRs4g8nXvHuDN4 eKFhvP+BH4iRBLqZnFQBVUI5mRnFBmuxU3Ixzp/mpTRT0cA9Cp1mEVK+EY9iJf0/IMN6PlIv1 MVFC4MRSd9Ie/cfsV7DbfiMO3xSiEXq4NXJKB/cpFhRycMWnuttv9Z2T6DJrGmz3mVA6EKhJW l/79XCf52GxJcx+kAZNYAcIh1Y7lTVQIwIXBt8UtAzaVYq/eXCs8hq1oUfrN12FBYkNmIMHE6 DM8HO1YdkX03Ui4T0fa/+6JFby4drWOKLX1ShEoLKRjWAgyk/UVKnz2OEY7XQV2pKp8knlrIM EDZJadzwNltuQuieZmzUMm1V0FuXbJRBiW8DUAsImeqTM6HDPsaWRZID6M9eR0IMd4rDv5qXi huC8iff7qUO5sZTlUGXY2erVpc70AOb8l7w8asrcj5LP1bGDhx4tj1ev/MG066NkNxtYJ/nzt 0Psx1bwvutCpTqitlz61LMFRxgJG/lwjAjG9zH1TjnJI4+i9KEX3yMWZJAwEj8ltpKP67l0tf pc06WUriX2ydBllsTXe4V66SblB2btqCIXbl+ICE0dFfUeLEfZvMwwqb8pxMXJhfDVQTX1sVr hURX1AATx0U2wqwQg363Di55KHC+v1uwg+tbxpPifnsHqw+vBV1z+9SMbzq7Y0aTyPy92yRfm OWfCTY+LYVKghIDFszbPWp5NTjo8LV9aFDe6yzUP2kTGZjoNbvpu1SHA32qeQPM/uemZzyvkG 8CfUK4doVoYbWCV5Tkjy08Gh27M= 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683466114; a=rsa-sha256; cv=none; b=TLPWwIhcn8qkmlA3VdfvjJ4gneureLMnp3mDi/D+NgIdHvdpr3ykkneUehs11a8ilyw2Vr MEhNbIlfx0fOXiTziTiqxMcAMWQ8/m127jnxmu1ruG1Vd+kxxZo8OP3wiTJovWlgYfP+8F ew3SpcVPmdwjurSd+SeV22sZ6SiE2Z8MzNYwLZWdTepKjS7d1UJILrN+FnMPqKIs+Y8Zop FMJEMofrtSwo0vYqBZMXDU13x/zqkPMtgOqeqyfzXxouucad5vTZ8ibOBxaoKWAQ/O75bV u4H88sUrl8LRd/7Nn7aQcYLEkPbAAQfE0xGqrAX+WjVY3LrSLKGxbKH3VPdY5Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.com header.s=s31663417 header.b=XIbdL10T; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1683466114; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=YG65g+wSGgkyVbK2R4XOvQPF3MoDq4J3DfdD0Kf3ncc=; b=kZG2q60Vw2cbQiLbUTe5LiKm/ySoEpT6lxDaM7zUp01/EyCAPDgyu9wl5M1xyRFrjgr92H EUSE31o0fTnYQG1J51H2Bb23gY5AIXyof9EaYXuIOEkrRU8qcOQaQCQctISPYheXh08l3J 1iWv5bZqQc0uzM6D+4fZXSZGVHbY8nZQ1+UpImghWlnWM1JM6i+cc4YKAf0ozDE5w7D+mj YK1xZ9DiWknz7yrbP4Lkp8bh7Cwk1EL4Oqc0pwS3YXDT1ydxr+ZSSipYpbAEOwqcnSYTpW cRPsZh2TqGllveAn+kcQH5IZh7LHt6pk6vuKiC4zkmausEXxyJJfkiw/hkiB8g== X-Migadu-Spam-Score: 1.59 X-Spam-Score: 1.59 X-Migadu-Queue-Id: C90F42F588 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.com header.s=s31663417 header.b=XIbdL10T; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-TUID: JhvBrP0ujlSc * gnu/packages/crates-io.scm (rust-webbrowser-0.8): New variable. (rust-webbrowser-0.5): Inherit from rust-webbrowser-0.8. * gnu/packages/patches/rust-webbrowser-remove-unsupported-os.patch: New fi= le. * gnu/local.mk: Register it. =2D-- gnu/local.mk | 1 + gnu/packages/crates-io.scm | 39 +++++++++++++++---- ...ust-webbrowser-remove-unsupported-os.patch | 24 ++++++++++++ 3 files changed, 56 insertions(+), 8 deletions(-) create mode 100644 gnu/packages/patches/rust-webbrowser-remove-unsupporte= d-os.patch diff --git a/gnu/local.mk b/gnu/local.mk index de5ac37ba5..cda612274a 100644 =2D-- a/gnu/local.mk +++ b/gnu/local.mk @@ -1872,6 +1872,7 @@ dist_patch_DATA =3D \ %D%/packages/patches/rust-nettle-sys-disable-vendor.patch \ %D%/packages/patches/rust-openssl-sys-no-vendor.patch \ %D%/packages/patches/rust-wl-clipboard-rs-newer-wl.patch \ + %D%/packages/patches/rust-webbrowser-remove-unsupported-os.patch \ %D%/packages/patches/rw-igraph-0.10.patch \ %D%/packages/patches/sbc-fix-build-non-x86.patch \ %D%/packages/patches/sbcl-aserve-add-HTML-5-elements.patch \ diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 22eeceb2fc..d912441f4d 100644 =2D-- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -67832,8 +67832,38 @@ (define-public rust-web-sys-0.3 "Bindings for all Web APIs, a procedurally generated crate from WebI= DL.") (license (list license:expat license:asl2.0)))) +(define-public rust-webbrowser-0.8 + (package + (name "rust-webbrowser") + (version "0.8.8") + (source + (origin + (method url-fetch) + (uri (crate-uri "webbrowser" version)) + (file-name (string-append name "-" version ".tar.gz")) + ;; Explicitely remove dependencies for unsupported operating syste= ms, + ;; to avoid pulling many dependencies and causing rust world rebui= lds. + (patches (search-patches "rust-webbrowser-remove-unsupported-os.pa= tch")) + (patch-flags '("-p0")) + (sha256 + (base32 "0zk1qidyksspa8pgvq8bh2lyqmmrs0fr5r1qsyhbzrawpn2w972p")))= ) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs (("rust-dirs" ,rust-dirs-4) + ("rust-log" ,rust-log-0.4) + ("rust-url" ,rust-url-2) + ("rust-web-sys" ,rust-web-sys-0.3)))) + (home-page "https://github.com/amodm/webbrowser-rs") + (synopsis "Open URLs in web browsers available on a platform") + (description + "Webbrowser-rs is a Rust library to open URLs in the web browsers +available on a platform.") + (license (list license:expat license:asl2.0)))) + (define-public rust-webbrowser-0.5 (package + (inherit rust-webbrowser-0.8) (name "rust-webbrowser") (version "0.5.5") (source @@ -67849,14 +67879,7 @@ (define-public rust-webbrowser-0.5 #:cargo-inputs (("rust-web-sys" ,rust-web-sys-0.3) ("rust-widestring" ,rust-widestring-0.4) - ("rust-winapi" ,rust-winapi-0.3)))) - (home-page - "https://github.com/amodm/webbrowser-rs") - (synopsis "Open URLs in web browsers available on a platform") - (description - "Webbrowser-rs is a Rust library to open URLs in the web browsers -available on a platform.") - (license (list license:expat license:asl2.0)))) + ("rust-winapi" ,rust-winapi-0.3)))))) (define-public rust-webpki-0.22 (package diff --git a/gnu/packages/patches/rust-webbrowser-remove-unsupported-os.pa= tch b/gnu/packages/patches/rust-webbrowser-remove-unsupported-os.patch new file mode 100644 index 0000000000..9fea1e1665 =2D-- /dev/null +++ b/gnu/packages/patches/rust-webbrowser-remove-unsupported-os.patch @@ -0,0 +1,24 @@ +--- Cargo.toml 2023-05-07 13:39:13.029066693 +0100 ++++ Cargo.toml 2023-05-07 13:39:22.545138206 +0100 +@@ -67,21 +67,3 @@ + [target."cfg(target_arch =3D \"wasm32\")".dependencies.web-sys] + version =3D "0.3" + features =3D ["Window"] +- +-[target."cfg(target_os =3D \"android\")".dependencies.jni] +-version =3D "0.21" +- +-[target."cfg(target_os =3D \"android\")".dependencies.ndk-context] +-version =3D "0.1" +- +-[target."cfg(target_os =3D \"android\")".dev-dependencies.ndk-glue] +-version =3D ">=3D 0.3, <=3D 0.7" +- +-[target."cfg(target_os =3D \"ios\")".dependencies.objc] +-version =3D "0.2.7" +- +-[target."cfg(target_os =3D \"ios\")".dependencies.raw-window-handle] +-version =3D "0.5.0" +- +-[target."cfg(target_os =3D \"macos\")".dependencies.core-foundation] +-version =3D "0.9" =2D- 2.39.2