Bug #86277 remove obsolete INCLUDE_DIRECTORIES in cmake files
Submitted: 11 May 2017 6:07 Modified: 11 May 2017 18:27
Reporter: Tor Didriksen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.2 OS:Any
Assigned to: CPU Architecture:Any

[11 May 2017 6:07] Tor Didriksen
Description:
This is a followup to the patch for
Bug #25436469 BUILDS ARE NOT REPRODUCIBLE

perl will sometimes report
Use of uninitialized value $dir1 in pattern match (m//) at scripts/invoke-with-relative-paths.pl line 62.

This turns out to be obsolete/wrong cmake INCLUDE_DIRECTORIES directives.

How to repeat:
cmake -DREPRODUCIBLE_BUILD=ON

Suggested fix:
in the perl script:
+       if (!-e $dir1) {
+               print STDERR "unknown file/directory $dir1\n";
+               return $dir1;
+       }

Also: remove all obsolete INCLUDE_DIRECTORIES from .cmake files.
[11 May 2017 18:27] Paul DuBois
Posted by developer:
 
Fixed in 8.0.2.

Code cleanup. No changelog entry needed.