Description of problem: with fc25,i use mock to build kbd-2.0.3-3.fc24.src.rpm # mock -r fedora-25-x86_64 kbd-2.0.3-3.fc24.src.rpm [mock@fc25-dev ~/repo/fedora-source/Packages/sourcepkg]$ mock -r fedora-25-x86_64 kbd-2.0.3-3.fc24.src.rpm INFO: mock.py version 1.3.4 starting (python version = 3.5.3)... Start: init plugins INFO: selinux disabled Finish: init plugins Start: run INFO: Start(kbd-2.0.3-3.fc24.src.rpm) Config(fedora-25-x86_64) Start: clean chroot Finish: clean chroot Start: chroot init INFO: calling preinit hooks INFO: enabled root cache Start: unpacking root cache Finish: unpacking root cache INFO: enabled dnf cache Start: cleaning dnf metadata Finish: cleaning dnf metadata INFO: enabled HW Info plugin Mock Version: 1.3.4 INFO: Mock Version: 1.3.4 Start: dnf update Dependencies resolved. Nothing to do. Complete! Finish: dnf update Finish: chroot init Start: build phase for kbd-2.0.3-3.fc24.src.rpm Start: build setup for kbd-2.0.3-3.fc24.src.rpm 构建目标平台:x86_64 为目标x86_64构建 已写至:/builddir/build/SRPMS/kbd-2.0.3-3.fc25.src.rpm Dependencies resolved. ======================================================================================================================================================================== Package Arch Version Repository Size ======================================================================================================================================================================== Installing: acl x86_64 2.2.52-13.fc25 updates 76 k bison x86_64 3.0.4-4.fc24 fedora 684 k check x86_64 0.10.0-3.fc24 fedora 92 k check-devel x86_64 0.10.0-3.fc24 fedora 31 k console-setup noarch 1.147-1.fc25 fedora 1.0 M dbus x86_64 1:1.11.14-1.fc25 updates 255 k dbus-libs x86_64 1:1.11.14-1.fc25 updates 174 k emacs-filesystem noarch 1:25.2-2.fc25 updates 66 k flex x86_64 2.6.0-3.fc25 fedora 314 k gettext x86_64 0.19.8.1-3.fc25 updates 1.0 M gettext-libs x86_64 0.19.8.1-3.fc25 updates 508 k hostname x86_64 3.15-8.fc25 updates 28 k initscripts x86_64 9.69-1.fc25 fedora 407 k ipcalc x86_64 0.1.8-1.fc25 fedora 34 k iproute x86_64 4.11.0-1.fc25 updates 477 k iptables-libs x86_64 1.6.0-3.fc25 updates 87 k iputils x86_64 20161105-1.fc25 updates 154 k kbd x86_64 2.0.3-3.fc24 fedora 384 k kbd-legacy noarch 2.0.3-3.fc24 fedora 478 k kbd-misc noarch 2.0.3-3.fc24 fedora 1.4 M kmod x86_64 23-1.fc25 fedora 112 k kmod-libs x86_64 23-1.fc25 fedora 61 k libcroco x86_64 0.6.11-3.fc25 updates 108 k libidn x86_64 1.33-1.fc25 fedora 233 k libmnl x86_64 1.0.4-1.fc25 fedora 28 k libpcap x86_64 14:1.7.4-2.fc24 fedora 148 k libseccomp x86_64 2.3.2-1.fc25 updates 60 k m4 x86_64 1.4.17-9.fc24 fedora 266 k pam-devel x86_64 1.3.0-1.fc25 fedora 189 k perl x86_64 4:5.24.1-386.fc25 updates 6.0 M perl-Carp noarch 1.40-365.fc25 fedora 29 k perl-Errno x86_64 1.25-386.fc25 updates 68 k perl-Exporter noarch 5.72-366.fc25 fedora 33 k perl-File-Path noarch 2.12-366.fc25 updates 34 k perl-IO x86_64 1.36-386.fc25 updates 133 k perl-PathTools x86_64 3.63-366.fc25 fedora 88 k perl-Scalar-List-Utils x86_64 3:1.47-1.fc25 updates 64 k perl-Socket x86_64 4:2.024-1.fc25 fedora 56 k perl-Text-Tabs+Wrap noarch 2013.0523-365.fc25 fedora 23 k perl-Unicode-Normalize x86_64 1.25-365.fc25 fedora 81 k perl-constant noarch 1.33-367.fc25 fedora 24 k perl-libs x86_64 4:5.24.1-386.fc25 updates 1.5 M perl-macros x86_64 4:5.24.1-386.fc25 updates 64 k perl-parent noarch 1:0.236-1.fc25 fedora 18 k perl-threads x86_64 1:2.16-1.fc25 updates 58 k perl-threads-shared x86_64 1.57-1.fc25 updates 45 k procps-ng x86_64 3.3.10-11.fc24 fedora 389 k python3 x86_64 3.5.3-6.fc25 updates 58 k python3-libs x86_64 3.5.3-6.fc25 updates 1.4 M python3-pip noarch 8.1.2-2.fc25 fedora 1.7 M python3-setuptools noarch 25.1.1-1.fc25 fedora 511 k qrencode-libs x86_64 3.4.4-1.fc25 updates 55 k subunit x86_64 1.2.0-10.fc25 updates 32 k subunit-devel x86_64 1.2.0-10.fc25 updates 12 k systemd x86_64 231-17.fc25 updates 2.8 M systemd-pam x86_64 231-17.fc25 updates 178 k xkeyboard-config noarch 2.20-2.fc25 updates 790 k Transaction Summary ======================================================================================================================================================================== Install 57 Packages Total size: 25 M Installed size: 77 M Downloading Packages: [SKIPPED] bison-3.0.4-4.fc24.x86_64.rpm: Already downloaded [SKIPPED] console-setup-1.147-1.fc25.noarch.rpm: Already downloaded [SKIPPED] flex-2.6.0-3.fc25.x86_64.rpm: Already downloaded [SKIPPED] check-devel-0.10.0-3.fc24.x86_64.rpm: Already downloaded [SKIPPED] gettext-0.19.8.1-3.fc25.x86_64.rpm: Already downloaded [SKIPPED] pam-devel-1.3.0-1.fc25.x86_64.rpm: Already downloaded [SKIPPED] xkeyboard-config-2.20-2.fc25.noarch.rpm: Already downloaded [SKIPPED] m4-1.4.17-9.fc24.x86_64.rpm: Already downloaded [SKIPPED] kbd-2.0.3-3.fc24.x86_64.rpm: Already downloaded [SKIPPED] check-0.10.0-3.fc24.x86_64.rpm: Already downloaded [SKIPPED] initscripts-9.69-1.fc25.x86_64.rpm: Already downloaded [SKIPPED] kbd-legacy-2.0.3-3.fc24.noarch.rpm: Already downloaded [SKIPPED] kbd-misc-2.0.3-3.fc24.noarch.rpm: Already downloaded [SKIPPED] ipcalc-0.1.8-1.fc25.x86_64.rpm: Already downloaded [SKIPPED] kmod-23-1.fc25.x86_64.rpm: Already downloaded [SKIPPED] kmod-libs-23-1.fc25.x86_64.rpm: Already downloaded [SKIPPED] hostname-3.15-8.fc25.x86_64.rpm: Already downloaded [SKIPPED] iproute-4.11.0-1.fc25.x86_64.rpm: Already downloaded [SKIPPED] libmnl-1.0.4-1.fc25.x86_64.rpm: Already downloaded [SKIPPED] iputils-20161105-1.fc25.x86_64.rpm: Already downloaded [SKIPPED] libidn-1.33-1.fc25.x86_64.rpm: Already downloaded [SKIPPED] systemd-231-17.fc25.x86_64.rpm: Already downloaded [SKIPPED] acl-2.2.52-13.fc25.x86_64.rpm: Already downloaded [SKIPPED] systemd-pam-231-17.fc25.x86_64.rpm: Already downloaded [SKIPPED] procps-ng-3.3.10-11.fc24.x86_64.rpm: Already downloaded [SKIPPED] perl-5.24.1-386.fc25.x86_64.rpm: Already downloaded [SKIPPED] perl-libs-5.24.1-386.fc25.x86_64.rpm: Already downloaded [SKIPPED] perl-Carp-1.40-365.fc25.noarch.rpm: Already downloaded [SKIPPED] perl-Exporter-5.72-366.fc25.noarch.rpm: Already downloaded [SKIPPED] perl-PathTools-3.63-366.fc25.x86_64.rpm: Already downloaded [SKIPPED] perl-Text-Tabs+Wrap-2013.0523-365.fc25.noarch.rpm: Already downloaded [SKIPPED] perl-Unicode-Normalize-1.25-365.fc25.x86_64.rpm: Already downloaded [SKIPPED] perl-constant-1.33-367.fc25.noarch.rpm: Already downloaded [SKIPPED] perl-parent-0.236-1.fc25.noarch.rpm: Already downloaded [SKIPPED] subunit-devel-1.2.0-10.fc25.x86_64.rpm: Already downloaded [SKIPPED] subunit-1.2.0-10.fc25.x86_64.rpm: Already downloaded [SKIPPED] libseccomp-2.3.2-1.fc25.x86_64.rpm: Already downloaded [SKIPPED] dbus-1.11.14-1.fc25.x86_64.rpm: Already downloaded [SKIPPED] dbus-libs-1.11.14-1.fc25.x86_64.rpm: Already downloaded [SKIPPED] iptables-libs-1.6.0-3.fc25.x86_64.rpm: Already downloaded [SKIPPED] libpcap-1.7.4-2.fc24.x86_64.rpm: Already downloaded [SKIPPED] qrencode-libs-3.4.4-1.fc25.x86_64.rpm: Already downloaded [SKIPPED] perl-File-Path-2.12-366.fc25.noarch.rpm: Already downloaded [SKIPPED] perl-IO-1.36-386.fc25.x86_64.rpm: Already downloaded [SKIPPED] perl-Socket-2.024-1.fc25.x86_64.rpm: Already downloaded [SKIPPED] perl-Scalar-List-Utils-1.47-1.fc25.x86_64.rpm: Already downloaded [SKIPPED] perl-macros-5.24.1-386.fc25.x86_64.rpm: Already downloaded [SKIPPED] perl-threads-2.16-1.fc25.x86_64.rpm: Already downloaded [SKIPPED] perl-threads-shared-1.57-1.fc25.x86_64.rpm: Already downloaded [SKIPPED] gettext-libs-0.19.8.1-3.fc25.x86_64.rpm: Already downloaded [SKIPPED] libcroco-0.6.11-3.fc25.x86_64.rpm: Already downloaded [SKIPPED] python3-3.5.3-6.fc25.x86_64.rpm: Already downloaded [SKIPPED] python3-libs-3.5.3-6.fc25.x86_64.rpm: Already downloaded [SKIPPED] python3-pip-8.1.2-2.fc25.noarch.rpm: Already downloaded [SKIPPED] python3-setuptools-25.1.1-1.fc25.noarch.rpm: Already downloaded [SKIPPED] emacs-filesystem-25.2-2.fc25.noarch.rpm: Already downloaded [SKIPPED] perl-Errno-1.25-386.fc25.x86_64.rpm: Already downloaded Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. ... ... ... bd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/se-smi.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/se-svdvorak.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/se-swl.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/se.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/si-alternatequotes.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/si-us.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/si.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/sk-bksl.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/sk-qwerty.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/sk-qwerty_bksl.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/sk.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/sy-ku.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/sy-ku_alt.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/sy-ku_f.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/sy-syc.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/sy-syc_phonetic.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/sy.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/th-pat.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/th-tis.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/th.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/tj-legacy.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/tj.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/tm-alt.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/tm.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/tr-alt.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/tr-crh.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/tr-crh_alt.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/tr-crh_f.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/tr-f.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/tr-intl.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/tr-ku.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/tr-ku_alt.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/tr-ku_f.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/tr-sundeadkeys.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/tr.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/tw-indigenous.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/tw-saisiyat.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/tw.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/ua-homophonic.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/ua-legacy.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/ua-phonetic.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/ua-rstu.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/ua-rstu_ru.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/ua-typewriter.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/ua-winkeys.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/ua.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/us-alt-intl.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/us-altgr-intl.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/us-chr.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/us-colemak.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/us-dvorak-alt-intl.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/us-dvorak-classic.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/us-dvorak-intl.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/us-dvorak-l.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/us-dvorak-r.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/us-dvorak.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/us-dvp.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/us-euro.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/us-hbs.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/us-intl.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/us-mac.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/us-olpc2.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/us-rus.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/us-workman-intl.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/us-workman.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/us.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/uz-latin.map.gz /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/uz.map.gz + gunzip /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/fi.map.gz + mv /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/fi.map /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/fi-kotoistus.map + gzip /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/fi-kotoistus.map + gunzip /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/cz.map.gz + patch /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/cz.map patching file /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/cz.map Hunk #1 FAILED at 39. 1 out of 2 hunks FAILED -- saving rejects to file /builddir/build/BUILDROOT/kbd-2.0.3-3.fc25.x86_64/lib/kbd/keymaps/xkb/cz.map.rej 错误:/var/tmp/rpm-tmp.gxuFGa (%install) 退出状态不好 RPM 构建错误: /var/tmp/rpm-tmp.gxuFGa (%install) 退出状态不好 ERROR: Exception(kbd-2.0.3-3.fc24.src.rpm) Config(fedora-25-x86_64) 5 minutes 7 seconds INFO: Results and/or logs in: /var/lib/mock/fedora-25-x86_64/result ERROR: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/kbd.spec
The problem is that /lib/kbd/keymaps/xkb/cz.map is patched (missing compose rules are added) after that file is auto generated from xkb layout using tools from console-setup. But the result of auto generation differs between f24 and f25 (#1381878), possibly because of change in xkb layout on input. There's nothing I can do with that. You can basically solve it in two ways: a) skip patching cz.map if you don't use it (or don't care about missing compose rules) b) take the updated version of patch for f25 and later, which is available since f26 (I'm going to attach it) Hope this helps.
Created attachment 1295779 [details] updated version of cz-map.patch
3q