Subject: CVS commit: pkgsrc/sysutils/bsdfetch
From: Paolo Vincenzo Olivo
Date: 2023-01-09 12:15:33
Message id: 20230109111533.4D25DFA90@cvs.NetBSD.org

Log Message:
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)

Files:
RevisionActionfile
1.3modifypkgsrc/sysutils/bsdfetch/Makefile
1.3modifypkgsrc/sysutils/bsdfetch/distinfo