1.1.6 build fails on FC30

Udo van den Heuvel udovdh at xs4all.nl
Thu Aug 1 17:19:02 UTC 2019


On 01-08-19 19:00, Matthew Selsky wrote:
> You may need to specifically use %{__python3} when you call "waf" in the 2 places in the %build section.

When I do these things I get:

Waf: Leaving directory `/usr/src/redhat/BUILD/ntpsec-1.1.6/build/main'
Traceback (most recent call last):
  File
"/usr/src/redhat/BUILD/ntpsec-1.1.6/.waf-1.9.15-7481b2b5d90177d4bb747dbff06bef90/waflib/Scripting.py",
line 122, in waf_entry_point
    run_commands()
  File
"/usr/src/redhat/BUILD/ntpsec-1.1.6/.waf-1.9.15-7481b2b5d90177d4bb747dbff06bef90/waflib/Scripting.py",
line 183, in run_commands
    ctx=run_command(cmd_name)
  File
"/usr/src/redhat/BUILD/ntpsec-1.1.6/.waf-1.9.15-7481b2b5d90177d4bb747dbff06bef90/waflib/Scripting.py",
line 174, in run_command
    ctx.execute()
  File
"/usr/src/redhat/BUILD/ntpsec-1.1.6/.waf-1.9.15-7481b2b5d90177d4bb747dbff06bef90/waflib/Scripting.py",
line 377, in execute
    return execute_method(self)
  File
"/usr/src/redhat/BUILD/ntpsec-1.1.6/.waf-1.9.15-7481b2b5d90177d4bb747dbff06bef90/waflib/Context.py",
line 88, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File
"/usr/src/redhat/BUILD/ntpsec-1.1.6/.waf-1.9.15-7481b2b5d90177d4bb747dbff06bef90/waflib/Context.py",
line 129, in recurse
    user_function(self)
  File "/usr/src/redhat/BUILD/ntpsec-1.1.6/wscript", line 962, in
init_handler
    obj.execute()
  File
"/usr/src/redhat/BUILD/ntpsec-1.1.6/.waf-1.9.15-7481b2b5d90177d4bb747dbff06bef90/waflib/Scripting.py",
line 377, in execute
    return execute_method(self)
  File
"/usr/src/redhat/BUILD/ntpsec-1.1.6/.waf-1.9.15-7481b2b5d90177d4bb747dbff06bef90/waflib/Build.py",
line 104, in execute
    self.execute_build()
  File
"/usr/src/redhat/BUILD/ntpsec-1.1.6/.waf-1.9.15-7481b2b5d90177d4bb747dbff06bef90/waflib/Build.py",
line 123, in execute_build
    self.post_build()
  File
"/usr/src/redhat/BUILD/ntpsec-1.1.6/.waf-1.9.15-7481b2b5d90177d4bb747dbff06bef90/waflib/Build.py",
line 280, in post_build
    m(self)
  File "/usr/src/redhat/BUILD/ntpsec-1.1.6/wscript", line 917, in bin_test
    from wafhelpers.bin_test import cmd_bin_test
  File "/usr/src/redhat/BUILD/ntpsec-1.1.6/wafhelpers/bin_test.py", line
11, in <module>
    import ntp.util
  File
"/usr/src/redhat/BUILD/ntpsec-1.1.6/build/main/tests/pylib/ntp/util.py",
line 16, in <module>
    import ntp.ntpc
ImportError: No module named ntpc
error: Bad exit status from /var/tmp/rpm-tmp.3EkTlR (%build)


RPM build errors:
    Macro expanded in comment on line 119: %{_sysconfdir}/sysconfig/ntpd

    Macro expanded in comment on line 126: %{_sysconfdir}/ntp/crypto/pw

    Macro expanded in comment on line 127: %{_sysconfdir}/dhcp/dhclient.d

    Macro expanded in comment on line 128:
%{_sysconfdir}/dhcp/dhclient.d/ntp.sh

    Bad exit status from /var/tmp/rpm-tmp.3EkTlR (%build)


So maybe not use --python=%{__python3} for waf?
Without this the rpm builds OK.


Kind regards,
Udo



More information about the devel mailing list