From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 0BqwMlfJDmfNowAAe85BDQ:P1 (envelope-from ) for ; Tue, 15 Oct 2024 19:58:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 0BqwMlfJDmfNowAAe85BDQ (envelope-from ) for ; Tue, 15 Oct 2024 21:58:15 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=S2vlJ863; dkim=fail ("headers rsa verify failed") header.d=ngraves.fr header.s=ovhmo4487190-selector1 header.b=arYthiJO; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1729022295; h=from:from:sender:sender:reply-to: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=WiDK4UQb7COIaDu9pd6XRxd7olLT88sP3z+KIodRdKY=; b=CCDBd2QYQHfBY/onTBM84GplOBfuIFYkQryW1LnWmldUBieT0XIPE+PBlAPNScBOKMHr1O gmaLmpn+5kp8JrJ42Gd2u13UZ5xBgXuwfBmIukk22eSGEn6OXlZIrYG36nYDadTFI/AO/P 8QlRJhJUVfb79rRW4GwZ+0H0ik576SEhq6FRIx+RVJ9jgj4K62vy/H74kT6nWFwWPVFudP dtihMBX7pSOCaDFUCFFIWspQBum9qebcElKmI82Xilj1KBlcDy47yApjL5eC/JOaIrBrjq QWsXyCVBh7LXTG4VN0jvzGcbWxi1PzbMfSVrwguHPAssE3i4cQoofF5SIM3gwA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1729022295; a=rsa-sha256; cv=none; b=nRo/V+ED70j7c8zacngYMTAyen8v3hdne6CIuiZDFfMSPFAtH1+7aEswAp+sTWFlQw/ed/ +RK3f8Q0e7833XU9AV3WWVLKr4kA5Vn+jk38yDe5URzdFnwRDtbHbn/4iRNlbngfwVaYcU 96k5eB4FWUE0dUbvaFLoOfNRIABmbVQYQGR67EAGNmM82IVSzVO6piYUUpSqdI0nrCvwRS GQ5yZ/rghnDKlRez5NGjrQS61I4VExP2cwjB7gFD6JrO1eWd4RjtDeEYbWtgEfEjqO8r8k kX7rHRjjhuvo7KXmBVNk6wq9ygIly57otwG9/p+xD/700rnRUGc8ONScosn5xw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=S2vlJ863; dkim=fail ("headers rsa verify failed") header.d=ngraves.fr header.s=ovhmo4487190-selector1 header.b=arYthiJO; 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"; dmarc=pass (policy=none) header.from=gnu.org 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 5BE047A035 for ; Tue, 15 Oct 2024 21:58:15 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t0nfw-0003aD-Ap; Tue, 15 Oct 2024 15:57:48 -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 1t0nft-0003Vt-7e for guix-patches@gnu.org; Tue, 15 Oct 2024 15:57:45 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t0nfs-0005yS-Vv for guix-patches@gnu.org; Tue, 15 Oct 2024 15:57:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=WiDK4UQb7COIaDu9pd6XRxd7olLT88sP3z+KIodRdKY=; b=S2vlJ863ICXIT1cCZAxOg6QqZpKDhzvQNXA7gksB91vVBsJnimXOfXe2jh9/4+5W+h1Y/KCutQO2Wm9OeAGL7SbJ8L2DORKZhRkvqPH7xaNVyf+svmMDNhVHCuPJainN4RRRRmOjBiA1pJPvjKk312uYFjiS0GrYkMyRGs5xfkyKhAt1KotyA6Ah1MYxvpgYSDUAPANPm40RF+H1qn/HiRsbFdotPStcbn5kpAyYWd0EUmUgFgtmiMdcwwz2fouXARsv6E7yIwIEGXaYm0Z8O/aSjHcJOVyZEuSHCg70KLYK9tUgnPd4T39Nze0EjoDo+ERfqq11LoY5rofuedV3XQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t0ngB-0006oC-H6 for guix-patches@gnu.org; Tue, 15 Oct 2024 15:58:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73682] [PATCH v2 3/3] gnu: varnish: Improve style. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 15 Oct 2024 19:58:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73682 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73682@debbugs.gnu.org Cc: Nicolas Graves Received: via spool by 73682-submit@debbugs.gnu.org id=B73682.172902223526054 (code B ref 73682); Tue, 15 Oct 2024 19:58:03 +0000 Received: (at 73682) by debbugs.gnu.org; 15 Oct 2024 19:57:15 +0000 Received: from localhost ([127.0.0.1]:57599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0nfL-0006ly-3n for submit@debbugs.gnu.org; Tue, 15 Oct 2024 15:57:15 -0400 Received: from 12.mo550.mail-out.ovh.net ([87.98.162.229]:45777) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0nfE-0006lA-PY for 73682@debbugs.gnu.org; Tue, 15 Oct 2024 15:57:09 -0400 Received: from director8.ghost.mail-out.ovh.net (unknown [10.108.25.35]) by mo550.mail-out.ovh.net (Postfix) with ESMTP id 4XSlH042sqz1RH4 for <73682@debbugs.gnu.org>; Tue, 15 Oct 2024 19:56:44 +0000 (UTC) Received: from ghost-submission-55b549bf7b-5bnnl (unknown [10.111.174.132]) by director8.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 23B791FD1C; Tue, 15 Oct 2024 19:56:43 +0000 (UTC) Received: from ngraves.fr ([37.59.142.97]) by ghost-submission-55b549bf7b-5bnnl with ESMTPSA id V0ZFKvvIDmcbGAMAIAE+RQ (envelope-from ); Tue, 15 Oct 2024 19:56:43 +0000 X-OVh-ClientIp: 86.246.19.221 Date: Tue, 15 Oct 2024 21:56:27 +0200 Message-ID: <20241015195634.6829-3-ngraves@ngraves.fr> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20241015195634.6829-1-ngraves@ngraves.fr> References: <20241015195634.6829-1-ngraves@ngraves.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 14482450505804538594 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeeftddrvdegjedgudegfecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpeelffejteeutefhfeekfffffedvudekjeekgfeludeitdfhkeevhfeivdfhffeggeenucfkphepuddvjedrtddrtddruddpkeeirddvgeeirdduledrvddvuddpfeejrdehledrudegvddrleejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeejfeeikedvseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehhedtpdhmohguvgepshhmthhpohhuth DKIM-Signature: a=rsa-sha256; bh=WiDK4UQb7COIaDu9pd6XRxd7olLT88sP3z+KIodRdKY=; c=relaxed/relaxed; d=ngraves.fr; h=From; s=ovhmo4487190-selector1; t=1729022204; v=1; b=arYthiJODW6XrFP4ez2WWI/TuW/rrTDXFS13EzD8Ytth1idiWlNX7C5t+S8eakuKRCCSuXZI pXGGT+PUj1817+bPTMU/w8pLlO1AtxZ7qC6u0WjqvY+ufQdlIoPMKP9OHJUuVL++nQVNtpbvpZM JNoDUUgGta16j1jGFjXSE+cIaeP5NmjQ0hAX8IgI+zBsH737OAoVL4lwlmSXJMVGzCwifyoSPnu vgbiVGoc+S08wYgqeBvQYMH4m266SPYlOPLWMa/xuGaEWwSQl67akaKZ5L6vnh37GqltlK1qs5y Kw51mtUP8rPL1C5kNSw597pTrOKmeHSMgim26rKeM7D/A== 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: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -2.79 X-Spam-Score: -2.79 X-Migadu-Queue-Id: 5BE047A035 X-Migadu-Scanner: mx13.migadu.com X-TUID: BfbYHf1h5amo * gnu/packages/web.scm (varnish): Improve style. [arguments]: Rewrite using gexps. [inputs]: Replace coreutils by coreutils-minimal, python by python-minimal. Add glibc. --- gnu/packages/web.scm | 106 ++++++++++++++++++++++--------------------- 1 file changed, 55 insertions(+), 51 deletions(-) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index fe6b40067b..87eab9b4af 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -6617,66 +6617,70 @@ (define-public varnish "0p2xf4a8bk2w8j9q20fazrc93fwcfhw8zcvdd8ssbahvlg2q78mb")))) (build-system gnu-build-system) (arguments - `(#:configure-flags (list (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib") - (string-append "CC=" ,(cc-for-target)) - ;; Use absolute path of GCC so it's found at runtime. - (string-append "PTHREAD_CC=" - (search-input-file %build-inputs - "/bin/gcc")) - "--localstatedir=/var") - ,@(if (target-x86-32?) - '(#:make-flags - (list "CFLAGS+=-fexcess-precision=standard")) - '()) + (append + (if (target-x86-32?) + '(#:make-flags + (list "CFLAGS+=-fexcess-precision=standard")) + '()) + (list + #:configure-flags + #~(list (string-append "LDFLAGS=-Wl,-rpath=" #$output "/lib") + (string-append "CC=" #$(cc-for-target)) + ;; Use absolute path of GCC so it's found at runtime. + (string-append "PTHREAD_CC=" + (search-input-file %build-inputs + "/bin/gcc")) + "--localstatedir=/var") #:phases - (modify-phases %standard-phases - (add-after 'unpack 'use-absolute-file-names - (lambda _ - (substitute* '("bin/varnishtest/vtc_varnish.c" - "bin/varnishtest/vtc_process.c" - "bin/varnishtest/vtc_haproxy.c" - "bin/varnishtest/tests/u00014.vtc" - "bin/varnishd/mgt/mgt_vcc.c") - (("/bin/sh") (which "bash"))) - (let* ((rm (which "rm"))) - (substitute* "bin/varnishd/mgt/mgt_shmem.c" - (("rm -rf") (string-append rm " -rf"))) - (substitute* "bin/varnishtest/vtc_main.c" - (("/bin/rm") rm))) - (substitute* "bin/varnishtest/tests/u00000.vtc" - (("/bin/echo") (which "echo"))))) - (add-after 'unpack 'remove-failing-tests - (lambda _ - ;; This test seems to fail because of - ;; Failed: Servname not supported for ai_socktype - (delete-file "bin/varnishtest/tests/b00085.vtc"))) - (add-before 'install 'patch-Makefile - (lambda _ - (substitute* "Makefile" - ;; Do not create /var/varnish during install. - (("^install-data-am: install-data-local") "install-data-am: ")))) - (add-after 'install 'wrap-varnishd - ;; Varnish uses GCC to compile VCL, so wrap it with required GCC - ;; environment variables to avoid propagating them to profiles. - (lambda* (#:key inputs outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (varnishd (string-append out "/sbin/varnishd")) - (PATH (string-append (assoc-ref inputs "binutils") "/bin")) - (LIBRARY_PATH (string-append (assoc-ref inputs "libc") "/lib"))) - (wrap-program varnishd + #~(modify-phases %standard-phases + (add-after 'unpack 'use-absolute-file-names + (lambda _ + (substitute* '("bin/varnishtest/vtc_varnish.c" + "bin/varnishtest/vtc_process.c" + "bin/varnishtest/vtc_haproxy.c" + "bin/varnishtest/tests/u00014.vtc" + "bin/varnishd/mgt/mgt_vcc.c") + (("/bin/sh") (which "bash"))) + (let* ((rm (which "rm"))) + (substitute* "bin/varnishd/mgt/mgt_shmem.c" + (("rm -rf") (string-append rm " -rf"))) + (substitute* "bin/varnishtest/vtc_main.c" + (("/bin/rm") rm))) + (substitute* "bin/varnishtest/tests/u00000.vtc" + (("/bin/echo") (which "echo"))))) + (add-after 'unpack 'remove-failing-tests + (lambda _ + ;; This test seems to fail because of + ;; Failed: Servname not supported for ai_socktype + (delete-file "bin/varnishtest/tests/b00085.vtc"))) + (add-before 'install 'patch-Makefile + (lambda _ + (substitute* "Makefile" + ;; Do not create /var/varnish during install. + (("^install-data-am: install-data-local") + "install-data-am: ")))) + (add-after 'install 'wrap-varnishd + ;; Varnish uses GCC to compile VCL, so wrap it with required GCC + ;; environment variables to avoid propagating them to profiles. + (lambda _ + (wrap-program (string-append #$output "/sbin/varnishd") ;; Add binutils to PATH so gcc finds the 'as' executable. - `("PATH" ":" prefix (,PATH)) + `("PATH" ":" prefix (,(dirname (which "as")))) ;; Make sure 'crti.o' et.al is found. - `("LIBRARY_PATH" ":" prefix (,LIBRARY_PATH))))))))) + `("LIBRARY_PATH" ":" prefix + (,(dirname + (search-input-file inputs "lib/libc.so"))))))))))) (native-inputs - (list pkg-config python-sphinx python-docutils)) + (list pkg-config + python-sphinx + python-docutils)) (inputs (list bash-minimal - coreutils + coreutils-minimal jemalloc ncurses pcre2 - python + python-minimal readline)) (synopsis "Web application accelerator") (description -- 2.46.0