Xsupplicant has now reached v1.2.8 New feature : since 1.2.6, support for tnc. Add use flag & depends on bug 154993.
Created attachment 101822 [details] /xsupplicant-1.2.8.ebuild Proposed ebuild, almost the same as 1.2.2 + addition of tnc feature
Created attachment 111191 [details] new ebuild with kernel >= 2.6.19 support Added a self-made patch for kernel >= 2.6.19 support
Marco, are you sure the patch is fine? >>> Emerging (1 of 1) net-misc/xsupplicant-1.2.8 to / * xsupplicant-1.2.8.tar.gz MD5 ;-) ... [ ok ] * xsupplicant-1.2.8.tar.gz RMD160 ;-) ... [ ok ] * xsupplicant-1.2.8.tar.gz SHA1 ;-) ... [ ok ] * xsupplicant-1.2.8.tar.gz SHA256 ;-) ... [ ok ] * xsupplicant-1.2.8.tar.gz size ;-) ... [ ok ] * kernel-2.6.19.patch MD5 ;-) ... [ ok ] * kernel-2.6.19.patch RMD160 ;-) ... [ ok ] * kernel-2.6.19.patch SHA1 ;-) ... [ ok ] * kernel-2.6.19.patch SHA256 ;-) ... [ ok ] * kernel-2.6.19.patch size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking xsupplicant-1.2.8.tar.gz ;-) ... [ ok ] * checking kernel-2.6.19.patch ;-) ... [ ok ] * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found kernel object directory: * /lib/modules/2.6.22.6/build * Found sources for kernel version: * 2.6.22.6 >>> Unpacking source... >>> Unpacking xsupplicant-1.2.8.tar.gz to /var/tmp/portage/net-misc/xsupplicant-1.2.8/work >>> Unpacking kernel-2.6.19.patch to /var/tmp/portage/net-misc/xsupplicant-1.2.8/work unpack kernel-2.6.19.patch: file format not recognized. Ignoring. * Cannot find $EPATCH_SOURCE! Value for $EPATCH_SOURCE is: * * /usr/portage/net-misc/xsupplicant/files/kernel-2.6.19.patch * ( kernel-2.6.19.patch ) * * ERROR: net-misc/xsupplicant-1.2.8 failed. * Call stack: * ebuild.sh, line 1654: Called dyn_unpack * ebuild.sh, line 768: Called qa_call 'src_unpack' * ebuild.sh, line 44: Called src_unpack * xsupplicant-1.2.8.ebuild, line 32: Called epatch '/usr/portage/net-misc/xsupplicant/files/kernel-2.6.19.patch' * eutils.eclass, line 161: Called die * * Cannot find $EPATCH_SOURCE! * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/net-misc/xsupplicant-1.2.8/temp/build.log'. * * Messages for package net-misc/xsupplicant-1.2.8: * Cannot find $EPATCH_SOURCE! Value for $EPATCH_SOURCE is: * * /usr/portage/net-misc/xsupplicant/files/kernel-2.6.19.patch * ( kernel-2.6.19.patch ) * * ERROR: net-misc/xsupplicant-1.2.8 failed. * Call stack: * ebuild.sh, line 1654: Called dyn_unpack * ebuild.sh, line 768: Called qa_call 'src_unpack' * ebuild.sh, line 44: Called src_unpack * xsupplicant-1.2.8.ebuild, line 32: Called epatch '/usr/portage/net-misc/xsupplicant/files/kernel-2.6.19.patch' * eutils.eclass, line 161: Called die * * Cannot find $EPATCH_SOURCE! * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/net-misc/xsupplicant-1.2.8/temp/build.log'. *
The originally provided ebuild fails for me against 2.6.22.6 kernel at least: i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"xsupplicant\" -DVERSION=\"1.2.8\" -DYYTEXT_POINTER=1 -DSTDC_HEADERS=1 -DLILENDIAN=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DNO_PWD_RESET=1 -DOPENSSL_NO_KRB5=1 -DLINUX=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_IWLIB_H=1 -DNEW_IWLIB=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBSSL=1 -DLINUX_FRAMER=1 -I. -I. -I ../lib/libxsupconfig -O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe -DHEADERS_KERNEL -Wall -c -o cardif_linux.o `test -f 'cardif/linux/cardif_linux.c' || echo './'`cardif/linux/cardif_linux.c cardif/linux/cardif_linux.c:168:1: warning: "HEADERS_KERNEL" redefined <command-line>: warning: this is the location of the previous definition cardif/linux/cardif_linux.c:177:28: error: linux/compiler.h: No such file or directory cardif/linux/cardif_linux.c:1510:2: warning: #warning FINISH! We get scan data results, but we still need to do something with them. make[1]: *** [cardif_linux.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/net-misc/xsupplicant-1.2.8/work/xsupplicant-1.2.8/src' make: *** [all-recursive] Error 1 * * ERROR: net-misc/xsupplicant-1.2.8 failed. * Call stack: * ebuild.sh, line 1654: Called dyn_compile * ebuild.sh, line 990: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * xsupplicant-1.2.8.ebuild, line 47: Called die
(In reply to comment #2) > Created an attachment (id=111191) [edit] > new ebuild with kernel >= 2.6.19 support > > Added a self-made patch for kernel >= 2.6.19 support > I suppose you forgot to submit the actual patch.. and you weren't in the CC list.. I've compiled xsupplicant by hand and must say it's much better that wpa_supplicant in terms of reliability. So I'm for adding this supplicant to portage.
Created attachment 141784 [details, diff] xsupplicant-1.2.8-linux-headers.patch Here is the patch that I use at the moment to let xsupplicant compile, if someone is interested.
Created attachment 141786 [details] xsupplicant-1.2.8.ebuild And here is the ebuild that I use with the patch attached above. Note that with respect to the other proposed ebuild for 1.2.8: - there was a space missing before ")" in RDEPEND - "append-flags -DHEADERS_KERNEL" is not needed for me (kernel 2.6.23) - changed conf="--enable-tnc" to conf="${conf} --enable-tnc" - changed "emake" to "emake -j1" because I hit an error caused by parallel building (sloppy Makefile) while compiling. - I renamed the conf.d and init.d files, and I had to patch the init.d file in this way: for IFACE in $INTERFACES; do ebegin " ${IFACE}" + ifconfig ${IFACE} up eval ARGS_IFACE=\"\$\{ARGS_$IFACE\}\" for some reason if the interface is not up, xsupplicant fails the authentication here. Hope this helps someone.
The last ebuild and patch compile and install fine here at x86, linux-2.6.23.12. Thanks.
The current ebuild in the tree gives me: >>> Emerging (3 of 3) net-misc/xsupplicant-1.2.8 from unknown repo * Fetching files in the background. To view fetch progress, run * `tail -f /var/log/emerge-fetch.log` in another terminal. * xsupplicant-1.2.8.tar.gz RMD160 SHA1 SHA256 size ;-) ... * checking ebuild checksums ;-) ... * checking auxfile checksums ;-) ... * checking miscfile checksums ;-) ... >>> Unpacking source... >>> Unpacking xsupplicant-1.2.8.tar.gz to /var/tmp/portage/net-misc/xsupplicant-1.2.8/work * Applying xsupplicant-1.2.8-linux-headers.patch ... >>> Source unpacked in /var/tmp/portage/net-misc/xsupplicant-1.2.8/work >>> Compiling source in /var/tmp/portage/net-misc/xsupplicant-1.2.8/work/xsupplicant-1.2.8 ... * econf: updating xsupplicant-1.2.8/config.guess with /usr/share/gnuconfig/config.guess * econf: updating xsupplicant-1.2.8/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share - -pc-linux-gnu [cut] make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/var/tmp/portage/net-misc/xsupplicant-1.2.8/work/xsupplicant-1.2.8' make[1]: Leaving directory `/var/tmp/portage/net-misc/xsupplicant-1.2.8/work/xsupplicant-1.2.8' !!! newconfd: /usr/local/portage/net-misc/xsupplicant/files/xsupplicant-1.2.8-conf.d does not exist !!! newinitd: /usr/local/portage/net-misc/xsupplicant/files/xsupplicant-1.2.8-init.d does not exist >>> Completed installing xsupplicant-1.2.8 into /var/tmp/portage/net-misc/xsupplicant-1.2.8/image/ * QA Notice: file does not exist: * * newconfd: /usr/local/portage/net-misc/xsupplicant/files/xsupplicant-1.2.8-conf.d does not exist * newinitd: /usr/local/portage/net-misc/xsupplicant/files/xsupplicant-1.2.8-init.d does not exist >>> Installing net-misc/xsupplicant-1.2.8 * * To use xsupplicant-1.2.8 you must create the configuration file * /etc/xsupplicant.conf * * An example configuration file has been installed as * /etc/xsupplicant.conf.example *
(In reply to comment #9) > !!! newconfd: > /usr/local/portage/net-misc/xsupplicant/files/xsupplicant-1.2.8-conf.d does not > exist > !!! newinitd: > /usr/local/portage/net-misc/xsupplicant/files/xsupplicant-1.2.8-init.d does not > exist Forget it, sorry for the noise. Have copied over the files for 1.2.2 under teh new name. Will somebody commit this ebuild?
*** Bug 259738 has been marked as a duplicate of this bug. ***
version 2.2.0 is now in the tree. no tnc or gsm support yet. please test... feedback highly appreciated! kind regards Thilo
(In reply to comment #12) > version 2.2.0 is now in the tree. no tnc or gsm support yet. please test... > > feedback highly appreciated! Thanks. I just compiled and installed 2.2.0 on ~x86, the config file is now in XML so the old-one does not work for me. I will need to find some time to test the functionality.
*ping* from security ;)
dropped