bug-gnulib
[Top][All Lists]
Advanced

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

Re: module libposix (was: module gethostname)


From: Bruce Korb
Subject: Re: module libposix (was: module gethostname)
Date: Thu, 16 Sep 2010 11:00:46 -0700

Hi Bruno,

> On Wed, Sep 15, 2010 at 11:18 AM, Bruno Haible <address@hidden> wrote:
>>
>> Have you tried to follow the approach of
>>  
>> <http://www.gnu.org/software/gnulib/manual/html_node/POSIX-Substitutes-Library.html>?
>> I haven't, but I would like to hear about success or problems that
>> you encounter.

1.  A configure dinkleberry:
> $ file core.18420
> core.18420: ELF 64-bit LSB core file AMD x86-64, version 1 (SYSV),
> SVR4-style, from 'conftest'

2. It looked like it went through a full configure and build, then
    obliterated the build output, necessitating a reconfig & rebuild.
    Maybe just do it once?  Whatever.

3. config.h needs to be installed.  Now, where was that name munger
   for the config.h header....

4. The various other headers that are determined to be needed as
    replacements for the system headers should be installed, too,
    as $(prefix)/include/gnulib/....

5. "make install" installs exactly one file:
      libexec/dummy/pt_chown

6. Some date stamp version should be inserted into config.h
   Despite all the caveats about feature tests vs. version tests,
   the basic idea with gnulib is that it is pretty much a single
   branch project.  Consequently, needed features appear by
   a particular date (version id).  The whole idea is to largely
   remove feature tests from individual projects*.

Basically, it needs to be wrapped in some project wrapper stuff
to do these things, along with the .pc file.  Perhaps also:

7. the GNULIB_TEST_* preprocessing defines can get stripped out.
   This is a guess.  I haven't investigated.


* Clients of this libposix thing would thus have something along
  the lines of this in their configure.ac:

  AC_CHECK_LIBPOSIX([2010.09.16],
    AC_MSG_ERROR([libposix is too old or not installed]))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]