From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Jun 21 00:20:02 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E033106567F for ; Sat, 21 Jun 2008 00:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E956F8FC19 for ; Sat, 21 Jun 2008 00:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m5L0K1x6078297 for ; Sat, 21 Jun 2008 00:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m5L0K1gx078296; Sat, 21 Jun 2008 00:20:01 GMT (envelope-from gnats) Resent-Date: Sat, 21 Jun 2008 00:20:01 GMT Resent-Message-Id: <200806210020.m5L0K1gx078296@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Pietro Cerutti" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 463001065686 for ; Sat, 21 Jun 2008 00:18:57 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73]) by mx1.freebsd.org (Postfix) with ESMTP id BBEBA8FC15 for ; Sat, 21 Jun 2008 00:18:56 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from [213.142.183.219] (helo=gahrtop.localhost) by cpanel03.rubas-s03.net with esmtpa (Exim 4.68) (envelope-from ) id 1K9qoh-0000Vb-7s for FreeBSD-gnats-submit@freebsd.org; Sat, 21 Jun 2008 02:18:55 +0200 Received: from gahrtop.localhost (localhost [127.0.0.1]) by gahrtop.localhost (Postfix) with ESMTP id 41F7850841 for ; Sat, 21 Jun 2008 02:18:43 +0200 (CEST) Message-Id: <1214007523.87873@gahrtop.localhost> Date: Sat, 21 Jun 2008 02:18:43 +0200 From: "Pietro Cerutti" To: "FreeBSD gnats submit" X-Send-Pr-Version: gtk-send-pr 0.4.9 Cc: Subject: ports/124807: [patch] devel/libgtop unbreak after change in cdev structure X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jun 2008 00:20:02 -0000 >Number: 124807 >Category: ports >Synopsis: [patch] devel/libgtop unbreak after change in cdev structure >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jun 21 00:20:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Pietro Cerutti >Release: FreeBSD 8.0-CURRENT i386 >Organization: The FreeBSD Project >Environment: System: FreeBSD 8.0-CURRENT #0: Wed Jun 18 01:38:09 CEST 2008 root@gahrtop.localhost:/usr/obj/usr/src/sys/MSI1034 >Description: This has broken libgtop: http://www.freebsd.org/cgi/cvsweb.cgi/src%2Fsys%2Fsys/conf.h.diff?r1=1.241;r2=1.242 >How-To-Repeat: >Fix: --- libgtop.diff begins here --- Index: files/patch-sysdeps_freebsd_procmap.c =================================================================== RCS file: files/patch-sysdeps_freebsd_procmap.c diff -N files/patch-sysdeps_freebsd_procmap.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-sysdeps_freebsd_procmap.c 20 Jun 2008 23:58:54 -0000 @@ -0,0 +1,18 @@ +--- sysdeps/freebsd/procmap.c.orig 2008-06-21 01:58:25.000000000 +0200 ++++ sysdeps/freebsd/procmap.c 2008-06-21 01:58:30.000000000 +0200 +@@ -103,8 +103,14 @@ + + if (kvm_read (server->machine.kd, (gulong) inode.i_dev, (char *) &si, + sizeof (si)) != sizeof (si) || ++#if __FreeBSD_version >= 800039 ++ kvm_read (server->machine.kd, (gulong) cdev2priv(&si), (char *) &priv, ++ sizeof (priv)) ++#else + kvm_read (server->machine.kd, (gulong) si.si_priv, (char *) &priv, +- sizeof (priv)) != sizeof (priv)) ++ sizeof (priv)) ++#endif ++ != sizeof (priv)) + { + glibtop_warn_io_r (server, "kvm_read (si)"); + return; --- libgtop.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: