From patchwork Mon Nov 7 16:01:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tomasz Jeneralczyk X-Patchwork-Id: 44372 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 AA3C527BBEA; Mon, 7 Nov 2022 16:03:32 +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=-3.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS 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 D772027BBE9 for ; Mon, 7 Nov 2022 16:03:29 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1os4aW-0001uf-8K; Mon, 07 Nov 2022 11:03:04 -0500 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 1os4aU-0001ss-RX for guix-patches@gnu.org; Mon, 07 Nov 2022 11:03:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1os4aU-0003xR-Hb for guix-patches@gnu.org; Mon, 07 Nov 2022 11:03:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1os4aT-0006Tt-Ue for guix-patches@gnu.org; Mon, 07 Nov 2022 11:03:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#56041] [PATCH v5] gnu: Add vkmark. References: In-Reply-To: Resent-From: Tomasz Jeneralczyk Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 07 Nov 2022 16:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56041 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56041@debbugs.gnu.org Cc: Tomasz Jeneralczyk Received: via spool by 56041-submit@debbugs.gnu.org id=B56041.166783695624881 (code B ref 56041); Mon, 07 Nov 2022 16:03:01 +0000 Received: (at 56041) by debbugs.gnu.org; 7 Nov 2022 16:02:36 +0000 Received: from localhost ([127.0.0.1]:35162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1os4a3-0006TF-Cy for submit@debbugs.gnu.org; Mon, 07 Nov 2022 11:02:35 -0500 Received: from outgoing1.lunanode.net ([172.81.176.235]:55852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1os4a0-0006T3-KU for 56041@debbugs.gnu.org; Mon, 07 Nov 2022 11:02:33 -0500 Received: from mail1.lunanode.net (mail1.lunanode.net [170.75.162.243]) by outgoing1.lunanode.net (Postfix) with ESMTPS id BD7244002D for <56041@debbugs.gnu.org>; Mon, 7 Nov 2022 16:02:31 +0000 (UTC) From: Tomasz Jeneralczyk Date: Mon, 7 Nov 2022 17:01:54 +0100 Message-Id: X-Mailer: git-send-email 2.38.0 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/benchmark.scm (vkmark): New variable. --- I updated the package to the newest commit and changed comments to reflect the upstream project's current situation. gnu/packages/benchmark.scm | 50 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) base-commit: 8e54584d4448d37ddf8ae995bb545a181ba2493c diff --git a/gnu/packages/benchmark.scm b/gnu/packages/benchmark.scm index e188b27789..e9faabe2e9 100644 --- a/gnu/packages/benchmark.scm +++ b/gnu/packages/benchmark.scm @@ -11,6 +11,7 @@ ;;; Copyright © 2020, 2021, 2022 Maxim Cournoyer ;;; Copyright © 2020 Greg Hogan ;;; Copyright © 2021 Arun Isaac +;;; Copyright © 2022 Tomasz Jeneralczyk ;;; ;;; This file is part of GNU Guix. ;;; @@ -36,6 +37,7 @@ (define-module (gnu packages benchmark) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system python) + #:use-module (guix build-system meson) #:use-module (gnu packages) #:use-module (gnu packages autotools) #:use-module (gnu packages base) @@ -46,6 +48,9 @@ (define-module (gnu packages benchmark) #:use-module (gnu packages databases) #:use-module (gnu packages docbook) #:use-module (gnu packages kde-frameworks) + #:use-module (gnu packages freedesktop) + #:use-module (gnu packages gl) + #:use-module (gnu packages graphics) #:use-module (gnu packages linux) #:use-module (gnu packages lua) #:use-module (gnu packages maths) @@ -60,6 +65,8 @@ (define-module (gnu packages benchmark) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) + #:use-module (gnu packages vulkan) + #:use-module (gnu packages xorg) #:use-module (gnu packages xml) #:use-module (ice-9 match)) @@ -693,3 +700,46 @@ (define-public sysbench @item @end itemize") (license license:gpl2+))) + +(define-public vkmark + ;; The only ever release is tagged "2017.08" and as its name suggests + ;; it was back in the august of 2017. That version no longer compiles + ;; due to changes in APIs of its libraries. + ;; Latest commit on the other hand seems to be fully working on xcb + ;; and wayland backends. + (let ((commit "30d2cd37f0566589d90914501fc7c51a4e51f559") + (revision "0")) + (package + (name "vkmark") + (version (git-version "2017.08" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/vkmark/vkmark") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0w0n080sb67s7dbxqi71h0vhm6dccs78rqjnxx9x524jp4jh9b7x")))) + (build-system meson-build-system) + (native-inputs (list pkg-config)) + ;; The kms backend currently will not compile because of upstream issues. + ;; So I omitted this backend's dependiencies. A fix has been proposed + ;; on another branch, but it has not been merged yet. + ;; See https://github.com/vkmark/vkmark/issues/33 + (inputs + (list vulkan-loader + vulkan-headers + glm + assimp + libxcb + xcb-util-wm + wayland-protocols + wayland)) + (home-page "https://github.com/vkmark/vkmark") + (synopsis "Extensible benchmarking suite for Vulkan") + (description + "vkmark offers a suite of scenes that can be used to measure various +aspects of Vulkan performance. The way in which each scene is rendered is +configurable through a set of options.") + (license license:lgpl2.1+))))