[Libguestfs] [PATCH] generator: Do not claim copyright for future years

Nikolay Ivanets stenavin at gmail.com
Wed Aug 22 06:11:24 UTC 2018


Doesn't it mean you have to remember changing copyright in 2019?

--
  Mykola Ivanets

ср, 22 серп. 2018, 08:58 користувач Bernhard M. Wiedemann <
bwiedemann at suse.de> пише:

> This change helps to make libguestfs package build reproducible.
> See https://reproducible-builds.org/ for why this is good.
>
> Without this patch, building today's libguestfs in 2033, claims
>  Copyright (C) 2009-2033 Red Hat Inc.
> which cannot be correct.
>
> This affected files like
> /usr/include/guestfs-gobject.h
> /usr/lib/perl5/vendor_perl/5.26.2/x86_64-linux-thread-multi/Sys/Guestfs.pm
> /usr/lib64/python2.7/site-packages/guestfs.py
> /usr/lib64/ocaml/guestfs/guestfs.mli
>
> Commits like 212762c59351822e9db7d3dc82afe1765808d918
> will take care of updating the year.
> ---
>  generator/docstrings.ml | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/generator/docstrings.ml b/generator/docstrings.ml
> index fa7b1668a..b480d036e 100644
> --- a/generator/docstrings.ml
> +++ b/generator/docstrings.ml
> @@ -68,9 +68,7 @@ let version_added = function
>      Some (sprintf "%d.%d.%d" major minor release)
>    | _ -> None
>
> -let copyright_years =
> -  let this_year = 1900 + (localtime (time ())).tm_year in
> -  if this_year > 2009 then sprintf "2009-%04d" this_year else "2009"
> +let copyright_years = "2009-2018"
>
>  (* Generate a header block in a number of standard styles. *)
>  type comment_style =
> --
> 2.16.4
>
> _______________________________________________
> Libguestfs mailing list
> Libguestfs at redhat.com
> https://www.redhat.com/mailman/listinfo/libguestfs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20180822/66670e5c/attachment.htm>


More information about the Libguestfs mailing list