From patchwork Tue Jan 4 22:20:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Kehayias X-Patchwork-Id: 545 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 E9E7927BBEB; Tue, 4 Jan 2022 22:22:23 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 A8F0427BBE9 for ; Tue, 4 Jan 2022 22:22:23 +0000 (GMT) Received: from localhost ([::1]:58566 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n4sCE-0006Gw-LX for patchwork@mira.cbaines.net; Tue, 04 Jan 2022 17:22:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4sBv-0006GG-0J for guix-patches@gnu.org; Tue, 04 Jan 2022 17:22:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55648) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n4sBu-0001mN-Nv for guix-patches@gnu.org; Tue, 04 Jan 2022 17:22:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n4sBu-00032z-KX for guix-patches@gnu.org; Tue, 04 Jan 2022 17:22:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53015] [PATCH 0/4] Add mangohud (update dear-imgui) Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 04 Jan 2022 22:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53015 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53015@debbugs.gnu.org X-Debbugs-Original-To: Guix-patches Received: via spool by submit@debbugs.gnu.org id=B.164133486511632 (code B ref -1); Tue, 04 Jan 2022 22:22:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Jan 2022 22:21:05 +0000 Received: from localhost ([127.0.0.1]:38959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4sAz-00031Y-Ba for submit@debbugs.gnu.org; Tue, 04 Jan 2022 17:21:05 -0500 Received: from lists.gnu.org ([209.51.188.17]:59706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4sAv-000310-JZ for submit@debbugs.gnu.org; Tue, 04 Jan 2022 17:21:04 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38588) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4sAv-0005jM-Dq for guix-patches@gnu.org; Tue, 04 Jan 2022 17:21:01 -0500 Received: from mail-4316.protonmail.ch ([185.70.43.16]:19395) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4sAt-0001aR-0F for guix-patches@gnu.org; Tue, 04 Jan 2022 17:21:01 -0500 Date: Tue, 04 Jan 2022 22:20:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail2; t=1641334855; bh=VxVWCE/SxtoNlqjATP8qitaNq39+fzw5DQaIJx8NmO0=; h=Date:To:From:Reply-To:Subject:Message-ID:From:To:Cc; b=YE/53UiWDwC30sIVEo2+CDnqOeSyzMjaZwP65FXRK+c+OjSHnHP9vhYUaUHRuuzzy 447gTrWnx8LkTyl7hG6NZD7SvgeHK8ji18sCCRTq+qLH2AJHrLpWEFzgkSwI6aqkUC 7eeT5j2b4/pBBA2zwyifhJIV3Gt6SYuYolUHr1nIH5yNPSS5fn9ecdlwBSQeC6mgfA 3rZscEZlv/5k3eEKdbq4AN+tRccXU0HtEKJvPGv/eqHdEoWDypRLTQGfPl+2AM1jNr R7OCw8edhKkc+RDW0Z2/tRy/pPamIJQhrGZHzH5hMVHu6yaE1ZLrP8xqMcO/bfGY8h NBGll8uAk1K0Q== Message-ID: MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.43.16; envelope-from=john.kehayias@protonmail.com; helo=mail-4316.protonmail.ch X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action 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" Reply-to: John Kehayias X-ACL-Warn: , John Kehayias via Guix-patches X-Patchwork-Original-From: John Kehayias via Guix-patches via From: John Kehayias X-getmail-retrieved-from-mailbox: Patches Hi Guix, Here is a short series of patches to add mangohud (a cool Vulkan/OpenGL overlay for things like framerate and hardware display in games). There were a few steps involved that required some tweaks to other packages. Here is the breakdown, corresponding to the forthcoming patches: 1. pciutils-no-zlib: A new hidden package to provide uncompressed hardware info (pci.ids). Mangohud and at least one other package I have read this file directly, which is typically uncompressed, i.e. on Arch. We could later change it in pciutils or have both uncompressed and compressed, or a separate package just for the hardware info. Since this would be a bigger change, I opted for a simple hidden package of the full pciutils (I think programs will need the rest of the package anyway). 2. spdlog: Build with '-fpic'. Since this is compiled as a static library, and upstream implies this is more typical, compile it in a way to be useful to shared libraries as well (needed for mangohud). I checked a random package that uses spdlog and it built fine at least. 3. dear-imgui: Update to 1.81. This not the latest, but most recent of the Debian makefiles we use. The only dependent is Ogre (very out of date) which just uses the source, but needs 1.79. I made the previous one a hidden package and updated Ogre to use that. There were enough build changes that I didn't think an inherit would be very clean. Also added in the static library output (preferred by mangohud). New is many inputs for the backends (optional). 4. mangohud: The new addition. Unbundled libraries to use guix's spdlog, dear-imgui, fixed hardcoded paths. Tested that it builds and works. The only guix lint complaint was about the dear-imgui static input name not matching (also needed dear-imgui for the headers and pkgconfig file). Okay, that's it! A few changes but I think these are not invasive and were the cleanest on my end to use. Thanks! John