Skip to contentSkip to conversation

sbuild_wrapper: state of official openvpn repository

Openvpn-devel Enno Gröper 2 participants 5 messages Dec 17, 2018 – Dec 20, 2018

lore
Share & tools
lore
#0 lore raw

Hi Samuli,
Hi list,

Some background first:
I'm currently building new openvpn servers and want to start using the official package repositories [0]. I think about using the current debian stable or the current Ubuntu LTS (18.04). In the past I used to use the distribution supplied openvpn packages, but these are usually quite outdated.

Now the questions:

Am 06.09.18 um 14:25 schrieb Samuli Seppänen:

Quoted 1 line

Also, we don't have packages for Ubuntu 18.04 yet.

May I ask what is stopping this?

Or let's rephrase it: What kind and/or amount of support is needed to get this done?

Quoted 2 lines · Christian Erhardt

That is exactly what my report here is about, it currently ships very old service files. Not from the repo, nor the last ones from Debian/Ubuntu - older than both actually

Is there any progress with this?
I would prefer using openvpn packages with recent systemd service files.
What needs to be done to switch to the recent systemd files? Only copying? What kind of testing?

The docs at CreatingUnixPackages [1] should be updated.
It still refers to your fork of openvpn-build [2], but I'm unable to find any build scripts or the mentioned "debian/README" there.

Is it correct, that the official builds are made using sbuild_wrapper [3]?
And then the workflow there is to copy the files from the distribution source packages and rebuild with more recent openvpn (with some changes to the files of the distribution build env)?

[0] https://community.openvpn.net/openvpn/wiki/OpenvpnSoftwareRepos
[1] https://community.openvpn.net/openvpn/wiki/CreatingUnixPackages
[2] https://github.com/mattock/openvpn-build
[3] https://github.com/OpenVPN/sbuild_wrapper

And last, but not least: Thank you very much for all the work you already did for us!

Kind regards,
Enno

Signature · 4 lines
Enno Gröper
Humboldt-Universität zu Berlin - http://www.hu-berlin.de/
ZE Computer- und Medienservice - http://www.cms.hu-berlin.de/
Unter den Linden 6, D-10099 Berlin, Germany
#1 lore raw

Hi,

Il 17/12/18 13:45, Enno Gröper ha scritto:

Quoted 9 lines

Hi Samuli,
Hi list,

Some background first:
I'm currently building new openvpn servers and want to start using the official package repositories [0]. I think about using the current debian stable or the current Ubuntu LTS (18.04).
In the past I used to use the distribution supplied openvpn packages, but these are usually quite outdated.

Indeed. I generally try to use our own OpenVPN packages for that very reason.

Quoted 9 lines

Now the questions:

Am 06.09.18 um 14:25 schrieb Samuli Seppänen:

Quoted 1 line

Also, we don't have packages for Ubuntu 18.04 yet.

May I ask what is stopping this?

Or let's rephrase it: What kind and/or amount of support is needed to get this done?

Somebody needs to do it. I started the work, but my sbuild_wrapper VM was too old (Debian 7) and it gave me serious issues with the Ubuntu 18.04 shcroot. So I decided to upgrade the builder. Then other work slowed that project down and I haven't been able to really resume it yet. Now that my new buildslaves are up there is a small chance I could work on this again, but then again, handling MSI is at least as high priority.

Quoted 10 lines
Quoted 1 line · Christian Erhardt

That is exactly what my report here is about, it currently ships very

old service files.

Quoted 1 line

Not from the repo, nor the last ones from Debian/Ubuntu - older than

both actually

Is there any progress with this?
I would prefer using openvpn packages with recent systemd service files. What needs to be done to switch to the recent systemd files? Only copying? What kind of testing?

There is some_ progress but I have not done anything concrete yet on the packaging side. The OpenVPN packages provided by Ubuntu for 18.04 seem to have the openvpn-client@ and openvpn-server@ units. There is still the old openvpn@ unit in there, but we should move away from it even if it works. On Fedora 29, for example, openvpn@ is gone already.

David S. wanted us to use our own versions of openvpn-client@ and openvpn-server@ unit files. I tend to agree, especially as Ubuntu 18.04 already has the same setup (with slightly different unit files), so it would not require major refactoring of the packaging files/metadata. With some luck our own unit files would be mostly drop-in replacements.

So what needs to be done:
- Get the packaging files for 18.04 from Ubuntu
- Apply our own unit files on top
- Add 18.04 to sbuild_wrapper
- Ensure that 18.04 builds
- Test the resulting package

All this could be done by anyone who is willing to take a stab at sbuild_wrapper. I think I might actually setup a Vagrant environment for this - we have it for openvpn-build already. That would make it easier for others to setup the sbuild_wrapper environment and provide contributions to it. I could do this fairly quickly.

If somebody wants and can help out here, I will gladly take the offer.

Quoted 3 lines

The docs at CreatingUnixPackages [1] should be updated. It still refers to your fork of openvpn-build [2], but I'm unable to find any build scripts or the mentioned "debian/README" there.

Fixed. The CreatingUnixPackages page was truly obsolete.

Quoted 4 lines

Is it correct, that the official builds are made using sbuild_wrapper [3]? And then the workflow there is to copy the files from the distribution source packages and rebuild with more recent openvpn (with some changes to the files of the distribution build env)?

That is correct. More details above.

Quoted 8 lines

[0] https://community.openvpn.net/openvpn/wiki/OpenvpnSoftwareRepos
[1] https://community.openvpn.net/openvpn/wiki/CreatingUnixPackages
[2] https://github.com/mattock/openvpn-build
[3] https://github.com/OpenVPN/sbuild_wrapper

And last, but not least: Thank you very much for all the work you already did for us!

Too bad I have not had that much time to work on the packaging recently. Too much other stuff going on at the same time. Any help with sbuild_wrapper (OS support or otherwise) would be really nice. Openvpn-build already has a semi-active community of contributors, but that is missing for sbuild_wrapper.

Samuli

#2 lore raw

Hi,

Am 17.12.18 um 14:29 schrieb Samuli Seppänen:

Quoted 5 lines

Somebody needs to do it. I started the work, but my sbuild_wrapper VM was too old (Debian 7) and it gave me serious issues with the Ubuntu 18.04 shcroot. So I decided to upgrade the builder. Then other work slowed that project down and I haven't been able to really resume it yet.

I'm currently trying with Ubuntu 18.04 as build machine.

Quoted 4 lines

I think I might actually setup a Vagrant environment for this - we have it for openvpn-build already. That would make it easier for others to setup the sbuild_wrapper environment and provide contributions to it. I could do this fairly quickly.

I fully agree with that. Currently I'm trying to follow your README and it's not that easy-going.

Quoted 1 line

Fixed. The CreatingUnixPackages page was truly obsolete.

Nice. Since I wasn't sure about the state, I didn't want to change things prematurely.

Kind Regards,
Enno

Signature · 4 lines
Enno Gröper
Humboldt-Universität zu Berlin - http://www.hu-berlin.de/
ZE Computer- und Medienservice - http://www.cms.hu-berlin.de/
Unter den Linden 6, D-10099 Berlin, Germany
#3 lore raw

Il 17/12/18 16:06, Enno Gröper ha scritto:

Quoted 10 lines

Hi,

Am 17.12.18 um 14:29 schrieb Samuli Seppänen:

Quoted 5 lines

Somebody needs to do it. I started the work, but my sbuild_wrapper VM was too old (Debian 7) and it gave me serious issues with the Ubuntu 18.04 shcroot. So I decided to upgrade the builder. Then other work slowed that project down and I haven't been able to really resume it yet.

I'm currently trying with Ubuntu 18.04 as build machine.

That should be perfect. My new build VM is Ubuntu 18.04 as well.

Quoted 7 lines
Quoted 4 lines

I think I might actually setup a Vagrant environment for this - we have it for openvpn-build already. That would make it easier for others to setup the sbuild_wrapper environment and provide contributions to it. I could do this fairly quickly.

I fully agree with that. Currently I'm trying to follow your README and it's not that easy-going.

Ok. I will, as a first step, publish a Vagrant VM in
https://github.com/OpenVPN/openvpn-vagrant that sets up everything needed to use sbuild_wrapper. I'll do the provisioning so that I can reuse the same code in production. Launching the VM will require Virtualbox, at least until somebody is sufficiently motivated to make the VM run on something else (e.g. via libvirt).

Quoted 16 lines
Quoted 2 lines

Fixed. The CreatingUnixPackages page was truly obsolete.

Nice. Since I wasn't sure about the state, I didn't want to change things prematurely.

Kind Regards,
Enno

_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

#4 lore raw

Hi,

Il 17/12/18 16:17, Samuli Seppänen ha scritto:

Quoted 22 lines

Il 17/12/18 16:06, Enno Gröper ha scritto:

Quoted 10 lines

Hi,

Am 17.12.18 um 14:29 schrieb Samuli Seppänen:

Quoted 5 lines

Somebody needs to do it. I started the work, but my sbuild_wrapper VM was too old (Debian 7) and it gave me serious issues with the Ubuntu 18.04 shcroot. So I decided to upgrade the builder. Then other work slowed that project down and I haven't been able to really resume it yet.

I'm currently trying with Ubuntu 18.04 as build machine.

That should be perfect. My new build VM is Ubuntu 18.04 as well.

Quoted 7 lines
Quoted 4 lines

I think I might actually setup a Vagrant environment for this - we have it for openvpn-build already. That would make it easier for others to setup the sbuild_wrapper environment and provide contributions to it. I could do this fairly quickly.

I fully agree with that. Currently I'm trying to follow your README and it's not that easy-going.

Quoted 6 lines

Ok. I will, as a first step, publish a Vagrant VM in
https://github.com/OpenVPN/openvpn-vagrant that sets up everything needed to use sbuild_wrapper. I'll do the provisioning so that I can reuse the same code in production. Launching the VM will require Virtualbox, at least until somebody is sufficiently motivated to make the VM run on something else (e.g. via libvirt).

I added a Vagrant VM called "sbuild" to openvpn-vagrant. Its provisioning script will fully configure sbuild_wrapper so that you can just do

$ vagrant ssh sbuild
$ cd sbuild_wrapper
$ scripts/build-all.sh

and you will end up with all the packages under the "output" directory and in output.tar.gz. The provisioning part will take quite a while to finish.

The changes that make all of this possible have not, however, been merged upstream and need review and independent testing:

https://github.com/OpenVPN/sbuild_wrapper/pull/1
https://github.com/OpenVPN/openvpn-vagrant/pull/6

While the provisioning script (sbuild.sh) can be run outside of Vagrant, it may fail due to minor differences in the base OS.

I'll look into adding Ubuntu 18.04 support next.

Quoted 16 lines
Quoted 15 lines
Quoted 1 line

Fixed. The CreatingUnixPackages page was truly obsolete.

Nice. Since I wasn't sure about the state, I didn't want to change things prematurely.

Kind Regards,
Enno

_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel