Re: [ptxdist] [PATCH v3] strongswan: Version bump 5.6.1 -> 5.8.2

2020-02-17 Thread Lars Pedersen
I'll will create a patch that proposes a fix. I found out that
strongswan always need either charon (enable-charon option) or
charon-systemd(enable-systemd option). So the bug was that both were
disabled when using swanctl without systemd.

/Lars Pedersen.

On Mon, 17 Feb 2020 at 11:19, Michael Olbrich  wrote:
> So, I merged this. But now building fails because swanctl needs
> src/libcharon/plugins/vici/libvici.la and that is not built when systemd is
> disabled. I think the internal handling for libcharon is broken. What do
> you think is the correct fix here?
>
> Michael
>
> --
> Pengutronix e.K.   | |
> Steuerwalder Str. 21   | http://www.pengutronix.de/  |
> 31137 Hildesheim, Germany  | Phone: +49-5121-206917-0|
> Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH v3] strongswan: Version bump 5.6.1 -> 5.8.2

2020-02-17 Thread Michael Olbrich
On Mon, Feb 03, 2020 at 09:38:20AM +0100, Lars Pedersen wrote:
> On Sat, 1 Feb 2020 at 07:47, Michael Olbrich  wrote:
> > > +ifdef PTXCONF_STRONGSWAN_SWANCTL
> > > + @$(call install_lib, strongswan, 0, 0, 0644, libvici)
> > > + @$(call install_tree, strongswan, 0, 0, -, /etc/strongswan.d)
> > > + @$(call install_alternative, strongswan, 0, 0, 0644, 
> > > /etc/swanctl/swanctl.conf)
> > > + @$(call install_alternative, strongswan, 0, 0, 750, 
> > > /etc/swanctl/conf.d)
> >
> > /etc/swanctl/conf.d does not exist here. From the naming, I expect this to
> > be a directory to extend swanctl.conf. If that is the case, then just
> > remove this here.
> > If someone needs this instead of overwriting swanctl.conf, then an
> > auxiliary package can be used.
> >
> > I can do a local fixup, if this is ok with you. No need to resend.
> >
> > Michael
> 
> You are correct that the conf.d directory only extends swanctl.conf.
> 
> https://wiki.strongswan.org/projects/strongswan/wiki/SwanctlDirectory
> "conf.d Config snippets, included via include conf.d/*.conf in the
> default swanctl.conf file since 5.6.0"
> 
> So your fixup sounds fine by me.

So, I merged this. But now building fails because swanctl needs
src/libcharon/plugins/vici/libvici.la and that is not built when systemd is
disabled. I think the internal handling for libcharon is broken. What do
you think is the correct fix here?

Michael

-- 
Pengutronix e.K.   | |
Steuerwalder Str. 21   | http://www.pengutronix.de/  |
31137 Hildesheim, Germany  | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH v3] strongswan: Version bump 5.6.1 -> 5.8.2

2020-02-03 Thread Lars Pedersen
On Sat, 1 Feb 2020 at 07:47, Michael Olbrich  wrote:
> > +ifdef PTXCONF_STRONGSWAN_SWANCTL
> > + @$(call install_lib, strongswan, 0, 0, 0644, libvici)
> > + @$(call install_tree, strongswan, 0, 0, -, /etc/strongswan.d)
> > + @$(call install_alternative, strongswan, 0, 0, 0644, 
> > /etc/swanctl/swanctl.conf)
> > + @$(call install_alternative, strongswan, 0, 0, 750, 
> > /etc/swanctl/conf.d)
>
> /etc/swanctl/conf.d does not exist here. From the naming, I expect this to
> be a directory to extend swanctl.conf. If that is the case, then just
> remove this here.
> If someone needs this instead of overwriting swanctl.conf, then an
> auxiliary package can be used.
>
> I can do a local fixup, if this is ok with you. No need to resend.
>
> Michael

You are correct that the conf.d directory only extends swanctl.conf.

https://wiki.strongswan.org/projects/strongswan/wiki/SwanctlDirectory
"conf.d Config snippets, included via include conf.d/*.conf in the
default swanctl.conf file since 5.6.0"

So your fixup sounds fine by me.

/Lars Pedersen

___
ptxdist mailing list
ptxdist@pengutronix.de