Bug #78788 [Com]: ./configure generates invalid php_version.h

From: Date: Wed, 06 Nov 2019 14:52:00 +0000
Subject: Bug #78788 [Com]: ./configure generates invalid php_version.h
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-223608@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78788&edit=1 ID: 78788 Comment by: php at shyim dot de Reported by: php at shyim dot de Summary: ./configure generates invalid php_version.h Status: Feedback Type: Bug Package: Compile Failure Operating System: NixOs PHP Version: 7.4.0RC5 Assigned To: cmb Block user comment: N Private report: N New Comment: autoconf --version autoconf (GNU Autoconf) 2.69 Previous Comments: ------------------------------------------------------------------------ [2019-11-06 14:03:43] cmb@php.net What's you autoconf version? ------------------------------------------------------------------------ [2019-11-06 13:02:50] php at shyim dot de I just did wget https://downloads.php.net/~derick/php-7.4.0RC5.tar.bz2 tar xf php-7.4.0RC5.tar.bz2 cd php-7.4.0RC5 ./configure and that file is so wrong generated. configure.ac content AC_INIT([PHP],[7.4.0RC5],[https://bugs.php.net],[php],[https://www.php.net]) ------------------------------------------------------------------------ [2019-11-06 12:50:08] requinix@php.net Did you make any changes to your configure.ac? What does the AC_INIT (line ~20) say? ------------------------------------------------------------------------ [2019-11-06 12:39:33] php at shyim dot de Description: ------------ Before running ./configure cat main/php_version.h /* automatically generated by configure */ /* edit configure.ac to change version number */ #define PHP_MAJOR_VERSION 7 #define PHP_MINOR_VERSION 4 #define PHP_RELEASE_VERSION 0 #define PHP_EXTRA_VERSION "RC5" #define PHP_VERSION "7.4.0RC5" #define PHP_VERSION_ID 70400 After running ./configure cat main/php_version.h /* automatically generated by configure */ /* edit configure.ac to change version number */ #define PHP_MAJOR_VERSION linux #define PHP_MINOR_VERSION gnu #define PHP_RELEASE_VERSION #define PHP_EXTRA_VERSION "" #define PHP_VERSION "linux.gnu." #define PHP_VERSION_ID Should this file not readonly / fixed to version? Test script: --------------- cat main/php_version.h ./configure cat main/php_version.h Expected result: ---------------- ./configure does not modify main/php_version.h ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78788&edit=1

« previous php.bugs (#223608) next »