[115680] trunk/dports/sysutils/freeradius

ryandesign at macports.org ryandesign at macports.org
Wed Jan 8 12:01:18 PST 2014


Revision: 115680
          https://trac.macports.org/changeset/115680
Author:   ryandesign at macports.org
Date:     2014-01-08 12:01:18 -0800 (Wed, 08 Jan 2014)
Log Message:
-----------
freeradius: fix build error "unable to infer tagged configuration" when the compiler used to build libtool is not the same compiler being used to build freeradius

Modified Paths:
--------------
    trunk/dports/sysutils/freeradius/Portfile

Added Paths:
-----------
    trunk/dports/sysutils/freeradius/files/patch-libtool.diff

Modified: trunk/dports/sysutils/freeradius/Portfile
===================================================================
--- trunk/dports/sysutils/freeradius/Portfile	2014-01-08 19:41:27 UTC (rev 115679)
+++ trunk/dports/sysutils/freeradius/Portfile	2014-01-08 20:01:18 UTC (rev 115680)
@@ -36,7 +36,8 @@
                         port:unixODBC \
                         port:gdbm
 
-patchfiles              patch-configure.in.diff
+patchfiles              patch-configure.in.diff \
+                        patch-libtool.diff
 
 use_autoconf            yes
 

Added: trunk/dports/sysutils/freeradius/files/patch-libtool.diff
===================================================================
--- trunk/dports/sysutils/freeradius/files/patch-libtool.diff	                        (rev 0)
+++ trunk/dports/sysutils/freeradius/files/patch-libtool.diff	2014-01-08 20:01:18 UTC (rev 115680)
@@ -0,0 +1,227 @@
+--- src/lib/Makefile.orig	2010-05-24 00:40:58.000000000 -0500
++++ src/lib/Makefile	2014-01-08 13:54:41.000000000 -0600
+@@ -35,13 +35,13 @@
+ 
+ # Define new rule for libtool objects
+ %.lo : %.c
+-	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $<
++	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) -c $<
+ 
+ .PHONY: all clean install reconfig
+ all: $(TARGET).la
+ 
+ $(TARGET).la: $(LT_OBJS)
+-	$(LIBTOOL) --mode=link $(CC) -release $(RADIUSD_VERSION) \
++	$(LIBTOOL) --mode=link --tag=CC $(CC) -release $(RADIUSD_VERSION) \
+ 	$(LDFLAGS) $(LINK_MODE) -o $@ -rpath $(libdir) $^
+ 
+ $(LT_OBJS): $(INCLUDES)
+--- src/main/Makefile.in.orig	2010-05-24 00:40:58.000000000 -0500
++++ src/main/Makefile.in	2014-01-08 13:54:41.000000000 -0600
+@@ -64,72 +64,72 @@
+ $(SERVER_OBJS): $(INCLUDES)
+ 
+ radiusd: $(SERVER_OBJS) $(MODULE_OBJS) $(LIBRADIUS)
+-	$(LIBTOOL) --mode=link $(CC) -export-dynamic -dlopen self \
++	$(LIBTOOL) --mode=link --tag=CC $(CC) -export-dynamic -dlopen self \
+ 		$(LDFLAGS) $(LINK_MODE) -o $@ $(SERVER_OBJS)      \
+ 		$(MODULE_LIBS) $(LIBRADIUS) $(LIBS) $(SNMP_LIBS) \
+ 		$(LCRYPT) $(PTHREADLIB) $(LIBLTDL) $(OPENSSL_LIBS)
+ 
+ radiusd.lo: radiusd.c  ../include/modules.h ../include/modcall.h ../include/modpriv.h
+-	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c radiusd.c
++	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) -c radiusd.c
+ 
+ %.lo: %.c
+-	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS)  -c $<
++	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS)  -c $<
+ 
+ acct.lo: acct.c ../include/modules.h
+-	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c acct.c
++	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) -c acct.c
+ 
+ auth.lo: auth.c ../include/modules.h
+-	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c auth.c
++	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) -c auth.c
+ 
+ client.lo: client.c ../include/conffile.h
+-	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c client.c
++	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) -c client.c
+ 
+ conffile.lo: conffile.c ../include/conffile.h ../include/modules.h
+-	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c conffile.c
++	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) -c conffile.c
+ 
+ mainconfig.lo: mainconfig.c ../include/modules.h
+-	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c mainconfig.c
++	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) -c mainconfig.c
+ 
+ modcall.lo: modcall.c
+-	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(INCLTDL) -c modcall.c
++	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) $(INCLTDL) -c modcall.c
+ 
+ modules.lo: modules.c ../include/modules.h
+-	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(VFLAGS) $(INCLTDL) -c modules.c
++	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) $(VFLAGS) $(INCLTDL) -c modules.c
+ 
+ session.lo: session.c ../include/modules.h
+-	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c session.c
++	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) -c session.c
+ 
+ # It's #include'd for simplicity.  This should be fixed...
+ listen.lo: listen.c dhcpd.c command.c
+-	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(INCLTDL) -c listen.c
++	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) $(INCLTDL) -c listen.c
+ 
+ #
+ # Helper programs
+ #
+ 
+ radclient.lo: radclient.c $(INCLUDES)
+-	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c radclient.c
++	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) -c radclient.c
+ 
+ radclient: radclient.lo $(LIBRADIUS)
+-	$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LINK_MODE) -o radclient radclient.lo $(LIBRADIUS) $(LIBS)
++	$(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) $(LINK_MODE) -o radclient radclient.lo $(LIBRADIUS) $(LIBS)
+ 
+ radsniff.lo: radsniff.c $(INCLUDES) ../include/radsniff.h
+-	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c radsniff.c
++	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) -c radsniff.c
+ 
+ radsniff: radsniff.lo $(LIBRADIUS)
+-	$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LINK_MODE) -o radsniff radsniff.lo $(LIBRADIUS) $(LIBS) $(PCAP_LIBS)
++	$(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) $(LINK_MODE) -o radsniff radsniff.lo $(LIBRADIUS) $(LIBS) $(PCAP_LIBS)
+ 
+ radwho.lo: radwho.c $(INCLUDES)
+-	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c radwho.c
++	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) -c radwho.c
+ 
+ radwho: radwho.lo util.lo log.lo conffile.lo $(LIBRADIUS)
+-	$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LINK_MODE) -o radwho radwho.lo util.lo log.lo conffile.lo $(LIBRADIUS) $(LIBS)
++	$(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) $(LINK_MODE) -o radwho radwho.lo util.lo log.lo conffile.lo $(LIBRADIUS) $(LIBS)
+ 
+ radmin: radmin.lo $(LIBRADIUS) util.lo log.lo conffile.lo
+-	$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LINK_MODE) -o $@ $^ $(LIBREADLINE) $(LIBS)
++	$(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) $(LINK_MODE) -o $@ $^ $(LIBREADLINE) $(LIBS)
+ 
+ radconf2xml: radconf2xml.lo $(LIBRADIUS) util.lo log.lo conffile.lo
+-	$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LINK_MODE) -o $@ $^ $(LIBS)
++	$(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) $(LINK_MODE) -o $@ $^ $(LIBS)
+ 
+ clean:
+ 	rm -rf *.o *.so *.lo *~ $(BINARIES) .libs
+--- src/modules/rlm_dbm/Makefile.in.orig	2010-05-24 00:40:58.000000000 -0500
++++ src/modules/rlm_dbm/Makefile.in	2014-01-08 13:54:41.000000000 -0600
+@@ -13,11 +13,11 @@
+ include ../rules.mak
+ 
+ rlm_dbm_parser: rlm_dbm_parser.lo $(LIBRADIUS)
+-	$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(RLM_LDFLAGS) \
++	$(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) $(RLM_LDFLAGS) \
+ 		-o $@ $^ $(RLM_LIBS) $(LIBS)
+ 
+ rlm_dbm_cat: rlm_dbm_cat.lo $(LIBRADIUS)
+-	$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(RLM_LDFLAGS) \
++	$(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) $(RLM_LDFLAGS) \
+ 		-o $@ $^ $(RLM_LIBS) $(LIBS)
+ 
+ #
+--- src/modules/rlm_eap/Makefile.in.orig	2010-05-24 00:40:58.000000000 -0500
++++ src/modules/rlm_eap/Makefile.in	2014-01-08 13:54:41.000000000 -0600
+@@ -30,10 +30,10 @@
+ $(LT_OBJS): $(HEADERS)
+ 
+ radeapclient: radeapclient.lo $(CLIENTLIBS)
+-	$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(RLM_LDFLAGS) -o radeapclient radeapclient.lo $(CLIENTLIBS) $(LIBS) $(OPENSSL_LIBS)
++	$(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) $(RLM_LDFLAGS) -o radeapclient radeapclient.lo $(CLIENTLIBS) $(LIBS) $(OPENSSL_LIBS)
+ 
+ radeapclient.lo: radeapclient.c $(HEADERS)
+-	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(RLM_CFLAGS) -c radeapclient.c
++	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) $(RLM_CFLAGS) -c radeapclient.c
+ 
+ install-subdirs:
+ 	@$(MAKE) $(MFLAGS) WHAT_TO_MAKE=install common
+--- src/modules/rlm_eap/libeap/Makefile.orig	2010-05-24 00:40:58.000000000 -0500
++++ src/modules/rlm_eap/libeap/Makefile	2014-01-08 13:54:41.000000000 -0600
+@@ -22,12 +22,12 @@
+ 
+ # Define new rule for libtool objects
+ %.lo: %.c
+-	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $<
++	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) -c $<
+ 
+ all: $(TARGET).la
+ 
+ $(TARGET).la: $(LT_OBJS)
+-	$(LIBTOOL) --mode=link $(CC) -release $(RADIUSD_VERSION) \
++	$(LIBTOOL) --mode=link --tag=CC $(CC) -release $(RADIUSD_VERSION) \
+ 	$(LDFLAGS) $(LINK_MODE) -o $@ -rpath $(libdir) $^ \
+ 	$(LIBRADIUS) $(LIBS)
+ 	@for x in .libs/* $^; do \
+--- src/modules/rlm_ippool/Makefile.in.orig	2010-05-24 00:40:58.000000000 -0500
++++ src/modules/rlm_ippool/Makefile.in	2014-01-08 13:54:41.000000000 -0600
+@@ -15,7 +15,7 @@
+ $(LT_OBJS): $(HEADERS)
+ 
+ rlm_ippool_tool: rlm_ippool_tool.lo $(LIBRADIUS)
+-	$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(RLM_LDFLAGS) \
++	$(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) $(RLM_LDFLAGS) \
+ 		-o $@ $^ $(RLM_LIBS) $(LIBS)
+ 
+ rlm_ippool_tool.8: rlm_ippool_tool.pod
+--- src/modules/rlm_mschap/Makefile.orig	2010-05-24 00:40:58.000000000 -0500
++++ src/modules/rlm_mschap/Makefile	2014-01-08 13:54:41.000000000 -0600
+@@ -19,7 +19,7 @@
+ $(LT_OBJS): $(HEADERS)
+ 
+ smbencrypt: smbencrypt.lo smbdes.lo $(LIBRADIUS)
+-	$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(RLM_LDFLAGS) \
++	$(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) $(RLM_LDFLAGS) \
+ 		-o $@ $^ $(RLM_LIBS) $(LIBS)
+ 
+ smbencrypt-install:
+--- src/modules/rlm_sql/drivers/rules.mak.orig	2010-05-24 00:40:58.000000000 -0500
++++ src/modules/rlm_sql/drivers/rules.mak	2014-01-08 13:54:41.000000000 -0600
+@@ -55,7 +55,7 @@
+ #
+ #######################################################################
+ %.lo: %.c
+-	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(RLM_SQL_CFLAGS) -c $<
++	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) $(RLM_SQL_CFLAGS) -c $<
+ 
+ ifneq ($(TARGET),)
+ #######################################################################
+@@ -101,7 +101,7 @@
+ 	done
+ 
+ $(TARGET).la: $(LT_OBJS)
+-	$(LIBTOOL) --mode=link $(CC) -release $(RADIUSD_VERSION) \
++	$(LIBTOOL) --mode=link --tag=CC $(CC) -release $(RADIUSD_VERSION) \
+ 	-module $(LINK_MODE) $(LDFLAGS) $(RLM_SQL_LDFLAGS) -o $@ \
+ 	-rpath $(libdir) $^ $(RLM_SQL_LIBS)
+ 
+--- src/modules/rules.mak.orig	2010-05-24 00:40:58.000000000 -0500
++++ src/modules/rules.mak	2014-01-08 13:54:41.000000000 -0600
+@@ -63,10 +63,10 @@
+ #
+ #######################################################################
+ %.lo: %.c
+-	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(RLM_CFLAGS) -c $<
++	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) $(RLM_CFLAGS) -c $<
+ 
+ %.lo: %.cpp
+-	$(LIBTOOL) --mode=compile $(CXX) $(CFLAGS) $(RLM_CFLAGS) -c $<
++	$(LIBTOOL) --mode=compile --tag=CXX $(CXX) $(CFLAGS) $(RLM_CFLAGS) -c $<
+ 
+ ifneq ($(TARGET),)
+ #######################################################################
+@@ -121,7 +121,7 @@
+ 	done
+ 
+ $(TARGET).la: $(LT_OBJS)
+-	$(LIBTOOL) --mode=link $(CC) -release $(RADIUSD_VERSION) \
++	$(LIBTOOL) --mode=link --tag=CC $(CC) -release $(RADIUSD_VERSION) \
+ 	-module $(LINK_MODE) $(LDFLAGS) $(RLM_LDFLAGS) -o $@     \
+ 	-rpath $(libdir) $^ $(LIBRADIUS) $(RLM_LIBS) $(LIBS)
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140108/950ac983/attachment.html>


More information about the macports-changes mailing list