[Openswan Users] rpm & klips patch

sasa sasa at shoponweb.it
Tue Apr 18 19:25:05 CEST 2006


Hi, on Fedora Core 3 (with kernel 2.6.9-1.667) I have modified 
'/usr/src/redhat/SPEC/kernel-2.6.spec' for add:

Patch606: openswan-2.4.5.kernel-2.6-klips.patch
Patch607: openswan-2.4.5.kernel-2.6-natt.patch
..
..
%patch606 -p1
%patch607 -p1
...
cp -fv %{all_arch_configs}
for configfile in *.config
do
  echo "CONFIG_IPSEC_NAT_TRAVERSAL=y" >> $configfile
done

..after this from '/usr/src/redhat/SPECS' I run:

#rpmbuild -ba --target=i686  kernel-2.6.spec

..but I have the error message:

+ echo 'Patch #606 (openswan-2.4.5.kernel-2.6-klips.patch):'
Patch #606 (openswan-2.4.5.kernel-2.6-klips.patch):
+ patch -p1 -s
+ echo 'Patch #607 (openswan-2.4.5.kernel-2.6-natt.patch):'
Patch #607 (openswan-2.4.5.kernel-2.6-natt.patch):
+ patch -p1 -s
2 out of 9 hunks FAILED -- saving rejects to file net/ipv4/udp.c.rej
error: Bad exit status from /var/tmp/rpm-tmp.23576 (%prep)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.23576 (%prep)

..but with only 'openswan-2.4.5.kernel-2.6-natt.patch' I don't have 
problems.
Thanks.

------
Salvatore.



More information about the Users mailing list