Skip to content

testsuite: test install-strip tool selection#1027

Open
steadytao wants to merge 4 commits into
RsyncProject:masterfrom
steadytao:test/install-strip-cross-tool
Open

testsuite: test install-strip tool selection#1027
steadytao wants to merge 4 commits into
RsyncProject:masterfrom
steadytao:test/install-strip-cross-tool

Conversation

@steadytao

Copy link
Copy Markdown
Member

Adds testsuite coverage for install-strip with native and host-prefixed strip commands. Created for #1024, test verifies that

  • configure supplied the STRIP Makefile variable;
  • each strip command receives the installed rsync path;
  • and install-strip does not modify the source binary

alessandrodn and others added 3 commits July 10, 2026 11:06
The install-strip target hard-coded `install -s`, which strips via the
install program using the build host's strip and ignores the STRIP
variable. When cross-compiling this runs the host strip against a
target binary and fails.

Pass --strip-program=$(or $(STRIP),strip) so the target strip is used
when STRIP is set (as cross toolchains and build systems provide),
falling back to plain `strip` for native builds. A plain `make install`
is unaffected.
- Detect the target strip via AC_CHECK_TOOL([STRIP],[strip],[strip]) in
  configure.ac (picks up the cross-prefixed strip when cross-compiling,
  defaults to plain strip otherwise) and substitute @strip@ in Makefile.in.
- Rewrite install-strip to run a normal install then $(STRIP) on the
  installed rsync binary, dropping the GNU Make $(or ...) and the GNU
  install --strip-program extension that broke with install-sh/BSD install.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Zen Dodd <mail@steadytao.com>
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