The Samba-Bugzilla – Bug 9165
makerpms.sh can't create package fo RHEL
Last modified: 2012-11-16 14:58:31 UTC
Supported RPM version [18.104.22.168]
Creating samba-3.6.8.tar.bz2 ... Done.
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
Created attachment 7901 [details]
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")
%define rhel_ver %(grep "release" /etc/redhat-release | sed %"s/^[^0-9]*\\([0-9]*\\).*/\\1/g")