All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: Richard Tollerton <rich.tollerton@ni.com>,
	openembedded-devel@lists.openembedded.org
Cc: openembedded-commits@lists.openembedded.org
Subject: Re: [oe-commits] Richard Tollerton : openvpn: update and enable iproute2 support
Date: Tue, 28 Oct 2014 18:00:17 +0100	[thread overview]
Message-ID: <20141028170017.GE2430@jama> (raw)
In-Reply-To: <20140721220428.5C2262049@opal.openembedded.org>

[-- Attachment #1: Type: text/plain, Size: 5270 bytes --]

On Mon, Jul 21, 2014 at 10:04:28PM +0000, git@git.openembedded.org wrote:
> Module: meta-openembedded.git
> Branch: master
> Commit: f647f319fcf1ca4844039a83fbc38acbd4ac762e
> URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=f647f319fcf1ca4844039a83fbc38acbd4ac762e
> 
> Author: Richard Tollerton <rich.tollerton@ni.com>
> Date:   Fri Jul 18 16:14:36 2014 -0500
> 
> openvpn: update and enable iproute2 support
> 
> - Added .bb for version 2.3.4.
> - The download URL was broken; it's changed to reflect where the website
>   points to.
> - Force use of iproute2, which is generally recommended when running
>   OpenVPN as an unprivileged user. Ref:
>   http://community.openvpn.net/openvpn/wiki/UnprivilegedUser
> - Explicitly add libpam to DEPENDS if pam is enabled, and disable the
>   auth-pam plugin if pam is not enabled.
> - Pass the path to the 'ip' utility to the configure script to keep it
>   from trying to find it on the host.

This part doesn't seem to work, on my host machine without ip utility
installed (minimalistic Gentoo chroot just for OE builds) openvpn build
is now failing with:

| checking git checkout... no
| configure: error: ip utility is required but missing
| Configure failed. The contents of all config.log files follows to aid debugging

| ERROR: oe_runconf failed
| WARNING: /OE/build/shr-core/tmp-glibc/work/core2-64-oe-linux/openvpn/2.3.4-r0/temp/run.do_configure.10450:1 exit 1 from
|   exit 1
| ERROR: Function failed: do_configure (log file is located at /OE/build/shr-core/tmp-glibc/work/core2-64-oe-linux/openvpn/2.3.4-r0/temp/log.do_configure.10450)
ERROR: Task 5 (/OE/build/shr-core/meta-openembedded/meta-networking/recipes-support/openvpn/openvpn_2.3.4.bb, do_configure) failed with exit code '1'

> 
> Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
> Signed-off-by: Ben Shelton <ben.shelton@ni.com>
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> 
> ---
> 
>  .../recipes-support/openvpn/openvpn_2.1.3.bb       | 27 -------------------
>  .../recipes-support/openvpn/openvpn_2.3.4.bb       | 31 ++++++++++++++++++++++
>  2 files changed, 31 insertions(+), 27 deletions(-)
> 
> diff --git a/meta-networking/recipes-support/openvpn/openvpn_2.1.3.bb b/meta-networking/recipes-support/openvpn/openvpn_2.1.3.bb
> deleted file mode 100644
> index 9ef0fbf..0000000
> --- a/meta-networking/recipes-support/openvpn/openvpn_2.1.3.bb
> +++ /dev/null
> @@ -1,27 +0,0 @@
> -SUMMARY = "A full-featured SSL VPN solution via tun device"
> -HOMEPAGE = "http://openvpn.sourceforge.net"
> -SECTION = "console/network"
> -LICENSE = "GPLv2"
> -LIC_FILES_CHKSUM = "file://COPYING;md5=5aac200199fde47501876cba7263cb0c"
> -DEPENDS = "lzo openssl"
> -
> -inherit autotools
> -
> -SRC_URI = "http://openvpn.net/release/openvpn-${PV}.tar.gz \
> -           file://openvpn"
> -
> -SRC_URI[md5sum] = "7486d3e270ba4b033e311d3e022a0ad7"
> -SRC_URI[sha256sum] = "5185181df2e6043bd667377bc92e36ea5a5bd7600af209654f109b6403ca5b36"
> -
> -CFLAGS += "-fno-inline"
> -
> -# I want openvpn to be able to read password from file (hrw)
> -EXTRA_OECONF += "--enable-password-save"
> -
> -do_install_append() {
> -    install -d ${D}/${sysconfdir}/init.d
> -    install -d ${D}/${sysconfdir}/openvpn
> -    install -m 755 ${WORKDIR}/openvpn ${D}/${sysconfdir}/init.d
> -}
> -
> -RRECOMMENDS_${PN} = "kernel-module-tun"
> diff --git a/meta-networking/recipes-support/openvpn/openvpn_2.3.4.bb b/meta-networking/recipes-support/openvpn/openvpn_2.3.4.bb
> new file mode 100644
> index 0000000..a3322a0
> --- /dev/null
> +++ b/meta-networking/recipes-support/openvpn/openvpn_2.3.4.bb
> @@ -0,0 +1,31 @@
> +SUMMARY = "A full-featured SSL VPN solution via tun device."
> +HOMEPAGE = "http://openvpn.sourceforge.net"
> +SECTION = "console/network"
> +LICENSE = "GPLv2"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=5aac200199fde47501876cba7263cb0c"
> +DEPENDS = "lzo openssl iproute2 ${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
> +
> +inherit autotools
> +
> +SRC_URI = "http://swupdate.openvpn.org/community/releases/openvpn-${PV}.tar.gz \
> +           file://openvpn"
> +
> +SRC_URI[md5sum] = "04d47237907faabe9d046970ffe44b2e"
> +SRC_URI[sha256sum] = "af506d5f48568fa8d2f2435cb3fad35f9a9a8f263999ea6df3ba296960cec85a"
> +
> +CFLAGS += "-fno-inline"
> +
> +# I want openvpn to be able to read password from file (hrw)
> +EXTRA_OECONF += "--enable-password-save --enable-iproute2"
> +EXTRA_OECONF += "${@base_contains('DISTRO_FEATURES', 'pam', '', '--disable-plugin-auth-pam', d)}"
> +EXTRA_OECONF += "IPROUTE=/bin/ip"
> +
> +do_install_append() {
> +    install -d ${D}/${sysconfdir}/init.d
> +    install -d ${D}/${sysconfdir}/openvpn
> +    install -m 755 ${WORKDIR}/openvpn ${D}/${sysconfdir}/init.d
> +}
> +
> +RRECOMMENDS_${PN} = "kernel-module-tun"
> +
> +FILES_${PN}-dbg += "/usr/lib/openvpn/plugins/.debug"
> 
> -- 
> _______________________________________________
> Openembedded-commits mailing list
> Openembedded-commits@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-commits

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

       reply	other threads:[~2014-10-28 17:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20140721220428.5C2262049@opal.openembedded.org>
2014-10-28 17:00 ` Martin Jansa [this message]
2014-10-28 22:13   ` [oe-commits] Richard Tollerton : openvpn: update and enable iproute2 support Ben Shelton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141028170017.GE2430@jama \
    --to=martin.jansa@gmail.com \
    --cc=openembedded-commits@lists.openembedded.org \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=rich.tollerton@ni.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.