Skip to content

Some fixes for GNU/Hurd - #1555

Merged
val-ms merged 3 commits into
Cisco-Talos:mainfrom
pinotree:hurd
Aug 30, 2025
Merged

Some fixes for GNU/Hurd#1555
val-ms merged 3 commits into
Cisco-Talos:mainfrom
pinotree:hurd

Conversation

@pinotree

Copy link
Copy Markdown
Contributor

This PR provides some fixes needed to help making clamav build again on GNU/Hurd, like it used to in the past:

  • improve the build system for detecting GNU/Hurd, and tweak build flags
  • run lsb_release as diagnostic
  • use POSIX rlimits

There are a couple more fixes needed; this is a good part of the changes needed.

@val-ms

val-ms commented Aug 19, 2025

Copy link
Copy Markdown
Contributor

Thanks for your PR. Will review soon. It won't make it into the 1.5.0 release candidate though, which we're preparing to publish tomorrow.

Set a C_GNU_HURD CMake variable for Hurd, matching the existing #define
in clamav-config.h; use it to set _GNU_SOURCE, which is correct for GNU
systems.
Rather than trying to read /etc/release, which is specific to Solaris.
setrlimit() is a POSIX API; while it can be used in more places, expand
its usage to any platform based on GNU libc.

@val-ms val-ms left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm okay with these changes. I can't test them on GNU/Hurd but I did verify they don't break anything in our test pipelines. Thanks for the contribution!

@val-ms
val-ms merged commit 1e29025 into Cisco-Talos:main Aug 30, 2025
21 of 22 checks passed
@pinotree
pinotree deleted the hurd branch August 30, 2025 03:22
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.

2 participants