Skip to content

Conversation

@gri6507
Copy link

@gri6507 gri6507 commented Jan 1, 2024

DESCRIPTION:
Yj should be installable on any Debian system via the standard apt-get mechanism. The first step to doing that is to package yj into a DEB.

SOLUTION:
Ideally, this should be using dh-make-golang to create the debian folder structure. However, that does not support passing the version number as a link argument during building. As a result, a manual structure is created, which requires a few steps to be performed. This is automated within a Makefile via the deb target.

The all target in Makefile calls the existing build.sh script. This script was updated to call make deb for all desired OS's and ARCH's inside clean docker containers.

TESTING:
After running make, I checked the contents of the build output directory and tested installing the DEBs in clean docker containers.

LIMITATIONS:
Lintian shows a few warnings about the resulting ded (e.g. missing man page) and one error (statictly linked executable). All of those are perfectly file to ignore.

Since building DEBs in clean docker containers takes a while, the time that build.sh takes to execute is now substantially longer. Moreover, since docker containers are using more than one ARCH, the computer on which the script runs must have qemu-user-static installed.

DESCRIPTION:
Yj should be installable on any Debian system via the standard apt-get
mechanism. The first step to doing that is to package yj into a DEB.

SOLUTION:
Ideally, this should be using dh-make-golang to create the debian folder
structure. However, that does not support passing the version number as
a link argument during building. As a result, a manual structure is
created, which requires a few steps to be performed. This is automated
within a Makefile via the `deb` target.

The `all` target in Makefile calls the existing build.sh script. This
script was updated to call `make deb` for all desired OS's and ARCH's
inside clean docker containers.

TESTING:
After running `make`, I checked the contents of the build output
directory and tested installing the DEBs in clean docker containers.

LIMITATIONS:
Lintian shows a few warnings about the resulting ded (e.g. missing man
page) and one error (statictly linked executable). All of those are
perfectly file to ignore.

Since building DEBs in clean docker containers takes a while, the time
that build.sh takes to execute is now substantially longer. Moreover,
since docker containers are using more than one ARCH, the computer on
which the script runs must have `qemu-user-static` installed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant