[Pkg-pascal-devel] Bug#997948: Bug#997948: Bug#997948: FPC should provide a way to trigger automatic rebuild of
Abou Al Montacir
abou.almontacir at sfr.fr
Sat Jan 18 18:01:09 GMT 2025
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-pascal-devel/attachments/20250118/dbb27b47/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-pascal-devel/attachments/20250118/dbb27b47/attachment.sig>
More information about the Pkg-pascal-devel
mailing list