Hi All, On Wed, 2025-01-15 at 23:02 +0100, Paul Gevers wrote: > Hi, > > On 15-01-2025 22:48, Peter Blackman wrote: > > so the package name only goes into the source, and then the package name > > plus version gets into the binary? Here is my understand on how this should work:
First we should patch fpc-depends to generate a substitution variable let's say
as fommows:
diff --git a/debian/fpc-depends.in b/debian/fpc-depends.in
index ddc3c348..04de6033 100755
--- a/debian/fpc-depends.in
+++ b/debian/fpc-depends.in
@@ -47,6 +47,7 @@ init ();
foreach my $package (@{$dh{DOPACKAGES}}) {
delsubstvar($package, "fpc-abi:Depends");
addsubstvar($package, "fpc-abi:Depends", "fpc-abi-${VERSION}");
+ addsubstvar($package, "fpc:Static-Built-Using", "fpc (= ${DEB_VERSION})");
}
=head1 SEE ALSO
The inside CGE we add the filed, lets say as follow:
diff --git a/debian/control b/debian/control
index 2ced4249..b9b1ad99 100644
--- a/debian/control
+++ b/debian/control
@@ -38,7 +38,7 @@ Rules-Requires-Root: no
Package: fp-units-castle-game-engine
Architecture: any
-Static-Built-Using: fpc
+Static-Built-Using: ${fpc:Static-Built-Using}
Depends:
${fpc-abi:Depends},
${misc:Depends},
diff --git a/debian/rules b/debian/rules
index 28aaa45f..d0107ae2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -146,6 +146,7 @@ override_dh_auto_install-arch:
${CP} debian/castle-game-engine.cfg ${CFG_DIR}/castle-game-engine
# Perform cleanup
find ${INSTALL_DIR} -empty -delete
+ fpc-depends
override_dh_auto_build-indep: prepare-source install-source
@echo "--- Building Documentation"
This way, the dependency on FPC is added dynamically upon the build.
Please let me know what do you think?
--
Cheers,
Abou Al Montacir
signature.asc
Description: This is a digitally signed message part

