Bug 176873 - net/openldap24-server: "Makefile", line 36: Unassociated shell command "-rpath $(PREFIX)/libexec/openldap -module -o $@ $? $(LIBS)"
Summary: net/openldap24-server: "Makefile", line 36: Unassociated shell command "-rpat...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Xin LI
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-12 09:40 UTC by O. Hartmann
Modified: 2013-03-14 18:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2013-03-12 09:40:03 UTC
TUpdating and installation of port net/openldap24-server fails withn the following shown error:

[...]

  Entering subdirectory man8
PAGES=`cd .; echo *.8`;  for page in $PAGES; do  sed -e "s%LDVERSION%2.4.34%"  -e 's%ETCDIR%/usr/local/etc/openldap%g'  -e 's%LOCALSTATEDIR%/var/db%'  -e 's%SYSCONFDIR%/usr/local/etc/openldap%'  -e 's%DATADIR%/usr/local/share/openldap%'  -e 's%SBINDIR%/usr/local/sbin%'  -e 's%BINDIR%/usr/local/bin%'  -e 's%LIBDIR%/usr/local/lib%'  -e 's%LIBEXECDIR%/usr/local/libexec%'  -e 's%MODULEDIR%/usr/local/libexec/openldap%'  -e 's%RELEASEDATE%2013/03/01%'  ./$page  | (cd .; soelim -) > $page.tmp;  done
 
 
 
"Makefile", line 36: Unassociated shell command "-rpath $(PREFIX)/libexec/openldap -module -o $@ $? $(LIBS)"
make: fatal errors encountered -- cannot continue
*** [post-build] Error code 1

Stop in /usr/ports/net/openldap24-server.
*** [build] Error code 1

Stop in /usr/ports/net/openldap24-server.

===>>> make failed for net/openldap24-server
===>>> Aborting update

===>>> Update for net/openldap24-server failed
===>>> Aborting update

Terminated

How-To-Repeat: Update or install recent port's net/openldap24-server

(Last Changed Rev: 313955
Last Changed Date: 2013-03-12 09:07:01 +0100 (Tue, 12 Mar 2013))
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-03-12 09:40:16 UTC
Responsible Changed
From-To: freebsd-ports-bugs->delphij

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Xin LI freebsd_committer freebsd_triage 2013-03-13 17:42:34 UTC
State Changed
From-To: open->feedback

Can not reproduce.  My pre-commit test was done on CURRENT 
system and have re-checked on a 9-STABLE system. 

My guess is that there are some environmental configurations 
that are different.  Please provide more information, thanks 
in advance!
Comment 3 geoffroy desvernay 2013-03-14 17:20:33 UTC
Same problem here, on all the machines I tested (including with
poudriere in a clean environment), all 9.1-RELEASE or 9.1-STABLE amd64
with PKGNG (but compilation fails before packaging)

make.conf differs totally between machines (one has only "WITHOUT_X11=yes")

The problem disappears i when I remove option 'SMBPWD'

The line 36 matching is:
work/openldap-2.4.34/contrib/slapd-modules/smbk5pwd/Makefile

Sorry, I don't have time to go further today...

Hope this helps
-- 
*geoffroy desvernay*
C.R.I - Administration systèmes et réseaux
Ecole Centrale de Marseille

Comment 4 dfilter service freebsd_committer freebsd_triage 2013-03-14 18:01:09 UTC
Author: delphij
Date: Thu Mar 14 18:00:57 2013
New Revision: 314173
URL: http://svnweb.freebsd.org/changeset/ports/314173

Log:
   - Fix build when SMBPASSWD is checked [1];
   - Use OPTIONSFILE?= instead of OPTIONSFILE= [2].
  
  PR:		ports/176873 [1]
  Submitted by:	"A.J. Kehoe IV (Nanoman)" <nanoman nanoman ca> [2]

Modified:
  head/net/openldap24-server/Makefile
  head/net/openldap24-server/files/patch-smbk5pwd-Makefile

Modified: head/net/openldap24-server/Makefile
==============================================================================
--- head/net/openldap24-server/Makefile	Thu Mar 14 17:18:04 2013	(r314172)
+++ head/net/openldap24-server/Makefile	Thu Mar 14 18:00:57 2013	(r314173)
@@ -29,7 +29,7 @@ CONFLICTS=		${PKGNAMEPREFIX}${PORTNAME}-
 .else
 PKGNAMESUFFIX?=		-server
 # Do not use ${PKGNAMESUFFIX} here has it can change later
-OPTIONSFILE=		${PORT_DBDIR}/${PORTNAME}24-server/options
+OPTIONSFILE?=		${PORT_DBDIR}/${PORTNAME}24-server/options
 .endif
 EXTRACT_SUFX=		.tgz
 

Modified: head/net/openldap24-server/files/patch-smbk5pwd-Makefile
==============================================================================
--- head/net/openldap24-server/files/patch-smbk5pwd-Makefile	Thu Mar 14 17:18:04 2013	(r314172)
+++ head/net/openldap24-server/files/patch-smbk5pwd-Makefile	Thu Mar 14 18:00:57 2013	(r314173)
@@ -1,6 +1,6 @@
 --- contrib/slapd-modules/smbk5pwd/Makefile.orig	2013-03-03 13:17:30.000000000 -0800
-+++ contrib/slapd-modules/smbk5pwd/Makefile	2013-03-11 15:58:44.155103784 -0700
-@@ -24,17 +24,16 @@
++++ contrib/slapd-modules/smbk5pwd/Makefile	2013-03-14 10:54:56.917578861 -0700
+@@ -24,13 +24,12 @@
  HEIMDAL_INC = -I/usr/heimdal/include
  HEIMDAL_LIB = -L/usr/heimdal/lib -lkrb5 -lkadm5srv
  
@@ -15,8 +15,3 @@
  
  PROGRAMS = smbk5pwd.la
  LTVER = 0:0:0
--
-+	-rpath $(PREFIX)/libexec/openldap -module -o $@ $? $(LIBS)
- prefix=/usr/local
- exec_prefix=$(prefix)
- ldap_subdir=/openldap
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 5 Xin LI freebsd_committer freebsd_triage 2013-03-14 18:01:42 UTC
State Changed
From-To: feedback->closed

A fix have been committed.