all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Files from gnulib
@ 2011-01-23 12:15 Eli Zaretskii
  2011-01-23 12:40 ` Eli Zaretskii
  2011-01-23 19:29 ` Paul Eggert
  0 siblings, 2 replies; 80+ messages in thread
From: Eli Zaretskii @ 2011-01-23 12:15 UTC (permalink / raw)
  To: Paul Eggert; +Cc: emacs-devel

Some of the new files added from gnulib use file names that are
invalid on 8+3 (aka MSDOS) filesystems.  These files are:

 c++defs.h -- the `+' character is not allowed in file names
 lib/stddef.in.h lib/time.in.h lib/unistd.in.h -- 2 dots are not allowed

In addition, several file names in the m4/ subdirectory clash after
8+3 truncation:

 gnulib-cache.m4  gnulib-common.m4  gnulib-comp.m4

This will cause problems when unpacking the emacs tarball on those
filesystems, something we managed to avoid until now.

Can these files be renamed, please?  I suggest cxxdefs.h for the first
and FOO.in for the FOO.in.h files.  For the files in m4/, how about
transposing the "gnulib" part with the rest, i.e. cache-gnulib.m4
etc.?

(I would remove the files myself, but I don't know what changes in the
gnulib imports will that require.)

TIA



^ permalink raw reply	[flat|nested] 80+ messages in thread
* Proposed gnulib renames
@ 2011-01-26 15:53 Eric Blake
  2011-01-26 16:08 ` Eric Blake
  2011-01-26 16:36 ` Jim Meyering
  0 siblings, 2 replies; 80+ messages in thread
From: Eric Blake @ 2011-01-26 15:53 UTC (permalink / raw)
  To: Eli Zaretskii, Paul Eggert, bug-gnulib, cyd, emacs-devel, monnier,
	Bruno Haible <br

[-- Attachment #1: Type: text/plain, Size: 4185 bytes --]

[intentionally breaking threading and retitling this, to try and make it
easier to see replies to just this aspect of the thread]

[well, my first attempt at breaking threading failed; apologies for the
duplicate, but here's a resend with identical contents to make good on
the promise of a new thread]

On 01/25/2011 11:01 PM, Eli Zaretskii wrote:
> > Here's a compromise that at least I can live with; hope others can,
> > too:
> >
> >  1) For c++defs.h and the lib/*.in.h files: rely on the automatic
> >     renaming by djtar.  Files that reference those will be edited by
> >     config.bat as part of configuring Emacs for the MS-DOS build.

Paul already suggested renaming c++defs.h to cxxdefs.h in gnulib, which
makes sense to me in light of POSIX restrictions on portable filenames;
however, this module belongs to Bruno, so it is his call.

As for the *.in.h files, the ONLY other files that refer to those at
build time are the Makefile snippets in module files that convert them
over to *.h replacement headers.  Here's a link to some of the
back-discussion where we first settled on the name *.in.h in the first
place in Oct 2007 (we were previously using *_.h, but underscores are
painful to type in daily use; and also on the table at the time was the
rejected idea of *.h.in and *.hin):

http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/11185/focus=11206

and given that the renaming from *_.h -> *.in.h was practically
mechanical, a conversion from *.in.h -> *-in.h would likewise be
mechanical, but I'm not sure whether to make that jump yet:

http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/11182/focus=11352

that thread also included a quote from Eli, predicting the death of an
emacs DOS build (for good or for bad, that prediction has not come true):

http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/11182/focus=11234

> >
> >  2) For the 3 m4/gnulib-*.m4 files: rename them.  I suggested one way
> >     of renaming, but there's nothing sacred about that; any renaming
> >     that will get rid of the name clash is fine with me.

This would involve a change mainly to gnulib-tool (2 of the 3 gnulib-c*
files are generated; there's also gnulib-tool.m4 to avoid clashing
with).  Changing gnulib-cache.m4 would have downstream effects on all
gnulib clients; it could be done with a NEWS entry, but I'd rather avoid
that.  But the other two files (gnulib-common.m4 and gnulib-comp.m4)
seem like fair game; how about the names gnulib-prereq.m4 (since all the
common code is prerequisite to the rest of gnulib) and gnulib-list.m4
(since comp contains the computed list of files/macros installed by
gnulib-tool).

> > As long as the list of files that get handled by 1) is relatively
> > small and kept under control, this is manageable.

Right now, there is the c++defs naming issue (with user-visible changes
to all gnulib clients, but worth making).

Also, there are currently 63 *.in.h files available in gnulib (I'm not
sure how many will ever be used by emacs), but I'd rather see the same
change made to all 63 files (and their corresponding modules) at once if
the change is made upstream in gnulib.  I agree that use of gnulib-tool
--local-dir won't quite work; it could easily patch the module
descriptions (and makefile snippets) to refer to *-in.h files with
minimal risk of too many upstream changes to track, but the rename
itself is not possible via simple patch(1) files (yes, GNU patchutils is
adding support for git-style rename patches, which would be much easier
to maintain, but I don't know if we should rely on that yet).  But if
gnulib makes no change to these 63 files, then that's an upper bound on
the possible complexity of Eli hand-maintaining the rename within the
DOS build of emacs.

> > I hope that as long as the list of files that are handled by 2) is
> > short (3 for now), that would be regarded as manageable and acceptable
> > by gnulib people.

It seems reasonable to me, but I'm not the primary author of
gnulib-tool.  Bruno?

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 619 bytes --]

^ permalink raw reply	[flat|nested] 80+ messages in thread

end of thread, other threads:[~2011-02-06 13:37 UTC | newest]

Thread overview: 80+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-23 12:15 Files from gnulib Eli Zaretskii
2011-01-23 12:40 ` Eli Zaretskii
2011-01-23 19:29 ` Paul Eggert
2011-01-23 22:16   ` Bruno Haible
2011-01-24  3:26   ` Stefan Monnier
2011-01-24  4:01     ` Eli Zaretskii
2011-01-24 23:26       ` Paul Eggert
2011-01-25  4:00         ` Eli Zaretskii
2011-01-25  8:48           ` Paul Eggert
2011-01-25 11:24             ` Eli Zaretskii
2011-01-25 11:32               ` Bastien ROUCARIES
2011-01-25 14:07                 ` Eli Zaretskii
2011-01-25 18:07               ` Paul Eggert
2011-01-25 19:02                 ` Eli Zaretskii
2011-01-25 21:03                   ` Stefan Monnier
2011-01-25 21:54                     ` Eli Zaretskii
2011-01-25 22:15                       ` Stefan Monnier
2011-01-26  1:05                         ` Paul Eggert
2011-01-26  4:12                           ` Eli Zaretskii
2011-01-26  6:01                             ` Eli Zaretskii
2011-01-26 15:19                               ` Proposed gnulib renames [was: Files from gnulib] Eric Blake
2011-01-26 15:58                                 ` Proposed gnulib renames Eli Zaretskii
2011-01-26 17:33                                   ` Bruno Haible
2011-01-26 18:40                                     ` Eli Zaretskii
2011-01-26 19:01                                       ` Eric Blake
2011-01-26 19:01                                       ` Bruno Haible
2011-01-26 19:18                                         ` Eli Zaretskii
2011-01-27  7:37                                     ` Paul Eggert
2011-01-27  9:57                                       ` Eli Zaretskii
2011-01-27  9:58                                       ` Eli Zaretskii
2011-01-27  9:59                                       ` Bruno Haible
2011-01-28  1:57                                         ` Paul Eggert
2011-01-27 10:14                                       ` Bruno Haible
2011-01-27 10:23                                         ` Bruno Haible
2011-01-28  0:32                                           ` Paul Eggert
2011-01-26 16:11                               ` Files from gnulib Stefan Monnier
2011-01-26  4:02                         ` Eli Zaretskii
2011-01-26  0:32                     ` Jason Rumney
2011-01-26  3:12                       ` Stefan Monnier
2011-01-25 21:24                   ` Paul Eggert
2011-01-25 22:06                     ` Eli Zaretskii
2011-01-26  0:54                       ` Paul Eggert
2011-01-26  4:10                         ` Eli Zaretskii
2011-01-26 11:13                           ` Jim Meyering
2011-01-26 13:09                             ` Eli Zaretskii
2011-01-26 13:23                               ` Jim Meyering
2011-01-26 13:29                                 ` Lennart Borgman
2011-01-26 13:33                                   ` Eli Zaretskii
2011-01-26 13:37                                 ` Eli Zaretskii
2011-01-26 13:50                                   ` Jim Meyering
2011-01-26 12:27                           ` Andreas Schwab
2011-01-26 13:17                             ` Eli Zaretskii
2011-01-26 13:24                               ` Andreas Schwab
2011-01-26 13:41                                 ` Eli Zaretskii
2011-01-27  8:32                           ` Paul Eggert
2011-01-27 11:08                             ` Eli Zaretskii
2011-01-28  7:30                               ` Paul Eggert
2011-01-28 14:20                                 ` Eli Zaretskii
2011-01-31  9:29                                   ` Compartmentalizing the 8.3 problem into the msdos directory Paul Eggert
2011-02-05 10:59                                     ` Eli Zaretskii
2011-02-05 11:20                                       ` Paul Eggert
2011-02-05 11:26                                         ` Eli Zaretskii
2011-02-05 23:30                                           ` Paul Eggert
2011-02-06  0:55                                             ` Glenn Morris
2011-02-06 13:37                                               ` Miles Bader
2011-02-06  4:01                                             ` Eli Zaretskii
2011-02-06  7:30                                               ` Paul Eggert
2011-02-06  9:59                                                 ` Eli Zaretskii
2011-01-24  7:57     ` Files from gnulib Glenn Morris
2011-01-24 16:37       ` Stefan Monnier
2011-01-24  4:07   ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2011-01-26 15:53 Proposed gnulib renames Eric Blake
2011-01-26 16:08 ` Eric Blake
2011-01-26 16:36 ` Jim Meyering
2011-01-26 18:51   ` Eli Zaretskii
2011-01-26 18:59     ` Jim Meyering
2011-01-26 19:15       ` Eli Zaretskii
2011-01-26 19:48         ` Jim Meyering
2011-01-27  0:39   ` Paul Eggert
2011-01-27  4:11     ` Eli Zaretskii

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.