From patchwork Mon Oct 28 06:26:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Cournoyer X-Patchwork-Id: 69579 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 0AFA627BBE2; Mon, 28 Oct 2024 06:28:55 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 7722827BBE9 for ; Mon, 28 Oct 2024 06:28:52 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t5JEv-0005Xx-5K; Mon, 28 Oct 2024 02:28:33 -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 1t5JEs-0005XN-Cg for guix-patches@gnu.org; Mon, 28 Oct 2024 02:28:30 -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 1t5JEq-0006in-K4 for guix-patches@gnu.org; Mon, 28 Oct 2024 02:28:29 -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=8rN0MnQ27ptl1Vf8X1aJBF0oQZplqkePMRo3i2fqpf8=; b=kF4r8ItyzbulFOAH+SLaUZNfJGRSm+5ejiqzKQ5l92bRc/1pfp4erXFroZgjBIcRBNsKJF/HGnBfpkxgErLtNSxAOVoOWAbVQ390bkINtSOJhyk/zTa2MNgndPCcBiGOBz1rQDuHcprchsY5HQs1Lq7HMHDqRGA4fHT3oFFw2s4t38aOe45nwKYT2i+U9vfib+Cj4JzSHi4xpDYPdYoocMxKb+9BhcDU51xBOUhXX2YPkbASR7eEv3qcz/VvZRnwzPvz+7t14iW9klMsuCQQnKVO89yRLjk4y1ExasYxpFBs+WSuN/rZIeJ6IE7AlzpEMNTVJ2EOY9qi5XjAC0CYIA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t5JFO-0003kQ-Ly; Mon, 28 Oct 2024 02:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#74054] [PATCH v2 2/3] gnu: plib: Build with -fPIC. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: maxim.cournoyer@gmail.com, adam.faiz@disroot.org, liliana.prikler@gmail.com, iyzsong@envs.net, guix-patches@gnu.org Resent-Date: Mon, 28 Oct 2024 06:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74054 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74054@debbugs.gnu.org Cc: Maxim Cournoyer , Maxim Cournoyer , Adam Faiz , Liliana Marie Prikler , =?utf-8?b?5a6L5paH5q2m?= X-Debbugs-Original-Xcc: Maxim Cournoyer , Adam Faiz , Liliana Marie Prikler , =?utf-8?b?5a6L5paH5q2m?= Received: via spool by 74054-submit@debbugs.gnu.org id=B74054.173009690014304 (code B ref 74054); Mon, 28 Oct 2024 06:29:02 +0000 Received: (at 74054) by debbugs.gnu.org; 28 Oct 2024 06:28:20 +0000 Received: from localhost ([127.0.0.1]:51410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5JEh-0003ie-Mu for submit@debbugs.gnu.org; Mon, 28 Oct 2024 02:28:19 -0400 Received: from mail-ot1-f52.google.com ([209.85.210.52]:61700) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5JEf-0003iJ-Dp for 74054@debbugs.gnu.org; Mon, 28 Oct 2024 02:28:17 -0400 Received: by mail-ot1-f52.google.com with SMTP id 46e09a7af769-7180dc76075so1978573a34.3 for <74054@debbugs.gnu.org>; Sun, 27 Oct 2024 23:27:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730096795; x=1730701595; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8rN0MnQ27ptl1Vf8X1aJBF0oQZplqkePMRo3i2fqpf8=; b=ATJhKy67PJiAlXRalbpRn3eg2X7KKToq6dTzRE7KJpda2k/6nmdcbXRtNZrOwt3yjn rGpMXvOikV0snhc4CDy2vsGOEdhwLCNu7KQFYXSqBXBPCgtaxEE1gY1A6XBecrU2/NEU SXfYv6dQbHgGVHqT8zlIV+fTbUk9KFB3U8Z8EKZ/NaR3jzb3Ogv6dlvLtnADWX62dCQP dd8frabQ8MP5NNqMfsyNcDg3cxGRGKXJa+yt3M3DhAaFi2U0l8vAka+ASL0toy6zYtXb RKqlm5idzo60EX+Gc/Cl71IbtaqnWfhHElhG+Qwl8a33szusHFQr61/5YEbMWwDFk4kn pYVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730096795; x=1730701595; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8rN0MnQ27ptl1Vf8X1aJBF0oQZplqkePMRo3i2fqpf8=; b=uXo5BwKxHQAQS+aJUFIJZ4iAvPbXVca4HZXQ1jZ5dT3FyaX1R8z6T+JOJuzf02mjfA roN9ngB+2ys9F/UjJr7Jeb4+Dn7exN9fZ/SJuckeZSY1LgPnpHuJ3t8dHAg71eIJKLWU pBofDNuNxv2Vh7rCwJpElrxGHdwUU/UT0+n5wIjArretqEbE/iCcCQPZ4txUhgaFV2j2 fH00LsAQLuBtujiKo9HdSdjtanZyOn5gkQCIybHIxpVJPkiGsvZSDgqVqSzkwxMrvVEA 4GzDjF1ACFEtENF3w+xFdpHmgoURe6LVh7Wq9meueYyRV6b3hdF+6qqxMazDXZoKIM+K pc3A== X-Gm-Message-State: AOJu0Yy2Da0eckMZ7mkHrV/JpmGH8ihMR1pNx1t9sFYPDqaOGqLhb5vq eqIn2iKAhzExXKZDNbxG13Cf9Idf5YbeL5oV0JlLFfGPtzcW4wsSQjHxu7BN X-Google-Smtp-Source: AGHT+IHENyp/AhEY3wBFso/LlH90Bxs7IRdP3MBluKqQ5x+HnG2fPi6c7RxNoeB1UAX9mPmfi2fzlQ== X-Received: by 2002:a05:6830:3688:b0:718:c42:48c3 with SMTP id 46e09a7af769-718682a137fmr6290680a34.32.1730096795510; Sun, 27 Oct 2024 23:26:35 -0700 (PDT) Received: from localhost.localdomain (vps-6234970c.vps.ovh.ca. [51.222.13.224]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72057a3fdf2sm4993850b3a.214.2024.10.27.23.26.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Oct 2024 23:26:35 -0700 (PDT) From: Maxim Cournoyer Date: Mon, 28 Oct 2024 15:26:07 +0900 Message-ID: <50a1e682b5774829dbc1a9b0e625c69b38fd070a.1730096728.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/game-development.scm (plib) [configure-flags]: New argument. [inputs]: Move field after... [native-inputs]: ... this one. Change-Id: Ieddfb8814632f74c98d0e2cda949709b718c7a0d --- (no changes since v1) gnu/packages/game-development.scm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index 25cc021f6f..73ae3ef084 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -2573,10 +2573,12 @@ (define-public plib (patches (search-patches "plib-CVE-2011-4620.patch" "plib-CVE-2012-4552.patch")))) (build-system gnu-build-system) - (inputs - (list mesa libxi libxmu)) - (native-inputs - (list pkg-config)) + ;; plib exists only as a static library, per the author's choice (see: + ;; https://sourceforge.net/p/plib/mailman/message/10289018/). Build it + ;; with PIC, so that shared programs can at least "link" to it. + (arguments (list #:configure-flags #~(list "CXXFLAGS=-fPIC"))) + (native-inputs (list autoconf automake pkg-config)) + (inputs (list mesa libxi libxmu)) (home-page "https://plib.sourceforge.net/") (synopsis "Suite of portable game libraries") (description "PLIB is a set of libraries that will permit programmers to