View previous topic :: View next topic |
Author |
Message |
juk n00b
Joined: 08 Aug 2005 Posts: 24
|
Posted: Sun Oct 02, 2005 12:22 pm Post subject: Openswan pretty old and problems with gawk |
|
|
Hallo,
openswan 2.4.x is ot now and openswan 2.3.x is still marked unstable. And openswan 2.2.x can't be compiled anymore using a recent gentoo system...
So i used openswan 2.3.1 unstable and everything worked for a wile. After several gentoo updates a update for gawk went in and broke everything in openswan. The problem seems that gawk now has "default" as a keyword and "default" is used in the openswan scripts as a variable.
I was able to fix this partialy replacing "default" by "mydefault" in the confread script, but there are still errors in ipsec__plutorun.
Could someone contribute a working patch for openswan 2.3.x or even bette introduce an openswan 2.4.x package? Openswan has fixed this gawg issue but since the last portage for gentoo is pretty old, this is still broken for gentoo... |
|
Back to top |
|
|
chunderbunny Veteran
Joined: 31 May 2004 Posts: 1281 Location: 51°24'27" N, 0°57'15" W
|
Posted: Sun Oct 02, 2005 1:06 pm Post subject: |
|
|
I don't know if this will work, but it's worth a shot I guess...
What you should try is a "version bump" of openswan. First you need to create a portage overlay (apologies if you know how to do this) by editing your /etc/make.conf to include the line Code: | PORTDIR_OVERLAY="/usr/local/portage" | and issuing Code: | mkdir -p /usr/local/portage/net-misc/openswan | Next you need to copy the old ebuild to your overlay and version bump it Code: | cp /usr/portage/net-misc/openswan/openswan-2.3.1.ebuild /usr/local/portage/net-misc/openswan/ openswan-2.4.1dr1.ebuild | Now you need to "digest" the ebuild so that it shows up in portage Code: | cd /usr/local/portage/net-misc/openswan/
ebuild openswan-2.4.1dr1.ebuild digest |
You already have the unstable version of openswan unmasked, but just to make sure (and in case anyone else reads this thread and wants to know how to do it) Code: | echo "net-misc/openswan ~x86" >> /etc/portage/package.keywords | Now you just need to "emerge -av openswan" and it should pick up the new version for you. Whether it will compile or not is now a matter of luck... |
|
Back to top |
|
|
juk n00b
Joined: 08 Aug 2005 Posts: 24
|
Posted: Sun Oct 02, 2005 1:18 pm Post subject: |
|
|
chunderbunny wrote: |
Now you need to "digest" the ebuild so that it shows up in portage
Code: | cd /usr/local/portage/net-misc/openswan/
ebuild openswan-2.4.1dr1.ebuild digest |
|
the ebuild part fails, producing this error:
Code: | amd64 openswan # ebuild openswan-2.4.1dr1.ebuild digest
!!! Name error in 2.4.1dr1
!!! Error: PF is null 'openswan-2.4.1dr1'; exiting.
amd64 openswan # |
|
|
Back to top |
|
|
chunderbunny Veteran
Joined: 31 May 2004 Posts: 1281 Location: 51°24'27" N, 0°57'15" W
|
Posted: Sun Oct 02, 2005 1:28 pm Post subject: |
|
|
Hmmm... the newest version has a weird naming scheme which portage doesn't recofnise. If you replace 2.4.1dr1 with 2.4.0 it should work. |
|
Back to top |
|
|
chunderbunny Veteran
Joined: 31 May 2004 Posts: 1281 Location: 51°24'27" N, 0°57'15" W
|
Posted: Sun Oct 02, 2005 1:48 pm Post subject: |
|
|
Ack! I've just tried it and you run into a patch error. The old version of openswan had a gentoo-specific patch and i don't know what it does. You can fix it either by making the patch work for openswan-2.4.0 (I'm not a coder so I can't do this) or commenting out the line Code: | epatch ${FILESDIR}/${P}-gentoo.patch | in the ebuild, running the digest again and then trying to emerge it. |
|
Back to top |
|
|
juk n00b
Joined: 08 Aug 2005 Posts: 24
|
Posted: Sun Oct 02, 2005 2:45 pm Post subject: |
|
|
hello,
after solving the naming issue "2.4.1dr1" did not work, but "2.4.0" worked, i was able to emerge openswan 2.4.0.
But there is still an issue about this gawk "default" keyword behavior... seems that openswan still did not fix this completly...
Oct 2 16:30:51 amd64 ipsec__plutorun: awk: cmd. line:52: function default(k, val) {
Oct 2 16:30:51 amd64 ipsec__plutorun: awk: cmd. line:52: ^ syntax error
As a told above in my first posting "default" is now a keyword and cant be used anymore the way it has used before... but i think this now is a openswan issue and i will ask in their support forum about this.
Thank you. |
|
Back to top |
|
|
juk n00b
Joined: 08 Aug 2005 Posts: 24
|
Posted: Mon Oct 03, 2005 8:29 am Post subject: |
|
|
Hello,
i switched now to strongswan 2.5.4. The "default" issue is fixed there. Despite of the openswan maintainer who says everything is fixed in openswan 2.4.x there are still problems with gawk.
The tunnel is up and running again now.
Thanks for your help. |
|
Back to top |
|
|
|