]> git.ipfire.org Git - people/ms/libloc.git/log
people/ms/libloc.git
4 days agolibloc: Drop loc_database_add_as symbol definition master
Valters Jansons [Sun, 12 Jul 2026 09:12:29 +0000 (18:12 +0900)] 
libloc: Drop loc_database_add_as symbol definition

This database_add_as function was superseded by writer_add_as back
in c182393, however the `libloc.sym` file was never updated. This
commit cleans up the exported functions list.

On GNU's ld, this stray function definition gets ignored, but other
linkers could refuse to link (such as LLD 16+), as they would assume
a misconfiguration has taken place.

Signed-off-by: Valters Jansons <valter.jansons@gmail.com>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 days agoman: Clean up existing documentation
Valters Jansons [Sun, 12 Jul 2026 08:46:33 +0000 (17:46 +0900)] 
man: Clean up existing documentation

While generating the `location-importer` manual page, tooling flagged
supplemental fixes for location(1) and other man3 pages. Some are minor
style and grammar fixes, as well as AsciiDoc markup fixes, but most of
the changes proposed are gradual drift resulting from codebase changes.
This commit incorporates those suggestions.

In addition to existing manpages being cleaned up, loc_set_log_callback
man3 page is being added, as loc_set_log_fn has been deprecated, and
previously had a manpage created. Without the new page, the existing
manpage would just be a dead-end.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Valters Jansons <valter.jansons@gmail.com>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 days agoman: Add manual page for `location-importer`
Valters Jansons [Sun, 12 Jul 2026 08:46:14 +0000 (17:46 +0900)] 
man: Add manual page for `location-importer`

Currently, the `location-importer` binary gets installed without
a manual page. It's expected that all tools installed get manpages.

This commit proposes a generated manpage, introspecting the script's
handlers and considering the structure of the other existing AsciiDoc
files.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Valters Jansons <valter.jansons@gmail.com>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
13 days agodebian: House-keep for Lintian
Valters Jansons [Wed, 24 Jun 2026 18:00:13 +0000 (03:00 +0900)] 
debian: House-keep for Lintian

Lintian is reporting some small house-keeping tasks.
This commit pulls all of those in at the same time.

* W: build-depends-on-obsolete-package
  * Build-Depends: pkg-config => pkgconf
* W: spelling-error-in-changelog
  * Explicitely Explicitly
  * endianess endianness
* P: redundant-priority-optional-field
* P: redundant-rules-requires-root-no-field

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
13 days agodebian: Update copyright references
Valters Jansons [Wed, 24 Jun 2026 17:31:54 +0000 (02:31 +0900)] 
debian: Update copyright references

The `tests/data` directory effectively migrated to `data`.
Copyrights entry for these assets is now updated accordingly.

Additionally, Perl licensing "Artistic-or-GPL" stanza currently
points at /usr/share/common-licenses/GPL for "any GPL version".
However, it should be a reference to GPL-1, as plain GPL always
symlinks to the latest available GPL (currently GPL-3).

While we are at it, the IPFire Development Team copyright years
can be updated to reflect that development has continued through
the years.

Signed-off-by: Valters Jansons <valter.jansons@gmail.com>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
13 days agoconfigure: Remove AC_PATH_PROG call for pkg-config
Valters Jansons [Wed, 24 Jun 2026 17:01:31 +0000 (02:01 +0900)] 
configure: Remove AC_PATH_PROG call for pkg-config

We already use PKG_PROG_PKG_CONFIG macro higher up in configure.ac,
and it populates PKG_CONFIG variable already. This AC_PATH_PROG use
is redundant at best, and breaks cross-compilation support in specific
cases. The legacy left-over is safe to drop.

Signed-off-by: Valters Jansons <valter.jansons@gmail.com>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
13 days agodebian: Update d/watch to Version 5
Valters Jansons [Wed, 24 Jun 2026 14:41:25 +0000 (23:41 +0900)] 
debian: Update d/watch to Version 5

Housekeeping to keep up with Debian `uscan` updates.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
13 days agoMakefile: Avoid installing libtool control files
Valters Jansons [Wed, 24 Jun 2026 13:49:01 +0000 (22:49 +0900)] 
Makefile: Avoid installing libtool control files

This project currently uses autoconf, automake, and libtool for
building. During build process, libtool creates `.la` control files
with metadata about the `.so` library. On modern systems, shipping
these files is now strongly discouraged.

The `.la` files are generally not used on live systems. The only
scenario where they would be used is if someone loads the library using
libltdl (libtool's `dlopen` wrapper). However, both Python and Lua just
load the library directly using a `dlopen("location.so")` instead of
calling `lt_dlopen("location.la")`. This project does not reference
`lt_dlopen` or `ltdl` as such.

Moreover, the `.la` files include redundant dependency chain
information. For example, the Lua module depends on libloc. Even though
OpenSSL is a transitive dependency (`src/database.c` and `src/writer.c`,
not `src/lua/`), libtool anyway adds `-lssl` (as well as `-lcrypto
-lresolv`) directly to `dependency_libs` of Lua's `location.la`.
Listing these transitive dependencies muddies the chain. If someone is
consuming the Lua module downstream, then libtool would force the full
dependency chain onto them directly, which is not needed.

Additionally, due to hardcoded dependencies, rebuild propagation is
a concern. An upstream library updating their soname requires all
downstream `.la` files to be rebuilt, even if libloc's ABI has not
changed. This is especially painful at distro packaging scale.

As a result, modern packaging is pushing towards removing these `.la`
files. In cases where some libltdl consumers exist, the fallback route
is emptying out the dependency_libs metadata field. This is visible in
Debian Lintian as error `non-empty-dependency_libs-in-la-file`.

We can go the whole way and drop these files outright. The `.la` files
reference each other; therefore, when one is being removed, all of them
should be removed, to avoid dangling references.

Ref: https://wiki.debian.org/ReleaseGoals/LAFileRemoval
Ref: https://fedoraproject.org/wiki/Changes/RemoveLaFiles

Signed-off-by: Valters Jansons <valter.jansons@gmail.com>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
13 days agoMakefile: Install Lua in `exec` stage, not `data`
Valters Jansons [Wed, 24 Jun 2026 13:39:14 +0000 (22:39 +0900)] 
Makefile: Install Lua in `exec` stage, not `data`

Automake installation has two stages:
* `exec` for platform-specific files,
* `data` for platform-agnostic files.

Automake separates the install stages based on the directory (target)
variable name. Built-in targets have known stages. Any custom-defined
ones check simply whether the target name contains `exec` substring.

Currently, the Lua module is installed in the `data` stage, because
`lua` is not considered an `exec` stage name. However, the Lua module
contains C code (it is architecture-specific).

Similar to how Python is installed via `pyexec`, Lua should be
installed via `luaexec`. That way Automake splits it into `exec` stage
correctly.

Internally, the installation target directory is `LUA_INSTALL_CMOD`
which also signals that this is a platform/architecture-specific
installation. This logic remains unchanged, and the Lua `.so` gets
installed to the same target as a result.

This change is also important to allow libtool cleanup to be done in
`install-exec-hook` consistently. Without this change, part of la-files
cleanup would need to be moved to `install-data-hook`.

Ref: https://www.gnu.org/software/automake/manual/html_node/The-Two-Parts-of-Install.html

Signed-off-by: Valters Jansons <valter.jansons@gmail.com>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoimporter: Ignore any duplicates in Spamhaus' feeds
Michael Tremer [Tue, 16 Jun 2026 12:53:52 +0000 (12:53 +0000)] 
importer: Ignore any duplicates in Spamhaus' feeds

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agodatabase: Close the database pool on exit
Michael Tremer [Tue, 16 Jun 2026 12:53:41 +0000 (12:53 +0000)] 
database: Close the database pool on exit

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agoconfigure: Update `location.ipfire.org` links
Valters Jansons [Fri, 5 Jun 2026 10:50:29 +0000 (19:50 +0900)] 
configure: Update `location.ipfire.org` links

Since original configuration of these links, some changes have been
made to the website. Now the old location.ipfire.org landing page
redirects users to ipfire.org/location/ instead. This commit makes
sure listed links are direct links, instead of pointing at redirects.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agodebian: Update `location.ipfire.org` links
Valters Jansons [Fri, 5 Jun 2026 10:50:28 +0000 (19:50 +0900)] 
debian: Update `location.ipfire.org` links

Since original configuration of these links, some changes have been
made to the website. Now the old location.ipfire.org landing page
redirects users to ipfire.org/location/ instead. This commit makes
sure listed links are direct links, instead of pointing at redirects.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 weeks agoTranslated using Weblate (German)
Michael Tremer [Wed, 3 Jun 2026 07:36:21 +0000 (07:36 +0000)] 
Translated using Weblate (German)

Currently translated at 100.0% (7 of 7 strings)

Translation: Location/libloc
Translate-URL: https://translate.ipfire.org/projects/location/libloc/de/
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 weeks agoCOPYING: Update license to remove FSF address
Michael Tremer [Thu, 4 Jun 2026 09:17:10 +0000 (09:17 +0000)] 
COPYING: Update license to remove FSF address

Fixes: #14005 - Outdated FSF address
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 weeks agom4: Remove the address of the Free Software Foundation
Michael Tremer [Thu, 4 Jun 2026 09:13:47 +0000 (09:13 +0000)] 
m4: Remove the address of the Free Software Foundation

Fixes: #14005 - Outdated FSF address
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 weeks agodebian: Point at GNU website for full GPL text
Valters Jansons [Wed, 3 Jun 2026 12:47:07 +0000 (21:47 +0900)] 
debian: Point at GNU website for full GPL text

The FSF mailing address is outdated and should not be referenced in
copyright license text, as no response will be received from it.
Instead, the GNU website can be used for obtaining license text.

Ref: https://lintian.debian.org/tags/old-fsf-address-in-copyright-file.html
Signed-off-by: Valters Jansons <valter.jansons@gmail.com>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 weeks agoTranslated using Weblate (Lao)
Bone NI [Wed, 3 Jun 2026 07:36:23 +0000 (07:36 +0000)] 
Translated using Weblate (Lao)

Currently translated at 100.0% (91 of 91 strings)

Translation: Location/libloc
Translate-URL: https://translate.ipfire.org/projects/location/libloc/lo/
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 weeks agoAdded translation using Weblate (Lao)
Michael Tremer [Wed, 3 Jun 2026 07:36:22 +0000 (07:36 +0000)] 
Added translation using Weblate (Lao)

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 weeks agojenkins: Remove Debian package builds for armel
Michael Tremer [Tue, 2 Jun 2026 15:53:22 +0000 (15:53 +0000)] 
jenkins: Remove Debian package builds for armel

This does not build on forky any more and I am not sure anyone would be
using it:

+ apt-get build-dep -y -aarmel .
Note, using directory '.' to get the build dependencies
Reading package lists...
Building dependency tree...
Reading state information...
Solving dependencies...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
 builddeps:.:armel : Depends: debhelper-compat:armel (= 13)
                     Depends: dh-sequence-python3:armel
                     Depends: intltool:armel
                     Depends: liblua5.4-dev:armel but it is not installable
                     Depends: libssl-dev:armel but it is not installable
                     Depends: libsystemd-dev:armel but it is not installable
                     Depends: pkg-config:armel but it is not installable
                     Depends: python3-all-dev:armel but it is not installable
                     Depends: xsltproc:armel
                     Depends: docbook-xsl:armel
E: Unable to satisfy dependencies. Reached two conflicting assignments:
   1. builddeps:.:armel=1 is selected for install
   2. builddeps:.:armel Depends liblua5.4-dev:armel
      but none of the choices are installable:
      [no choices]

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 weeks agoconfigure: Bump version to 0.9.19 0.9.19
Michael Tremer [Tue, 2 Jun 2026 14:41:25 +0000 (14:41 +0000)] 
configure: Bump version to 0.9.19

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 weeks agojenkins: Build packages for Debian Forky, too
Michael Tremer [Tue, 2 Jun 2026 14:37:00 +0000 (14:37 +0000)] 
jenkins: Build packages for Debian Forky, too

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 weeks agojenkins: Build for more recent version of Debian/Ubuntu/Fedora
Michael Tremer [Tue, 2 Jun 2026 13:46:53 +0000 (13:46 +0000)] 
jenkins: Build for more recent version of Debian/Ubuntu/Fedora

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 months agoimporter: Add some more AWS regions
Michael Tremer [Mon, 2 Mar 2026 15:03:10 +0000 (15:03 +0000)] 
importer: Add some more AWS regions

It does not seem to be very plausible that me-west-1 is in Israel, as
there seems to be a separate region called il-central-1 already. This is
just the best information I have right now.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 months agoexport: Improve the slightly broken header in DNS zones
Michael Tremer [Wed, 17 Dec 2025 12:34:29 +0000 (12:34 +0000)] 
export: Improve the slightly broken header in DNS zones

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 months agopo: Update translation
Michael Tremer [Wed, 17 Dec 2025 12:20:13 +0000 (12:20 +0000)] 
po: Update translation

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 months agojenkins: Build for Ubuntu 25.10, but no longer for 24.10
Michael Tremer [Wed, 17 Dec 2025 12:14:58 +0000 (12:14 +0000)] 
jenkins: Build for Ubuntu 25.10, but no longer for 24.10

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 months agoexport: Write more metadata into the zone apex
Michael Tremer [Wed, 17 Dec 2025 12:13:45 +0000 (12:13 +0000)] 
export: Write more metadata into the zone apex

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 months agoexport: Allow passing nameservers for a zone
Michael Tremer [Wed, 17 Dec 2025 12:11:16 +0000 (12:11 +0000)] 
export: Allow passing nameservers for a zone

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 months agoexport: Write a SOA for all DNS zones
Michael Tremer [Wed, 17 Dec 2025 12:05:33 +0000 (12:05 +0000)] 
export: Write a SOA for all DNS zones

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 months agoexport: Write the everything zone
Michael Tremer [Wed, 17 Dec 2025 11:47:46 +0000 (11:47 +0000)] 
export: Write the everything zone

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 months agoexport: Support exporting a zone with the network prefixes
Michael Tremer [Wed, 17 Dec 2025 11:35:06 +0000 (11:35 +0000)] 
export: Support exporting a zone with the network prefixes

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 months agoexport: Support exporting a zone with country codes
Michael Tremer [Wed, 17 Dec 2025 11:34:42 +0000 (11:34 +0000)] 
export: Support exporting a zone with country codes

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 months agoexporter: Call the correct functions
Michael Tremer [Tue, 16 Dec 2025 17:53:33 +0000 (17:53 +0000)] 
exporter: Call the correct functions

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 months agopo: Add new translation strings
Michael Tremer [Tue, 16 Dec 2025 17:48:58 +0000 (17:48 +0000)] 
po: Add new translation strings

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 months agoexporter: Implement exporting AS names over DNS
Michael Tremer [Tue, 16 Dec 2025 17:48:33 +0000 (17:48 +0000)] 
exporter: Implement exporting AS names over DNS

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 months agoexport: Refactor writing zones
Michael Tremer [Tue, 16 Dec 2025 17:44:28 +0000 (17:44 +0000)] 
export: Refactor writing zones

We have too many different types to make this super plain.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 months agoexport: Give the origin zone the correct name
Michael Tremer [Tue, 16 Dec 2025 17:31:05 +0000 (17:31 +0000)] 
export: Give the origin zone the correct name

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 months agoexport: Support exporting a zone with all bogons
Michael Tremer [Tue, 16 Dec 2025 17:24:20 +0000 (17:24 +0000)] 
export: Support exporting a zone with all bogons

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 months agonetwork: Refactor composing the reverse pointer
Michael Tremer [Tue, 16 Dec 2025 17:14:44 +0000 (17:14 +0000)] 
network: Refactor composing the reverse pointer

The previous versions had a lot of memory leaks because of the repeated
use of asprintf and appended a trailing dot if there was not suffix
given.

This version allocates the buffer only once and only appends a dot if
there is a suffix.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 months agolocation: Add a command to export the database as a DNS zone file
Michael Tremer [Tue, 16 Dec 2025 16:41:16 +0000 (16:41 +0000)] 
location: Add a command to export the database as a DNS zone file

This is experimental and only supports the "ASN" format for now.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 months agopython: network: Add a new property "subnets" to fetch any subnets
Michael Tremer [Tue, 16 Dec 2025 16:40:34 +0000 (16:40 +0000)] 
python: network: Add a new property "subnets" to fetch any subnets

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agopo: Import the POT file and create a target to update it
Michael Tremer [Sat, 22 Nov 2025 17:59:36 +0000 (17:59 +0000)] 
po: Import the POT file and create a target to update it

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 months agoimporter: Accept ASNs larger than PostgreSQL's integer
Michael Tremer [Thu, 20 Nov 2025 16:30:23 +0000 (16:30 +0000)] 
importer: Accept ASNs larger than PostgreSQL's integer

We seem to be importing some garbage here which makes the temporary
table overflow. Therefore we are increase the maximum size of the ASN
field to be able to render the database.

Any invalid data is being filtered out regardless.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 months agoimporter: Fix SyntaxWarning about regular expressions
Michael Tremer [Thu, 24 Jul 2025 17:33:37 +0000 (17:33 +0000)] 
importer: Fix SyntaxWarning about regular expressions

/usr/bin/location-importer:1654: SyntaxWarning: invalid escape sequence '\s'
  route = re.compile(b"^\s(.+?)\s+.+?\[(?:AS(.*?))?.\]$")
/usr/bin/location-importer:1724: SyntaxWarning: invalid escape sequence '\s'
  m = re.match(b"\s+BGP\.as_path:.* (\d+) {\d+}$", line)

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
12 months agojenkins: Explicitely install gettext/autopoint
Michael Tremer [Fri, 27 Jun 2025 15:26:30 +0000 (15:26 +0000)] 
jenkins: Explicitely install gettext/autopoint

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
12 months agodatabase: Fix backtracking after no match was found at the end of the tree
Michael Tremer [Fri, 27 Jun 2025 13:40:12 +0000 (13:40 +0000)] 
database: Fix backtracking after no match was found at the end of the tree

This is a rare bug which only appears if the tree has not been 100%
optimised which might happen because it would not be worth the effort to
remove all dead ends all of the time.

Therefore, we could be reaching a node which is not an actual leaf but
still not find our network. In that case, we will have to go backwards
slightly to check if there has been a less specific match (but a match
nonetheless).

This was broken in commit 9e72b8a0c56403ca7d23c6a767d66038e0d63c14 when
the return code for no match was changed to zero.

Fixes: #13861 - libloc-0.9.18 fails to find some ASN info
Reported-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
12 months agopython: Cleanup the switch statement
Michael Tremer [Fri, 27 Jun 2025 13:39:45 +0000 (13:39 +0000)] 
python: Cleanup the switch statement

No functional changes.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
14 months agoconfigure: Explicitely configure Gettext
Adolf Belka [Wed, 14 May 2025 17:06:27 +0000 (17:06 +0000)] 
configure: Explicitely configure Gettext

From version 0.25, Gettext will complain about not calling autopoint to
set up all required macros requied by autoconf later on.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
15 months agoMakefile: Automatically add all tools/ to POTFILE.in
Michael Tremer [Mon, 7 Apr 2025 09:19:14 +0000 (09:19 +0000)] 
Makefile: Automatically add all tools/ to POTFILE.in

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
15 months agojenkins: Fedora no longer seems to install awk by default
Michael Tremer [Mon, 7 Apr 2025 09:18:43 +0000 (09:18 +0000)] 
jenkins: Fedora no longer seems to install awk by default

This is needed to run the configure script.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
15 months agotests: Ensure loc_database_lookup finds a match
Valters Jansons [Mon, 7 Apr 2025 01:29:29 +0000 (04:29 +0300)] 
tests: Ensure loc_database_lookup finds a match

Commit 9e72b8a modified the lookup function to return 0 even if no
matches are found. As result, the test case could pass even if the
database lookup did not find any matches.

This commit restores the original intent of the test case, by adding
a failure condition when `network1` is NULL. This is similar to how
the subsequent test case was modified for the inverse condition.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
15 months agoRevert "jenkins: Build Debian packages for riscv64, too"
Michael Tremer [Fri, 21 Mar 2025 17:06:43 +0000 (17:06 +0000)] 
Revert "jenkins: Build Debian packages for riscv64, too"

This reverts commit 92bfc43af92eb19a5ed95ff04f2a71e56087a75b.

Well, this did not last very long...

+ apt-get install -y apt-utils build-essential crossbuild-essential-riscv64 devscripts qemu-user-static
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package crossbuild-essential-riscv64
script returned exit code 100

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
15 months agojenkins: Build Debian packages for riscv64, too
Michael Tremer [Fri, 21 Mar 2025 16:47:11 +0000 (16:47 +0000)] 
jenkins: Build Debian packages for riscv64, too

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoconfigure: Fix passing custom LDFLAGS
Michael Tremer [Wed, 12 Mar 2025 10:36:50 +0000 (10:36 +0000)] 
configure: Fix passing custom LDFLAGS

Fixes: #13829 - Overlinking Lua and Python bindings
Reported-by: Petr Pisar <ppisar@redhat.com>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoconfigure: Fix indentation
Michael Tremer [Wed, 12 Mar 2025 10:28:26 +0000 (10:28 +0000)] 
configure: Fix indentation

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agodebian: Update libloc1.symbols for version 0.9.18
Valters Jansons [Mon, 10 Mar 2025 20:47:07 +0000 (22:47 +0200)] 
debian: Update libloc1.symbols for version 0.9.18

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agojenkins: Okay, drop Alma Linux again
Michael Tremer [Mon, 10 Mar 2025 15:28:47 +0000 (15:28 +0000)] 
jenkins: Okay, drop Alma Linux again

This thing just seems to be too ancient and does not have packages for
Lua. Instead of creating too many if/else blocks to cover this, let's
remove it again. As far as I am aware, we don't have any known users on
this distribution.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agojenkins: Alma Linux does not seem to understand Code Ready
Michael Tremer [Mon, 10 Mar 2025 15:25:37 +0000 (15:25 +0000)] 
jenkins: Alma Linux does not seem to understand Code Ready

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agojenkins: Fix installing development tools on Alma Linux
Michael Tremer [Mon, 10 Mar 2025 15:22:18 +0000 (15:22 +0000)] 
jenkins: Fix installing development tools on Alma Linux

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agojenkins: Try building for Alma Linux 9
Michael Tremer [Mon, 10 Mar 2025 15:18:12 +0000 (15:18 +0000)] 
jenkins: Try building for Alma Linux 9

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agojenkins: Build for s390x again
Michael Tremer [Mon, 10 Mar 2025 15:15:54 +0000 (15:15 +0000)] 
jenkins: Build for s390x again

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoaddress: Fix endianess problem when fetching octets in IPv4 addresses
Michael Tremer [Mon, 10 Mar 2025 15:13:07 +0000 (15:13 +0000)] 
address: Fix endianess problem when fetching octets in IPv4 addresses

Fixes: #13828
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agojenkins: Publish Debian packages for all supported architectures
Michael Tremer [Mon, 10 Mar 2025 14:33:30 +0000 (14:33 +0000)] 
jenkins: Publish Debian packages for all supported architectures

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoconfigure: Bump version to 0.9.18 0.9.18
Michael Tremer [Mon, 10 Mar 2025 11:07:35 +0000 (11:07 +0000)] 
configure: Bump version to 0.9.18

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agojenkins: Remove broken architectures for now
Michael Tremer [Mon, 10 Mar 2025 11:07:07 +0000 (11:07 +0000)] 
jenkins: Remove broken architectures for now

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agodatabase: Correctly check return value of dup()
Michael Tremer [Mon, 10 Mar 2025 10:53:30 +0000 (10:53 +0000)] 
database: Correctly check return value of dup()

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agonetwork: Remove dead assignment
Michael Tremer [Mon, 10 Mar 2025 10:50:42 +0000 (10:50 +0000)] 
network: Remove dead assignment

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoFix string formatting issues on 32 bit systems
Michael Tremer [Mon, 10 Mar 2025 10:43:59 +0000 (10:43 +0000)] 
Fix string formatting issues on 32 bit systems

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agodebian: Package Lua files
Michael Tremer [Mon, 10 Mar 2025 10:33:40 +0000 (10:33 +0000)] 
debian: Package Lua files

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agodebian: Update filelists
Michael Tremer [Thu, 6 Mar 2025 21:24:11 +0000 (21:24 +0000)] 
debian: Update filelists

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agodebian: Build against Lua again
Michael Tremer [Thu, 6 Mar 2025 21:15:21 +0000 (21:15 +0000)] 
debian: Build against Lua again

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agodebian: Don't build man pages
Michael Tremer [Thu, 6 Mar 2025 21:13:49 +0000 (21:13 +0000)] 
debian: Don't build man pages

This is not great, but I currently don't have any better option.
Installing asciidoc conflicts with python3-all-dev when cross-compiling.
Since asciidoc is optional and Python isn't this at least generates a
package at the end.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agopython: Fix unintended fallthrough
Michael Tremer [Thu, 6 Mar 2025 18:37:14 +0000 (18:37 +0000)] 
python: Fix unintended fallthrough

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agopython: Fix type for keyword lists
Michael Tremer [Thu, 6 Mar 2025 18:36:43 +0000 (18:36 +0000)] 
python: Fix type for keyword lists

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agojenkins: Fix syntax to install perl(Test::More)
Michael Tremer [Thu, 6 Mar 2025 18:34:47 +0000 (18:34 +0000)] 
jenkins: Fix syntax to install perl(Test::More)

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agolua: Perform formatting string sanitization
Michael Tremer [Thu, 6 Mar 2025 18:19:03 +0000 (18:19 +0000)] 
lua: Perform formatting string sanitization

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agotree: Replace bitfields with flags to mark deleted nodes
Michael Tremer [Thu, 6 Mar 2025 18:17:51 +0000 (18:17 +0000)] 
tree: Replace bitfields with flags to mark deleted nodes

clang does not seem to like these much.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agolog: Perform formatting string sanitation when logging to stderr
Michael Tremer [Thu, 6 Mar 2025 18:10:56 +0000 (18:10 +0000)] 
log: Perform formatting string sanitation when logging to stderr

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agojenkins: Install perl(Test::More) on Fedora
Michael Tremer [Thu, 6 Mar 2025 18:08:46 +0000 (18:08 +0000)] 
jenkins: Install perl(Test::More) on Fedora

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agotests: Constify path to open in database test
Michael Tremer [Thu, 6 Mar 2025 18:00:45 +0000 (18:00 +0000)] 
tests: Constify path to open in database test

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoaddress: Never pass zero to __builtin_ctz
Michael Tremer [Thu, 6 Mar 2025 17:59:03 +0000 (17:59 +0000)] 
address: Never pass zero to __builtin_ctz

This is undefined behaviour which worked just fine in GCC, but in clang
the code is doing funny business.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoconfigure: Enable more compiler warnings
Michael Tremer [Thu, 6 Mar 2025 17:45:38 +0000 (17:45 +0000)] 
configure: Enable more compiler warnings

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoFix all sorts of string formatting issues
Michael Tremer [Thu, 6 Mar 2025 17:43:17 +0000 (17:43 +0000)] 
Fix all sorts of string formatting issues

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agotests: Make bit length mismatch message clearer
Michael Tremer [Thu, 6 Mar 2025 16:53:44 +0000 (16:53 +0000)] 
tests: Make bit length mismatch message clearer

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agojenkins: Upload logs from tests in src/, too
Michael Tremer [Thu, 6 Mar 2025 16:43:29 +0000 (16:43 +0000)] 
jenkins: Upload logs from tests in src/, too

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agotree: Try harder to merge networks
Michael Tremer [Thu, 6 Mar 2025 16:37:09 +0000 (16:37 +0000)] 
tree: Try harder to merge networks

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agotree: Add network to the stack after we have tried again
Michael Tremer [Thu, 6 Mar 2025 16:24:46 +0000 (16:24 +0000)] 
tree: Add network to the stack after we have tried again

If we add it before, we will try to merge the network with itself which
is not necessary as it will never result in anything good.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoconfigure: Make Lua check work on Fedora, too
Michael Tremer [Thu, 6 Mar 2025 15:48:55 +0000 (15:48 +0000)] 
configure: Make Lua check work on Fedora, too

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agojenkins: Install lua-unit wherever available
Michael Tremer [Thu, 6 Mar 2025 15:18:56 +0000 (15:18 +0000)] 
jenkins: Install lua-unit wherever available

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoconfigure: Don't run Lua tests if luaunit is not available
Michael Tremer [Thu, 6 Mar 2025 15:13:25 +0000 (15:13 +0000)] 
configure: Don't run Lua tests if luaunit is not available

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agodebian: Don't build packages against Lua
Michael Tremer [Thu, 6 Mar 2025 15:08:12 +0000 (15:08 +0000)] 
debian: Don't build packages against Lua

This is a little bit more complicated, because we probably want to build
against multiple versions and I don't know how to do this.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agojenkins: Actually install Lua when we want to build against it
Michael Tremer [Thu, 6 Mar 2025 15:07:00 +0000 (15:07 +0000)] 
jenkins: Actually install Lua when we want to build against it

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agojenkins: Add all supported Debian architectures
Michael Tremer [Thu, 6 Mar 2025 15:03:51 +0000 (15:03 +0000)] 
jenkins: Add all supported Debian architectures

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoconfigure: Fail if Lua was enabled, but not found
Michael Tremer [Thu, 6 Mar 2025 15:00:58 +0000 (15:00 +0000)] 
configure: Fail if Lua was enabled, but not found

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agojenkins: Remove extra tests we currently don't support
Michael Tremer [Thu, 6 Mar 2025 14:44:42 +0000 (14:44 +0000)] 
jenkins: Remove extra tests we currently don't support

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agojenkins: Don't expect any tests to fail
Michael Tremer [Thu, 6 Mar 2025 14:42:15 +0000 (14:42 +0000)] 
jenkins: Don't expect any tests to fail

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agojenkins: Always Lua extension, too
Michael Tremer [Thu, 6 Mar 2025 14:42:05 +0000 (14:42 +0000)] 
jenkins: Always Lua extension, too

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoconfigure: Check syntax of Lua check
Michael Tremer [Thu, 6 Mar 2025 14:39:01 +0000 (14:39 +0000)] 
configure: Check syntax of Lua check

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoconfigure: Don't automatically detect systemdunitdir
Michael Tremer [Thu, 6 Mar 2025 14:36:31 +0000 (14:36 +0000)] 
configure: Don't automatically detect systemdunitdir

This is no longer possible on newer versions of systemd where the
variable has been removed from pkg-config.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>