| 1 |
These config.sh.* files are generated during the package build |
| 2 |
and installed into the libperl5.xx package, in the directory |
| 3 |
/usr/lib/<triplet>/perl/config-data-<version>. They contain probed values |
| 4 |
about system configuration, used for cross building the package. |
| 5 |
|
| 6 |
The probes currently need to run on the native architecture, so they |
| 7 |
cannot be used for cross building. As a workaround, we store the results |
| 8 |
in the built binary package and then manually copy them back to the |
| 9 |
source package as needed. |
| 10 |
|
| 11 |
The process is currently experimental, and no commitment is made on long |
| 12 |
term feasibility of this. We will see how it goes. |
| 13 |
|
| 14 |
For more information, see the thread starting at |
| 15 |
http://lists.alioth.debian.org/pipermail/perl-maintainers/2016-January/005241.html |
| 16 |
|
| 17 |
-- Niko Tyni <[email protected]> Fri, 29 Jan 2016 10:28:42 +0200 |
| 18 |
|
| 19 |
There is some tooling to help the process of incorporating the generated |
| 20 |
config.sh.* files from architecture specific binary packages back into |
| 21 |
the source package: |
| 22 |
|
| 23 |
- debian/cross/download-deb can be used to pull in the required binary package |
| 24 |
|
| 25 |
- debian/cross/extract-config-sh can then be run on the downloaded |
| 26 |
package(s) to copy the config.sh.* files into the source tree and commit |
| 27 |
the changes into the git repository. |
| 28 |
|
| 29 |
An example transcript would be: |
| 30 |
|
| 31 |
$ for arch in amd64 arm64 armel armhf i386 mips64el ppc64el riscv64 s390x; do ./debian/cross/download-deb -p libperl5.38t64 -v 5.38.2-4 -s 'deb http://deb.debian.org/debian unstable main' $arch; done |
| 32 |
$ for arch in alpha hppa hurd-amd64 hurd-i386 ia64 loong64 m68k powerpc ppc64 sh4 sparc64 x32; do ./debian/cross/download-deb -p libperl5.38t64 -v 5.38.2-4 -s 'deb http://deb.debian.org/debian-ports unstable main' $arch; done |
| 33 |
$ ./debian/cross/extract-config-sh libperl*.deb |
| 34 |
|
| 35 |
The debian-ports part needs the debian-ports-archive-keyring package installed |
| 36 |
(but could be done in an ephemeral chroot if that seems preferrable.) |
| 37 |
|
| 38 |
As always, this is still work in progress and will hopefully improve over time. |
| 39 |
|
| 40 |
-- Niko Tyni <[email protected]> Mon, 22 Feb 2021 17:24:27 +0200 |