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

Bug#477152: docstrip inserts wrong comment into generated file



LaTeX2e bug report.
Template generated by latexbug.tex on 2008/04/21

Reports may be submitted by email to latex-bugs@latex-project.org
Please use the subject line:
Subject: docstrip inserts wrong comment into generated file

To follow up an existing report, include the bug reference, e.g.
"latex/1234: ", preceding the subject text.
============================================================

>Category: latex
>Synopsis: docstrip inserts wrong comment into generated file
>Confidential: no
>Release: LaTeX2e <2005/12/01>
>Originator:  < 477152@bugs.debian.org >  ( < Frank Küster > )
>Organization: 
>Environment:
 Hyphenation: Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, nohyphenation, arabic, farsi, croatian, ukrainian, russian, bulgarian, czech, slovak, danish, dutch, finnish, basque, french, german, ngerman, ibycus, greek, monogreek, ancientgreek, hungarian, italian, latin, mongolian, norsk, icelandic, interlingua, turkish, coptic, romanian, welsh, serbian, slovenian, estonian, esperanto, uppersorbian, indonesian, polish, portuguese, spanish, catalan, galician, swedish, ukenglish, pinyin, loaded.
 \@TeXversion: undefined (Standard setting for TeX3.141 and later)
 \@currdir: macro:->./
 \input@path: undefined (Standard setting)
>Unformatted:
 *** Initex configuration files
fonttext.cfg
 2004/02/04 v2.3a LaTeX Kernel (Uncustomised text font setup)
fonttext.ltx
 2004/02/04 v2.3a LaTeX Kernel (Text font setup)
omlenc.def
 2005/09/27 v1.99g Standard LaTeX file
t1enc.def
 2005/09/27 v1.99g Standard LaTeX file
ot1enc.def
 2005/09/27 v1.99g Standard LaTeX file
omsenc.def
 2005/09/27 v1.99g Standard LaTeX file
t1cmr.fd
 1999/05/25 v2.5h Standard LaTeX font definitions
ot1cmr.fd
 1999/05/25 v2.5h Standard LaTeX font definitions
ot1cmss.fd
 1999/05/25 v2.5h Standard LaTeX font definitions
ot1cmtt.fd
 1999/05/25 v2.5h Standard LaTeX font definitions
fontmath.cfg
 2004/02/04 v2.3a LaTeX Kernel (Uncustomised math font setup)
fontmath.ltx
 2004/02/04 v2.3a LaTeX Kernel (Math font setup)
omlcmm.fd
 1999/05/25 v2.5h Standard LaTeX font definitions
omscmsy.fd
 1999/05/25 v2.5h Standard LaTeX font definitions
omxcmex.fd
 1999/05/25 v2.5h Standard LaTeX font definitions
ucmr.fd
 1999/05/25 v2.5h Standard LaTeX font definitions
preload.cfg
 2004/02/04 v2.3a LaTeX Kernel (Uncustomised preload font setup)
preload.ltx
 1998/08/17 v2.1g LaTeX Kernel (Font Preloading)
hyphen.cfg
 2005/11/23 v3.8h Babel language switching mechanism
 ***
>Description:
Description of bug:
 
docstrip.tex (generated from docstrip.dtx) contains the following part:

,----
| \declarepreamble\originaldefault
| 
| IMPORTANT NOTICE:
| 
| For the copyright see the source file.
| 
| You are *not* allowed to modify this file.
| 
| You are *not* allowed to distribute this file.
| For distribution of the original source see the terms
| for copying and modification in the file \inFileName.
| 
| \endpreamble
`----

This text is wrong when literally read. 

First of all, it assumes that docstrip is only used for files under the
LPPL. While this is true for the LaTeX distribution, docstrip is
certainly used for much more packages, and I'd be surprised if there
weren't GPL'ed once, dual-licensed once or public-domain ones among
them. 

      Changing this requires some coding magic (\newif\uselpplpreamble
      or so)


Second, according to the LPPL I am actually allowed to distribute this
file, although only under certain conditions (in particular, clause 3 of
the LPPL)

Finally, I think that even the "you are not allowed to modify" is
wrong. At a short glance, the wording of the LPPL seems to indicate that
only the source file may be subject to modification. However, I don't
think that this can be the end of the story, for a couple of reasons

1. It is unenforceable, because no one will be able to show that the
   changed source file did never exist if the modifier claims to have
   gone the official way and have lost the dtx file

2. It would mean that if the dtx file is actually lost (and I think
   there are files on CTAN where this is the case), the work would
   become unmodifyable and thus non-free

3. Manually removing all comments from the dtx file should be an allowed
   modification, e.g. in order to deploy the work on a box without
   docstrip. 

4. The LPPL 1.3 has been drafted together with Debian legal regulars,
   and they would never have accepted any of points 2 or 3.

I suggest to replace the text with

 IMPORTANT NOTICE:
 
 For the copyright see the source file.
 
 You are *not* allowed to modify this file except
 under the conditions given in the source file.
 
 You are *not* allowed to distribute this file except
 under the conditions given in the source file.

 The terms for copying and modification are given in in the file
 \inFileName.
 


>How-To-Repeat:
Sample file which indicates the problem:
========================================
 < TEST FILE HERE >

The log file from running LaTeX on the sample:
==============================================
 < LOG FROM TEST FILE HERE >

============================================================

End of LaTeX2e bug report.
============================================================

-- 
Frank Küster
Debian Developer (teTeX/TeXLive)



Reply to: