On Fri, 13 Jan 2006, Vladislav Grinchenko wrote: > Mika, > > you might want to try relative path instead. > > > In a nutshell: I'm trying to port ipsec-tools. After satisfying a > > set of build-dependencies and dancing around a few more by selectively > > mangling build scripts, I'm a bit stumped. After all the efforts, it is > > ipsec-tools package itself that fails to build, which I can't help but > > appreciate with certain sense of irony.
The proposed solution would be optimal, but I could not figure out how
to achieve it. The following (rather brutal) patch is all that is needed
to build ipsec-tools inside scratchbox (pulled from subversion):
I will feed the patch upstream as well, in hopes that it will
eventually evolve to a proper fix.
Take care.
Index: configure
===================================================================
--- configure (revision 9138)
+++ configure (revision 9139)
@@ -24267,7 +24267,7 @@
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- CPPFLAGS_ADD="$CPPFLAGS_ADD -I./\${top_srcdir}/src/racoon/missing"
+ CPPFLAGS_ADD="$CPPFLAGS_ADD -I\${top_srcdir}/src/racoon/missing"
fi
Index: debian/control
===================================================================
--- debian/control (revision 9138)
+++ debian/control (revision 9139)
@@ -2,7 +2,7 @@
Section: net
Priority: extra
Maintainer: Ganesan Rajagopal <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>= 4.0.0), flex, bison, libssl-dev (>= 0.9.6),
libreadline5-dev
+Build-Depends: debhelper (>= 4.0.0), flex, bison, libssl-dev (>= 0.9.6),
libreadline4-dev
Build-Conflicts: bison++
Standards-Version: 3.6.2
Index: src/racoon/nattraversal.h
===================================================================
--- src/racoon/nattraversal.h (revision 9138)
+++ src/racoon/nattraversal.h (revision 9139)
@@ -47,6 +47,14 @@
#define NON_ESP_MARKER_LEN sizeof(u_int32_t)
#define NON_ESP_MARKER_USE(iph1) ((iph1)->natt_flags &
NAT_ADD_NON_ESP_MARKER)
+/* Required for building inside scratchbox (Maemo, Nokia N770's
+ * development kit.) This is usually found in <linux/udp.h> but is not
+ * defined in scratchbox (as of Maemo 1.1)
+ */
+#ifndef UDP_ENCAP_ESPINUDP_NON_IKE
+#define UDP_ENCAP_ESPINUDP_NON_IKE 1 /* draft-ietf-ipsec-nat-t-ike-00/01 */
+#endif
+
/* These are the values from parsing "remote {}"
block of the config file. */
#define NATT_OFF FLASE /* = 0 */
--
Mika Boström \-/ "World peace will be achieved
[EMAIL PROTECTED] X when the last man has killed
+358 40 759 0016 /-\ the second-to-last." -anon?
signature.asc
Description: Digital signature
_______________________________________________ maemo-developers mailing list [email protected] https://maemo.org/mailman/listinfo/maemo-developers
