Date: Fri, 27 Jun 2003 18:56:47 +0000 (UTC) From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net> To: ports@freebsd.org Cc: "Bjoern A. Zeeb" <bzeeb+freebsdports@zabbadoz.net> Subject: Problem with _COOKIES and PKGNAMESUFFIX Message-ID: <Pine.BSF.4.53.0306271840020.66229@e0-0.zab2.int.zabbadoz.net>
next in thread | raw e-mail | index | archive | help
Hi, I am doing following at the moment: --- extract from Makefile --- ... USE_SUBMAKE= yes ... .if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc) .include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc" .endif pre-everything:: @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.${PORTNAME} ... --- end --- the script may set a PKGNAMESUFFIX=-icu in Makefile.inc. When I do a make and the configure script decides to set the PKGNAMESUFFIX the *-message: targets write out the correct name: textproc/xalan-c> make configure ... ===> Extracting for xalan-c-icu-1.5.0 ... ===> Patching for xalan-c-icu-1.5.0 ... ===> Configuring for xalan-c-icu-1.5.0 ... but the COOKIE files that get written are: -rw-r--r-- 1 bz staff 0 Jun 27 18:31 .configure_done.xalan-c-1.5.0 -rw-r--r-- 1 bz staff 0 Jun 27 18:31 .extract_done.xalan-c-1.5.0 -rw-r--r-- 1 bz staff 0 Jun 27 18:31 .patch_done.xalan-c-1.5.0 No PKGNAMESUFFIX of -icu in there. So everything still builds fine if I do a simple `make` but if I afterwards do a su and a make install it will not find a .extract_done.xalan-c-icu-1.5.0 and start extracting, patching, configuring and building again but as root. Is this a problem because _COOKIEs get defined with ?= ... EXTRACT_COOKIE?= ${WRKDIR}/.extract_done.${PKGNAME} ... and thus do not get re-defined if USE_SUBMAKE is used ? -- Greetings Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT 56 69 73 69 74 http://www.zabbadoz.net/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.53.0306271840020.66229>