Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 May 1999 19:07:31 +0300 (EEST)
From:      martti.kuparinen@ericsson.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/11466: [PATCH] ports/lang/jdk-tutorial fails in "make clean" !!!
Message-ID:  <199905031607.TAA08446@ws125.research.zopps.fi>

next in thread | raw e-mail | index | archive | help

>Number:         11466
>Category:       ports
>Synopsis:       "make clean" will fail in /usr/ports/lang/jdk-tutorial/
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May  3 09:30:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Martti Kuparinen
>Release:        FreeBSD 3.1-STABLE i386
>Organization:
Oy L M Ericsson Ab
>Environment:

	

>Description:

The Makefile I submitted originally has been modified. The current version
will fail if one executes more than once "make clean" as the file to be
removed does not exist.

As 3.2-RELEASE is going to be published very soon, this must be fixed
as soon as possible or the /usr/ports tree will fail in "make clean" !!!

>How-To-Repeat:

# /usr/ports/lang/jdk-tutorial
# make clean
# make clean
rm: /usr/ports/lang/jdk-tutorial/pkg/MESSAGE: No such file or directory
*** Error code 1

Stop.

>Fix:

*** Makefile.orig	Mon May  3 18:28:04 1999
--- Makefile	Mon May  3 18:51:30 1999
***************
*** 19,34 ****
  
  .include <bsd.port.pre.mk>
  
  do-install:
  	${MKDIR} ${PREFIX}/jdk1.1.7/docs/books/tutorial
  	(cd ${WRKSRC} && ${TAR} -cf - * ) \
  		| (cd ${PREFIX}/jdk1.1.7/docs/books/tutorial && ${TAR} -xf -)
  
  post-install:
- 	@${SED} s+!!PREFIX!!+${PREFIX}+g < ${PKGDIR}/MESSAGE.tmpl > ${PKGDIR}/MESSAGE
  	@${CAT} ${PKGDIR}/MESSAGE
  
  pre-clean:
! 	@${RM} ${PKGDIR}/MESSAGE
  
  .include <bsd.port.mk>
--- 19,36 ----
  
  .include <bsd.port.pre.mk>
  
+ do-configure:
+ 	@${SED} s+!!PREFIX!!+${PREFIX}+g < ${PKGDIR}/MESSAGE.tmpl > ${PKGDIR}/MESSAGE
+ 
  do-install:
  	${MKDIR} ${PREFIX}/jdk1.1.7/docs/books/tutorial
  	(cd ${WRKSRC} && ${TAR} -cf - * ) \
  		| (cd ${PREFIX}/jdk1.1.7/docs/books/tutorial && ${TAR} -xf -)
  
  post-install:
  	@${CAT} ${PKGDIR}/MESSAGE
  
  pre-clean:
! 	@${RM} -f ${PKGDIR}/MESSAGE
  
  .include <bsd.port.mk>

>Release-Note:
>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?199905031607.TAA08446>