mirror of
https://github.com/xcat2/xcat-dep.git
synced 2026-12-03 15:47:02 +00:00
baf4226096814eb6bfa715cebb2767d99e7b516f
The four perl packages are rebuilt from Fedora source rpms, which BuildRequire perl-generators and perl-interpreter. openSUSE has neither: there perl provides the interpreter and rpm generates the perl dependencies itself. dnf builddep stops before the build, so every one of them fails in a Leap chroot and the repository ships without perl-IO-Stty, perl-HTTP-Async, perl-Net-HTTPS-NB and perl-Net-Telnet, all of which xCAT requires. A build-only rpm provides those three names and pulls the real perl, in a local repository the mock configuration of a SUSE target reads. It is never shipped. The decision, the spec and the configuration text move into MockBuildUtils so a test can exercise them in process; mockbuild-perl-packages.pl keeps the rpmbuild and createrepo_c calls and builds the repository under the caller's own per-package directory, so parallel perl builds cannot race on it. perl_mock_cfg_text refuses a SUSE target with no compat repository rather than writing a configuration without it, because building without the compat is the failure this prevents. The fix existed on the uftp-suse lineage and was never proposed here. t/perl_buildreq_compat.t fails 3 of 6 on the parent commit. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
Description
No description provided
Languages
Perl
79.3%
JavaScript
6.3%
C
3.9%
Shell
3.1%
SQLPL
2%
Other
5.2%