...
RPM build errors: Finish: rpmbuild hello-2.10-1.fc39.src.rpm Finish: build phase for hello-2.10-1.fc39.src.rpm ERROR: Exception(/home/patrick/Documents/packaging/hello/hello-2.10-1.fc39.src.rpm) Config(fedora-39-x86_64) 1 minutes 3 seconds INFO: Results and/or logs in: /home/patrick/Documents/packaging/hello/results_hello/2.10/1.fc39 INFO: Cleaning up build root ('cleanup_on_failure=True') Start: clean chroot Finish: clean chroot ERROR: Command failed: # /usr/bin/systemd-nspawn -q -M d0804bdb5b6047f286e7f7c2413fa815 -D /var/lib/mock/fedora-39-x86_64/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.3hw4jhe2:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007"' '--setenv=PS1=<mock-chroot> \s-\v$ ' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/hello.spec'
Could not execute mockbuild: Failed to execute command.
Hello packagers,
I am new in Fedora packaging and I would like to become a packager.
I tried to build the package GNU Hello but I got the errors above.
Could you please help me?
Have a nice Sunday!
Best regards, Patrick "Patux" patux@fedoraproject.org
Hello Patrick,
What was the command you issued? Were there any errors before the excerpt you've posted? Does your user belong to the 'mock' group?
Best regards, A.
Try adding 'BuildRequires: gcc-c++' to the specfile
checking for x86_64-redhat-linux-gcc... gcc checking whether the C compiler works... no configure: error: in `/builddir/build/BUILD/hello-2.10': configure: error: C compiler cannot create executables See `config.log' for more details
Try adding 'BuildRequires: gcc-c++' to the specfile
checking for x86_64-redhat-linux-gcc... gcc checking whether the C compiler works... no configure: error: in `/builddir/build/BUILD/hello-2.10': configure: error: C compiler cannot create executables See `config.log' for more details
Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/hello-2.10-1.fc39.x86_64 error: Installed (but unpackaged) file(s) found: /usr/share/info/hello.info.gz /usr/share/locale/bg/LC_MESSAGES/hello.mo /usr/share/locale/ca/LC_MESSAGES/hello.mo /usr/share/locale/da/LC_MESSAGES/hello.mo /usr/share/locale/de/LC_MESSAGES/hello.mo /usr/share/locale/el/LC_MESSAGES/hello.mo /usr/share/locale/eo/LC_MESSAGES/hello.mo /usr/share/locale/es/LC_MESSAGES/hello.mo /usr/share/locale/et/LC_MESSAGES/hello.mo /usr/share/locale/eu/LC_MESSAGES/hello.mo /usr/share/locale/fa/LC_MESSAGES/hello.mo /usr/share/locale/fi/LC_MESSAGES/hello.mo /usr/share/locale/fr/LC_MESSAGES/hello.mo /usr/share/locale/ga/LC_MESSAGES/hello.mo /usr/share/locale/gl/LC_MESSAGES/hello.mo /usr/share/locale/he/LC_MESSAGES/hello.mo /usr/share/locale/hr/LC_MESSAGES/hello.mo /usr/share/locale/hu/LC_MESSAGES/hello.mo /usr/share/locale/id/LC_MESSAGES/hello.mo /usr/share/locale/it/LC_MESSAGES/hello.mo /usr/share/locale/ja/LC_MESSAGES/hello.mo /usr/share/locale/ka/LC_MESSAGES/hello.mo /usr/share/locale/ko/LC_MESSAGES/hello.mo /usr/share/locale/lv/LC_MESSAGES/hello.mo /usr/share/locale/ms/LC_MESSAGES/hello.mo /usr/share/locale/nb/LC_MESSAGES/hello.mo /usr/share/locale/nl/LC_MESSAGES/hello.mo /usr/share/locale/nn/LC_MESSAGES/hello.mo /usr/share/locale/pl/LC_MESSAGES/hello.mo /usr/share/locale/pt/LC_MESSAGES/hello.mo /usr/share/locale/pt_BR/LC_MESSAGES/hello.mo /usr/share/locale/ro/LC_MESSAGES/hello.mo /usr/share/locale/ru/LC_MESSAGES/hello.mo /usr/share/locale/sk/LC_MESSAGES/hello.mo /usr/share/locale/sl/LC_MESSAGES/hello.mo /usr/share/locale/sr/LC_MESSAGES/hello.mo /usr/share/locale/sv/LC_MESSAGES/hello.mo /usr/share/locale/th/LC_MESSAGES/hello.mo /usr/share/locale/tr/LC_MESSAGES/hello.mo /usr/share/locale/uk/LC_MESSAGES/hello.mo /usr/share/locale/vi/LC_MESSAGES/hello.mo /usr/share/locale/zh_CN/LC_MESSAGES/hello.mo /usr/share/locale/zh_TW/LC_MESSAGES/hello.mo /usr/share/man/man1/hello.1.gz
Scratch that idea, looking ate the buildlog you have unpacked files, use this to install the .mo files.
https://fedoraproject.org/wiki/PackagingDrafts/find_lang
and add the man file to the %files section.
%{_mandir}/man1/hello.1.*
Just FTR, there is attachment with logs. I have not noticed it on the first look, but Leigh did :)
Vít
Dne 07. 01. 24 v 1:41 Alexander Ploumistos napsal(a):
Hello Patrick,
What was the command you issued? Were there any errors before the excerpt you've posted? Does your user belong to the 'mock' group?
Best regards, A. -- _______________________________________________ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue