[MacPorts] #3919: BUG: cclient-2004e_0
MacPorts
noreply at macports.org
Thu Mar 24 08:15:05 PDT 2016
#3919: BUG: cclient-2004e_0
----------------------+--------------------------------
Reporter: peter@… | Owner: macports-tickets@…
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 1.0
Resolution: fixed | Keywords:
Port: cclient |
----------------------+--------------------------------
Changes (by ryandesign@…):
* port: => cclient
Old description:
> cclient-2004e_0 fails to build:
>
> Once-only environment setup...
> echo cc > CCTYPE
> echo -g -O -Wno-pointer-sign '-fno-common' > CFLAGS
> echo -DCREATEPROTO=unixproto -DEMPTYPROTO=unixproto \
> -DMAILSPOOL=\"/var/mail\" \
> -DANONYMOUSHOME=\"/var/mail/anonymous\" \
> -DACTIVEFILE=\"/usr/lib/news/active\" -DNEWSSPOOL=\"/var/spool/news\" \
> -DRSHPATH=\"/usr/ucb/rsh\" -DLOCKPGM=\"/etc/mlock\" > OSCFLAGS
> echo > LDFLAGS
> echo "ar rc c-client.a osdep.o mail.o misc.o newsrc.o smanager.o utf8.o
> siglocal.o dummy.o pseudo.o
> netmsg.o flstring.o fdstring.o rfc822.o nntp.o smtp.o imap4r1.o pop3.o
> unix.o mbx.o mmdf.o tenex.o
> mtx.o news.o phile.o mh.o mx.o;ranlib c-client.a" > ARCHIVE
> echo osx > OSTYPE
> ./drivers mbox imap nntp pop3 mh mx mbx tenex mtx mmdf unix news phile
> dummy
> ./mkauths gss md5 pla log
> echo -I/usr/local/include
> -DGSS_C_NT_HOSTBASED_SERVICE=gss_nt_service_name >> OSCFLAGS
> sh -c '(test -f /usr/local/lib/libk5crypto.a) && echo -L/usr/local/lib
> -lgssapi_krb5 -lkrb5 -lk5crypto
> -lcom_err || echo -L/usr/local/lib -lgssapi_krb5 -lkrb5 -lcrypto
> -lcom_err' >> LDFLAGS
> echo "#include \"kerb_mit.c\"" >> auths.c
> echo -DMD5ENABLE=\"/etc/cram-md5.pwd\" >> OSCFLAGS
> ln -s os_osx.h osdep.h
> ln -s os_osx.c osdepbas.c
> ln -s log_std.c osdeplog.c
> ln -s sig_bsd.c siglocal.c
> ln -s crx_nfs.c crexcl.c
> ln -s ip6_unix.c ip_unix.c
> ln: ip_unix.c: File exists
> make[3]: *** [onceenv] Error 1
>
> With these changes to the cclient Portfile I can build cclient 2004e.
> Also checked with building php.
> Hope this helps.
>
> --- Portfile Fri Jul 8 10:46:59 2005
> +++ Portfile.new Sat Jul 9 10:32:33 2005
> @@ -4,6 +4,7 @@
>
> name cclient
> version 2004e
> +revision 1
> categories mail
> maintainers pguyot at kallisys.net
> description UW IMAP c-client library
> @@ -27,8 +28,8 @@
>
> post-patch {
> cd ${worksrcpath}
> - reinplace "s|/usr/include/openssl|${prefix}/include/openssl|g"
> Makefile
> - reinplace "s|/usr/lib|${prefix}/lib|g" Makefile
> + reinplace "s|/System/Library/OpenSSL
> SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/
> lib|${prefix}/etc/openssl SSLINCLUDE=${prefix}/include
> SSLLIB=${prefix}/lib|g" Makefile
> + reinplace "s| -Wno-pointer-sign||g" src/osdep/unix/Makefile
> }
> build.target osx EXTRACFLAGS=-fno-common
>
> @@ -43,7 +44,7 @@
> c-client.h dummy.h env.h fdstring.h flockcyg.h flocksim.h
> env_unix.h \
> flstring.h fs.h ftl.h imap4r1.h linkage.h mail.h mbx.h
> mh.h \
> misc.h mx.h netmsg.h newsrc.h nl.h nntp.h osdep.h \
> - pseudo.h rfc822.h smtp.h sslio.h tcp_unix.h unix.h utf8.h
> \
> + pseudo.h rfc822.h smtp.h sslio.h tcp.h tcp_unix.h unix.h
> utf8.h \
> ${destroot}${prefix}/include/c-client
> xinstall -m 644 ${worksrcpath}/c-client/c-client.a \
> ${destroot}${prefix}/lib/libc-client4.a
New description:
cclient-2004e_0 fails to build:
{{{
Once-only environment setup...
echo cc > CCTYPE
echo -g -O -Wno-pointer-sign '-fno-common' > CFLAGS
echo -DCREATEPROTO=unixproto -DEMPTYPROTO=unixproto \
-DMAILSPOOL=\"/var/mail\" \
-DANONYMOUSHOME=\"/var/mail/anonymous\" \
-DACTIVEFILE=\"/usr/lib/news/active\" -DNEWSSPOOL=\"/var/spool/news\" \
-DRSHPATH=\"/usr/ucb/rsh\" -DLOCKPGM=\"/etc/mlock\" > OSCFLAGS
echo > LDFLAGS
echo "ar rc c-client.a osdep.o mail.o misc.o newsrc.o smanager.o utf8.o
siglocal.o dummy.o pseudo.o netmsg.o flstring.o fdstring.o rfc822.o nntp.o
smtp.o imap4r1.o pop3.o unix.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o
mh.o mx.o;ranlib c-client.a" > ARCHIVE
echo osx > OSTYPE
./drivers mbox imap nntp pop3 mh mx mbx tenex mtx mmdf unix news phile
dummy
./mkauths gss md5 pla log
echo -I/usr/local/include -DGSS_C_NT_HOSTBASED_SERVICE=gss_nt_service_name
>> OSCFLAGS
sh -c '(test -f /usr/local/lib/libk5crypto.a) && echo -L/usr/local/lib
-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err || echo -L/usr/local/lib
-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err' >> LDFLAGS
echo "#include \"kerb_mit.c\"" >> auths.c
echo -DMD5ENABLE=\"/etc/cram-md5.pwd\" >> OSCFLAGS
ln -s os_osx.h osdep.h
ln -s os_osx.c osdepbas.c
ln -s log_std.c osdeplog.c
ln -s sig_bsd.c siglocal.c
ln -s crx_nfs.c crexcl.c
ln -s ip6_unix.c ip_unix.c
ln: ip_unix.c: File exists
make[3]: *** [onceenv] Error 1
}}}
With these changes to the cclient Portfile I can build cclient 2004e. Also
checked with building php.
Hope this helps.
{{{
--- Portfile Fri Jul 8 10:46:59 2005
+++ Portfile.new Sat Jul 9 10:32:33 2005
@@ -4,6 +4,7 @@
name cclient
version 2004e
+revision 1
categories mail
maintainers pguyot at kallisys.net
description UW IMAP c-client library
@@ -27,8 +28,8 @@
post-patch {
cd ${worksrcpath}
- reinplace "s|/usr/include/openssl|${prefix}/include/openssl|g"
Makefile
- reinplace "s|/usr/lib|${prefix}/lib|g" Makefile
+ reinplace "s|/System/Library/OpenSSL
SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib|${prefix}/etc/openssl
SSLINCLUDE=${prefix}/include SSLLIB=${prefix}/lib|g" Makefile
+ reinplace "s| -Wno-pointer-sign||g" src/osdep/unix/Makefile
}
build.target osx EXTRACFLAGS=-fno-common
@@ -43,7 +44,7 @@
c-client.h dummy.h env.h fdstring.h flockcyg.h flocksim.h
env_unix.h \
flstring.h fs.h ftl.h imap4r1.h linkage.h mail.h mbx.h
mh.h \
misc.h mx.h netmsg.h newsrc.h nl.h nntp.h osdep.h \
- pseudo.h rfc822.h smtp.h sslio.h tcp_unix.h unix.h utf8.h
\
+ pseudo.h rfc822.h smtp.h sslio.h tcp.h tcp_unix.h unix.h
utf8.h \
${destroot}${prefix}/include/c-client
xinstall -m 644 ${worksrcpath}/c-client/c-client.a \
${destroot}${prefix}/lib/libc-client4.a
}}}
--
--
Ticket URL: <https://trac.macports.org/ticket/3919#comment:2>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list