[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#906620: Please build with --enable-xnvctrl to enable Nvidia support



Package: xfce4-sensors-plugin
Version: 1.3.0-1
Tags: patch
Severity: wishlist

Dear maintainer,

When enabled at build time, xfce4-sensors-plugin can show GPU
temperatures when using the proprietary Nvidia driver. The attached
patch enables this feature and adds libxnvctrl-dev to build-deps
accordingly.

I've tested this locally and it seems to work fine.

Best,
James
From 9e0cf0200bb70baba81f6829aad452d1d6ffe33e Mon Sep 17 00:00:00 2001
From: James Lu <james@overdrivenetworks.com>
Date: Sat, 18 Aug 2018 14:45:49 -0700
Subject: [PATCH] Build with --enable-xnvctrl to enable Nvidia support

---
 debian/control | 3 ++-
 debian/rules   | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index 09b2c26..f119bb6 100644
--- a/debian/control
+++ b/debian/control
@@ -13,7 +13,8 @@ Build-Depends: debhelper (>= 9),
                libxfce4panel-2.0-dev,
                libxfce4ui-2-dev,
                libxml-parser-perl,
-               libxml2-dev
+               libxml2-dev,
+               libxnvctrl-dev
 Standards-Version: 4.1.4
 Homepage: http://goodies.xfce.org/
 Vcs-Git: https://salsa.debian.org/xfce-team/goodies/xfce4-sensors-plugin.git
diff --git a/debian/rules b/debian/rules
index 4f0a15c..3f32fd0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,7 +6,7 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 	dh $@ --parallel
 
 override_dh_auto_configure:
-	dh_auto_configure -- --enable-libsensors=yes --enable-procacpi --enable-hddtemp=yes --enable-notification --disable-static
+	dh_auto_configure -- --enable-libsensors=yes --enable-procacpi --enable-hddtemp=yes --enable-notification --disable-static --enable-xnvctrl
 
 override_dh_makeshlibs:
 	dh_makeshlibs  -X debian/xfce4-sensors-plugin/usr/lib/$(DEB_HOST_MULTIARCH)/xfce4/modules/libxfce4sensors.so.*.*.*
-- 
2.18.0

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: