[ZBX-14941] Source tarball missing tests/ Created: 2018 Oct 03  Updated: 2024 Apr 10  Resolved: 2018 Nov 12

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Installation (I)
Affects Version/s: 4.0.0
Fix Version/s: 4.0.2rc1, 4.2.0alpha1, 4.2 (plan)

Type: Problem report Priority: Major
Reporter: Dmitry Smirnov Assignee: Michael Veksler
Resolution: Fixed Votes: 1
Labels: unittests
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Causes
causes ZBX-15211 Running make requires aclocal Closed
Team: Team A
Sprint: Sprint 44, Sprint 45, Sprint 46, Nov 2018
Story Points: 1

 Description   

Building 4.0.0 from source fails in autoreconf/automake as follows:

configure.ac:1718: error: required file 'tests/Makefile.in' not found
configure.ac:1718: error: required file 'tests/libs/Makefile.in' not found
configure.ac:1718: error: required file 'tests/libs/zbxcommon/Makefile.in' not found
configure.ac:1718: error: required file 'tests/libs/zbxconf/Makefile.in' not found
configure.ac:1718: error: required file 'tests/libs/zbxdbcache/Makefile.in' not found
configure.ac:1718: error: required file 'tests/libs/zbxdbhigh/Makefile.in' not found
configure.ac:1718: error: required file 'tests/libs/zbxhistory/Makefile.in' not found
configure.ac:1718: error: required file 'tests/libs/zbxjson/Makefile.in' not found
configure.ac:1718: error: required file 'tests/libs/zbxsysinfo/Makefile.in' not found
configure.ac:1718: error: required file 'tests/libs/zbxsysinfo/linux/Makefile.in' not found
configure.ac:1718: error: required file 'tests/libs/zbxsysinfo/common/Makefile.in' not found
configure.ac:1718: error: required file 'tests/libs/zbxcommshigh/Makefile.in' not found
configure.ac:1718: error: required file 'tests/libs/zbxalgo/Makefile.in' not found
autoreconf: automake failed with exit status: 1

And of course "tests" are missing from source tarball...

Please include tests into source distribution. Thanks.



 Comments   
Comment by Glebs Ivanovskis [ 2018 Oct 03 ]

Have you added tests directory yourself? Or perhaps you are running configure from some other place where you have tests directory?

I've just downloaded source tarball and compiled an agent with no issues. Make sure you run configure script from a place where there are no occasional tests directory. If you are really curious about tests, you can always checkout from SVN.

Comment by Dmitry Smirnov [ 2018 Oct 03 ]

Tests are missing from source tarball - this is, clearly, a problem.

No I did not re-add tests from SVN - this should be done for tarball release - that's precisely what this bug is about.

Your build probably succeeded (which is beyond the point) because you did not run autoreconf to re-build `configure` script.

I know how to run configure and I hope we are not dealing with denial...
I'm quite competent with building Zabbix from source as I've been doing that since 2012 for official Debian packages... Now when we ruled out concerns for my competence I hope the problem can get some attention please.

Comment by Glebs Ivanovskis [ 2018 Oct 03 ]

Tests are missing from source tarball - this is, clearly, a problem.

...or a policy.
Let's wait for an official response from Zabbix side.

Your build probably succeeded (which is beyond the point) because you did not run autoreconf to re-build `configure` script.

You're right, I haven't run autoreconf. By the way, why would you do that?

Comment by Dmitry Smirnov [ 2018 Oct 03 ]

Best practice. Running `autoreconf` to ensure build integrity is a standard (default) practice in Debian.
Sure enough it exposes problems like this one but more importantly it prevents various build problems by re-building everything from source - very important to do that to build successfully and reproducibly on all architectures. Another reason is open source compliance - all pre-built files (including autoconf-generated ones) should be possible to build from source.

Comment by Glebs Ivanovskis [ 2018 Oct 03 ]

Good to know. Thank you for the explanation!

Comment by Michael Veksler [ 2018 Nov 09 ]

Available in:

  • 4.0.2rc1 r86707
  • 4.2.0alpha1 (trunk) r86706
Comment by dimir [ 2018 Nov 26 ]

This one caused a regression: https://support.zabbix.com/browse/ZBX-15211

Generated at Fri Apr 26 19:53:12 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.