Re: Can one build a static vile easily?

2023-07-14 Thread Brendan O'Dea
On Wed, 12 Jul 2023 at 19:44, Chris Green  wrote:
> Is there any way to build a 'static' version of vile fairly easily?

This is a pretty easy one to answer: easily?  no.

Part of this is because the current configure is not set up for it, so
you would need to muck about with the generated makefile; the other
part is that glibc doesn't really support static linking.  That second
one is a bit complicated, hence the "really" part: in order to support
nsswitch, glibc loads some dynamic components, even when linked
statically.  Additionally, there are a bunch of dependent files for
locale support, which wouldn't be included in a statically linked
binary.

> ... or a way to create something like an appimage?

I've not had much experience with appimage/snap/flatpak/whatever, but
the main reason that I looked for a replacement for Slackware (which
is the distro that I started with), and ended up with Debian, was that
I wanted to be able to support distribution of software to multiple
machines, and wanted some kind of packaging that wasn't a manually
created tarball.

I'm assuming that you have a bunch of machines that you need to
manage, and that you don't want to build vile individually on all of
them.  Assuming that there is a small number of target platforms, I'd
suggest building packages for those platforms.  The vile source has
packaging options for a number of platforms in the `package`
subdirectory.

--bod



Re: Can one build a static vile easily?

2023-07-12 Thread Thomas Dickey
On Wed, Jul 12, 2023 at 10:44:09AM +0100, Chris Green wrote:
> Is there any way to build a 'static' version of vile fairly easily?
> ... or a way to create something like an appimage?

a "static" version would include the C runtime (and curses/termcap/whatever),
which is a lot of work.

Without doing that, I'd configure/build vile on a system with a
compatible C runtime, etc., using --with-builtin-filters, and
tar/zip the result (with whatever is needed to set the startup-path).

-- 
Thomas E. Dickey 
https://invisible-island.net


signature.asc
Description: PGP signature


Can one build a static vile easily?

2023-07-12 Thread Chris Green
Is there any way to build a 'static' version of vile fairly easily?
... or a way to create something like an appimage?

-- 
Chris Green