From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 eGsFDWTj9GIidQAAbAwnHQ (envelope-from ) for ; Thu, 11 Aug 2022 13:09:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id mPQWDGTj9GIyHAAAG6o9tA (envelope-from ) for ; Thu, 11 Aug 2022 13:09:24 +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 BD4DC3E10A for ; Thu, 11 Aug 2022 13:09:23 +0200 (CEST) Received: from localhost ([::1]:56022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oM642-0008U2-VV for larch@yhetil.org; Thu, 11 Aug 2022 07:09:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oM63i-0008RG-KZ for guix-patches@gnu.org; Thu, 11 Aug 2022 07:09:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33840) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oM63i-00056o-CQ for guix-patches@gnu.org; Thu, 11 Aug 2022 07:09:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oM63i-0006Uf-8J for guix-patches@gnu.org; Thu, 11 Aug 2022 07:09:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57050] [PATCH v2 02/13] 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: Thu, 11 Aug 2022 11:09:02 +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: Liliana Marie Prikler , Liliana Marie Prikler , Philip McGrath , Thiago Jung Bauermann Received: via spool by 57050-submit@debbugs.gnu.org id=B57050.166021613724927 (code B ref 57050); Thu, 11 Aug 2022 11:09:02 +0000 Received: (at 57050) by debbugs.gnu.org; 11 Aug 2022 11:08:57 +0000 Received: from localhost ([127.0.0.1]:51819 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oM63c-0006Ty-KZ for submit@debbugs.gnu.org; Thu, 11 Aug 2022 07:08:57 -0400 Received: from mail-qt1-f180.google.com ([209.85.160.180]:34393) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oM63b-0006TT-49 for 57050@debbugs.gnu.org; Thu, 11 Aug 2022 07:08:55 -0400 Received: by mail-qt1-f180.google.com with SMTP id e28so5152433qts.1 for <57050@debbugs.gnu.org>; Thu, 11 Aug 2022 04:08:55 -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=mZtilo21zyXTOq4oexMEWqjGZ0JRbIL705SOoM9uDjQ=; b=WAApdAKkS9wmqD8jX+BOaeYgmdaUPBQjhvplnrsdXKNAt++RdYQPB3wYrLpbvjcJHO 9IigLWLna3sduGsYheI2akIqGCCyWDfS91kR361J3i0SRS2yzuXL9doKFu/5Woh5fEaQ 1KMxJyTNJ4MlL7P6S4ld7RvNHUhEH5ozpW0YBo0QIhj7Eln5eWeQbOpK6+6cMiYyhQAS IH9ybox75cfoUy+K4Vmcf5zXxPhArJ5kImSGWg4z4S1D71KNCSvo1HPhukR8nygQD1Dw aXxTM0DOTqwwO4eqWavegLwb7vjdsLngjk1DmNxclSMCmAcpmjdI6vS2NSvkeDEUOPNh vZiA== 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=mZtilo21zyXTOq4oexMEWqjGZ0JRbIL705SOoM9uDjQ=; b=hrVu4MJ0NvHdcmJF8YWJR3z+SsZYTwPgDFtJ0SDN0GmV2lKi7i3xJU0iUrSQ9ZPPYR C1dzSTrHLnLsNJcSlEgEFKL+Qr51D39KTWnVALQHUv6iik5+JEEurdEDRad/2t91MDm/ 6medrjyh3pmEi1CEBBEIX1ju5v2blu9gcph7+sD7K6wIKhYg5KEThx5b0Om6zEwag5ur jL7g6pxQuCXc+j2JoryfEq/Ba0qQU6oIO/QWtIA8b2lHtZ4ynjAh8X4Hzjn/EyvsYlD0 wHhuhdpBYryekrApcYnCPEqTXPVHb1XzyNxEI2m0Oqvwg8EmXd5Zne+8cT7c+3izCPHR h2nA== X-Gm-Message-State: ACgBeo07wss6nq+QRoZu6w1d0UTuxkZiAWBJpG8xGP63PVJr3hfRAlXu blGTK+stciArq4yvswm0ws+CDvZBZenz+JDj X-Google-Smtp-Source: AA6agR6jpfSg930+/YYeIJavURIyF3xrgX+7Gcq4jVMQziPzFQrYNhjdySgVSpxGW/IzoouZMGjLVg== X-Received: by 2002:ac8:7ec1:0:b0:343:6789:1939 with SMTP id x1-20020ac87ec1000000b0034367891939mr1296838qtj.419.1660216129614; Thu, 11 Aug 2022 04:08:49 -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 br26-20020a05622a1e1a00b003435f947d9fsm1483757qtb.74.2022.08.11.04.08.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Aug 2022 04:08:49 -0700 (PDT) From: Philip McGrath Date: Thu, 11 Aug 2022 07:08:12 -0400 Message-Id: <3cbb1636a31c0896f85e3a6f04ddef096a6be29a.1660215295.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=1660216163; 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=mZtilo21zyXTOq4oexMEWqjGZ0JRbIL705SOoM9uDjQ=; b=BJjDyWLTNT8Oj8sbkBxb8VMvBwciYLqjj6JBUbZXe0leTIVYvV0PNDw31u6leRp6nQhiOa ClJ3rpHLMxLkrwlw5NfsDB5tx6lWz3USv7oFg7qBGPxTVFZMOjOXOVJ4OF+tZIgCfZYdTP ZVteyjK4q9inuNAll/k6lrpNZb9Vo0SKvH2LC/Kd+vcV9+odDaw2NvipHytjjZw1z+9E2R eNeQ8/SAXJtEWu1KgNlkZagEY8brVhmPlFoejWVSvT3vk56tIyAPPbNGSGi5yVaSKi9t6H 1NGg88/Dq7xqAuyTvJx547VrAvWxkv2nvWEReXKxc5heE0zIBQWEwebblX/vRA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660216163; a=rsa-sha256; cv=none; b=oQdXsAi/GCyHnuyARL++vaRRqlI/gLFaxW0zSYR1Wre2qMV357Gi2nZwcZS9iAu7BCJ0bD 8fHx8xSAxK3ryYISYddsEi5FGSNXkp30ZPz+qEWbhbt1AAYlOsRnHc9Ia8bNC8Wsebw76g DIGuveSGsMc3R4cvdcF/5+BqcEjG/dBlh0Ooy2pRWb7odZb9ZEz1OSAyqjDhGuosbiWXjQ 0AHwGzNTodLZgHffCCD7kjB0UKklhtZYZrpNMtkyp1RsLhYXKKkV0136+HObskRSmX9Kpd fZM2Ek1Etgd54u078PVZymwaRTPlp7zZxvZemqhXjWiVtcCy1nuFJtEXb9gd6A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=WAApdAKk; 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.62 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=WAApdAKk; 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: BD4DC3E10A X-Spam-Score: 5.62 X-Migadu-Scanner: scn1.migadu.com X-TUID: d/beUjdoosy8 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. [version]: Increment revision to 1.2.2-3.afa6075. --- gnu/local.mk | 1 + gnu/packages/chez.scm | 5 ++- .../stex-copy-from-immutable-store.patch | 41 +++++++++++++++++++ 3 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/stex-copy-from-immutable-store.patch diff --git a/gnu/local.mk b/gnu/local.mk index 1bd791fb0c..d35c6748c9 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1826,6 +1826,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..4c253effa0 100644 --- a/gnu/packages/chez.scm +++ b/gnu/packages/chez.scm @@ -595,7 +595,7 @@ (define-public stex-bootstrap ;; This commit includes a fix which we would otherwise want to use as ;; patch. Let's revert to tagged releases as soon as one becomes available. (let ((commit "afa607564a5662ffd748e824801277a6b5a3d11c") - (revision "2")) + (revision "3")) (hidden-package (package (name "stex") @@ -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