Commit Graph

3007 Commits

Author SHA1 Message Date
Suresh Sundriyal
992d14dcb1 [build] Remove --with-default-terminfo-dir directive.
This seems to be settting the install path for the terminfo. As a result
the terminfo doesn't seem to be written in to fake.root.
2023-07-12 19:47:48 -07:00
Suresh Sundriyal
bc42ea0c07 [build] Install ncurses packages on the build machine.
Ncurses requires the terminfo database and infocmp to be installed on
the build machine to configure the fallback entries.
2023-07-12 19:08:11 -07:00
Suresh Sundriyal
1fb471f4ba [build] Remove apk update.
Since we are passing in the `--no-cache` option to `apk add`; `apk
update` unnecessarily adds a local index; increasing the size of the
container image.
2023-07-12 17:38:09 -07:00
Suresh Sundriyal
0ece2e4ac6 [build] Update readline version. 2023-07-12 16:17:21 -07:00
Suresh Sundriyal
ed72362b50 [build] Remove libexecinfo dependency on musl builds.
muslc does not expose the frame related information to execinfo.
Compiling with libexecinfo on muslc builds doesn't really serve any purpose.
2023-07-12 16:07:19 -07:00
Suresh Sundriyal
c86081adcb [workflow] Reduce the frequency of md link checker workflow. 2023-07-12 14:35:17 -07:00
Suresh Sundriyal
f03be866df [build] Update the ax_pthread m4 script.
Update the script to fix the use of obsolete construct warnings.
2023-07-12 13:43:48 -07:00
Suresh Sundriyal
3e6a695f68 [buid] Disable shared libraries on a few more components. 2023-07-12 10:02:55 -07:00
Suresh Sundriyal
7053efabb6 [build] Only compile shared versions of the library. 2023-07-11 16:17:55 -07:00
Suresh Sundriyal
969bc582a2 [build] Trim down Dockerfile
Remove the unnecessary packages and the ones that are already installed
as part of dependencies and meta-packages.

Also compile whatever we explicitly link against.
2023-07-11 10:06:41 -07:00
Suresh Sundriyal
42056760d0 [build] Use fPIE on bin2c 2023-07-11 10:06:41 -07:00
Tim Stack
51b2de8ecf [NEWS] fix log conversion text 2023-07-11 09:54:05 -07:00
Tim Stack
770eb8c0a0 [piper] format_to_n does not terminate... 2023-07-11 06:55:21 -07:00
Suresh Sundriyal
15137c7c78 [build] Add fPIE to ptimec as well. 2023-07-10 23:52:32 -07:00
Suresh Sundriyal
4246624412 [build] Add fPIC to shut up RPM builder. 2023-07-10 23:42:45 -07:00
Suresh Sundriyal
7a68f4d833 [build] Fix some build oddness related to cross-compilation.
The Autoconf macro doesn't properly set the required variables properly
when the binaries aren't being cross-compiled. This results in the local
binaries like bin2c and ptime disregarding the compiler flags passed in
to configure scripts.
2023-07-10 22:00:22 -07:00
Tim Stack
0361ed5700 [build] some tidying up of the headers 2023-07-10 21:39:01 -07:00
Tim Stack
8df83d562a [config] simplify file format detection by moving it into the log format definition 2023-07-10 10:35:18 -07:00
Suresh Sundriyal
b1c7fad50d [templates] Update release version in issues template. 2023-07-09 18:49:28 -07:00
Suresh Sundriyal
addc5fbca6 [build] Create shallow clones while doing local images. 2023-07-09 18:49:28 -07:00
Suresh Sundriyal
022a73d0ff [build/bins] Update paths-ignore
Ignore updates to container and issue changes.
2023-07-09 18:49:19 -07:00
Tim Stack
2e09202ff5 [config] externalize file format detection 2023-07-09 10:11:10 -07:00
Suresh Sundriyal
ff0b112728 [build] Optimize the Dockerfile
Optimize the Dockerfile according to the best practices described here:
https://docs.docker.com/develop/develop-images/dockerfile_best-practices/
2023-07-09 09:24:06 -07:00
Suresh Sundriyal
8628bba7e5 [build] Use registry cache to speed up container image builds
Use the registry cache as described here:
- https://docs.docker.com/build/ci/github-actions/cache/
- https://docs.docker.com/build/cache/
2023-07-09 09:23:13 -07:00
Suresh Sundriyal
22d4d6242d [build/concurrency] Only allow one musl-build-image job.
Two musl-build-image jobs can be triggered by two commits done within a
short amount of time. Since building the image times can vary; the job
with the previou commit might finish later; updating the docker hub with
an older commit.

This uses the `concurrency` directive to fix the issue. If another job
is running; they get cancelled and only the latest one spawned is run.
2023-07-08 23:05:21 -07:00
Suresh Sundriyal
881c19963b [build] Fix the ignore paths.
Try the syntax suggested here:
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-excluding-paths
2023-07-08 23:01:25 -07:00
Suresh Sundriyal
a3f55472ba [build] Replace the deprecated ghaction-docker-buildx
ghaction-docker-buildx has been merged with official docker action.
2023-07-08 20:45:42 -07:00
Tim Stack
60438bee12
Merge pull request #1173 from sureshsundriyal/master
[build] Remove unnecessary entries in the Dockerfile.
2023-07-08 20:30:20 -07:00
Suresh Sundriyal
1ec9fc8e22 [build] Remove unnecessary entries in the Dockerfile.
Cmake isn't used in the build script and make is installed on
the container image using apk and doesn't need to be compiled from
source.
2023-07-08 18:17:58 -07:00
Tim Stack
2bf03c3ded
Merge pull request #1172 from sureshsundriyal/master
[posts] Replace dead link with an archived link.
2023-07-08 16:49:40 -07:00
Suresh Sundriyal
9ff7564d20 [posts] Replace dead link with an archived link.
The link to linuxmagazine is dead. Replacing it with the last archived
link on the wayback machine.
2023-07-08 14:50:59 -07:00
Tim Stack
14f928070d
Merge pull request #1171 from sureshsundriyal/master
[build/arm] Add support for arm binary compilation in CI jobs.
2023-07-08 14:20:43 -07:00
Suresh Sundriyal
f4e666543d [build] Use strategy matrix to run arm builds. 2023-07-08 10:25:17 -07:00
Suresh Sundriyal
b22edd5a26 [build] Fix up aarch64 workflow.
Fix up the aarch4 workflow to use the docker-run-action and some minor
cleanup.
2023-07-08 09:31:19 -07:00
Suresh Sundriyal
a79689c286 [build] Use docker-run-action
Use docker-run-action to have more control of the emulated docker
container.
2023-07-08 09:31:19 -07:00
Suresh Sundriyal
0e2199f650 [build] Add support for armv7l & aarch64 builds. 2023-07-08 09:31:19 -07:00
Suresh Sundriyal
2489a79c24 [build] Use the newer musl container image.
Use the newer multi-platform musl container image and the correct
platform.
2023-07-08 09:31:12 -07:00
Tim Stack
44d8e0d2af [build] use TARGETPLATFORM instead 2023-07-07 19:23:40 -07:00
Tim Stack
c8fa534c7d [build] change the FROM in the Dockerfile 2023-07-07 19:02:19 -07:00
Tim Stack
bb0460ade5 [build] fix buildx cwd 2023-07-07 18:21:34 -07:00
Tim Stack
9c9bdfd5ff [build] automate making the lnav-build image 2023-07-07 18:19:37 -07:00
Tim Stack
981dfa3b46
Merge pull request #1170 from sureshsundriyal/master
[arm] Allow creating arm containers.
2023-07-07 18:07:35 -07:00
Tim Stack
898f6e0ad1 [tidy] close FDs and add FMT_STRING() 2023-07-07 16:19:27 -07:00
Suresh Sundriyal
9fe7f61f3f [container] Allow building a container for multiple platforms.
Take in the architecture as a build argument in the Dockerfile.

The various images can be built by passing in the ARCH build argument
while building the images:

```
* docker image build --build-arg ARCH=arm32v7 -t ... (arm32v7)
* docker image build --build-arg ARCH=arm64v8 -t ... (aarch64)
* docker image build  -t ... (amd64)
```

Re: #558
2023-07-07 13:27:50 -07:00
Suresh Sundriyal
00c03950fe [actions] Modify entrypoint.
Modify entrypoint to work in the absence of a `GITHUB_WORKSPACE`
environment variable.

This allows the containers to work locally.
2023-07-07 13:13:15 -07:00
Tim Stack
5b89b69e25 [piper] ignore stdin when it's a closed fifo 2023-07-07 07:08:45 -07:00
Tim Stack
42c9269d8d [piper] check for POLLHUP too 2023-07-06 23:29:02 -07:00
Tim Stack
0c9cf22acc [build] remove unused piper close() method 2023-07-06 20:47:35 -07:00
Tim Stack
5787f47767 [piper] replace piper_proc with a thread
Related to #1029
2023-07-06 20:05:30 -07:00
Tim Stack
e3f4330377 [build] add --platform to Dockerfiles 2023-07-03 13:54:50 -07:00