From nobody Tue Jan 17 16:59:20 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NxFVJ3yFxz2smb0; Tue, 17 Jan 2023 16:59:20 +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 4NxFVJ3R1gz3JMv; Tue, 17 Jan 2023 16:59:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673974760; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8WVFCBX8s00Lv/G6G8hWKL95roB7uHeSgQcs2ag/SOw=; b=WEPc3P141Xt14a50ZCTDCSZvFdN+yFtfbgj8Tc1sNsXaQiuqhxznY+2lOrcuvIADhZotaR VVAo/ereMdlig8xCYuXlq86Z8Y5IE2FxANUen1i4ITZaBE0wC48hV+w0vBSvk2dPBUROzg gRZO6KyMrAQcC1KtopHM2lAfOZK3QajVuHRkOxUuZ0JzowPeAgkk+nsMNJ5A7klJb2qzSu P2T0NFGXuPjDehmuGpZ9pOl22skD7z2u1Ht/fkdghqSxHOZWR9/spcKW9TlSDqB8Cv9jLg dT4H2uKR19ZWpDFywUfqGg0fQtmarbtNS8ycbzfUu1CjH0BXb0en4LoUecECmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673974760; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8WVFCBX8s00Lv/G6G8hWKL95roB7uHeSgQcs2ag/SOw=; b=HUP7BQIYwh9IQYubccCdYdpCEiSRfRFVa0J4gBAg8tlZlJ3P7yQrgJIFcsr+3LdntwsgJ+ qHJtD4uKwmIEX5kb8/QgThOmR0hdHLc9fnglVRUNjgfxVSTvnAVLfSFqHLSD1YzWKvH2rC 1gagu3bk9WRPoY8BpMq/y+Ey9DzPHZEjXrDEroCLdBr4CMbKQdQNdrxDPP/dimGZLp9aQB axPUNsLACbEhwoC0QS1iTQe5qVRb95BffQ6ZnJ78n40RVGnoIu3RJhiaQPTYQ31rZGe//z YJJXMRm3HTyBhKr4cUnQ9HXQEPDpUkPrGKoepGUvgpJoHLETwC4tBtAtbNe91w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673974760; a=rsa-sha256; cv=none; b=nFleMwCLgjcMUZi7DMHRx2/IxLqQEwPptGcHnDS0qkgNyu2Wrx1AboVhioTmWPBsOuk3G9 FOuska1LX5cINUsful5LdvWma4q5xsbHMRvll446cBY1vZqbw+Cs9ghwn11ogFPoBCzoYi ypdWWEcpHVPytmM+aL72HlCV6KkxMuOeggvs0XVkIZFLepcncqcevUhz2vMLjjNlKu2tcO jj4BaSpNyhxkm6tz1bxw5+6qa/xATBid/CzD6/jf9Xj1DReDGix0LRW3ZMtLFMm2TQGHxA ltCVA+5BhVZWYq9YEN+UNMqey8iapVNtyXLzzr0OGCFsk0MbQ7QW9WKUxyoXuQ== 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 4NxFVJ2VdVzdn0; Tue, 17 Jan 2023 16:59:20 +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 30HGxKjc020142; Tue, 17 Jan 2023 16:59:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30HGxKI2020141; Tue, 17 Jan 2023 16:59:20 GMT (envelope-from git) Date: Tue, 17 Jan 2023 16:59:20 GMT Message-Id: <202301171659.30HGxKI2020141@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Mikael Urankar Subject: git: 9649e758fbba - main - sysutils/toybox: update to 0.8.9 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mikael X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9649e758fbbac97df7f302f95b32390ffc7ad1fb Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mikael: URL: https://cgit.FreeBSD.org/ports/commit/?id=9649e758fbbac97df7f302f95b32390ffc7ad1fb commit 9649e758fbbac97df7f302f95b32390ffc7ad1fb Author: Vidar Karlsen AuthorDate: 2023-01-17 15:43:24 +0000 Commit: Mikael Urankar CommitDate: 2023-01-17 16:56:42 +0000 sysutils/toybox: update to 0.8.9 Changelog: http://landley.net/toybox/#10-01-2023 Changes to the port: - Removed patches that are no longer necessary due to upstream having improved the FreeBSD support - Removed LIB_DEPEND on devel/libinotify (no longer necessary) - Removed s|sed|gsed| replacement (no longer necessary) PR: 269009 --- sysutils/toybox/Makefile | 8 +---- sysutils/toybox/distinfo | 6 ++-- sysutils/toybox/files/patch-lib_portability.c | 20 ----------- sysutils/toybox/files/patch-toys_other_openvt.c | 48 ------------------------- 4 files changed, 4 insertions(+), 78 deletions(-) diff --git a/sysutils/toybox/Makefile b/sysutils/toybox/Makefile index 6daa38eca0cc..81bc8a72a35c 100644 --- a/sysutils/toybox/Makefile +++ b/sysutils/toybox/Makefile @@ -1,5 +1,5 @@ PORTNAME= toybox -PORTVERSION= 0.8.8 +PORTVERSION= 0.8.9 CATEGORIES= sysutils MASTER_SITES= http://landley.net/toybox/downloads/ @@ -13,7 +13,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept BUILD_DEPENDS= bash:shells/bash gsed:textproc/gsed -LIB_DEPENDS= libinotify.so:devel/libinotify USES= gmake shebangfix @@ -41,11 +40,6 @@ USRBIN_LINKS= acpi ascii base64 basename bunzip2 bzcat cal chrt chvt \ uuidgen w watch wc which who whoami xargs xxd yes USRSBIN_LINKS= chroot -post-patch: - ${REINPLACE_CMD} -e 's||"${LOCALBASE}/include/sys/inotify.h"|' \ - ${WRKSRC}/lib/portability.c - ${REINPLACE_CMD} -e 's|sed|gsed|' ${WRKSRC}/scripts/single.sh - do-configure: cd ${WRKSRC} && HOSTCC=${CC} ${GMAKE} bsd_defconfig diff --git a/sysutils/toybox/distinfo b/sysutils/toybox/distinfo index 6e4e4d471205..3f9053359cfd 100644 --- a/sysutils/toybox/distinfo +++ b/sysutils/toybox/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1660384956 -SHA256 (toybox-0.8.8.tar.gz) = dafd41978d40f02a61cf1be99a2b4a25812bbfb9c3157e679ee7611202d6ac58 -SIZE (toybox-0.8.8.tar.gz) = 3492750 +TIMESTAMP = 1673953133 +SHA256 (toybox-0.8.9.tar.gz) = 06913dde3de7139b40f947bd7f23869dfc8796e9c6ff39de02719f8b7b2d47ad +SIZE (toybox-0.8.9.tar.gz) = 3517516 diff --git a/sysutils/toybox/files/patch-lib_portability.c b/sysutils/toybox/files/patch-lib_portability.c deleted file mode 100644 index 226e8fe0212a..000000000000 --- a/sysutils/toybox/files/patch-lib_portability.c +++ /dev/null @@ -1,20 +0,0 @@ ---- lib/portability.c.orig 2022-08-13 14:55:14 UTC -+++ lib/portability.c -@@ -625,6 +625,17 @@ int get_block_device_size(int fd, unsigned long long* - *size = lab.d_secsize * lab.d_nsectors; - return status; - } -+#elif defined(__FreeBSD__) -+#include -+int get_block_device_size(int fd, unsigned long long* size) -+{ -+ off_t sz = 0; -+ if (ioctl(fd, DIOCGMEDIASIZE, &sz) >= 0) { -+ *size = sz; -+ return 1; -+ } -+ return 0; -+} - #endif - - // Return bytes copied from in to out. If bytes <0 copy all of in to out. diff --git a/sysutils/toybox/files/patch-toys_other_openvt.c b/sysutils/toybox/files/patch-toys_other_openvt.c deleted file mode 100644 index 01fe211eeb79..000000000000 --- a/sysutils/toybox/files/patch-toys_other_openvt.c +++ /dev/null @@ -1,48 +0,0 @@ ---- toys/other/openvt.c.orig 2022-08-12 07:58:03 UTC -+++ toys/other/openvt.c -@@ -44,8 +44,8 @@ config DEALLOCVT - - #define FOR_openvt - #include "toys.h" --#include --#include -+#include -+#include - - GLOBALS( - long c; -@@ -72,12 +72,17 @@ static int activate(int fd, int cc) - - void openvt_main(void) - { -+ struct vt_stat { -+ unsigned short v_active; -+ unsigned short v_signal; -+ unsigned short v_state; -+ }; - struct vt_stat vstate; - int fd, cc = (int)TT.c; - pid_t pid; - - // find current console -- if (-1 == (ioctl(fd = open_console(), VT_GETSTATE, &vstate)) || -+ if (-1 == (ioctl(fd = open_console(), VT_GETACTIVE, &vstate)) || - (!cc && 0>=(cc = xioctl(fd, VT_OPENQRY, &fd)))) - perror_exit("can't find open VT"); - -@@ -95,7 +100,7 @@ void openvt_main(void) - while (-1 == waitpid(pid, NULL, 0) && errno == EINTR) errno = 0; - if (FLAG(s)) { - activate(fd, vstate.v_active); -- dprintf(2, "%d\n", ioctl(fd, VT_DISALLOCATE, cc)); -+ dprintf(2, "%d\n", ioctl(fd, VT_ACTIVATE, cc)); - } - } - } -@@ -111,5 +116,5 @@ void deallocvt_main(void) - int fd = open_console(), vt_num = 0; // 0 = all - - if (*toys.optargs) vt_num = atolx_range(*toys.optargs, 1, 63); -- if (-1 == ioctl(fd, VT_DISALLOCATE, vt_num)) perror_exit("%d", vt_num); -+ if (-1 == ioctl(fd, VT_ACTIVATE, vt_num)) perror_exit("%d", vt_num); - }