CPU-X: update to 4.0.1.
- No longer needs libcurl and json-c dependencies - Add patch to fix i686* build - Add patch to fix build on musl Closes: #23090 [via git-merge-pr]
This commit is contained in:
parent
454faee697
commit
95045873de
4 changed files with 47 additions and 20 deletions
15
srcpkgs/CPU-X/patches/define_ACCESSPERMS_on_musl.patch
Normal file
15
srcpkgs/CPU-X/patches/define_ACCESSPERMS_on_musl.patch
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
--- src/util.c
|
||||||
|
+++ src/util.c
|
||||||
|
@@ -35,6 +35,12 @@
|
||||||
|
#include <libintl.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
+
|
||||||
|
+/* glibc's stat.h has it but musl's does not. */
|
||||||
|
+#ifndef ACCESSPERMS
|
||||||
|
+#define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO)
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#include <sys/wait.h>
|
||||||
|
#include "cpu-x.h"
|
||||||
|
#include "ipc.h"
|
|
@ -1,18 +1,16 @@
|
||||||
This shouldn't exist and erroneously fails for us.
|
This shouldn't exist and erroneously fails for us.
|
||||||
|
|
||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
||||||
index dca0029..93b8c79 100644
|
|
||||||
--- CMakeLists.txt
|
--- CMakeLists.txt
|
||||||
+++ CMakeLists.txt
|
+++ CMakeLists.txt
|
||||||
@@ -32,10 +32,6 @@ set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,noexecstack -
|
@@ -35,12 +35,6 @@
|
||||||
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now")
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now")
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now")
|
||||||
|
|
||||||
include(CheckCCompilerFlag)
|
-include(CheckCCompilerFlag)
|
||||||
-check_c_compiler_flag("-no-pie" HAS_NO_PIE)
|
-check_c_compiler_flag("-no-pie" HAS_NO_PIE)
|
||||||
-if(HAS_NO_PIE)
|
-if(${CMAKE_SYSTEM_NAME} MATCHES "Linux" AND HAS_NO_PIE)
|
||||||
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -no-pie")
|
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -no-pie")
|
||||||
-endif(HAS_NO_PIE)
|
-endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux" AND HAS_NO_PIE)
|
||||||
|
-
|
||||||
# Options
|
# Options
|
||||||
option(WITH_GTK "Build support for GUI in GTK3+" ON)
|
option(WITH_GTK "Build support for GUI in GTK3+" ON)
|
||||||
|
option(WITH_NCURSES "Build support for TUI in NCurses" ON)
|
||||||
|
|
17
srcpkgs/CPU-X/patches/fix_bitness_detection.patch
Normal file
17
srcpkgs/CPU-X/patches/fix_bitness_detection.patch
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
--- CMakeLists.txt
|
||||||
|
+++ CMakeLists.txt
|
||||||
|
@@ -25,11 +25,11 @@
|
||||||
|
set(APP_EXEC ${CMAKE_PROJECT_NAME})
|
||||||
|
set(DAEMON_EXEC ${CMAKE_PROJECT_NAME}-daemon)
|
||||||
|
set(DAEMON_PATH ${CMAKE_INSTALL_FULL_LIBEXECDIR}/${DAEMON_EXEC})
|
||||||
|
-if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "i.86")
|
||||||
|
+if(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||||
|
set(BITNESS "32")
|
||||||
|
-else(${CMAKE_SYSTEM_PROCESSOR} MATCHES "i.86")
|
||||||
|
+else(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||||
|
set(BITNESS "64")
|
||||||
|
-endif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "i.86")
|
||||||
|
+endif(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-deprecated-declarations -Wno-unused-result")
|
||||||
|
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall -Wextra -Wuninitialized -Wstrict-prototypes -Wformat -Wformat-security")
|
||||||
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now")
|
|
@ -1,21 +1,18 @@
|
||||||
# Template file for 'CPU-X'
|
# Template file for 'CPU-X'
|
||||||
pkgname=CPU-X
|
pkgname=CPU-X
|
||||||
version=3.2.4
|
version=4.0.1
|
||||||
revision=3
|
revision=1
|
||||||
# /usr/bin/ld: i386:x86-64 architecture of input file
|
archs="x86_64* i686*"
|
||||||
# ../output/lib/libbandwidth.a(routines-x86-64bit.o)'
|
|
||||||
# is incompatible with i386 output
|
|
||||||
archs="x86_64*"
|
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
hostmakedepends="nasm pkg-config"
|
hostmakedepends="nasm pkg-config gettext"
|
||||||
makedepends="libcpuid-devel libcurl-devel ncurses-devel pciutils-devel
|
makedepends="libcpuid-devel ncurses-devel pciutils-devel
|
||||||
procps-ng-devel json-c-devel $(vopt_if gtk3 'gtk+3-devel')"
|
procps-ng-devel $(vopt_if gtk3 'gtk+3-devel')"
|
||||||
short_desc="Free software that gathers information on CPU, motherboard and more"
|
short_desc="Free software that gathers information on CPU, motherboard and more"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="GPL-3.0-or-later"
|
license="GPL-3.0-or-later"
|
||||||
homepage="https://x0rg.github.io/CPU-X/"
|
homepage="https://x0rg.github.io/CPU-X/"
|
||||||
distfiles="https://github.com/X0rg/CPU-X/archive/v${version}.tar.gz"
|
distfiles="https://github.com/X0rg/CPU-X/archive/v${version}.tar.gz"
|
||||||
checksum=f266388e13c527a5d1d98ec70957b1284f67aa89470cf71bc98ecb41c21542eb
|
checksum=c41fbb3000e3e6f79e5228aa0237fde4f98b11df8ccb4c9a46f7e63a4a7011bf
|
||||||
|
|
||||||
build_options="gtk3"
|
build_options="gtk3"
|
||||||
build_options_default="gtk3"
|
build_options_default="gtk3"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue