Sorry I don't know if here is the right place... I'm going through the guide https://docs.fedoraproject.org/en-US/package-maintainers/Packaging_Tutorial_... and get stuck with this error. I'm using f37 and copy-paste the complete spec file from the tutorial. I got log like this
/builddir/build/BUILD/hello-2.10/build-aux/missing: line 81: makeinfo: command not found WARNING: 'makeinfo' is missing on your system. You should only need it if you modified a '.texi' file, or any other file indirectly affecting the aspect of the manual. You might want to install the Texinfo package: http://www.gnu.org/software/texinfo/ The spurious makeinfo call might also be the consequence of using a buggy 'make' (AIX, DU, IRIX), in which case you might want to install GNU make: http://www.gnu.org/software/make/ make[2]: *** [Makefile:1672: doc/hello.info] Error 127 make[2]: Leaving directory '/builddir/build/BUILD/hello-2.10' make[1]: *** [Makefile:1878: install-recursive] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/hello-2.10' make: *** [Makefile:2371: install] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.ZXjHGy (%install) Bad exit status from /var/tmp/rpm-tmp.ZXjHGy (%install) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M 84f181e5739b49f4a2487143cf73171e -D /var/lib/mock/fedora-36-x86_64/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.nywzq12a:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --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 --setenv=http_proxy=socks5://127.0.0.1:1090 --setenv=https_proxy=socks5://127.0.0.1:1090 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/hel lo.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M 84f181e5739b49f4a2487143cf73171e -D /var/lib/mock/fedora-36-x86_64/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.nywzq12a:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --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 --setenv=http_proxy=socks5://127.0.0.1:1090 --setenv=https_proxy=socks5://127.0.0.1:1090 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/hello.spec
But I have already install texifo, is there anything else I need to change? Or any more information I need to provide?
Thanks a lot.
Betty
On Sat, May 20, 2023 at 07:06:39AM -0000, Betty Liu wrote:
Sorry I don't know if here is the right place... I'm going through the guide https://docs.fedoraproject.org/en-US/package-maintainers/Packaging_Tutorial_... and get stuck with this error. I'm using f37 and copy-paste the complete spec file from the tutorial. I got log like this
/builddir/build/BUILD/hello-2.10/build-aux/missing: line 81: makeinfo: command not found
But I have already install texifo, is there anything else I need to change? Or any more information I need to provide?
Is texinfo installed the mock environment?
Zbyszek
On Sat, 2023-05-20 at 19:15 +0000, Zbigniew Jędrzejewski-Szmek wrote:
On Sat, May 20, 2023 at 07:06:39AM -0000, Betty Liu wrote:
Sorry I don't know if here is the right place... I'm going through the guide https://docs.fedoraproject.org/en-US/package-maintainers/Packaging_Tutorial_... and get stuck with this error. I'm using f37 and copy-paste the complete spec file from the tutorial. I got log like this
/builddir/build/BUILD/hello-2.10/build-aux/missing: line 81: makeinfo: command not found
But I have already install texifo, is there anything else I need to change? Or any more information I need to provide?
Is texinfo installed the mock environment?
maybe you need add "BuildRequires: gettext" to spec file
Zbyszek _______________________________________________ packaging mailing list -- packaging@lists.fedoraproject.org To unsubscribe send an email to packaging-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/packaging@lists.fedoraproject.... Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
I have it in my spec file, which is exactly as same as the tutorial.
Name: hello Version: 2.10 Release: %autorelease Summary: Produces a familiar, friendly greeting
License: GPL-3.0-or-later URL: http://ftp.gnu.org/gnu/%%7Bname%7D Source: http://ftp.gnu.org/gnu/%%7Bname%7D/%%7Bname%7D-%%7Bversion%7D.tar.gz
BuildRequires: gcc BuildRequires: gettext BuildRequires: make
%description The GNU Hello program produces a familiar, friendly greeting. Yes, this is another implementation of the classic program that prints "Hello, world!" when you run it.
%prep %autosetup mv THANKS THANKS.old iconv --from-code=ISO-8859-1 --to-code=UTF-8 --output=THANKS THANKS.old
%build %configure %make_build
%install %make_install rm %{buildroot}/%{_infodir}/dir %find_lang %{name}
%check make check
%files -f %{name}.lang %{_mandir}/man1/hello.1.* %{_infodir}/hello.info.* %{_bindir}/hello %doc AUTHORS ChangeLog NEWS README THANKS TODO %license COPYING
%changelog %autochangelog
here it is if you want. And thank you so much!
Betty Liu kirjoitti 20.5.2023 klo 10.06:
Sorry I don't know if here is the right place... I'm going through the guide https://docs.fedoraproject.org/en-US/package-maintainers/Packaging_Tutorial_... and get stuck with this error. I'm using f37 and copy-paste the complete spec file from the tutorial. I got log like this
/builddir/build/BUILD/hello-2.10/build-aux/missing: line 81: makeinfo: command not found WARNING: 'makeinfo' is missing on your system. You should only need it if you modified a '.texi' file, or any other file indirectly affecting the aspect of the manual. You might want to install the Texinfo package: http://www.gnu.org/software/texinfo/ The spurious makeinfo call might also be the consequence of using a buggy 'make' (AIX, DU, IRIX), in which case you might want to install GNU make: http://www.gnu.org/software/make/
Looks like this issue:
https://pagure.io/fedora-docs/package-maintainer-docs/issue/97
Which we had to close because we could not reproduce it. I will take a look later. In the meantime, if you have more information you can add about your case, please add them to the issue.
Otto Liljalaakso kirjoitti 21.5.2023 klo 9.33:
Betty Liu kirjoitti 20.5.2023 klo 10.06:
Sorry I don't know if here is the right place... I'm going through the guide https://docs.fedoraproject.org/en-US/package-maintainers/Packaging_Tutorial_... and get stuck with this error. I'm using f37 and copy-paste the complete spec file from the tutorial. I got log like this
/builddir/build/BUILD/hello-2.10/build-aux/missing: line 81: makeinfo: command not found WARNING: 'makeinfo' is missing on your system. You should only need it if you modified a '.texi' file, or any other file indirectly affecting the aspect of the manual. You might want to install the Texinfo package: http://www.gnu.org/software/texinfo/ The spurious makeinfo call might also be the consequence of using a buggy 'make' (AIX, DU, IRIX), in which case you might want to install GNU make: http://www.gnu.org/software/make/
Looks like this issue:
https://pagure.io/fedora-docs/package-maintainer-docs/issue/97
Which we had to close because we could not reproduce it. I will take a look later. In the meantime, if you have more information you can add about your case, please add them to the issue.
Here is my attempt to reproduce the issue: https://pagure.io/fedora-docs/package-maintainer-docs/issue/97#comment-85736...
No luck, the build went just fine. Betty, if you have a reproducer, please comment in the issue with more details.
Hi Otto, sorry for the late response. Yes, I can still reproduce this problem, what else should I provide for it? I'm so sorry I'm totally new in this field qwq
oh, I success by adding the BuildRequires: texinfo but I do write the line to remove tex info page rm %{buildroot}/%{_infodir}/dir
I will comment these in the issue. After adding this line, every things are fine
packaging@lists.fedoraproject.org