all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bruno Haible <bruno@clisp.org>
To: bug-gnulib@gnu.org
Cc: Glenn Morris <rgm@gnu.org>, Paul Eggert <eggert@cs.ucla.edu>,
	emacs-devel@gnu.org
Subject: Re: Confusing license statements in some Gnulib imports
Date: Wed, 9 Feb 2011 12:22:48 +0100	[thread overview]
Message-ID: <201102091222.49662.bruno@clisp.org> (raw)
In-Reply-To: <4D522B7E.9000607@cs.ucla.edu>

Hi Paul,

> gnulib-tool isn't smart enough (and arguably should
> not be smart enough) to rewrite license names that cross line boundaries.
> For example, arg-nonnull.h's original source says this:
> 
>    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU            
>    Lesser General Public License for more details.                              
> 
> and the newline between the "GNU" and the "Lesser" causes gnulib-tool
> to miss that instance of "GNU Lesser General Public License".

Thanks for the diagnose. But I disagree about the cure: It's better to teach
gnulib-tool to work regardless of where in the sentence the line break occurs.

  - The words "GNU Lesser General Public License" appear inside a longer
    sentence, and this sentence has to be broken into lines. People will
    always disagree whether line breaking has to happen at column 72, 74,
    79, or 80. And there's an indentation of 3 columns in some files but
    only 2 columns in others. So, it is pretty hopeless to attempt to
    standardize where people will put line breaks in the copyright notice.

  - As a general rule, when one attempts to modify 640 files, one should think
    twice about it.

Here's a proposed fix in gnulib-tool instead. Just as effective.


2011-02-09  Bruno Haible  <bruno@clisp.org>

	gnulib-tool: Make copyright notice adjustment more robust.
	* gnulib-tool (func_import): In sed_transform_main_lib_file,
	sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
	allow a line break to occur after "GNU" in "GNU [Lesser] General Public
	License".
	Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.

--- gnulib-tool.orig	Wed Feb  9 12:00:22 2011
+++ gnulib-tool	Wed Feb  9 11:58:30 2011
@@ -3855,11 +3855,16 @@
         yes | 3)
           sed_transform_main_lib_file=$sed_transform_main_lib_file'
             s/GNU General/GNU Lesser General/g
+            s/General Public License/Lesser General Public License/g
+            s/Lesser Lesser General Public License/Lesser General Public License/g
           '
           ;;
         2)
           sed_transform_main_lib_file=$sed_transform_main_lib_file'
             s/GNU General/GNU Lesser General/g
+            s/General Public License/Lesser General Public License/g
+            s/Lesser Lesser General Public License/Lesser General Public License/g
+
             s/version [23]\([ ,]\)/version 2.1\1/g
           '
           ;;
@@ -3869,7 +3874,11 @@
       # Update license.
       sed_transform_main_lib_file=$sed_transform_main_lib_file'
         s/GNU Lesser General/GNU General/g
+        s/Lesser General Public License/General Public License/g
+
         s/GNU Library General/GNU General/g
+        s/Library General Public License/General Public License/g
+
         s/version 2\(.1\)\{0,1\}\([ ,]\)/version 3\2/g
       '
     fi
@@ -3881,7 +3890,11 @@
     # Update license.
     sed_transform_build_aux_file=$sed_transform_build_aux_file'
       s/GNU Lesser General/GNU General/g
+      s/Lesser General Public License/General Public License/g
+
       s/GNU Library General/GNU General/g
+      s/Library General Public License/General Public License/g
+
       s/version 2\(.1\)\{0,1\}\([ ,]\)/version 3\2/g
     '
   fi
@@ -3892,7 +3905,11 @@
     # Update license.
     sed_transform_testsrelated_lib_file=$sed_transform_testsrelated_lib_file'
       s/GNU Lesser General/GNU General/g
+      s/Lesser General Public License/General Public License/g
+
       s/GNU Library General/GNU General/g
+      s/Library General Public License/General Public License/g
+
       s/version 2\(.1\)\{0,1\}\([ ,]\)/version 3\2/g
     '
   fi

-- 
In memoriam Rowland Taylor <http://en.wikipedia.org/wiki/Rowland_Taylor>



  reply	other threads:[~2011-02-09 11:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-09  0:33 Confusing license statements in some Gnulib imports Glenn Morris
2011-02-09  5:51 ` Paul Eggert
2011-02-09 11:22   ` Bruno Haible [this message]
2011-02-09 17:46     ` Paul Eggert
2011-02-09 19:59       ` Bruno Haible

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201102091222.49662.bruno@clisp.org \
    --to=bruno@clisp.org \
    --cc=bug-gnulib@gnu.org \
    --cc=eggert@cs.ucla.edu \
    --cc=emacs-devel@gnu.org \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.