From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.devel Subject: Re: convert regex.c, strftime.c mktime.c to standard C Date: Fri, 19 Nov 2010 12:10:13 -0500 Organization: disorganization Message-ID: <87eiahkznu.fsf@sysu76.podval.org> References: <83zkt5bw3e.fsf@gnu.org> <87wro9ntcr.fsf@stupidchicken.com> Reply-To: sds@gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1290186745 7581 80.91.229.12 (19 Nov 2010 17:12:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 19 Nov 2010 17:12:25 +0000 (UTC) Cc: Bruno Haible To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 19 18:12:21 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PJUVY-0003bR-CP for ged-emacs-devel@m.gmane.org; Fri, 19 Nov 2010 18:12:20 +0100 Original-Received: from localhost ([127.0.0.1]:55395 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJUVX-0003Bc-Ch for ged-emacs-devel@m.gmane.org; Fri, 19 Nov 2010 12:12:19 -0500 Original-Received: from [140.186.70.92] (port=33151 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJUTl-0002Lu-Dk for emacs-devel@gnu.org; Fri, 19 Nov 2010 12:10:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PJUTj-000468-Cx for emacs-devel@gnu.org; Fri, 19 Nov 2010 12:10:28 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:56036) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PJUTj-00045x-28 for emacs-devel@gnu.org; Fri, 19 Nov 2010 12:10:27 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PJUTh-00024S-AJ for emacs-devel@gnu.org; Fri, 19 Nov 2010 18:10:25 +0100 Original-Received: from ool-182f83f9.dyn.optonline.net ([24.47.131.249]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Nov 2010 18:10:25 +0100 Original-Received: from sds by ool-182f83f9.dyn.optonline.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Nov 2010 18:10:25 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 45 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ool-182f83f9.dyn.optonline.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Mail-Copies-To: never X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Cancel-Lock: sha1:9tlMbYBTQ16bEL5JlrMN6P0YMiM= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:132863 Archived-At: > * Chong Yidong [2010-11-19 11:58:12 -0500]: > > Eli Zaretskii writes: > >> Finding strftime.c in gnulib is indeed trivial, but making it part of >> Emacs that compiles on all supported platforms is not just "some >> work", it's a formidable job, IMO. >> >> The build system used by gnulib is not just Makefile.in and >> config.h.in. It is one of the more contrived build systems I've ever >> seen, and it requires to run the configury stuff on each supported >> platform, to get all the gazillions of preprocessor symbols defined >> correctly. > > According to the Gnulib website, > > Gnulib takes a different approach. Its components are intended to be > shared at the source level, rather than being a library that gets > built, installed, and linked against. Thus, there is no distribution > tarball; the idea is to copy files from Gnulib into your own source > tree. > > So if we're having trouble doing exactly what Gnulib was designed for, > something is pretty badly wrong. I use gnulib from clisp and I am "reasonably happy". 1. Use gnulib-tool script to extract the gnulib files and put them in the right place. This process is geared towards projects which use automake; clisp does not, however, it works okay anyway. 2. Beware of the "dependency creep": asking for a couple of files might pull in a dozen. I.e., the best way to integrate with gnulib is to delegate _all_ portability issues to it. The downside is that you are likely to end up distributing most of gnu libc with emacs; you have to monitor closely what gnulib is pulling in and bitch vociferously to the gnulib people if you think that the dependency is unjustified. PS. I am _not_ volunteering to hook gnulib into emacs. -- Sam Steingold (http://sds.podval.org/) on Ubuntu 10.04 (lucid) http://www.memritv.org http://pmw.org.il http://palestinefacts.org http://openvotingconsortium.org http://thereligionofpeace.com http://ffii.org People hear what they want to hear and discard the rest.