Skip to content

batmand, vis: drop dead build flags, fix revision info, add test-version.sh - #1195

Open
BKPepe wants to merge 3 commits into
openwrt:openwrt-25.12from
BKPepe:batmand-vis-cleanup
Open

batmand, vis: drop dead build flags, fix revision info, add test-version.sh#1195
BKPepe wants to merge 3 commits into
openwrt:openwrt-25.12from
BKPepe:batmand-vis-cleanup

Conversation

@BKPepe

@BKPepe BKPepe commented Aug 6, 2026

Copy link
Copy Markdown
Member
  • Both packages passed an EXTRA_CFLAGS='...' assignment that the upstream build systems never reference, so none of those flags were ever applied (the debug defines are already set via CPPFLAGS upstream and REVISION_VERSION is unused in both sources). Drop it.
  • vis: the REVISION make variable was set to the undefined PKG_REV, so the binary carried no revision information. Use PKG_SOURCE_VERSION like batmand does (PKG_RELEASE bumped).
  • Add test-version.sh for the CI runtime tests: the package versions are derived from PKG_SOURCE_DATE and the git hash, which the binaries do not report, so the generic version check could never pass. Check the version banners via batmand -v / vis -v instead.

Maintainer: @elektra42

Copilot AI lite review requested due to automatic review settings August 6, 2026 07:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Comment on lines +1 to +13
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Josef Schlehofer <pepe.schlehofer@gmail.com>
Date: Wed, 6 Aug 2026 12:00:00 +0200
Subject: [PATCH] allocate: include string.h for memcpy

memcpy() is used in debugRealloc() without including string.h. Since
GCC 14 treats implicit function declarations as a hard error, the
build fails:

allocate.c:349:17: error: implicit declaration of function
'memcpy' [-Wimplicit-function-declaration]

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@elektra42 @ecsv:

This PR carries a small patch adding #include <string.h> to allocate.c, because memcpy() is used there without it and GCC 14 turns implicit declarations into errors, so batmand currently fails to build.

It looks like a fix that belongs upstream rather than in the feed.

@BKPepe
BKPepe force-pushed the batmand-vis-cleanup branch from 29da6f0 to 8fbbc12 Compare August 6, 2026 11:56
BKPepe and others added 3 commits August 11, 2026 13:06
Drop the EXTRA_CFLAGS assignment from MAKE_FLAGS. The batmand build
system never references an EXTRA_CFLAGS variable, so none of these
flags were applied: the debug defines are already set via CPPFLAGS
by the upstream Makefile and REVISION_VERSION is not used anywhere
in the source.

Also add test-version.sh for the CI runtime tests. The package
version is derived from PKG_SOURCE_DATE and the git hash, which the
binary does not report, so the generic version check always failed.
Check that the binary starts and prints its version banner instead.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
The REVISION make variable was set to PKG_REV, which is not defined
anywhere, so the binary was built without revision information. Use
PKG_SOURCE_VERSION, like batmand does, so `vis -v` identifies the
packaged git snapshot.

Drop the EXTRA_CFLAGS assignment from MAKE_FLAGS. The vis build
system never references an EXTRA_CFLAGS variable, so none of these
flags were applied: the debug defines are already set via CPPFLAGS
by the upstream Makefile and REVISION_VERSION is not used anywhere
in the source.

Also add test-version.sh for the CI runtime tests. The package
version is derived from PKG_SOURCE_DATE and the git hash, which the
binary does not report, so the generic version check always failed.
Check that the binary starts and prints its version banner instead.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
allocate.c uses memcpy() without including string.h. GCC 14 treats
implicit function declarations as a hard error, so the package
failed to build:

    allocate.c:349:17: error: implicit declaration of function
    'memcpy' [-Wimplicit-function-declaration]

Add a patch which includes string.h.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
@BKPepe
BKPepe force-pushed the batmand-vis-cleanup branch from 8fbbc12 to 103bc5f Compare August 11, 2026 11:07
@openwrt openwrt Bot added the not following guidelines Pull request does not follow formatting guidelines label Aug 11, 2026
@BKPepe
BKPepe changed the base branch from master to openwrt-25.12 August 11, 2026 11:14
@openwrt openwrt Bot added the release/25.12 Pull request targets the stable release branch release/25.12 label Aug 11, 2026
@BKPepe

BKPepe commented Aug 11, 2026

Copy link
Copy Markdown
Member Author

[allow cherry-pick]

@openwrt openwrt Bot removed the not following guidelines Pull request does not follow formatting guidelines label Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release/25.12 Pull request targets the stable release branch release/25.12

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants