From owner-svn-ports-head@freebsd.org Mon Sep 25 19:27:05 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EE43EE22632; Mon, 25 Sep 2017 19:27:05 +0000 (UTC) (envelope-from kwm@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BAA7B6594A; Mon, 25 Sep 2017 19:27:05 +0000 (UTC) (envelope-from kwm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v8PJR4Bh013888; Mon, 25 Sep 2017 19:27:04 GMT (envelope-from kwm@FreeBSD.org) Received: (from kwm@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v8PJR4DB013887; Mon, 25 Sep 2017 19:27:04 GMT (envelope-from kwm@FreeBSD.org) Message-Id: <201709251927.v8PJR4DB013887@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kwm set sender to kwm@FreeBSD.org using -f From: Koop Mast Date: Mon, 25 Sep 2017 19:27:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r450629 - head/devel/libgtop/files X-SVN-Group: ports-head X-SVN-Commit-Author: kwm X-SVN-Commit-Paths: head/devel/libgtop/files X-SVN-Commit-Revision: 450629 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Sep 2017 19:27:06 -0000 Author: kwm Date: Mon Sep 25 19:27:04 2017 New Revision: 450629 URL: https://svnweb.freebsd.org/changeset/ports/450629 Log: Allow to build on arm64 and riscv by removing the usage of sbrk(2), which doesn't exist on arm64 and riscv. PR: 221751 Submitted by: brooks@ Added: head/devel/libgtop/files/patch-examples_mountlist.c (contents, props changed) Added: head/devel/libgtop/files/patch-examples_mountlist.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/libgtop/files/patch-examples_mountlist.c Mon Sep 25 19:27:04 2017 (r450629) @@ -0,0 +1,33 @@ +Remove unreliable and non-portable way to demonstrate memory utilization +with sbrk(2). + +https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221751 + +--- examples/mountlist.c.orig ++++ examples/mountlist.c +@@ -71,16 +71,12 @@ + + printf ("Host = '%s' - %u\n\n", buffer, port); + +- printf ("sbrk (0) = %p\n\n", sbrk (0)); +- + for (c = 0; c < PROFILE_COUNT; c++) { + mount_entries = glibtop_get_mountlist (&mount_list, 1); + + g_free (mount_entries); + } + +- printf ("sbrk (0) = %p\n\n", sbrk (0)); +- + mount_entries = glibtop_get_mountlist (&mount_list, 1); + + if (mount_entries == NULL) +@@ -108,8 +104,6 @@ + + g_free (mount_entries); + +- printf ("\nsbrk (0) = %p\n\n", sbrk (0)); +- + glibtop_close (); + + exit (0);