From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OJvFEZ7b42GTEQAAgWs5BA (envelope-from ) for ; Sun, 16 Jan 2022 09:47:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id COY0D57b42F0CAEA9RJhRA (envelope-from ) for ; Sun, 16 Jan 2022 09:47:26 +0100 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 2C63FACA7 for ; Sun, 16 Jan 2022 09:47:25 +0100 (CET) Received: from localhost ([::1]:51242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n91C8-0006ZE-Ar for larch@yhetil.org; Sun, 16 Jan 2022 03:47:24 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38310) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n91Bv-0006Yn-UQ for help-guix@gnu.org; Sun, 16 Jan 2022 03:47:11 -0500 Received: from [2a00:5884:8208::1] (port=55182 helo=lepiller.eu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n91Bt-0002Va-6H for help-guix@gnu.org; Sun, 16 Jan 2022 03:47:11 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id fd6ac88c; Sun, 16 Jan 2022 08:47:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:subject:in-reply-to:references:message-id:mime-version :content-type:content-transfer-encoding; s=dkim; bh=al1sq3F855fx MxD/k6Eqm9A0Ih9KISAFKWs+wXLkgpg=; b=f1zzc69kW8DMj7yyFpvxYvy1I2+d 40kZA+tk0vFof4GX7WL5QTwkYeHHKWcPcSaiTW/3d6QE+KTjcTvk5qkyCNRlSDe6 pcuRt7HkAdMHC0yO/4fnDA6quoalBJoUvhqxuC66XPs9Sj+EDjU9FeQy91I0avJi xXN+1FFN8cDyLIFe8BIzu4PjX6fGjXkDrt/qdLxEw+hZIAjGYYnrWuBS8FhNAxWO ZM573tYiR78KubFhtEiFCFHxj3R+eUOggwH4l+buOn6YyTMaJh6a1xHPxNg1c6Gw 0N4L657T6NKLqFBbIaVam3dvfcEZQtUICPv5mLGO0B80VTxmY0pCFY8v1Q== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 494674d2 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Sun, 16 Jan 2022 08:47:02 +0000 (UTC) Date: Sun, 16 Jan 2022 09:46:53 +0100 From: Julien Lepiller To: Jacob Hrbek , help-guix@gnu.org Subject: Re: Howddya specify max supported dependency version for a package? User-Agent: K-9 Mail for Android In-Reply-To: <162e0cf1-5e35-97d4-3bb2-4337cb07803e@rixotstudio.cz> References: <162e0cf1-5e35-97d4-3bb2-4337cb07803e@rixotstudio.cz> Message-ID: MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:5884:8208::1 (failed) Received-SPF: pass client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642322846; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=4qxovauJlHQeCARB4Ztmk18NxYttenLdBd9vK4I54sA=; b=r0yXoSZ03hnUNj5XCBCYvzfq5HknOrklP5aT42pU4SCjopfj3wsfdb2DT8cbLnyiCt0CVh 7SWbV4q9Jw4rXsWFvj33zl2YmnjS/DUg7ak/UFBNI28Wq46mUi22Mv2N+Ujg5sqkQtZ+qF LPvTM/qts49bYFb5clo4KkqpSG9HTvStVFvPr738sK+WRpGtV+4RBg66FoAXH/QgpCYEsX ETFc72OQGdKIfYGgvE51KnLGPF53gge2igLUczB/fuB1SC4INbongTyQMyng3CDiBYmsWA zEtrvJCSFeNe7JzLoY4Nh+YJvE6XCfA9Ovtj0+LHHALHwoJZVgwIriNnj9He4w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642322846; a=rsa-sha256; cv=none; b=SzcR7P6pFcNJSV1Ae8ASa3mmMBClMupIiK9I2kOMEON9lBvFOjFTE1Rwg4CYU82P1v2cS6 xKwctycOxeRktYyNXYQtPUSitukv6zK7uk163vNDQPQsJKVS9eAUGbrz9M9TSh/KFubLBv JmxqzVqYmYdfO0l4v9rRam6csRfuL2rLfYdRKZSu8G/xnGH3m0CGLGFNRL0y0m7L7igJxd ZOmnncbctqaAe7szyi0zokAGGbTWyaPcFiok6o4+nuwnfscwmUZ00ruATX4nU2S/yKwwY2 bYqsnqUcsVxAEpyIZRhn/0MIiIaN4IWEoUYbQqac7C0Np7EhhF9Z6BezAKygrA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=lepiller.eu header.s=dkim header.b=f1zzc69k; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.02 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=lepiller.eu header.s=dkim header.b=f1zzc69k; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2C63FACA7 X-Spam-Score: -1.02 X-Migadu-Scanner: scn1.migadu.com X-TUID: p34Z/4o7DJTQ Simple unhelpful answer, you can't=2E Guix doesn't work like that=2E We don= 't specify package range or give a package any way to choose itt dependenci= es=2E When you specify a dependency, it's always a reference to a very spec= ific packaqe (though the reference might evolve with newer guix revisions)= =2E It simplifies package management since there's no constraint solving or= anything of the sort=2E For your problem I see two potential solutions: fix the package to allow o= ur current python version, though there might be a reason why it's not allo= wed, or package python 3=2E5 and use it instead of the current python versi= on=2E HTH Le 16 janvier 2022 08:03:53 GMT+01:00, Jacob Hrbek a =C3=A9crit=C2=A0: >(define-public qbittorrent > =C2=A0 (package > =C2=A0=C2=A0=C2=A0 (name "qbittorrent") > =C2=A0=C2=A0=C2=A0 (version "4=2E2=2E5") > =C2=A0=C2=A0=C2=A0 (source > =C2=A0=C2=A0=C2=A0=C2=A0 (origin > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (method git-fetch) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (uri (git-reference > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= (url "https://github=2Ecom/qbittorrent/qBittorrent") > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= (commit (string-append "release-" version)))) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (file-name (git-file-name name vers= ion)) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (sha256 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (base32 "1n613ylg6i9gisgk0dbr= 2kpfasyizrkdjff1r8smd4vri2qrdksn")))) > =C2=A0=C2=A0=C2=A0 (build-system gnu-build-system) > =C2=A0=C2=A0=C2=A0 (arguments > =C2=A0=C2=A0=C2=A0=C2=A0 `(#:configure-flags > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (list (string-append "--with-boost-= libdir=3D" > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (assoc-ref %build-inputs "boost") > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 "/lib") > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= "--enable-debug" > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= "QMAKE_LRELEASE=3Dlrelease") > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 #:modules ((guix build gnu-build-sy= stem) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (guix build qt-utils) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (guix build utils)) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 #:imported-modules (,@%gnu-build-sy= stem-modules > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 (guix build qt-utils)) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 #:phases > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (modify-phases %standard-phases > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (add-after 'install 'wr= ap-qt > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (lambda* (#= :key outputs inputs #:allow-other-keys) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= (let ((out (assoc-ref outputs "out"))) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 (wrap-qt-program "qbittorrent" #:output out #:inputs=20 >inputs)) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= #t))))) > =C2=A0=C2=A0=C2=A0 (native-inputs > =C2=A0=C2=A0=C2=A0=C2=A0 (list pkg-config qttools)) > =C2=A0=C2=A0=C2=A0 (inputs > =C2=A0=C2=A0=C2=A0=C2=A0 `(("boost" ,boost) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ("libtorrent-rasterbar" ,libtorrent= -rasterbar) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ("openssl" ,openssl) > =C2=A0=C2=A0 =C2=A0;; NOTE(Krey): Max supported version declared in=20 >https://github=2Ecom/qbittorrent/qBittorrent/blob/5c0378a6845e3484023f4c7= 6893ff9f0e5178460/src/base/utils/foreignapps=2Ecpp#L269 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ("python" ,python-wrapper) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ("qtbase" ,qtbase-5) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ("qtsvg" ,qtsvg) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ("zlib" ,zlib))) > =C2=A0=C2=A0=C2=A0 (home-page "https://www=2Eqbittorrent=2Eorg/") > =C2=A0=C2=A0=C2=A0 (synopsis "Graphical BitTorrent client") > =C2=A0=C2=A0=C2=A0 (description > =C2=A0=C2=A0=C2=A0=C2=A0 "qBittorrent is a BitTorrent client programmed = in C++/Qt that uses >libtorrent (sometimes called libtorrent-rasterbar) by Arvid Norberg=2E > >It aims to be a good alternative to all other BitTorrent clients out ther= e=2E >qBittorrent is fast, stable and provides unicode support as well as many >features=2E") > =C2=A0=C2=A0=C2=A0 (license l:gpl2+))) > > >I am trying to make a patch to fix=20 >https://github=2Ecom/qbittorrent/qBittorrent/issues/16139 which is caused= =20 >by us using an unsupported python version -> How can i specify that the= =20 >package is only allowed to use python 3=2E2 <=3D 3=2E5=2E0 ? > >--=20 >Jacob Hrbek >