lshw: update to B.02.20.

Closes: #54204 [via git-merge-pr]
This commit is contained in:
icp 2025-01-30 19:51:55 +05:30 committed by classabbyamp
parent 8add61acf2
commit 7ba4ad0b21
No known key found for this signature in database
GPG key ID: 6BE0755918A4C7F5
3 changed files with 5 additions and 33 deletions

View file

@ -1,8 +0,0 @@
--- a/src/lshw.sgml 2016-04-22 21:49:30.000000000 +0200
+++ b/src/lshw.sgml 2016-05-07 05:54:39.106562357 +0200
@@ -1,4 +1,4 @@
-<!DOCTYPE RefEntry PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
+<!DOCTYPE RefEntry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<refentry id="lshw">
<refmeta>

View file

@ -1,20 +0,0 @@
sysconf(LONG_BIT) isn't correct usage of sysconf(3).
musl doesn't define _SC_LONG_BIT, so just use LONG_BIT directly. There's really
no reason to use sysconf(3) here, word size isn't a runtime property.
diff --git src/core/abi.cc src/core/abi.cc
index adff7b5..76c664c 100644
--- a/src/core/abi.cc
+++ b/src/core/abi.cc
@@ -20,9 +20,7 @@ __ID("@(#) $Id: mem.cc 1352 2006-05-27 23:54:13Z ezix $");
bool scan_abi(hwNode & system)
{
// are we compiled as 32- or 64-bit process ?
- long sc = sysconf(LONG_BIT);
- if(sc==-1) sc = sysconf(_SC_LONG_BIT);
- if(sc!=-1) system.setWidth(sc);
+ system.setWidth(LONG_BIT);
pushd(PROC_SYS);

View file

@ -1,21 +1,21 @@
# Template file for 'lshw'
pkgname=lshw
version=B.02.19.2
revision=2
version=B.02.20
revision=1
build_style=gnu-makefile
make_build_args="VERSION=${version}"
make_build_target="all gui"
make_install_args="SBINDIR=/usr/bin"
make_install_target="install install-gui"
make_use_env=yes
hostmakedepends="docbook2x pkg-config"
makedepends="gtk+-devel"
hostmakedepends="docbook2x pkg-config gettext"
makedepends="gtk+3-devel"
short_desc="Hardware lister application"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://ezix.org/project/wiki/HardwareLiSter"
distfiles="https://ezix.org/software/files/lshw-${version}.tar.gz"
checksum=9bb347ac87142339a366a1759ac845e3dbb337ec000aa1b99b50ac6758a80f80
checksum=06d9cf122422220e5dc94e8ea5b01816a69bb6b59368f63d7f21fff31fc6922a
disable_parallel_build=yes # fails to link ./core/liblshw.a
post_patch() {