* Doug Smith <[EMAIL PROTECTED]> [20070612 22:15]:

> Ok, I hate to do this.  I really don't like to ask questions before
> finding the answer, but this one seems to be limited by information
> that does not seem to be true.  It's probably outdated.  

> I need to build elinks with javascript support.  I am one of your
> blind grmlers.  I heard that it wasn't built into the stock Debian
> binary so I went testing.
[...]

Notice: libsmjs-dev you mentioned isn't present anymore (see
http://packages.debian.org/changelogs/pool/main/x/xulrunner/current/changelog
for the transition), the development files are in libmozjs-dev now.
The elinks_javascript.diff patch I attached to this mail works
around this problem.

So, hack until JS support is included in the official Debian
package:

sudo apt-get install libmozjs-dev libgnutls13 libgnutls-dev
sudo apt-get build-dep elinks
cd /tmp
apt-get source elinks
cd elinks-0.11.1
patch -p1 < ../elinks_javascript.diff
sed -i 's/--without-spidermonkey//' debian/rules
dch -i
fakeroot debian/rules binary
sudo dpkg -i ../elinks_0.11*.deb

regards,
-mika-
-- 
 http://grml.org/            # Linux for texttool-users and sysadmins
 http://wiki.grml.org/       # share your knowledge
 http://grml.supersized.org/ # the grml development weblog
 #grml @ irc.freenode.org    # meet us on irc
--- elinks-0.11.1/configure	2006-01-29 14:10:47.000000000 +0100
+++ elinks-0.11.1.patched/configure	2007-06-17 10:49:59.000000000 +0200
@@ -16587,17 +16587,13 @@
 	if test ! -d "$withval"; then
 		withval="";
 	fi
-	for spidermonkeydir in "$withval" "" /usr /usr/local /opt/spidermonkey /opt/js; do
-		for spidermonkeyinclude in "/include" "/include/js" "/include/smjs"; do
-			for spidermonkeylib in js smjs; do
+	for spidermonkeydir in "/usr" ; do
+		for spidermonkeyinclude in "/include/mozjs" ; do
+			for spidermonkeylib in mozjs ; do
 				if test "$cf_result" = no; then
 					SPIDERMONKEY_LIBS="-l$spidermonkeylib"
-
-					if test ! -z "$spidermonkeydir"; then
-						SPIDERMONKEY_LIBS="-L$spidermonkeydir/lib $SPIDERMONKEY_LIBS"
-						SPIDERMONKEY_CFLAGS="-I$spidermonkeydir$spidermonkeyinclude"
-					fi
-
+					SPIDERMONKEY_LIBS="-L$spidermonkeydir/lib $SPIDERMONKEY_LIBS"
+					SPIDERMONKEY_CFLAGS="-I$spidermonkeydir$spidermonkeyinclude"
 					LIBS="$SPIDERMONKEY_LIBS $LIBS_X"
 					CFLAGS="$CFLAGS_X $SPIDERMONKEY_CFLAGS"
 					CPPFLAGS="$CPPFLAGS_X $SPIDERMONKEY_CFLAGS"

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Grml mailing list - [email protected]
http://lists.mur.at/mailman/listinfo/grml
join #grml on irc.freenode.org
grml-devel-blog: http://grml.supersized.org/

Reply via email to