From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kLW3Ah9pCmMwKwAAbAwnHQ (envelope-from ) for ; Sat, 27 Aug 2022 20:57:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OMqvAh9pCmObAgEAauVa8A (envelope-from ) for ; Sat, 27 Aug 2022 20:57: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 914881453D for ; Sat, 27 Aug 2022 20:57:34 +0200 (CEST) Received: from localhost ([::1]:55142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oS0zt-00037L-Am for larch@yhetil.org; Sat, 27 Aug 2022 14:57:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oS0zP-00035k-LE for guix-patches@gnu.org; Sat, 27 Aug 2022 14:57:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39074) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oS0zP-0001Vu-DP for guix-patches@gnu.org; Sat, 27 Aug 2022 14:57:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oS0zP-0008FN-9o for guix-patches@gnu.org; Sat, 27 Aug 2022 14:57:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57050] [PATCH v4 02/14] gnu: stex: Fix read-only gifs and math directories. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 27 Aug 2022 18:57:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57050 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57050@debbugs.gnu.org Cc: Philip McGrath , Thiago Jung Bauermann , "\(" , Maxime Devos , Liliana Marie Prikler , Efraim Flashner , Liliana Marie Prikler Received: via spool by 57050-submit@debbugs.gnu.org id=B57050.166162659631585 (code B ref 57050); Sat, 27 Aug 2022 18:57:03 +0000 Received: (at 57050) by debbugs.gnu.org; 27 Aug 2022 18:56:36 +0000 Received: from localhost ([127.0.0.1]:57039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oS0yx-0008DG-VV for submit@debbugs.gnu.org; Sat, 27 Aug 2022 14:56:36 -0400 Received: from mail-vs1-f44.google.com ([209.85.217.44]:40777) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oS0yt-0008Cm-Ez for 57050@debbugs.gnu.org; Sat, 27 Aug 2022 14:56:32 -0400 Received: by mail-vs1-f44.google.com with SMTP id 190so4676417vsz.7 for <57050@debbugs.gnu.org>; Sat, 27 Aug 2022 11:56:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=Y3+vNJPpga1Q1V+rF5NtVFTZ7yIvUQWMYLczF9BwSFU=; b=MtW2/J+BRaZLz9j1LtVr4Ne+TKVSaARDmNvQfkvwBqpc8p54LQ0OlMZ/B53OJ1cdHN avcZbKIqU6B90Xks++NEuTtC6RtSLrejYi5WOSfFutcUQdHDTPaymLvJl5uhwigF2Npj 28oTj8IqEfyOHgCNrdzOLlMpcpTYhPtSfU6B4uwY9P6EJAiPte4mUyRk6Ykm5+jJJaLP lyK6krqq9osrIAKxt2wZII3Ml0vzHWaP68OVrw+3bYimUEnpwxi3lJoMRCOQkKQBK5kr uEPJOorLDlitv8bcwKLhG8u8k4dpGswF0FGDK0H7SdHinqfHWa9GoRfNWPi4sr7pky1g GLww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=Y3+vNJPpga1Q1V+rF5NtVFTZ7yIvUQWMYLczF9BwSFU=; b=0p0YphIRO2Aq6gtEAaNoUPov3KAs5+JxSB7hZHpQoGh8yr/h67F7sOV6d3oFf56UQ2 G3hTwRpwczsnha0IGMoWYjOXj2OMup0xsWIBrmSX9l2PJ6Zc5NCehWJZqajIcVatfZgR 1mB8KCuY5+NArSHbwtQ8caNsZN8sGSDZ5Xm2YOvnwDYxjLvwOKWtNeM1j73d3dXLlhkw s7Hf8ozODvXTxmk/lccMRK7AsYSQIHBYT7IfaKLgku9fwZFz4i+7Um96NtHqpr2yVwjB EzuGVSuf36bcusNJuEYbJq7W9uiAdaYMDiJYRdFBTFVbLrlEpweKhTFMr7qJ/qN53J2d 8EPg== X-Gm-Message-State: ACgBeo1lY08WsDa0ypjuwvmK2/Cj61LUt49omUaBcirJ4ytyni5Ch0wu FfIPQ4slm3SGmvapN2/e5PI0JLfmVG7Gv0xl X-Google-Smtp-Source: AA6agR7m0qfBi7t8yncqjsa6Qpl5mk/UqtBukjHj1t2so2uBCYbnOVR8BSLUFRn1jWJRRxWQZmOvWA== X-Received: by 2002:a05:6102:5094:b0:388:c1dd:1f24 with SMTP id bl20-20020a056102509400b00388c1dd1f24mr1602942vsb.44.1661626586032; Sat, 27 Aug 2022 11:56:26 -0700 (PDT) Received: from localhost (c-73-125-98-51.hsd1.fl.comcast.net. [73.125.98.51]) by smtp.gmail.com with UTF8SMTPSA id a125-20020a671a83000000b003903bddc3e4sm601863vsa.9.2022.08.27.11.56.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 27 Aug 2022 11:56:25 -0700 (PDT) From: Philip McGrath Date: Sat, 27 Aug 2022 14:55:42 -0400 Message-Id: <9c0d1272c936807806d05b5dfdd33403f9e7f336.1661626113.git.philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1661626654; 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=Y3+vNJPpga1Q1V+rF5NtVFTZ7yIvUQWMYLczF9BwSFU=; b=k6zl9goXSZHyUHTuOS5//7HdwqxO25kVq+RxSzNyi5EPTVBJnSGiY4PNmjdHgnx090/s97 NGNBMYgZR6BewompVhkEJwL1yg7PANtnrlbcZDGT/+hKo2ztw9W5qgAiMkpVmRGm9Dznay jX0J22sc923o/j7iiBGfSlTzKSxlDDsHydmJpjAKPzC821Jz+MKYsR/ZxxN9FS0jptxx25 LGJmF1EvDrPx4MjDPegkbVopaIp/wbkq12zCAweRg2h9ZF9cCV28mUzUe250aALxWBfabU G0V1xdT6rZ2g8VPEOs4rBSQYb23MoGZNgMCXwGWF04+gN0wYXwLeJSxLAul1Tg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661626654; a=rsa-sha256; cv=none; b=f5DK7tgU9PCX1Ie9a9MLdksq80/cPUqgExWh4hcr2MHwlPuMjdZ+mkUSKyR8RTL75R1X42 sKBglhPIZdQku+/2lyDX0IVJILFRdAjDJ7VhNkfbdEedGup0AAZhK6mMEz5NpIYQvulPL5 3j7rk4pOh4xOfo8Ka1hEsdWtKjIT435uecNCDGbdtGJ7y3xGNe2zNWwrex7hiudpE3HSiY nkxA30hlJ/lLOmjp18KmGZooBNK92PjfNE0C+jTaq+nG0zNMYKzWczVAZgq+KX0/k6ht9G o7GsVRfaxbyAYePbHfqPip/FzPnK7bxdyIVRGdjeLH6OdTzM5q8cdKrHpUaJjQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b="MtW2/J+B"; dmarc=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-Migadu-Spam-Score: 5.70 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b="MtW2/J+B"; dmarc=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-Migadu-Queue-Id: 914881453D X-Spam-Score: 5.70 X-Migadu-Scanner: scn1.migadu.com X-TUID: LvjeDTU1sLYj Excplicitly set the user write bit when initializing the gifs or math directories from the skeletons installed in the store. See also upstream discussion at . This problem would be exposed by the upcoming changes to Racket's build system. * gnu/packages/patches/stex-copy-from-immutable-store.patch: New patch. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/chez.scm (stex-bootstrap)[patches]: Use it. --- gnu/local.mk | 1 + gnu/packages/chez.scm | 3 ++ .../stex-copy-from-immutable-store.patch | 41 +++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 gnu/packages/patches/stex-copy-from-immutable-store.patch diff --git a/gnu/local.mk b/gnu/local.mk index 26dfb6afe2..558fed8a0d 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1821,6 +1821,7 @@ dist_patch_DATA = \ %D%/packages/patches/slim-reset.patch \ %D%/packages/patches/slim-login.patch \ %D%/packages/patches/slim-display.patch \ + %D%/packages/patches/stex-copy-from-immutable-store.patch \ %D%/packages/patches/syslinux-gcc10.patch \ %D%/packages/patches/syslinux-strip-gnu-property.patch \ %D%/packages/patches/snappy-add-O2-flag-in-CmakeLists.txt.patch \ diff --git a/gnu/packages/chez.scm b/gnu/packages/chez.scm index 043f2ae47a..812d41fc5b 100644 --- a/gnu/packages/chez.scm +++ b/gnu/packages/chez.scm @@ -613,6 +613,9 @@ (define-public stex-bootstrap (sha256 (base32 "0n6dryv5j7cw2qmsj55wqb0ph901h83a2hl4j891ppxp0xx18nkp")) (file-name (git-file-name name version)) + (patches + ;; submitted upstream in https://github.com/dybvig/stex/pull/6 + (search-patches "stex-copy-from-immutable-store.patch")) (snippet #~(for-each delete-file '("sbin/install" "doc/stex.pdf" "doc/stex.html"))))) diff --git a/gnu/packages/patches/stex-copy-from-immutable-store.patch b/gnu/packages/patches/stex-copy-from-immutable-store.patch new file mode 100644 index 0000000000..4562e431c1 --- /dev/null +++ b/gnu/packages/patches/stex-copy-from-immutable-store.patch @@ -0,0 +1,41 @@ +From 9434b4a36646c036db8de326158056aa3293fb82 Mon Sep 17 00:00:00 2001 +From: Philip McGrath +Date: Thu, 28 Apr 2022 22:56:20 -0400 +Subject: [PATCH] fix read-only gifs and math directories + +An installed copy of stex might have all write permission bits removed, +even for the owner of the installed files: this is the case with Guix +package of stex, for example. If such an installation is used to +initialize the gifs or math directories (e.g. for an out-of-source +build), tar likewise creates them without write permissions, preventing +subdirectories from being created later. Set the user write bit +explicitly to avoid this problem. + Mf-stex + +Related to https://github.com/racket/racket/pull/4203 +--- + +Submitted upstream in https://github.com/dybvig/stex/pull/6 + + Mf-stex | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/Mf-stex b/Mf-stex +index 09ec6f3..11fb214 100644 +--- a/Mf-stex ++++ b/Mf-stex +@@ -112,9 +112,11 @@ $(x).mathrun: gifs $(mathfiles) + + gifs: + (cd $(STEXLIB); tar -cf - gifs) | tar -xpf - ++ chmod u+w gifs + + math: + (cd $(STEXLIB); tar -cf - math) | tar -xpf - ++ chmod u+w math + + $(mathfiles): $(x).hthirdrun $(figps) + echo -n gifs= > $(mathfiles) +-- +2.32.0 + -- 2.32.0