]> Savannah Git Hosting - gnulib.git/commitdiff
tests: Don't use module 'getcwd' as dependency.
authorBruno Haible <bruno@clisp.org>
Sun, 5 Jan 2025 12:21:35 +0000 (13:21 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 18 Jan 2025 08:01:51 +0000 (09:01 +0100)
* modules/getcwd (Comment): New section.
* modules/xgetcwd (Comment): Likewise.
* modules/xgetcwd-lgpl: New file, based on modules/xgetcwd.
* modules/chown-tests (Depends-on): Add xgetcwd-lgpl. Remove xgetcwd.
* modules/fchownat-tests (Depends-on): Likewise.
* modules/fdutimensat-tests (Depends-on): Likewise.
* modules/futimens-tests (Depends-on): Likewise.
* modules/lchown-tests (Depends-on): Likewise.
* modules/stat-time-tests (Depends-on): Likewise.
* modules/utime-tests (Depends-on): Likewise.
* modules/utimens-tests (Depends-on): Likewise.
* modules/utimensat-tests (Depends-on): Likewise.

13 files changed:
ChangeLog
modules/chown-tests
modules/fchownat-tests
modules/fdutimensat-tests
modules/futimens-tests
modules/getcwd
modules/lchown-tests
modules/stat-time-tests
modules/utime-tests
modules/utimens-tests
modules/utimensat-tests
modules/xgetcwd
modules/xgetcwd-lgpl [new file with mode: 0644]

index 91b6c7f69e7c3a246bf3b467960dc9bdddca6a82..134e30f0abc204b70ebd2e7565d12a367c53208d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2025-01-05  Bruno Haible  <bruno@clisp.org>
+
+       tests: Don't use module 'getcwd' as dependency.
+       * modules/getcwd (Comment): New section.
+       * modules/xgetcwd (Comment): Likewise.
+       * modules/xgetcwd-lgpl: New file, based on modules/xgetcwd.
+       * modules/chown-tests (Depends-on): Add xgetcwd-lgpl. Remove xgetcwd.
+       * modules/fchownat-tests (Depends-on): Likewise.
+       * modules/fdutimensat-tests (Depends-on): Likewise.
+       * modules/futimens-tests (Depends-on): Likewise.
+       * modules/lchown-tests (Depends-on): Likewise.
+       * modules/stat-time-tests (Depends-on): Likewise.
+       * modules/utime-tests (Depends-on): Likewise.
+       * modules/utimens-tests (Depends-on): Likewise.
+       * modules/utimensat-tests (Depends-on): Likewise.
+
 2024-12-31  Paul Eggert  <eggert@cs.ucla.edu>
 
        maint: update update-copyright for Emacs
index 2760ff4c0e1b732c26cfd91934db54eef6e22f3d..486c3ffa34ca4fde7126432eec3ed86f7ac9d683 100644 (file)
@@ -15,7 +15,7 @@ bool
 stdckdint-h
 symlink
 xconcat-filename
-xgetcwd
+xgetcwd-lgpl
 
 configure.ac:
 AC_CHECK_FUNCS_ONCE([getgid getegid])
index 2132fd01a2595650090eec31290a79531369da36..75c0acff55b9c49276e9ba5027cca26d010f2d30 100644 (file)
@@ -16,7 +16,7 @@ stat-time
 stdckdint-h
 symlink
 xconcat-filename
-xgetcwd
+xgetcwd-lgpl
 
 configure.ac:
 AC_CHECK_FUNCS_ONCE([getgid getegid])
index 2798e2b0e07a950f1cd6394aa717d7fcd4155e46..99080034bfb188813e9366022e5bed45cfa57be9 100644 (file)
@@ -17,7 +17,7 @@ timespec
 dup
 utimecmp
 xconcat-filename
-xgetcwd
+xgetcwd-lgpl
 
 configure.ac:
 
index d40c3c849c5f2bbc8f5faae94481ef12c3e864ce..c2fd40f0e98fa1eaec0f8b0207c06c5437d0bda3 100644 (file)
@@ -16,7 +16,7 @@ timespec
 dup
 utimecmp
 xconcat-filename
-xgetcwd
+xgetcwd-lgpl
 
 configure.ac:
 
index 03117c9c65960ebb52fbe7dfe7e0dad6f06f62ef..b21b71f7d258ee86c44b32067adcb1d1de0ca5bc 100644 (file)
@@ -1,6 +1,12 @@
 Description:
 Return the current working directory.
 
+Comment:
+This module should not be used as a dependency from a test module,
+otherwise when this module occurs as a tests-related module, it will
+have side effects on the compilation of the 'getcwd-lgpl' module, if
+that module occurs among the main modules in lib/.
+
 Files:
 lib/getcwd.c
 m4/getcwd-abort-bug.m4
index 44fdf84c9b89015f3ba1088a3e763b8b94c24f25..2ec5a074b5f0329debf571a4e1dac368f3b1474a 100644 (file)
@@ -15,7 +15,7 @@ stat-time
 bool
 symlink
 xconcat-filename
-xgetcwd
+xgetcwd-lgpl
 
 configure.ac:
 AC_CHECK_FUNCS_ONCE([getgid getegid])
index e38fb2d19a14b1011de216a613bbaab1c2d947b4..c1f962c243bb734e4e8f67f8fd7a9fce45f81640 100644 (file)
@@ -9,7 +9,7 @@ stdckdint-h
 time-h
 unistd-h
 xconcat-filename
-xgetcwd
+xgetcwd-lgpl
 
 configure.ac:
 
index bd30c021389b8665fab71aca7c55a86370f7a989..aa63e9a0225eb4b9db7b3eef6496f7cca8f1217e 100644 (file)
@@ -14,7 +14,7 @@ symlink
 timespec
 utimecmp
 xconcat-filename
-xgetcwd
+xgetcwd-lgpl
 
 configure.ac:
 
index 93365373ec5b17e9b461686c7b4fc11f540e1fdf..37388a688c9fd84cad78ec9852ee6019507f071b 100644 (file)
@@ -17,7 +17,7 @@ symlink
 timespec
 utimecmp
 xconcat-filename
-xgetcwd
+xgetcwd-lgpl
 
 configure.ac:
 
index 5b65328e2879ef34b1d0bc252711995ccb7b5ed1..7436a18502f657040197bde9f4867716210c96da 100644 (file)
@@ -14,7 +14,7 @@ stdckdint-h
 timespec
 utimecmp
 xconcat-filename
-xgetcwd
+xgetcwd-lgpl
 
 configure.ac:
 
index 9660d4fb2de67f18abc6bf603ba0aed4c0ca0458..f53ce3e3ca4b66ca863a723d6332c3e9855f1599 100644 (file)
@@ -1,6 +1,12 @@
 Description:
 Return the current working directory, without size limitations.
 
+Comment:
+This module should not be used as a dependency from a test module,
+otherwise when this module occurs as a tests-related module, it will
+have side effects on the compilation of the 'getcwd-lgpl' module, if
+that module occurs among the main modules in lib/.
+
 Files:
 lib/xgetcwd.h
 lib/xgetcwd.c
diff --git a/modules/xgetcwd-lgpl b/modules/xgetcwd-lgpl
new file mode 100644 (file)
index 0000000..64e7c8f
--- /dev/null
@@ -0,0 +1,26 @@
+Description:
+Return the current working directory, without size limitations.
+
+Files:
+lib/xgetcwd.h
+lib/xgetcwd.c
+m4/xgetcwd.m4
+
+Depends-on:
+getcwd-lgpl
+xalloc
+
+configure.ac:
+gl_XGETCWD
+
+Makefile.am:
+lib_SOURCES += xgetcwd.c
+
+Include:
+"xgetcwd.h"
+
+License:
+GPL
+
+Maintainer:
+Jim Meyering