From nobody Fri Dec 08 23:30:57 2023 X-Original-To: dev-commits-ports-main@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 4Sn6pB20rFz53c6b; Fri, 8 Dec 2023 23:30:58 +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 4Sn6pB1XXfz3DNs; Fri, 8 Dec 2023 23:30:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702078258; 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=bKbXjs9QxUlIKXML4g8iU0dpaNDZdb3DVq41DA+8R70=; b=HdCartNQ76RM3jKtqWj8rw4RvvraJeYdB0IRq14lNXjXU7i1tVONmZBWVrRAof8fT8+N/X UK/0pdtgOmdyCVazJFm1yJ12GvxH1VbZOjw895eBoyltQaM0mt9oj4eeSzAaZtKx5qpX4C 5H2kQS/IESAkPQzywxsMNq4gn4m9LVFkOJAX063P4mS2hReUYFsxQgzGh0xsz0t7X6z0WG CR+tGWf6OOkkyIodp3hYhq5ri6MloUj8wxnHbQdZ+JjYQon3sYcTM3jYDhFJR6uiw7uVAn a0Y95ETRX5URaSa0jAJjBjiO9Gaf2/YgiuCCW9FonsJjJho3ttKgcb2rbzZCyA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702078258; a=rsa-sha256; cv=none; b=iN8JEadzIu6NDB9EPD/KNh5FPd/YIlzsLDygBGMVMSJy0jn3/Rz9cpjVrsEmJY0ox+tav5 /u8eXqMfPrSiuQOoJQeXrkKAyAU2+5wj/6r77b/bobIgrV1sKUzVZaD5+oSVYIqraNAk/b sOOx0LT2vijGiCxSc8xWipm5usTYzsQu7Bf3k4GfbpEAoTyzI3WXHmoq8jEee7KDra2wcZ naqowMedBp+qMJSrq8vVQx7h22VTLh8Tbrkf7+XPHt24/Hm8MtjAwYiUn1dDYuUXZk9OLF uAB7xVonaUUSKMswA4PgGI0vJVsMxiHIBqE45yXyvlErGAZya8qrZnHm+N6gbg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702078258; 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=bKbXjs9QxUlIKXML4g8iU0dpaNDZdb3DVq41DA+8R70=; b=uV/Dx0WRRCn2xzZw8U7MugfIFRSoKXEImiVJvzjvr3JULRSZHX2Eqm1ZUBPIP3+L35Rp+Y WN3pJS86UNsuHT9ovzoyBPPpODZCipDAQ5M5Rtst43DaQ5j6v7+z5t7FcqSay+naVaf3c3 Na4uIxDdYYILzCkLWg1o86xwICi87NNtusJ1XBWRZhcAXDfSyU2uNJMXWnrKcStO1O/2DJ pY+rugoxHAGxDwnZKfZcGNRQ7/z5edbiz24N0TiG02IBRW7oh/le8flhvSJzaRYhCERiSe xEwS0PC8ICuF6VZBUDh589GYGTQXGTXhBNism4vC8FAemysIkJIzfkg3N0Wi+Q== 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 4Sn6pB0ZCYzgPj; Fri, 8 Dec 2023 23:30:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3B8NUvLG067244; Fri, 8 Dec 2023 23:30:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3B8NUv3u067241; Fri, 8 Dec 2023 23:30:57 GMT (envelope-from git) Date: Fri, 8 Dec 2023 23:30:57 GMT Message-Id: <202312082330.3B8NUv3u067241@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Brooks Davis Subject: git: 4cf63f596dd4 - main - devel/rvm: remove useless sbrk use List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brooks X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4cf63f596dd42bee1c83ae79e991813f8d3143af Auto-Submitted: auto-generated The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/ports/commit/?id=4cf63f596dd42bee1c83ae79e991813f8d3143af commit 4cf63f596dd42bee1c83ae79e991813f8d3143af Author: Brooks Davis AuthorDate: 2023-12-06 19:13:02 +0000 Commit: Brooks Davis CommitDate: 2023-12-08 23:24:16 +0000 devel/rvm: remove useless sbrk use sbrk was used to in a function intended to be called from gdb in a test script to produce informational output about heap use. At best this was inaccurate and it's implausible that any port user ever used it. --- devel/rvm/Makefile | 4 +--- devel/rvm/files/patch-tests_rvm__basher.c | 32 +++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 3 deletions(-) diff --git a/devel/rvm/Makefile b/devel/rvm/Makefile index a3ae620c0f03..3ffe1921c457 100644 --- a/devel/rvm/Makefile +++ b/devel/rvm/Makefile @@ -1,5 +1,6 @@ PORTNAME= rvm DISTVERSION= 1.20 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://ftp.coda.cs.cmu.edu/pub/rvm/src/ \ http://ftp.wu-wien.ac.at/pub/systems/coda/src/ \ @@ -13,9 +14,6 @@ WWW= http://www.coda.cs.cmu.edu/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_aarch64= Fails to link: missing sbrk -BROKEN_riscv64= Fails to link: missing sbrk - LIB_DEPENDS= liblwp.so:devel/lwp USES= libtool pathfix pkgconfig diff --git a/devel/rvm/files/patch-tests_rvm__basher.c b/devel/rvm/files/patch-tests_rvm__basher.c new file mode 100644 index 000000000000..9fed5684cdd9 --- /dev/null +++ b/devel/rvm/files/patch-tests_rvm__basher.c @@ -0,0 +1,32 @@ +--- tests/rvm_basher.c.orig ++++ tests/rvm_basher.c +@@ -1579,20 +1579,10 @@ + /* print break point and limit */ + static void show_break() + { +- rvm_length_t cur_brk; + #ifdef RLIMIT_DATA + struct rlimit rlp; + #endif + +- /* get current break point */ +- errno = 0; +- if ((cur_brk=(rvm_length_t)sbrk(0)) == -1) +- { +- printf("\n? Error getting current break point\n"); +- printf(" errno = %d\n",errno); +- CODA_ASSERT(rvm_false); +- } +- + /* get system maximum */ + errno = 0; + #ifdef RLIMIT_DATA +@@ -1604,8 +1594,6 @@ + } + + /* print the limits */ +- printf("\nCurrent break point: 0x%lx\n", +- RVM_ROUND_LENGTH_UP_TO_PAGE_SIZE(cur_brk+5*RVM_PAGE_SIZE)); + printf("Maximum data segment length: 0x%lx\n\n",rlp.rlim_max); + #endif + exit(0);