echo $PWD
read VERSION PATCHLEVEL SUBLEVEL <<EOF
$(echo %{kheaders} |awk -F. '{print $1, " ", $2, " ", $3}')
EOF
LINUX_VERSION_CODE=$(expr $VERSION \* 65536 + $PATCHLEVEL \* 256 +
$SUBLEVEL)

>From build:
+ read VERSION PATCHLEVEL SUBLEVEL
++ echo '%{kheaders}'
++ awk -F. '{print $1, " ", $2, " ", $3}'
++ expr '%{kheaders}' '*' 65536 + '*' 256 +
expr: non-numeric argument
+ LINUX_VERSION_CODE=
error: Bad exit status from /var/tmp/rpm-tmp.51821 (%prep)

%{source11}

* must be quoted (double quotes should be used:
So it'd look like...
LINUX_VERSION_CODE=$(expr $VERSION \"*\" 65536 + $PATCHLEVEL \"*\" 256 +
$SUBLEVEL)

So you see:
$ expr 2 + 4 + 18  "*" 65536 "*" 256
301989894

$ expr 2 + 4 + 18  * 65536 * 256 
expr: syntax error

So that's been squashed out : )

Thing is, these variables are not getting passed to the shell script,
that much is obvious.

 I'm sorry I have no patch for this, but I'm not an RPM warrior : ) 

BTW: This has haulted on my double checking on man pages from the glibc
build not being found, so this probably should be checked to.
Specifically:

%{_mandir}/man8/ldconfig*
and
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_mandir}/man8/ld.so*
%{_mandir}/man8/rpcinfo*

 Reported before that none of these files are found by 'glob'. 
(yes it will error out on that and not continue the packaging).
I've experienced this with a few packages during build, and once again
I'd say it's our friend the wildcard again causing problems : )  

Tashi Delek
And it's break time for me! : )

-- 
Bryan Paxton
Public PGP key: http://www.deadhorse.net/bpaxton.gpg

"Heedfulness: the path to the Deathless.
Heedlessness: the path to death.
The heedful do not die.
The heedless are as if already dead." -- Dhp. 21-24

Reply via email to