Date: Mon, 30 Nov 1998 17:55:44 +0100 From: Dirk Froemberg <ibex@physik.TU-Berlin.DE> To: Satoshi Asami <asami@cs.berkeley.edu> Cc: ports@FreeBSD.ORG Subject: Re: mysql and ps Message-ID: <19981130175544.A13831@physik.TU-Berlin.DE> In-Reply-To: <199811300942.BAA11152@silvia.hip.berkeley.edu>; from Satoshi Asami on Mon, Nov 30, 1998 at 01:42:17AM -0800 References: <199811300942.BAA11152@silvia.hip.berkeley.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
--YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=us-ascii Hi Satoshi! On Mon, Nov 30, 1998 at 01:42:17AM -0800, Satoshi Asami wrote: > The mysql configure script trys to run "ps" to determine what > operating system it is running. Huh? This would be very strange... 8) I think you are referring to line 1900+ in configure. ps is called to find out what flags to use to find a specific pid. > Unfortunately, this causes quite a > few problems when trying to build ports in a chrooted environment. Ok, I changed the ports Makefile and the mysql configure script (patch-ag). Hopefully ps isn't called during a PACKAGE_BUILDING any more. > Besides, I don't think it's a very smart thing to do anyway. Is it > possible to patch it to use some of the more standard methods (like > calling "uname") to find out what it wants? Indeed! Best regards Dirk -- e-mail: ibex@physik.tu-berlin.de --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=Makefile # ports collection makefile for: mySQL # Version required: v3.21.33b # Date created: 26 Jan 1998 # Whom: Josh Tiefenbach <josh@ican.net> # # $Id: Makefile,v 1.29 1998/10/16 01:08:07 jseger Exp $ # DISTNAME= mysql-3.21.33b PKGNAME= mysql-3.21.33 CATEGORIES= databases MASTER_SITES= http://www.buoy.com/mysql/Downloads/MySQL-3.21/ \ http://mysql.polaris.ca/Downloads/MySQL-3.21/ \ http://www.fh-wolfenbuettel.de/ftp/pub/database/mysql/Downloads/MySQL-3.21/ \ http://www.tcx.se/Downloads/MySQL-3.21/ MAINTAINER= ibex@physik.TU-Berlin.DE MAN1= mysql.1 USE_PERL5= YES GNU_CONFIGURE= YES CONFIGURE_ARGS= --localstatedir=/var/db/mysql \ --without-perl \ --without-debug \ --without-readline \ --without-bench CONFIGURE_ENV+= PERL=${PERL5} \ PERL5=${PERL5} \ INSTALL_SCRIPT="${INSTALL_SCRIPT}" pre-install: .if !defined(PACKAGE_BUILDING) @ ${SETENV} ${MAKE_ENV} ${PERL5} ${SCRIPTDIR}/check_old_version .endif post-install: ${MKDIR} ${PREFIX}/share/mysql/mysql ${CP} ${WRKSRC}/data/mysql/*.frm ${PREFIX}/share/mysql/mysql .if !defined(PACKAGE_BUILDING) ${PREFIX}/bin/mysql_install_db @ /usr/bin/killall mysqld .endif @ ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/mysql.sh @ ${ECHO} "#" >> ${PREFIX}/etc/rc.d/mysql.sh @ ${ECHO} "" >> ${PREFIX}/etc/rc.d/mysql.sh @ ${ECHO} "if [ -x ${PREFIX}/bin/safe_mysqld ]" >> ${PREFIX}/etc/rc.d/mysql.sh @ ${ECHO} "then" >> ${PREFIX}/etc/rc.d/mysql.sh @ ${ECHO} " ${PREFIX}/bin/safe_mysqld > /dev/null & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql.sh @ ${ECHO} "fi" >> ${PREFIX}/etc/rc.d/mysql.sh @ /bin/chmod 750 ${PREFIX}/etc/rc.d/mysql.sh .if !defined(NOPORTDOCS) ${MKDIR} ${PREFIX}/share/doc/mysql .for doc in manual.html manual.ps manual_toc.html manual.txt manual.texi include.texi ${INSTALL_DATA} ${WRKSRC}/Docs/${doc} ${PREFIX}/share/doc/mysql .endfor @if [ ! -f ${PREFIX}/info/dir -a -f /usr/share/info/dir ]; then \ ${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \ fi ${INSTALL_DATA} ${WRKSRC}/Docs/mysql.info ${PREFIX}/info @install-info ${PREFIX}/info/mysql.info ${PREFIX}/info/dir .endif .include <bsd.port.mk> --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch-ag --- configure.orig Sat Sep 5 12:10:39 1998 +++ configure Mon Nov 30 16:51:26 1998 @@ -1900,22 +1900,7 @@ echo $ac_n "checking "how to find mysqld"""... $ac_c" 1>&6 echo "configure:1902: checking "how to find mysqld"" >&5 PS=$ac_cv_path_PS -if $PS -p $$ 2> /dev/null | grep $0 > /dev/null -then - FIND_PROC="$PS -p \$\$PID | grep mysqld > /dev/null" -elif $PS $$ 2> /dev/null | grep $0 > /dev/null -then - FIND_PROC="$PS \$\$PID | grep mysqld > /dev/null" -elif $PS -uaxww 2> /dev/null | grep $0 > /dev/null -then - FIND_PROC="$PS -uaxww | grep mysqld | grep \" \$\$PID \" > /dev/null" -elif $PS -ef 2> /dev/null | grep $0 > /dev/null -then - FIND_PROC="$PS -ef | grep mysqld | grep \" \$\$PID \" > /dev/null" -else - { echo "configure: error: Could not find the right ps switches. Which OS is this ?. See the Installation chapter in the Reference Manual." 1>&2; exit 1; } -fi - +FIND_PROC="$PS -uaxww | grep mysqld | grep \" \$\$PID \" > /dev/null" echo "$ac_t"""$FIND_PROC"" 1>&6 # Check if a pid is valid @@ -3061,7 +3046,7 @@ echo "configure:3062: checking "named thread libs:"" >&5 if test "$with_named_thread" != "no" then - LIBS="$LIBS $with_named_thread" + LIBS="-pthread $LIBS" with_posix_threads="yes" with_mit_threads="no" echo "$ac_t"""$with_named_thread"" 1>&6 --YZ5djTAD1cGYuMQK-- 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?19981130175544.A13831>