I've found a few more issues with rp-pppoe. One looks like a
longstanding problem with resolv.conf when PPPoE is used and $DNS is not
set (using dns from your pppoe host).
If $DNS is not set, the pppoe-connect script tries to remove
/etc/resolv.conf and add a symlink to /etc/ppp/resolv.conf. Since
/etc/resolv.conf is read only, this fails.
I've attached a new patch for the package dir with this change only.
There was an earlier scripts patch that never was updated for
rp-pppoe-3.9 or 3.8. It looks like those changes are no longer needed.
The other issue is that rp-pppoe-3.9 fails configuration when I build.
The configure patch also was never moved over from rp-pppoe-3.8, and
would not have worked anyway, so I gnerated another patch for that.
Darrick, thanks for adding the other fix yesterday.
Terry
diff -urN rp-pppoe-3.9.orig/src/configure rp-pppoe-3.9/src/configure
--- rp-pppoe-3.9.orig/src/configure 2008-06-21 10:29:42.000000000 -0400
+++ rp-pppoe-3.9/src/configure 2008-09-30 13:51:35.000000000 -0400
@@ -6252,7 +6252,7 @@
fi
if test "$GCC" = yes; then
- CFLAGS="$CFLAGS -Wall -Wstrict-prototypes -ansi"
+ CFLAGS="$CFLAGS -Wall -Wstrict-prototypes"
fi
if test "$PPPD" = "NOTFOUND"; then
@@ -6303,7 +6303,7 @@
echo "$as_me:$LINENO: checking packing order of bit fields" >&5
echo $ECHO_N "checking packing order of bit fields... $ECHO_C" >&6
if test "$cross_compiling" = yes; then
- $ECHO "no defaults for cross-compiling"; exit 0
+ $ECHO "no defaults for cross-compiling - using arguments"
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
--- rp-pppoe-3.9.orig/scripts/pppoe-connect.in 2008-06-21 21:47:38.000000000
-0400
+++ rp-pppoe-3.9/scripts/pppoe-connect.in 2008-09-30 12:30:21.000000000
-0400
@@ -216,8 +216,7 @@
# Jigger DNS if required...
if test "$DNSTYPE" = "SERVER" ; then
# Sorry, dude...
- rm -f /etc/resolv.conf
- ln -s /etc/ppp/resolv.conf /etc/resolv.conf
+ ln -s /etc/ppp/resolv.conf /tmp/etc/resolv.conf
elif test "$DNSTYPE" = "SPECIFY" ; then
# Sorry, dude...
rm -f /etc/resolv.conf
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users
Donations to support AstLinux are graciously accepted via PayPal to [EMAIL
PROTECTED]