[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [XEN PATCH for-4.17 2/4] tools/include/xen-foreign: Capture licences from the input headers


  • To: Anthony Perard <anthony.perard@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>
  • Date: Wed, 2 Nov 2022 12:24:21 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=aDID4nVq4FEnFfYcVy85RxjiZcZdcE9HZxjFlaLQEDQ=; b=l0shiTyl0VlyT7I7by2RPOIDWzEwT30Q4DwXn3yBAOh1jkOJL74XbwF/aTbvS18CMbjVd0UTKTwL93pUUiIkeOg9RpgZAcFeaz4i0SwF8MXI7r+ljn57KwrwRFNamSZEqzyHpW46nBA1XS/fvr25mLe2Cwpfu5gbb1UcwXxiq0hdbYNjvdhxoj02pSWJMIWD2eGInJFXjW+O/Aw7MMnPnmmtkw0ZkWBfs4/CHS0pKarkeyfoo19iFxzAJNx3OopSmCfsqfxyuznhdtVSrj7kU3J+BvsXGeaqDZe10c3UeXJeo5mT/KGZIZWN8PkwbmwYU9bjUol7YY+Vk4mMd4sXzw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R1U6dmqEgLabxqu9LLzYQIVB+22hiG1Y20JD4VNOuagNw/rNG8A+NtnqTTSPbslWydwFj86OZZBPz/qcuqYgDgF6OnT9k0/j4i+GWxmwOgvaYA0hW2eoKuhseulWCpKMe4tE0Wqbkkgr9D5bvegp6TjoEgq4unh1o68O0vZdM4DP1k4wtmVa7tIkuZOCzjBae1luwGM7eShW5AS2jGkFeN1eYFrL/t5V0Sjk8HlqEGaIe0mtAjRJ70E3VIHuwaqU/IrA+7s3eMAuln05ijvGCjj/j1znY5/trHj+r2ibpKLXQV9K9VZmWFtqHBjg1Pz3CrK+u9kBp3ohsFwzmvYDvg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: Henry Wang <Henry.Wang@xxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Wed, 02 Nov 2022 12:24:36 +0000
  • Ironport-data: A9a23:coZEGKK9a3vQTWtZFE+RN5QlxSXFcZb7ZxGr2PjKsXjdYENS0DJVz GAeDWiFO67ZZGujc9gla9m/oUhXuZbWztZjGQRlqX01Q3x08seUXt7xwmUcnc+xBpaaEB84t ZV2hv3odp1coqr0/0/1WlTZhSAgk/rOHv+kUrWs1hlZHWdMUD0mhQ9oh9k3i4tphcnRKw6Ws Jb5rta31GWNglaYCUpJrfPewP9TlK6q4mlB5wRkPakjUGL2zBH5MrpOfcldEFOgKmVkNrbSb /rOyri/4lTY838FYj9yuu+mGqGiaue60Tmm0hK6aYD76vRxjnVaPpIAHOgdcS9qZwChxLid/ jnvWauYEm/FNoWU8AgUvoIx/ytWZcWq85efSZSzXFD6I+QrvBIAzt03ZHzaM7H09c5QIDlH6 KYEDwwjLR2breCX+o6Vd9dF05FLwMnDZOvzu1lG5BSAVLMNZsmGRK/Ho9hFwD03m8ZCW+7EY NYUYiZuaxKGZABTPlAQC9Q1m+LAanvXKmUE7g7K4/dppTGMl2Sd05C0WDbRUvWMSd9YgQCzo WXe8n6iKhobKMae2XyO9XfEaurnzX+nA9tIRODQGvhCrwaLx2tIAwwvcgW3uN6lp0/iWOxzE hlBksYphe1onKCxdfHtUhv9rHOasxo0X9tLD/Z8+AyL0rDT4QuSGi4DVDEpQPwrstUnAwMj0 FChlsnsQzdotdW9S3iQ67OVpjOaIjUOICkJYipsZQkY59jupqkjgxSJScxseIaulcH8Ezz0x zGMrQA9iq8VgMpN0L+0lXjYhxq8q56PSRQ6jjg7RUqg5wJ9IYWiPoqh7AGC6e4addnCCF6co HIDhs6SqvgUCo2AnzCMR+NLG6y14/GCM3vXhlsH84QdyglBMkWLJeh4iAyS7m8wWirYUVcFu HPuhD4=
  • Ironport-hdrordr: A9a23:T1bQDKo0Rx0pM+L+KbC94e4aV5sqL9V00zEX/kB9WHVpm5Sj5q STdYcgpHjJYVcqKQsdcLW7Sdy9qBznlaKdjbN9AV7mZniChILKFvAe0WKB+UyCJ8SWzIc0v5 uIMZIOauEYZWIQsS+Q2maF+qMboeVvh5rHuQ6x9RtQpEpRGsddBk9Ce3+mO3wzTgxBGZd8Dp aX+tFGuirIQwVkUu2LQnMBWfTP48fGno78YQMXQyEm8xWVlzmh79fBYmml9yZbWTZI3bpn62 TOjxf4+7Xmufe9zRPXygbonudrseqkwN5EGMHJkMQeNi7tlxbtbp9wQqDqhkFKnMifrFwuls XA5w0tNdhp627AOmy0uxHp0wnl3C1G0Q6T9XaoxXHnp9D1ACg3AdZbhZ9INgDU4Uo4vN16zc twrh2knqsSBxbHgCm4/dTDSwpri1rxu3YknOIJ5kYvLbc2eftYsJEW9kJQHJAcdRiKk7zPPt MedP3h2A==
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHY7q5XVsL2+RG/AUCiEkMy4e8OGa4rjrQA
  • Thread-topic: [XEN PATCH for-4.17 2/4] tools/include/xen-foreign: Capture licences from the input headers

On 02/11/2022 11:28, Anthony PERARD wrote:
> The headers install in "/usr/include/xen/foreign/" are missing a
> licence.
>
> While we could probably just add the MIT licence to the generated
> file, this patch instead try to grab the licence from the original
> input file.
>
> Since licences are in the first multiline C comments, we just look for
> that. Also with this patch, the possible licences will not be in the
> "input" variable anymore, but it should be unnecessary to generate the
> foreign header.
>
> With this change, the licence will be copied 2 or 3 time in the
> install headers depending on the number of input headers.
>
> Reported-by: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>
> Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
> ---
>
> Notes:
>     Maybe instead of this, we should just stamp this on the generated header
>         /* SPDX-License-Identifier: MIT */
>     
>     but we would be missing the "Copyright" informations. I guess we could
>     look for those line with Copyright and copy them.
>     
>     Or, we could replace the licence in the input header by a SPDX and have
>     the script parse that. (Probably still need to grab the Copyright lines)

All public headers (except one :-( ) are MIT.

We should SPDX the lot, not least because that removes all the
guestimation from this script; we can require that the SPDX line is the
first line, and sanity check it as we process it.

The headers also ought to say "automatically generated from $OTHER", and
include no other information.  That's now most autogen headers work.

So the generated files ought to end up looking like:

/* SPDX-License-Identifier: MIT */
/* Automatically generated from $FILE */

#ifndef $BLAH
...

~Andrew

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.