Bug 13201 - rhel packaging scripts are broken
rhel packaging scripts are broken
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Other
All All
: P5 normal
: ---
Assigned To: Andrew Bartlett
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2018-01-03 07:35 UTC by Eero Volotinen
Modified: 2018-01-03 07:59 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Eero Volotinen 2018-01-03 07:35:23 UTC

Tried to produce rpm packages on latest centos 7 using latest version of samba,
but looks like packaging scrips for rhel/centos are broken? 


[root@localhost RHEL]# sh ./makerpms.git.sh 
Supported RPM version [4.11.3]
~/samba-4.6.12/source3 ~/samba-4.6.12/packaging/RHEL
./makerpms.git.sh: line 57: ./script/mkversion.sh: No such file or directory
Error creating version.h

sh ./makerpms.sh.tmpl 
Supported RPM version [4.11.3]
~/samba-4.6.12/packaging/RHEL ~/samba-4.6.12/packaging/RHEL
~/samba-4.6.12/packaging/RHEL ~/samba-4.6.12/packaging/RHEL
chown: cannot access ‘samba-PVERSIONPREVISION’: No such file or directory
ln: failed to create symbolic link ‘samba-PVERSION’: File exists



[root@localhost RHEL-CTDB]# ./configure.rpm 
./configure.rpm: line 20: ccache: command not found
./configure.rpm: line 33: ./autogen.sh: No such file or directory
./configure.rpm: line 35: ./configure: No such file or directory
make: *** No rule to make target `showlayout'.  Stop.

[root@localhost RHEL-CTDB]# ./makerpms.sh 
Supported RPM version [4.11.3]
~/samba-4.6.12/source3 ~/samba-4.6.12/packaging/RHEL-CTDB
./makespec.sh: line 17: ./script/mkversion.sh: No such file or directory
Error creating version.h

Looks like at least script/mkversion.sh file is missing?
Comment 1 Karolin Seeger 2018-01-03 07:59:39 UTC

I might be wrong, but it looks like not being supported any longer.
The whole RHEL dir has been removed in master. The version you are trying to use is based on the old autoconf build system and needs to be adapted to the waf build system. I guess that nobody wanted to spend effort in the conversion and therefore, it has been removed.

Closing out bug report as won't fix.

Please feel free to re-open if you do not agree.