Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Apr 2010 15:30:22 +0200 (CEST)
From:      "Walter C. Pelissero" <walter.pelissero@iesy.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/145700: editors/semi doesn't compile
Message-ID:  <201004141330.o3EDUMSR014912@zaphod.home.loc>
Resent-Message-ID: <201004141340.o3EDe2sh024939@freefall.freebsd.org>

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

>Number:         145700
>Category:       ports
>Synopsis:       editors/semi doesn't compile
>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:   Wed Apr 14 13:40:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Walter C. Pelissero
>Release:        FreeBSD 7.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD zaphod.home.loc 7.3-STABLE FreeBSD 7.3-STABLE #0: Fri Apr 9 23:37:02 CEST 2010 root@zaphod.home.loc:/usr/home/obj/usr/src/sys/TYAN-TIGER-MP i386


	
>Description:
	If the obj directory is different from /usr/ports editors/sine
	can't compile, because the make process expects the Makefile in
	the same directory.
>How-To-Repeat:
	cd /usr/ports/editors/semi
	setenv WRKDIRPREFIX /some/directory/other/than/usr/ports
	make
>Fix:

	Apply the following patch:

--- Makefile	2010-03-28 08:34:08.000000000 +0200
+++ /tmp/Makefile	2010-04-14 15:02:38.000000000 +0200
@@ -74,35 +74,35 @@
 
 pre-build:
 .if defined(EMACS_PACKAGESDIR) && defined(XEMACS_PKGNAME)
-	@${MAKE} pkg-el-copy
+	cd ${MASTERDIR}; ${MAKE} pkg-el-copy
 .endif
 
 post-build:
 .if defined(BUILD_INFO_BY_EMACS) && (${BUILD_INFO_BY_EMACS} == "YES")
-	@${MAKE} info-build-by-emacs
+	cd ${MASTERDIR}; ${MAKE} info-build-by-emacs
 .else
-	@${MAKE} info-build
+	cd ${MASTERDIR}; ${MAKE} info-build
 .endif
 
 pre-install:
 .if defined(EMACS_PACKAGESDIR) && defined(EMACS_PACKAGES_SUBDIRS)
-	@${MAKE} mkdir-site-packages
+	cd ${MASTERDIR}; ${MAKE} mkdir-site-packages
 .endif
 .if defined(EMACS_PACKAGESDIR) && defined(XEMACS_PKGNAME)
-	@${MAKE} pkg-el-install
+	cd ${MASTERDIR}; ${MAKE} pkg-el-install
 .endif
 
 post-install:
 	@${MKDIR} ${LOCALBASE}/share/semi
 	@${TOUCH} ${LOCALBASE}/share/semi/${SEMI_COOKIE}
 .if defined(EMACS_PACKAGESDIR) && defined(MANIFEST)
-	@${MAKE} info-package-install
-	@${MAKE} manifest-install
+	cd ${MASTERDIR}; ${MAKE} info-package-install
+	cd ${MASTERDIR}; ${MAKE} manifest-install
 .else
-	@${MAKE} info-install
+	cd ${MASTERDIR}; ${MAKE} info-install
 .endif
 .if !defined(NOPORTDOCS)
-	@${MAKE} doc-install
+	cd ${MASTERDIR}; ${MAKE} doc-install
 .endif
 
 ###############################################################################
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004141330.o3EDUMSR014912>