From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Aug 31 16:00:37 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C35FE16A4C1 for ; Sun, 31 Aug 2003 16:00:37 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 833DD43FFD for ; Sun, 31 Aug 2003 16:00:35 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h7VN0ZUp040235 for ; Sun, 31 Aug 2003 16:00:35 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h7VN0ZXv040234; Sun, 31 Aug 2003 16:00:35 -0700 (PDT) Resent-Date: Sun, 31 Aug 2003 16:00:35 -0700 (PDT) Resent-Message-Id: <200308312300.h7VN0ZXv040234@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, Clement Laforet Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE8BA16A4BF for ; Sun, 31 Aug 2003 15:58:54 -0700 (PDT) Received: from cultdeadsheep.org (charon.cultdeadsheep.org [80.65.226.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5342243FEC for ; Sun, 31 Aug 2003 15:58:52 -0700 (PDT) (envelope-from sheepkiller@cultdeadsheep.org) Received: (qmail 14241 invoked from network); 31 Aug 2003 22:58:51 -0000 Received: from unknown (HELO lucifer.cultdeadsheep.org) (192.168.0.2) by goofy.cultdeadsheep.org with SMTP; 31 Aug 2003 22:58:51 -0000 Received: by lucifer.cultdeadsheep.org (sSMTP sendmail emulation); Mon, 1 Sep 2003 00:57:54 +0200 Message-Id: <20030831225852.5342243FEC@mx1.FreeBSD.org> Date: Mon, 1 Sep 2003 00:57:54 +0200 From: Clement Laforet To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: Clement Laforet Subject: ports/56252: [patch] databases/mysql{323,40,41}-server: fix possible infinite loop if USE_MYSQL is accidently defined X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Clement Laforet List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Aug 2003 23:00:38 -0000 >Number: 56252 >Category: ports >Synopsis: [patch] databases/mysql{323,40,41}-server: fix possible infinite loop if USE_MYSQL is accidently defined >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Aug 31 16:00:35 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Clement Laforet >Release: FreeBSD 5.1-CURRENT i386 >Organization: cotds.org >Environment: System: FreeBSD lucifer.cultdeadsheep.org 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Sun Aug 24 15:37:26 CEST 2003 root@lucifer.cultdeadsheep.org:/usr/obj/usr/src/sys/LUCIFER i386 >Description: When USE_MYSQL is defined out of a port, it can cause infinite loop. These patches (read "copy and paste"), obtained from openldap and gmake ports, avoid infinite loops which can kill your system. >How-To-Repeat: On a fresh system: # cd /usr/ports/devel/libtool13 # echo "USE_MYSQL=I_wanna_see_my_freebsd_box_out_of_memory" >> /etc/make.conf # make all-depends-list Wait a couple of minutes until all your memory is exhausted. >Fix: mysql323-server ------------------------------- --- mysql323-server/Makefile.orig Mon Sep 1 00:27:54 2003 +++ mysql323-server/Makefile Mon Sep 1 00:28:11 2003 @@ -39,6 +39,10 @@ --program-prefix='' \ --with-innodb +.ifdef USE_MYSQL +.error You have `USE_MYSQL' variable defined either in environment or in make(1) arguments. Please undefine and try again. +.endif + .include .if ${MACHINE_ARCH} == "i386" mysql40-server ------------------------------- --- mysql40-server/Makefile.orig Mon Sep 1 00:33:32 2003 +++ mysql40-server/Makefile Mon Sep 1 00:33:40 2003 @@ -46,6 +46,10 @@ --with-comment='FreeBSD port: ${PKGNAME}' \ --enable-thread-safe-client +.ifdef USE_MYSQL +.error You have `USE_MYSQL' variable defined either in environment or in make(1) arguments. Please undefine and try again. +.endif + .include .if ${MACHINE_ARCH} == "i386" mysql41-server ------------------------------- --- mysql41-server/Makefile.orig Mon Sep 1 00:24:47 2003 +++ mysql41-server/Makefile Mon Sep 1 00:26:31 2003 @@ -48,6 +48,10 @@ --with-comment='FreeBSD port: ${PKGNAME}' \ --enable-thread-safe-client +.ifdef USE_MYSQL +.error You have `USE_MYSQL' variable defined either in environment or in make(1) arguments. Please undefine and try again. +.endif + .include .if ${MACHINE_ARCH} == "i386" >Release-Note: >Audit-Trail: >Unformatted: