All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/strongswan: Install libraries to /usr/lib
@ 2017-08-29 21:30 Sam Voss
  2017-08-29 21:51 ` Yann E. MORIN
  0 siblings, 1 reply; 3+ messages in thread
From: Sam Voss @ 2017-08-29 21:30 UTC (permalink / raw)
  To: buildroot

Install strongswan ipsec libraries into /usr/lib instead of
/usr/lib/ipsec in an effort to not need a custom RPATH for this package.

Signed-off-by: Sam Voss <sam.voss@rockwellcollins.com>
---
 package/strongswan/strongswan.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/strongswan/strongswan.mk b/package/strongswan/strongswan.mk
index 1070eea..febb33f 100644
--- a/package/strongswan/strongswan.mk
+++ b/package/strongswan/strongswan.mk
@@ -36,7 +36,8 @@ STRONGSWAN_CONF_OPTS += \
 	--enable-scepclient=$(if $(BR2_PACKAGE_STRONGSWAN_SCEP),yes,no) \
 	--enable-scripts=$(if $(BR2_PACKAGE_STRONGSWAN_SCRIPTS),yes,no) \
 	--enable-vici=$(if $(BR2_PACKAGE_STRONGSWAN_VICI),yes,no) \
-	--enable-swanctl=$(if $(BR2_PACKAGE_STRONGSWAN_VICI),yes,no)
+	--enable-swanctl=$(if $(BR2_PACKAGE_STRONGSWAN_VICI),yes,no) \
+	--with-ipseclibdir=/usr/lib
 
 ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
 STRONGSWAN_CONF_ENV += LIBS='-latomic'
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] package/strongswan: Install libraries to /usr/lib
  2017-08-29 21:30 [Buildroot] [PATCH 1/1] package/strongswan: Install libraries to /usr/lib Sam Voss
@ 2017-08-29 21:51 ` Yann E. MORIN
  2017-08-29 22:02   ` Sam Voss
  0 siblings, 1 reply; 3+ messages in thread
From: Yann E. MORIN @ 2017-08-29 21:51 UTC (permalink / raw)
  To: buildroot

Sam, All,

On 2017-08-29 16:30 -0500, Sam Voss spake thusly:
> Install strongswan ipsec libraries into /usr/lib instead of
> /usr/lib/ipsec in an effort to not need a custom RPATH for this package.
> 
> Signed-off-by: Sam Voss <sam.voss@rockwellcollins.com>
> ---
>  package/strongswan/strongswan.mk | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/package/strongswan/strongswan.mk b/package/strongswan/strongswan.mk
> index 1070eea..febb33f 100644
> --- a/package/strongswan/strongswan.mk
> +++ b/package/strongswan/strongswan.mk
> @@ -36,7 +36,8 @@ STRONGSWAN_CONF_OPTS += \
>  	--enable-scepclient=$(if $(BR2_PACKAGE_STRONGSWAN_SCEP),yes,no) \
>  	--enable-scripts=$(if $(BR2_PACKAGE_STRONGSWAN_SCRIPTS),yes,no) \
>  	--enable-vici=$(if $(BR2_PACKAGE_STRONGSWAN_VICI),yes,no) \
> -	--enable-swanctl=$(if $(BR2_PACKAGE_STRONGSWAN_VICI),yes,no)
> +	--enable-swanctl=$(if $(BR2_PACKAGE_STRONGSWAN_VICI),yes,no) \
> +	--with-ipseclibdir=/usr/lib

The issue behind that, is that this directory is also used to derive the
location where to store plugins and the "IMC and IMV dynamic librariers"
(typo not mine for once!).

So, the plugins would end up in /usr/lib/plugins and the libs in
/usr/lib/imcvs.

This is not satifactory (at least the plugins stuff), so I'd suggest we
also force those locations (to their original values):

    --with-plugindir=/usr/lib/ipsec/plugins
    --with-imcvdir=/usr/lib/ipsec/imcvs

Could you check that, please? ;-)

Regards,
Yann E. MORIN.

>  ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
>  STRONGSWAN_CONF_ENV += LIBS='-latomic'
> -- 
> 1.9.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] package/strongswan: Install libraries to /usr/lib
  2017-08-29 21:51 ` Yann E. MORIN
@ 2017-08-29 22:02   ` Sam Voss
  0 siblings, 0 replies; 3+ messages in thread
From: Sam Voss @ 2017-08-29 22:02 UTC (permalink / raw)
  To: buildroot

Yann, All,

On Tue, Aug 29, 2017 at 4:51 PM, Yann E. MORIN <yann.morin.1998@free.fr> wrote:
> Sam, All,
[..]
>> --- a/package/strongswan/strongswan.mk
>> +++ b/package/strongswan/strongswan.mk
>> @@ -36,7 +36,8 @@ STRONGSWAN_CONF_OPTS += \
>>       --enable-scepclient=$(if $(BR2_PACKAGE_STRONGSWAN_SCEP),yes,no) \
>>       --enable-scripts=$(if $(BR2_PACKAGE_STRONGSWAN_SCRIPTS),yes,no) \
>>       --enable-vici=$(if $(BR2_PACKAGE_STRONGSWAN_VICI),yes,no) \
>> -     --enable-swanctl=$(if $(BR2_PACKAGE_STRONGSWAN_VICI),yes,no)
>> +     --enable-swanctl=$(if $(BR2_PACKAGE_STRONGSWAN_VICI),yes,no) \
>> +     --with-ipseclibdir=/usr/lib
>
> The issue behind that, is that this directory is also used to derive the
> location where to store plugins and the "IMC and IMV dynamic librariers"
> (typo not mine for once!).
>
> So, the plugins would end up in /usr/lib/plugins and the libs in
> /usr/lib/imcvs.

Good point, I didn't realize this propagates that way!

> This is not satifactory (at least the plugins stuff), so I'd suggest we
> also force those locations (to their original values):
>
>     --with-plugindir=/usr/lib/ipsec/plugins
>     --with-imcvdir=/usr/lib/ipsec/imcvs
>
> Could you check that, please? ;-)

Absolutely, I will submit a v2 after testing

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-08-29 22:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-29 21:30 [Buildroot] [PATCH 1/1] package/strongswan: Install libraries to /usr/lib Sam Voss
2017-08-29 21:51 ` Yann E. MORIN
2017-08-29 22:02   ` Sam Voss

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.