Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: libXnvctrl-525.116.04
@ 2023-05-23 17:47 RoundDuckKira
  2023-05-23 17:56 ` RoundDuckKira
                   ` (34 more replies)
  0 siblings, 35 replies; 36+ messages in thread
From: RoundDuckKira @ 2023-05-23 17:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1293 bytes --]

There is a new pull request by RoundDuckKira against master on the void-packages repository

https://github.com/RoundDuckKira/void-packages libXnvctrl
https://github.com/void-linux/void-packages/pull/44050

New package: libXnvctrl-525.116.04
create new libXnvctrl package for Nvidia hardware monitoring, the lack of this package means MangoHUD can't be fixed to support Nvidia GPUs.

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES, I am using this package in my daily driver**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64)



A patch file from https://github.com/void-linux/void-packages/pull/44050.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libXnvctrl-44050.patch --]
[-- Type: text/x-diff, Size: 3759 bytes --]

From 613215c85852cda59920d0d6c6ffbb2b4ec20a43 Mon Sep 17 00:00:00 2001
From: Kira Taylor Patton <roundduckkira@protonmail.com>
Date: Tue, 23 May 2023 13:31:19 -0400
Subject: [PATCH] New package: libXnvctrl-525.116.04

create new libXnvctrl package for Nvidia hardware monitoring
---
 .../nvidia-settings-libxnvctrl_so.patch       | 38 +++++++++++++++++++
 srcpkgs/libXnvctrl/template                   | 29 ++++++++++++++
 2 files changed, 67 insertions(+)
 create mode 100644 srcpkgs/libXnvctrl/patches/nvidia-settings-libxnvctrl_so.patch
 create mode 100644 srcpkgs/libXnvctrl/template

diff --git a/srcpkgs/libXnvctrl/patches/nvidia-settings-libxnvctrl_so.patch b/srcpkgs/libXnvctrl/patches/nvidia-settings-libxnvctrl_so.patch
new file mode 100644
index 000000000000..70043f0c2125
--- /dev/null
+++ b/srcpkgs/libXnvctrl/patches/nvidia-settings-libxnvctrl_so.patch
@@ -0,0 +1,38 @@
+diff --git a/src/Makefile b/src/Makefile
+index 68eb140..6d0aab8 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -345,7 +345,7 @@ endif
+ 
+ ifdef BUILD_GTK3LIB
+ $(eval $(call DEBUG_INFO_RULES, $(GTK3LIB)))
+-$(GTK3LIB).unstripped: $(LIBXNVCTRL) $(GTK3_OBJS) $(XCP_OBJS) $(IMAGE_OBJS) $(VERSION_MK)
++$(GTK3LIB).unstripped: $(LIBXNVCTRL) $(LIBXNVCTRL_SHARED) $(GTK3_OBJS) $(XCP_OBJS) $(IMAGE_OBJS) $(VERSION_MK)
+ 	$(call quiet_cmd,LINK) -shared $(CFLAGS) $(LDFLAGS)  $(BIN_LDFLAGS) \
+ 	    $(LIBXNVCTRL) $(LIBS) $(GTK3_LIBS) \
+ 	    -Wl,--unresolved-symbols=ignore-all -o $@ \
+diff --git a/src/libXNVCtrl/xnvctrl.mk b/src/libXNVCtrl/xnvctrl.mk
+index e6be2ef..c0921c4 100644
+--- a/src/libXNVCtrl/xnvctrl.mk
++++ b/src/libXNVCtrl/xnvctrl.mk
+@@ -39,6 +39,11 @@ XNVCTRL_CFLAGS ?=
+ 
+ LIBXNVCTRL = $(OUTPUTDIR)/libXNVCtrl.a
+ 
++LIBXNVCTRL_SHARED = $(OUTPUTDIR)/libXNVCtrl.so
++LIBXNVCTRL_ABI_VERSION_MAJOR = 0
++LIBXNVCTRL_ABI_VERSION_MINOR = 0
++LIBXNVCTRL_LIBS += -lXext -lX11
++
+ LIBXNVCTRL_SRC = $(XNVCTRL_DIR)/NVCtrl.c
+ 
+ LIBXNVCTRL_OBJ = $(call BUILD_OBJECT_LIST,$(LIBXNVCTRL_SRC))
+@@ -47,3 +52,8 @@ $(eval $(call DEFINE_OBJECT_RULE,TARGET,$(LIBXNVCTRL_SRC)))
+ 
+ $(LIBXNVCTRL) : $(LIBXNVCTRL_OBJ)
+ 	$(call quiet_cmd,AR) ru $@ $(LIBXNVCTRL_OBJ)
++
++$(LIBXNVCTRL_SHARED) : $(LIBXNVCTRL_OBJ)
++	$(CC) -shared $(CFLAGS) $(LDFLAGS) -Wl,-soname=$(notdir $@).${LIBXNVCTRL_ABI_VERSION_MAJOR} -o $@.$(LIBXNVCTRL_ABI_VERSION_MAJOR).$(LIBXNVCTRL_ABI_VERSION_MINOR).0 $^ $(LIBXNVCTRL_LIBS)
++	ln -s $(notdir $@).$(LIBXNVCTRL_ABI_VERSION_MAJOR).$(LIBXNVCTRL_ABI_VERSION_MINOR).0 $@
++	ln -s $(notdir $@).$(LIBXNVCTRL_ABI_VERSION_MAJOR).$(LIBXNVCTRL_ABI_VERSION_MINOR).0 $@.$(LIBXNVCTRL_ABI_VERSION_MAJOR)
diff --git a/srcpkgs/libXnvctrl/template b/srcpkgs/libXnvctrl/template
new file mode 100644
index 000000000000..a422769a26df
--- /dev/null
+++ b/srcpkgs/libXnvctrl/template
@@ -0,0 +1,29 @@
+# Template file for 'libXnvctrl'
+pkgname=libXnvctrl
+version=525.116.04
+revision=1
+#archs="i686 x86_64"
+#build_wrksrc=
+build_style=gnu-makefile
+make_use_env=yes
+#configure_args=""
+#make_build_args=""
+#make_install_args=""
+#conf_files=""
+#make_dirs="/var/log/dir 0755 root root"
+hostmakedepends="inetutils base-devel"
+makedepends="jansson-devel gtk+3-devel libXv-devel libvdpau-devel libXext-devel libXxf86vm-devel"
+# depends=""
+short_desc="Nvidia hardware monitoring library"
+maintainer="Kira Taylor Patton <roundduckkira@protonmail.com>"
+license="GPL-2.0-only"
+homepage="https://github.com/NVIDIA/nvidia-settings"
+#changelog=""
+distfiles="https://github.com/NVIDIA/nvidia-settings/archive/refs/tags/${version}.tar.gz"
+checksum=32db97759c2a58fea86a63a69a423f1bf65198496cb2ac2279f4210b50097358
+
+do_install() {
+	vmkdir /usr/include/NVCtrl 755
+	vcopy src/libXNVCtrl/*.h /usr/include/NVCtrl/
+	vcopy src/_out/Linux_x86_64/libXNVCtrl.* /usr/lib/
+}

^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2023-10-15  1:46 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-23 17:47 [PR PATCH] New package: libXnvctrl-525.116.04 RoundDuckKira
2023-05-23 17:56 ` RoundDuckKira
2023-05-23 17:56 ` RoundDuckKira
2023-05-23 18:21 ` Duncaen
2023-05-23 18:32 ` RoundDuckKira
2023-05-23 18:39 ` Duncaen
2023-05-23 18:40 ` [PR PATCH] [Updated] " RoundDuckKira
2023-05-23 18:41 ` RoundDuckKira
2023-05-23 18:43 ` RoundDuckKira
2023-05-23 18:44 ` Duncaen
2023-05-23 18:45 ` Duncaen
2023-05-23 18:45 ` RoundDuckKira
2023-05-23 18:47 ` RoundDuckKira
2023-05-23 18:48 ` RoundDuckKira
2023-05-23 18:49 ` RoundDuckKira
2023-05-23 18:53 ` Duncaen
2023-05-23 18:56 ` [PR PATCH] [Updated] " RoundDuckKira
2023-05-23 18:58 ` RoundDuckKira
2023-05-23 19:12 ` RoundDuckKira
2023-05-23 19:20 ` RoundDuckKira
2023-05-23 19:40 ` [PR PATCH] [Updated] " RoundDuckKira
2023-05-23 19:42 ` RoundDuckKira
2023-05-23 19:43 ` RoundDuckKira
2023-05-23 19:49 ` RoundDuckKira
2023-05-23 19:49 ` [PR REVIEW] " Duncaen
2023-05-23 19:51 ` [PR REVIEW] New package: libXnvctrl-525.116.04; updating MangoHud too to depend on this new package to fix Nvidia GPU detection Duncaen
2023-05-23 19:53 ` Duncaen
2023-05-24  2:20 ` RoundDuckKira
2023-05-24  2:20 ` RoundDuckKira
2023-05-24  5:03 ` RoundDuckKira
2023-05-24 16:36 ` Duncaen
2023-05-25  0:44 ` RoundDuckKira
2023-07-01 10:29 ` gmbeard
2023-07-01 10:30 ` gmbeard
2023-09-30  1:44 ` github-actions
2023-10-15  1:46 ` [PR PATCH] [Closed]: " github-actions

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).