pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/bsdfetch sysutils/bsdfetch: update to bsdfetc...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a7c9ba2646fe
branches:  trunk
changeset: 391497:a7c9ba2646fe
user:      vins <vins%pkgsrc.org@localhost>
date:      Mon Jan 09 11:15:33 2023 +0000

description:
sysutils/bsdfetch: update to bsdfetch-1.1.0

This is a major release, bringing several changes:

 * Get rid of unnecessary #includes and function prototypes.

 * Identifiers starting with `_' are reserved in C, therefore:
        _PRG_NAME -> getprogname()
        _VERSION  -> VERSION

 * Use a single large buffer `buf' for everything. This gets rid of most
   of the local variables which were needed.

 * Remove functions die() & error(). *BSD already provides err(3) and
   friends for this.

 * Use cpr() instead of show(). As cpr() takes a variable no. of args., a
   lot of local variable can be eliminated.

 * In get_shell() and get_user(), call getpwuid() only if the variable is
   unusable. Then, _check_ the return of getpwuid()--it could be NULL.

 * In get_cpu(), on NetBSD, print the temp. of _all_ CPUs. On FreeBSD,
   `-n' should turn off colour when printing CPU temperatures.

 * Fold get_arch() into get_sysinfo(); and cut build strings from kernel
   version on NetBSD.

 * Many other simplifications (bsdfetch.c is now ~100 lines shorter). and
   apart from zero, or a few, mild warnings (platform-dependent), code
   compiles with clang's `-Weverything' turned on.

 * FIX: Removed -march=native (FreeBSD Clang does not support it)
   (At least not on ARM - Tested on Raspberry Pi 4)

diffstat:

 sysutils/bsdfetch/Makefile |  6 +++---
 sysutils/bsdfetch/distinfo |  8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (29 lines):

diff -r 7b237d93648d -r a7c9ba2646fe sysutils/bsdfetch/Makefile
--- a/sysutils/bsdfetch/Makefile        Mon Jan 09 10:55:09 2023 +0000
+++ b/sysutils/bsdfetch/Makefile        Mon Jan 09 11:15:33 2023 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.2 2023/01/02 22:54:45 vins Exp $
+# $NetBSD: Makefile,v 1.3 2023/01/09 11:15:33 vins Exp $
 
-DISTNAME=      bsdfetch-1.0.4
+DISTNAME=      bsdfetch-1.1.0
 CATEGORIES=    sysutils
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=jhx0/}
-GITHUB_TAG=    b1e9d2ae681de9abd60751d00e83e2f548eb98a3
+GITHUB_TAG=    a9ddda45b00ba730c5dd19d5823cfac2cd64b790
 
 MAINTAINER=    vins%NetBSD.org@localhost
 HOMEPAGE=      https://github.com/jhx0/bsdfetch/
diff -r 7b237d93648d -r a7c9ba2646fe sysutils/bsdfetch/distinfo
--- a/sysutils/bsdfetch/distinfo        Mon Jan 09 10:55:09 2023 +0000
+++ b/sysutils/bsdfetch/distinfo        Mon Jan 09 11:15:33 2023 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.2 2023/01/02 22:54:45 vins Exp $
+$NetBSD: distinfo,v 1.3 2023/01/09 11:15:33 vins Exp $
 
-BLAKE2s (bsdfetch-1.0.4-b1e9d2ae681de9abd60751d00e83e2f548eb98a3.tar.gz) = 616762f02902b8cfc0a6dbb99974fe92ed2dd5f069da0cddb7b23fdec0647cd6
-SHA512 (bsdfetch-1.0.4-b1e9d2ae681de9abd60751d00e83e2f548eb98a3.tar.gz) = 
0240685b3821eb4646411a29d19e13f1715c477df12fd4bafe9e6c22121803fc8c98cc0685dcfe23bd326fb8f8e2382423d2d5647e0ce8a8bc9392a3e4bd4691
-Size (bsdfetch-1.0.4-b1e9d2ae681de9abd60751d00e83e2f548eb98a3.tar.gz) = 6671 bytes
+BLAKE2s (bsdfetch-1.1.0-a9ddda45b00ba730c5dd19d5823cfac2cd64b790.tar.gz) = 1db3f5fd4cf0333e86bcea261e8b6af3f56e45a9adc2cff0cc0bafad56f5a443
+SHA512 (bsdfetch-1.1.0-a9ddda45b00ba730c5dd19d5823cfac2cd64b790.tar.gz) = 
80a286f6fcf24d729fe3ec0c46ef087b2ebd024c83791f30261abf046fea0bb81f6d93ebe925d98ac6e6f8348b88d647bf9ceaabe08e087ba0c8235a30bb35b0
+Size (bsdfetch-1.1.0-a9ddda45b00ba730c5dd19d5823cfac2cd64b790.tar.gz) = 6622 bytes



Home | Main Index | Thread Index | Old Index