all sles versions failed, include sles11sp4 and sles12sp3.

```
+ test -d /usr/src/linux-3.0.13-0.27-obj/x86_64/default//.
++ KDIR=/usr/src/linux-3.0.13-0.27-obj/x86_64/default/
++ scripts/get_uts_release.sh
+ test 3.0.13-0.27-default = 3.0.13
error: Bad exit status from /var/tmp/rpm-tmp.20427 (%prep)

```

relative to this commit:

```
commit 470d5dd28acf2174a4165a57f724ab12389eb88d
Author: Lars Ellenberg <[email protected]>
Date:   Tue Apr 17 11:49:15 2018 +0200

    compat: fixup KVER guessing from prepared kernel (-headers, -devel) tree

    If we point our Makefile to some linux-headers-xyz or kernel-devel-qrl,
    using KDIR=/usr/src/linux-headers-* or KDIR=/usr/src/kernels/*,
    we then try to "guess" the kernel version by calling
    make -s -C $(KDIR) kernelrelease ; which may fail if run as normal user,
    depending on write permissions in various places, while still producing
    the correct output.
    With the addition of the "RETPOLINE" check and $(error ...) in the
    linux Makefile, the correct output is missing, and this became relevant.

    Try to use "kernelversion" first (which only uses "cached" information),
    and try to fall back to "kernelrelease" only if the former fails.
```


2018-04-23 17:53 GMT+08:00 Roland Kammerer <[email protected]>:

> On Mon, Apr 23, 2018 at 05:27:35PM +0800, li songmin wrote:
> > There is an error when build on sles platform:
> >
> > ```
> >
> >  test -d /usr/src/linux-3.0.13-0.27-obj/x86_64/default//.
> > ++ KDIR=/usr/src/linux-3.0.13-0.27-obj/x86_64/default/
> > ++ scripts/get_uts_release.sh
> > + test 3.0.13-0.27-default = 3.0.13
> > error: Bad exit status from /var/tmp/rpm-tmp.20427 (%prep)
> >
> > ```
> >
> > It seems get_uts_release.sh check kernelrelease first and then
> > kernelversion,
> > so  i think we should get version by kernelrelease before kernelversion
> in
> > Makefile
>
> What is that? Looks like SLES11? With a very outdated kernel? Is that a
> very old SP4 kernel or even pre SP4?  Can you try a recent (if we still
> can consider SLES11 "recent") kernel?  In our build environment this
> works with a moderately "recent" SLES11-SP4 kernel (~3.0.101-something).
>
> Regards, rck
> _______________________________________________
> drbd-user mailing list
> [email protected]
> http://lists.linbit.com/mailman/listinfo/drbd-user
>
_______________________________________________
drbd-user mailing list
[email protected]
http://lists.linbit.com/mailman/listinfo/drbd-user

Reply via email to