Date: Mon, 22 Jun 1998 22:54:03 -0400 (EDT) From: root@rtfm.ziplink.net To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: ports/7026: perl-port did not build on -current :-( Message-ID: <199806230254.WAA10808@rtfm.ziplink.net>
next in thread | raw e-mail | index | archive | help
>Number: 7026 >Category: ports >Synopsis: corrections to the perl5 port >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 22 20:00:00 PDT 1998 >Last-Modified: >Originator: Mikhail Teterin >Organization: Virtual Estates, Inc. >Release: FreeBSD 3.0-CURRENT i386 >Environment: Fairly recent current. gcc28 >Description: 1. The port ignores local settings for CC and CFLAGS 2. doio.c needs patching to behave like it does on Linux >How-To-Repeat: >Fix: All of the perl's tests passed with this corrections. CFLAGS were "-O2 -mno-486 -mpentium -fexpensive-optimizations -pipe -fomit-frame-pointer -DNDEBUG". This patch makes port obey local settings: --- Makefile.orig Sun Feb 15 18:03:58 1998 +++ Makefile Mon Jun 22 22:41:48 1998 @@ -18,3 +18,3 @@ CONFIGURE_SCRIPT= Configure -CONFIGURE_ARGS= -sde -Dprefix=${PREFIX} +CONFIGURE_ARGS= -sde -Doptimize="${CFLAGS}" -Dcc="${CC}" -Dprefix="${PREFIX}" This patch fixes doio.c . The Perl people are aware of this problem (see their XXX-comments), so it will likely go away with the next release of Perl. --- doio.c.orig Mon Jul 28 21:08:11 1997 +++ doio.c Mon Jun 22 22:18:41 1998 @@ -1333,7 +1333,7 @@ char *a; I32 id, n, cmd, infosize, getinfo; I32 ret = -1; -#ifdef __linux__ /* XXX Need metaconfig test */ +#if defined(__linux__) || defined(__FreeBSD__) /* XXX Need metaconfig test */ union semun unsemds; #endif @@ -1365,7 +1365,7 @@ else if (cmd == GETALL || cmd == SETALL) { struct semid_ds semds; -#ifdef __linux__ /* XXX Need metaconfig test */ +#if defined(__linux__) || defined(__FreeBSD__) /* XXX Need metaconfig test */ /* linux (and Solaris2?) uses : int semctl (int semid, int semnum, int cmd, union semun arg) union semun { @@ -1425,7 +1425,7 @@ #endif #ifdef HAS_SEM case OP_SEMCTL: -#ifdef __linux__ /* XXX Need metaconfig test */ +#if defined(__linux__) || defined(__FreeBSD__) /* XXX Need metaconfig test */ unsemds.buf = (struct semid_ds *)a; ret = semctl(id, n, cmd, unsemds); #else >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806230254.WAA10808>