]> Savannah Git Hosting - gnulib.git/commitdiff
Rename module 'putenv' to 'putenv-gnu'.
authorCollin Funk <collin.funk1@gmail.com>
Thu, 16 May 2024 22:56:47 +0000 (15:56 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Thu, 16 May 2024 22:56:47 +0000 (15:56 -0700)
* modules/putenv-gnu: Renamed from modules/putenv.
(Description): Mention the removal of environment variables.
* modules/putenv-gnu-tests: Renamed from modules/putenv-tests.
* modules/putenv: New file, an indirection to the new module.
* doc/posix-functions/putenv.texi: Mention the new module name.
* NEWS: Mention the change.

ChangeLog
NEWS
doc/posix-functions/putenv.texi
modules/putenv
modules/putenv-gnu [new file with mode: 0644]
modules/putenv-gnu-tests [new file with mode: 0644]
modules/putenv-tests [deleted file]

index 8bccdfd2e184367abd7d171a164af4b6c36de2be..f2bfa4246d89d7db7d2c40bc1fb89e82f7ce16f7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2024-05-16  Collin Funk  <collin.funk1@gmail.com>
+
+       Rename module 'putenv' to 'putenv-gnu'.
+       * modules/putenv-gnu: Renamed from modules/putenv.
+       (Description): Mention the removal of environment variables.
+       * modules/putenv-gnu-tests: Renamed from modules/putenv-tests.
+       * modules/putenv: New file, an indirection to the new module.
+       * doc/posix-functions/putenv.texi: Mention the new module name.
+       * NEWS: Mention the change.
+
 2024-05-16  Collin Funk  <collin.funk1@gmail.com>
 
        putenv: Add tests.
diff --git a/NEWS b/NEWS
index 6caf3ad8e1eceaa227e2ddcda7ca11c6ebe5a839..57540c8375d9ebd925308fca1f9ffb5528f4fd09 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -74,6 +74,8 @@ User visible incompatible changes
 
 Date        Modules         Changes
 
+2024-05-16  putenv          This module is renamed to 'putenv-gnu'.
+
 2024-02-21  *printf-posix   These modules no longer support the 'n' directive
                             by default.  In order to keep the 'n' directive
                             enabled, you need to additionally request the
index b0ca4ab8b5335c8c8c1ff4fd74a114e197fc9a8e..ff06ea506239d6c1a09de3a7daa42dc8c6d6b512 100644 (file)
@@ -4,7 +4,7 @@
 
 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/putenv.html}
 
-Gnulib module: ---
+Gnulib module: putenv-gnu
 
 Portability problems fixed by Gnulib:
 @itemize
@@ -14,6 +14,6 @@ Portability problems not fixed by Gnulib:
 @itemize
 @end itemize
 
-Extension: Gnulib provides a module @samp{putenv} that substitutes a
+Extension: Gnulib provides a module @samp{putenv-gnu} that substitutes a
 @code{putenv} implementation that can also be used to remove environment
 variables.
index a5a7c8d795c73d8377dfc6128efe4f15360c0378..acc0659d8b2b7e7afe8885d6394a379558442dc3 100644 (file)
@@ -1,28 +1,20 @@
 Description:
 putenv() function: change or add an environment variable.
 
+Status:
+deprecated
+
+Notice:
+This module is deprecated. Use the module 'putenv-gnu' instead.
+
 Files:
-lib/putenv.c
-m4/putenv.m4
 
 Depends-on:
-stdlib
-environ         [test $REPLACE_PUTENV = 1]
-free-posix      [test $REPLACE_PUTENV = 1]
-malloc-posix    [test $REPLACE_PUTENV = 1]
+putenv-gnu
 
 configure.ac:
-gl_FUNC_PUTENV
-gl_CONDITIONAL([GL_COND_OBJ_PUTENV], [test $REPLACE_PUTENV = 1])
-AM_COND_IF([GL_COND_OBJ_PUTENV], [
-  gl_PREREQ_PUTENV
-])
-gl_STDLIB_MODULE_INDICATOR([putenv])
 
 Makefile.am:
-if GL_COND_OBJ_PUTENV
-lib_SOURCES += putenv.c
-endif
 
 Include:
 <stdlib.h>
@@ -31,4 +23,4 @@ License:
 LGPL
 
 Maintainer:
-Jim Meyering, glibc
+all
diff --git a/modules/putenv-gnu b/modules/putenv-gnu
new file mode 100644 (file)
index 0000000..be929f6
--- /dev/null
@@ -0,0 +1,34 @@
+Description:
+putenv() function: change, add, or remove an environment variable.
+
+Files:
+lib/putenv.c
+m4/putenv.m4
+
+Depends-on:
+stdlib
+environ         [test $REPLACE_PUTENV = 1]
+free-posix      [test $REPLACE_PUTENV = 1]
+malloc-posix    [test $REPLACE_PUTENV = 1]
+
+configure.ac:
+gl_FUNC_PUTENV
+gl_CONDITIONAL([GL_COND_OBJ_PUTENV], [test $REPLACE_PUTENV = 1])
+AM_COND_IF([GL_COND_OBJ_PUTENV], [
+  gl_PREREQ_PUTENV
+])
+gl_STDLIB_MODULE_INDICATOR([putenv])
+
+Makefile.am:
+if GL_COND_OBJ_PUTENV
+lib_SOURCES += putenv.c
+endif
+
+Include:
+<stdlib.h>
+
+License:
+LGPL
+
+Maintainer:
+Jim Meyering, glibc
diff --git a/modules/putenv-gnu-tests b/modules/putenv-gnu-tests
new file mode 100644 (file)
index 0000000..43abb8e
--- /dev/null
@@ -0,0 +1,13 @@
+Files:
+tests/test-putenv.c
+tests/macros.h
+tests/signature.h
+
+Depends-on:
+unsetenv
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-putenv
+check_PROGRAMS += test-putenv
diff --git a/modules/putenv-tests b/modules/putenv-tests
deleted file mode 100644 (file)
index 43abb8e..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-Files:
-tests/test-putenv.c
-tests/macros.h
-tests/signature.h
-
-Depends-on:
-unsetenv
-
-configure.ac:
-
-Makefile.am:
-TESTS += test-putenv
-check_PROGRAMS += test-putenv