From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 35C25158020 for ; Tue, 8 Nov 2022 01:10:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C2CC3E092E; Tue, 8 Nov 2022 01:10:14 +0000 (UTC) Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 563F9E091C for ; Tue, 8 Nov 2022 01:10:14 +0000 (UTC) Received: by mail-qk1-f173.google.com with SMTP id f8so8311159qkg.3 for ; Mon, 07 Nov 2022 17:10:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=t3mqs0/F7ZvTNpXFCeErMdJL/1avfJs6qm+b7Irf5oI=; b=i3ANkj1+MIEdjxSfDqv9Exp6wbiluj0Az0vtum2o48qG7JK92zDiVmh0a9s8CCG0YZ 8lze1Us1scVLVHOJrhOadaTVa43mIevBZmJwKGElDTpeWjvZqT4HJcNSnImdyZkoCwHq mxrl3/vug48zcw/yO6cD4Qg3/typWA6YKArgsF83yGqzuws72tTTpNhZ2Ccn0UawItKN ySBPgpWww2ccLh833bty5tSOlBPRx2CSdR4Mi6AhN1ysHX42y+1k4S9UID2gIRNBePZY ZJbo7p/q+pWUdJcuk65neT/+lZBw8IZD6SG0XMyLOhGzzJ1/XYAluCdgIp8v6mHawi5J szOw== X-Gm-Message-State: ACrzQf0uK7TRbzcY6suTCnVwwbVdhJjrhYJ2gJgdkpc1A4WPfvUEhiCI nMqmHVBZkTzWN+eg/PBJGc4fg22My0A= X-Google-Smtp-Source: AMsMyM5YCx3+5mfFs2cg4z5pjVfE8jvIJ8viWqts0fsBVZwgSMKgW2foIY+qp5s8/NhkjPeFKoKsXA== X-Received: by 2002:ae9:dfc5:0:b0:6f9:f70f:b4ab with SMTP id t188-20020ae9dfc5000000b006f9f70fb4abmr37781758qkf.528.1667869813168; Mon, 07 Nov 2022 17:10:13 -0800 (PST) Received: from localhost ([162.208.5.36]) by smtp.gmail.com with ESMTPSA id t31-20020a05622a181f00b003a540320070sm7333680qtc.6.2022.11.07.17.10.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Nov 2022 17:10:12 -0800 (PST) From: Matt Turner To: gentoo-dev@lists.gentoo.org Cc: fonts@gentoo.org, Matt Turner Subject: [gentoo-dev] [PATCH 1/2] media-fonts/x11fonts-jmk: Install files with 0644 permissions Date: Mon, 7 Nov 2022 20:10:07 -0500 Message-Id: <20221108011008.61823-1-mattst88@gentoo.org> X-Mailer: git-send-email 2.37.4 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: f9e6d837-df10-49b9-9db5-6137ed771f13 X-Archives-Hash: cca41cded0025e5f5087db3183c8cbc5 font.eclass has some racy code in pkg_postinst() that changes permissions of already-installed files. I want to remove that to avoid the race. This is the only package that installs fonts with permissions other than 0644, so override that in src_install(). The claim in font.eclass is that fontconfig segfaults if fonts are unreadable, but that claim dates to 2007 (bug #187774). Additionally, 0444 is readable, but who knows. Let's just keep things working how they have been since 2007. Bug: https://bugs.gentoo.org/187774 Signed-off-by: Matt Turner --- media-fonts/x11fonts-jmk/x11fonts-jmk-3.0-r4.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media-fonts/x11fonts-jmk/x11fonts-jmk-3.0-r4.ebuild b/media-fonts/x11fonts-jmk/x11fonts-jmk-3.0-r4.ebuild index 70ad93064b5..f24d067c412 100644 --- a/media-fonts/x11fonts-jmk/x11fonts-jmk-3.0-r4.ebuild +++ b/media-fonts/x11fonts-jmk/x11fonts-jmk-3.0-r4.ebuild @@ -32,6 +32,6 @@ src_configure() { } src_install() { - emake install INSTALL_DIR="${ED}/usr/share/fonts/jmk" + emake install INSTDATFLAGS="-m 0644" INSTALL_DIR="${ED}/usr/share/fonts/jmk" einstalldocs } -- 2.37.4