Skip to content

Stub fconv() for the catalog harness - #258

Merged
xroche merged 2 commits into
masterfrom
engine-fconv-link
Oct 21, 2026
Merged

xroche merged 2 commits into
masterfrom
engine-fconv-link

Conversation

@xroche

@xroche xroche commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

Engine 0885bc79 added hts_fopen_private() to htslines.c, which opens its file through fconv(). This harness links htslines.c without it, so the encoding job fails on every pull request. The stub exists only for the linker. An abort() placed inside it never fired, because the harness opens the catalogs itself.

xroche and others added 2 commits October 21, 2026 19:10
Engine 28167dd made htslines.c open its files through fconv(), which
tools/catalog-lists-test.cpp links without. The encoding job has reded
on every pull request since, with "undefined reference to `fconv'".

The real one is in the engine's htsconcat.c, which reaches htscore.h
and so the coucal submodule the engine checkout does not fetch. A stub
is honest here: putting abort() inside it changed nothing, so the
harness never calls it, and it exists for the linker alone.

Signed-off-by: Xavier Roche <xroche@gmail.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Xavier Roche <roche@httrack.com>
The three-line block answered two questions where one mattered to a
reader editing the stub. The header chain behind the real fconv() is
not that question.

The first commit message blamed engine 28167dd. That is PR #2003 and
it only touched src/htsparse.c. The real one is 0885bc79, PR #2001,
which added hts_fopen_private() to htslines.c. A `git log -S` in a
--depth 1 clone can only answer with HEAD, which is how it got named.

Signed-off-by: Xavier Roche <xroche@gmail.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Xavier Roche <roche@httrack.com>
@xroche xroche changed the title Give the catalog harness the fconv() the engine now calls Stub fconv() for the catalog harness Oct 21, 2026
@xroche
xroche enabled auto-merge (squash) October 21, 2026 18:41
@xroche
xroche merged commit 2c31001 into master Oct 21, 2026
15 checks passed
@xroche
xroche deleted the engine-fconv-link branch October 21, 2026 18:58
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.

1 participant