RHEL]# ./makerpms.sh Supported RPM version [4.4.2.3] ~/soft/samba/3.6.8/samba-3.6.8/packaging/RHEL ~/soft/samba/3.6.8/samba-3.6.8/packaging/RHEL ~/soft/samba/3.6.8/samba-3.6.8/packaging/RHEL ~/soft/samba/3.6.8/samba-3.6.8/packaging/RHEL ~/soft/samba/3.6.8/samba-3.6.8/packaging/RHEL Creating samba-3.6.8.tar.bz2 ... Done. ~/soft/samba/3.6.8/samba-3.6.8/packaging/RHEL setup/ setup/samba.log setup/winbind.init setup/smb.init setup/smbusers setup/filter-requires-samba.sh setup/swat setup/smbprint setup/swat.desktop setup/samba.sysconfig setup/samba.pamd setup/smb.conf makerpms.sh: Getting Ready to build release package error: parse error in expression error: /usr/src/redhat/SPECS/samba.spec:39: parseExpressionBoolean returns -1 error: Package has no %description: samba makerpms.sh: Done.
Created attachment 7901 [details] Proposed patch This patch fixed the build on RHEL6 for me. Can you test the patch (you need to regenerate the samba.spec file or adopt the samba.spec file manually).
> Can you test the patch. I have solved this problem a little differently :) lsb_release -sr|cut -d '.' -f 1 Your patch is also correct. Thank you for answer.
Thanks for your feedback! The patch has been pushed to v3-6-test and will be included in the next bugfix release.
Pushed patch to autobuild-v4-0-test.
(In reply to comment #1) > Created attachment 7901 [details] > Proposed patch > > This patch fixed the build on RHEL6 for me. > Can you test the patch (you need to regenerate the samba.spec file or adopt the > samba.spec file manually). it should be: %define rhel_ver %(grep "release" /etc/redhat-release | sed "s/^[^0-9]*\\([0-9]*\\).*/\\1/g") instead of %define rhel_ver %(grep "release" /etc/redhat-release | sed %"s/^[^0-9]*\\([0-9]*\\).*/\\1/g")