Date: Mon, 27 Jan 2003 17:16:04 +0100 (CET) From: Oliver Lehmann <lehmann@ans-netz.de> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Oliver Lehmann <lehmann@ans-netz.de> Subject: ports/47553: update-port: sysutils/and (bento-fix) Message-ID: <200301271616.h0RGG46R078632@kartoffel.salatschuessel.net>
next in thread | raw e-mail | index | archive | help
>Number: 47553 >Category: ports >Synopsis: update-port: sysutils/and (bento-fix) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Jan 27 08:20:02 PST 2003 >Closed-Date: >Last-Modified: >Originator: Oliver Lehmann >Release: FreeBSD 4.7-STABLE i386 >Organization: >Environment: System: FreeBSD kartoffel.salatschuessel.net 4.7-STABLE FreeBSD 4.7-STABLE #2: Mon Jan 13 08:18:55 CET 2003 olivleh1@kartoffel.salatschuessel.net:/usr/obj/usr/src/sys/KARTOFFEL i386 >Description: The osreldat 50014 lacks a digit. Thats why the port is broken under 4. >How-To-Repeat: >Fix: --- and.patch begins here --- diff -ruN and.old/files/patch-and-OpenBSD.c and/files/patch-and-OpenBSD.c --- and.old/files/patch-and-OpenBSD.c Mon Jan 27 15:41:31 2003 +++ and/files/patch-and-OpenBSD.c Mon Jan 27 15:41:42 2003 @@ -4,13 +4,13 @@ abort(); } if (openbsd_next >= openbsd_nproc) return NULL; -+#if defined(__FreeBSD__) && __FreeBSD_version >= 50014 ++#if defined(__FreeBSD__) && __FreeBSD_version >= 500014 + strncpy(openbsd_proc.command,openbsd_pt[openbsd_next].ki_comm,1023); +#else strncpy(openbsd_proc.command,openbsd_pt[openbsd_next].kp_proc.p_comm,1023); +#endif openbsd_proc.command[1023] = 0; -+#if defined(__FreeBSD__) && __FreeBSD_version >= 50014 ++#if defined(__FreeBSD__) && __FreeBSD_version >= 500014 + openbsd_proc.pid = openbsd_pt[openbsd_next].ki_pid; + openbsd_proc.nice = openbsd_pt[openbsd_next].ki_nice-20; + openbsd_proc.uid = openbsd_pt[openbsd_next].ki_ruid; @@ -22,7 +22,7 @@ openbsd_proc.gid = openbsd_pt[openbsd_next].kp_eproc.e_pcred.p_rgid; +#endif /* Adapted from top(1) port, as found in the misc@openbsd.org archive */ -+#if defined(__FreeBSD__) && __FreeBSD_version >= 50014 ++#if defined(__FreeBSD__) && __FreeBSD_version >= 500014 + /* XXX: Accessing ki_paddr causes sig10 ... + openbsd_proc.utime = (openbsd_pt[openbsd_next].ki_paddr->p_uticks + + openbsd_pt[openbsd_next].ki_paddr->p_sticks + --- and.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301271616.h0RGG46R078632>