Re: [code] Compiling TextAdept in CentOS

From: Gert Meulyzer <gert.att.gertm.eu>
Date: Wed, 11 Dec 2013 08:16:58 +0100

Hi Mitchell,

This is my version of wget (the default version installed on CentOS 6.5 afaik)

GNU Wget 1.12 built on linux-gnu.

+digest +ipv6 +nls +ntlm +opie +md5/openssl +https -gnutls +openssl
-iri

Wgetrc:
    /etc/wgetrc (system)
Locale: /usr/share/locale
Compile: gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/etc/wgetrc"
    -DLOCALEDIR="/usr/share/locale" -I. -I../lib -O2 -g -pipe -Wall
    -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
    --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing
Link: gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
    -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
    -fno-strict-aliasing -Wl,-z,relro -L/usr/lib6464 -lssl -lcrypto
    -ldl -lz /usr/lib64/libssl.so /usr/lib64/libcrypto.so -ldl -lrt
    ftp-opie.o openssl.o http-ntlm.o gen-md5.o ../lib/libgnu.a

Copyright © 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
&lt;http://www.gnu.org/licenses/gpl.html&gt;.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Originally written by Hrvoje Nikšić &lt;hniksic.att.xemacs.org&gt;.
Currently maintained by Micah Cowan &lt;micah.att.cowan.name&gt;.
Please send bug reports and questions to &lt;bug-wget.att.gnu.org&gt;.

I've tinkered a little with the Makefile and came up with a patch that makes it work on CentOS.
Not sure how useful or how clean this is, but here you go:

--- textadept-dcefcbb61eeb/src/Makefile 2013-11-11 15:11:06.000000000 +0100
+++ Makefile 2013-12-11 08:08:18.467385477 +0100
@@ -413,6 +413,7 @@
 # External dependencies.
 
 scintilla_tgz = scintilla334.tgz?download
+scintilla_tgz_file = scintilla334.tgz
 scinterm_zip = scinterm.zip
 scintillua_zip = scintillua.zip
 lua_tgz = lua-5.2.2.tar.gz
@@ -431,9 +432,9 @@
 gtkosx_zip = gtkosx-2.24.16.zip
 bombay_zip = bombay.zip
 
-$(scintilla_tgz): ; wget "http://prdownloads.sourceforge.net/scintilla/$@"
+$(scintilla_tgz): ; wget "http://prdownloads.sourceforge.net/scintilla/$@" -O $(scintilla_tgz_file)
 scintilla: scintilla.patch | $(scintilla_tgz)
- mkdir $@ &amp;&amp; tar xzf $| -C $@ &amp;&amp; mv $@/*/* $@
+ mkdir $@ &amp;&amp; tar xzf $(scintilla_tgz_file) -C $@ &amp;&amp; mv $@/*/* $@
     patch -d $@ -N -p1 &lt; $&lt;
 $(scinterm_zip): ; wget "http://foicica.com/hg/scinterm/archive/tip.zip" -O $@
 scintilla/term: | $(scinterm_zip) ; mkdir $@ &amp;&amp; unzip -d $@ $| &amp;&amp; mv $@/*/* $@
@@ -445,7 +446,7 @@
 LexLPeg.cxx: | ../lexers ; ln -s $|/$@ $@
 $(lua_tgz): ; wget "http://www.lua.org/ftp/$@"
 $(lpeg_tgz): ; wget "http://www.inf.puc-rio.br/~roberto/lpeg/$@"
-$(lfs_zip): ; wget "https://github.com/keplerproject/luafilesystem/archive/$@"
+$(lfs_zip): ; wget "https://github.com/keplerproject/luafilesystem/archive/$@" -O $@
 lua: lua.patch | $(lua_tgz)
     mkdir $@ &amp;&amp; tar xzf $| -C $@ &amp;&amp; mv $@/*/* $@
     patch -d $@ -N -p1 &lt; $&lt;

Regards,

Gert

---- On Tue, 10 Dec 2013 16:35:59 +0100 Mitchell &lt;m.att.foicica.com&gt; wrote ----

Hi Gert,
 
On Tue, 10 Dec 2013, Gert Meulyzer wrote:
 
&gt; Hi again,
&gt;
&gt; So I dove into the Makefile to see what could be going wrong and found the steps where the downloads failed.
&gt; There are some patch lines in there, so I executed those as well and tried to make again. (One for scintilla and one for lua.)
&gt; This time it worked, TextAdept compiled and then started without complaints.
&gt; I still don't know why it went wrong, but at least I have a working editor now.
&gt;
&gt; Could it be that CentOS just has very old versions of gcc/make etc and that those don't work properly with the TextAdept make file?
 
I'm glad you got it working, but sorry that you had to spend so much of
your time manually fixing things. I think it boils down to your version of
"wget". For some reason it doesn't download files using the same name
convention as later versions do. I have limited experience with wget. What
version do you have? Perhaps I can fix some things, but I'm not very
confident... :(
 
Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com. 
To change subscription settings, send an e-mail to code+help.att.foicica.com. 
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com. 
 
-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Wed 11 Dec 2013 - 02:16:58 EST

This archive was generated by hypermail 2.2.0 : Wed 11 Dec 2013 - 06:50:00 EST