Re: generate backport error

Hauke Mehrtens <[email protected]>
Newsgroups org.kernel.vger.backports
Message-ID <[email protected]>
On 6/1/20 11:19 AM, Shetu Ayalew wrote:
> Hi,
> 
> I'm trying to run the the gentree.py.
> I use coccinelle 1.0.7 and the following tree -
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
> 
> with few different tags the last one was v5.7-rc3-1 (for backports
> tree)  and v5.7-rc3 (for the Linux tree).
> 
> and I get error:
> 
> Traceback (most recent call last):
>   File "./gentree.py", line 1107, in <module>
>     ret = _main()
>   File "./gentree.py", line 724, in _main
>     logwrite=logwrite)
>   File "./gentree.py", line 914, in process
>     kver = gen_version.kernelversion(bpid.project_dir)
>   File "/.autodirect/swgwork/shetu/upstream/backports/lib/bpversion.py",
> line 40, in kernelversion
>     _check(process)
>   File "/.autodirect/swgwork/shetu/upstream/backports/lib/bpversion.py",
> line 11, in _check
>     raise ExecutionError(process.returncode)
> lib.bpversion.ExecutionError
> 
> 
> To my understanding the source of the above error is the fail of the run
> of the following command that the script executes:
> 
> "make --no-print-directory -C  /swgwork/shetu/upstream/backport_vr
> kernelversion"
> 
> The error I get is "you shouldn't run make in the backports tree, but
> only in the generated output ...".
> 
> But the directory backport_vr is not under the backports tree. Moreover
> I tried running make kernelversion
> 
> from backport_vr and I got the same error message. Do you familiar with
> this probelm, any idea how to solve it ?
> 
> 
> Thanks,
> 
> Shetu.

Hi Shetu,

The script tries to get the kernel version of the kernel you want to
create a backports release for and this somehow fails.

Could you please run this manually like I did here:

$ make --no-print-directory -C ~/linux/linux-next kernelversion
5.7.0-rc3
$ echo $?
0

Please keep the mailing list in CC.

Hauke
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEyz0/uAcd+JwXmwtD8bdnhZyy68cFAl7c/dUACgkQ8bdnhZyy
68dwIggArZTQRHOhM4IIZ2cQ3dkEw40+itUtJotcPSt4G0/pRbINGfuAMoXv5aO0
rSaM18ti5pBcnwLK70iNySu9xgd/FlXU/qPzhIf/4dozgFvW2fQKbGMGztEEXVVg
T5Df/xr9zMEQyudRPeDC3spn/G2uBCwigqAfnHNivac3P7o3TpQOsXuIdBISS58P
9jvvq2Hnhfpr3MinPeqQZkO4jqod61oGnyO2nBnUkxlP1QWMG4z8uBap9LXsIVoz
tUzUm7rldL2m3LeLgLDzBAyT67PiC3xLMb5p+QJ1/GBxp1VlIsyqFsqE2qUMXU+p
VAp7FSt41qrmTwOR1HfpNYFhwmMXVQ==
=VdMR
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.