RPM Community Forums

Mailing List Message of <rpm-cvs>

[CVS] RPM: lua/local/ lposix.c rpm/ CHANGES

From: Ralf S. Engelschall <rse@rpm5.org>
Date: Sat 19 Jan 2008 - 13:27:26 CET
Message-Id: <20080119122726.D689A348464@rpm5.org>
  RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Ralf S. Engelschall
  Root:   /v/rpm/cvs                       Email:  rse@rpm5.org
  Module: rpm lua                          Date:   19-Jan-2008 13:27:26
  Branch: HEAD                             Handle: 2008011912272600

  Modified files:
    lua/local               lposix.c
    rpm                     CHANGES

  Log:
    Unconditionally provide RPM Lua functions posix.{setenv,unsetenv}.

  Summary:
    Revision    Changes     Path
    1.7         +2  -5      lua/local/lposix.c
    1.2079      +1  -0      rpm/CHANGES
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: lua/local/lposix.c
  ============================================================================
  $ cvs diff -u -r1.6 -r1.7 lposix.c
  --- lua/local/lposix.c	23 Jul 2007 08:14:01 -0000	1.6
  +++ lua/local/lposix.c	19 Jan 2008 12:27:26 -0000	1.7
  @@ -5,6 +5,8 @@
   * 05 Nov 2003 22:09:10
   */
   
  +#include "system.h" /* setenv/unsetenv/etc */
  +
   #include <dirent.h>
   #include <errno.h>
   #include <fcntl.h>
  @@ -687,7 +689,6 @@
   }
   
   
  -#ifdef linux
   static int Psetenv(lua_State *L)		/** setenv(name,value,[over]) */
   	/*@modifies L @*/
   {
  @@ -705,7 +706,6 @@
   	unsetenv(name);
   	return 0;
   }
  -#endif
   
   
   static int Pgetenv(lua_State *L)		/** getenv([name]) */
  @@ -1169,11 +1169,8 @@
   	{"unlink",		Punlink},
   	{"utime",		Putime},
   	{"wait",		Pwait},
  -
  -#ifdef linux
   	{"setenv",		Psetenv},
   	{"unsetenv",		Punsetenv},
  -#endif
   	{NULL,			NULL}
   };
   /*@=readonlytrans@*/
  @@ .
  patch -p0 <<'@@ .'
  Index: rpm/CHANGES
  ============================================================================
  $ cvs diff -u -r1.2078 -r1.2079 CHANGES
  --- rpm/CHANGES	18 Jan 2008 23:04:05 -0000	1.2078
  +++ rpm/CHANGES	19 Jan 2008 12:27:26 -0000	1.2079
  @@ -1,4 +1,5 @@
   5.0.0 -> 5.1a1:
  +    - rse: unconditionally provide RPM Lua functions posix.{setenv,unsetenv}
       - jbj: proof-of-concept rpmbuild --lsb implementation. ptooey!
       - jbj: unbreak rpm-python, preserve existing symbol in released versions.
       - jbj: fix several typos noticed by the translation project.
  @@ .
Received on Sat Jan 19 13:27:26 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.