From owner-dev-commits-ports-main@freebsd.org Thu Jun 3 05:45:33 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1F4ED65309A; Thu, 3 Jun 2021 05:45:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FwZcY0NJ9z4Rtx; Thu, 3 Jun 2021 05:45:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DF3E42465B; Thu, 3 Jun 2021 05:45:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1535jWAq004969; Thu, 3 Jun 2021 05:45:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1535jWxC004968; Thu, 3 Jun 2021 05:45:32 GMT (envelope-from git) Date: Thu, 3 Jun 2021 05:45:32 GMT Message-Id: <202106030545.1535jWxC004968@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: =?utf-8?B?RmVybmFuZG8gQXBlc3RlZ3XDrWE=?= Subject: git: e2facd354b96 - main - sysutils/toybox: update to 0.8.5 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fernape X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e2facd354b9631652854e631579a4f1b44c6e59f Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jun 2021 05:45:33 -0000 The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/ports/commit/?id=e2facd354b9631652854e631579a4f1b44c6e59f commit e2facd354b9631652854e631579a4f1b44c6e59f Author: Fernando ApesteguĂ­a AuthorDate: 2021-06-02 15:00:35 +0000 Commit: Fernando ApesteguĂ­a CommitDate: 2021-06-03 05:41:29 +0000 sysutils/toybox: update to 0.8.5 ChangeLog: http://landley.net/toybox/#19-15-2021 PR: 256351 Reported by: vidar@karlsen.tech (maintainer) --- sysutils/toybox/Makefile | 8 ++++---- sysutils/toybox/distinfo | 6 +++--- sysutils/toybox/files/patch-lib_portability.c | 29 ++++++++++++++------------- sysutils/toybox/files/patch-lib_portability.h | 11 ++++++++++ 4 files changed, 33 insertions(+), 21 deletions(-) diff --git a/sysutils/toybox/Makefile b/sysutils/toybox/Makefile index 9387c591b70f..35a3ab7cbbac 100644 --- a/sysutils/toybox/Makefile +++ b/sysutils/toybox/Makefile @@ -1,5 +1,5 @@ PORTNAME= toybox -PORTVERSION= 0.8.4 +PORTVERSION= 0.8.5 CATEGORIES= sysutils MAINTAINER= vidar@karlsen.tech @@ -15,6 +15,9 @@ LIB_DEPENDS= libinotify.so:devel/libinotify USES= gmake shebangfix +USE_GITHUB= yes +GH_ACCOUNT= landley + SHEBANG_FILES= scripts/bloatcheck scripts/mcm-buildall.sh \ scripts/change.sh scripts/findglobals.sh \ scripts/genconfig.sh scripts/install.sh \ @@ -26,9 +29,6 @@ SHEBANG_FILES= scripts/bloatcheck scripts/mcm-buildall.sh \ PLIST_FILES= bin/toybox -USE_GITHUB= yes -GH_ACCOUNT= landley - post-patch: ${REINPLACE_CMD} -e 's||"${LOCALBASE}/include/sys/inotify.h"|' \ ${WRKSRC}/lib/portability.c diff --git a/sysutils/toybox/distinfo b/sysutils/toybox/distinfo index 9ff9940ac170..9967e1fc3baa 100644 --- a/sysutils/toybox/distinfo +++ b/sysutils/toybox/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1606836525 -SHA256 (landley-toybox-0.8.4_GH0.tar.gz) = bea9fe3aae662ef97b7450df8c0333e50c69cd9f626be8f7e245ef322605b1e9 -SIZE (landley-toybox-0.8.4_GH0.tar.gz) = 1141779 +TIMESTAMP = 1621778141 +SHA256 (landley-toybox-0.8.5_GH0.tar.gz) = 27cc073222f3b726ee10d96c4f32ac2c4c936b07ea195227736755971e6d90c9 +SIZE (landley-toybox-0.8.5_GH0.tar.gz) = 2387752 diff --git a/sysutils/toybox/files/patch-lib_portability.c b/sysutils/toybox/files/patch-lib_portability.c index f0a219644daa..1653734a77b3 100644 --- a/sysutils/toybox/files/patch-lib_portability.c +++ b/sysutils/toybox/files/patch-lib_portability.c @@ -1,4 +1,4 @@ ---- lib/portability.c.orig 2020-05-11 18:23:26 UTC +--- lib/portability.c.orig 2021-05-19 08:34:26 UTC +++ lib/portability.c @@ -6,6 +6,10 @@ @@ -11,37 +11,37 @@ // We can't fork() on nommu systems, and vfork() requires an exec() or exit() // before resuming the parent (because they share a heap until then). And no, // we can't implement our own clone() call that does the equivalent of fork() -@@ -522,6 +526,8 @@ int dev_minor(int dev) - return ((dev&0xfff00000)>>12)|(dev&0xff); - #elif defined(__APPLE__) +@@ -536,6 +540,8 @@ int dev_minor(int dev) return dev&0xffffff; + #elif defined(__OpenBSD__) + return minor(dev); +#elif defined(__FreeBSD__) + return minor(dev); #else #error #endif -@@ -533,6 +539,8 @@ int dev_major(int dev) - return (dev&0xfff00)>>8; - #elif defined(__APPLE__) +@@ -549,6 +555,8 @@ int dev_major(int dev) return (dev>>24)&0xff; + #elif defined(__OpenBSD__) + return major(dev); +#elif defined(__FreeBSD__) + return major(dev); #else #error #endif -@@ -544,6 +552,8 @@ int dev_makedev(int major, int minor) - return (minor&0xff)|((major&0xfff)<<8)|((minor&0xfff00)<<12); - #elif defined(__APPLE__) +@@ -562,6 +570,8 @@ int dev_makedev(int major, int minor) return (minor&0xffffff)|((major&0xff)<<24); + #elif defined(__OpenBSD__) + return makedev(major, minor); +#elif defined(__FreeBSD__) + return makedev(major, minor); #else #error #endif -@@ -593,5 +603,16 @@ int get_block_device_size(int fd, unsigned long long* - int get_block_device_size(int fd, unsigned long long* size) - { - return (ioctl(fd, BLKGETSIZE64, size) >= 0); +@@ -621,6 +631,17 @@ int get_block_device_size(int fd, unsigned long long* + int status = (ioctl(fd, DIOCGDINFO, &lab) >= 0); + *size = lab.d_secsize * lab.d_nsectors; + return status; +} +#elif defined(__FreeBSD__) +#include @@ -55,3 +55,4 @@ + return 0; } #endif + diff --git a/sysutils/toybox/files/patch-lib_portability.h b/sysutils/toybox/files/patch-lib_portability.h new file mode 100644 index 000000000000..44e03cf08496 --- /dev/null +++ b/sysutils/toybox/files/patch-lib_portability.h @@ -0,0 +1,11 @@ +--- lib/portability.h.orig 2021-06-01 14:59:57 UTC ++++ lib/portability.h +@@ -217,7 +217,7 @@ int posix_fallocate(int, off_t, off_t); + #include + #endif + +-#if defined(__APPLE__) || defined(__OpenBSD__) ++#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__) + static inline long statfs_bsize(struct statfs *sf) { return sf->f_iosize; } + static inline long statfs_frsize(struct statfs *sf) { return sf->f_bsize; } + #else