]> 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:23:38 +0000 (09:23 +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 4b7c72c9063bc2e9bef0f73c3bc83c24d60cfeff..2710a9a4898ed5cff26ef2ca910407e212806c2b 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  Bruno Haible  <bruno@clisp.org>
 
        getcwd: Return "/bin" instead of "//bin" on Adélie Linux.
index 2c3d9686dce4e9b8e14841ad8aa36eb562c3c96b..280908109d57fffbdd3aabe5c311d2dd2d1ac743 100644 (file)
@@ -15,7 +15,7 @@ stdbool
 stdckdint
 symlink
 xconcat-filename
-xgetcwd
+xgetcwd-lgpl
 
 configure.ac:
 AC_CHECK_FUNCS_ONCE([getgid getegid])
index 2f804eccc12e8f19a4ef83c10c636fff85adfb80..bda86efc44815866abeb7f76ca7c8c7384d43f9f 100644 (file)
@@ -16,7 +16,7 @@ stat-time
 stdckdint
 symlink
 xconcat-filename
-xgetcwd
+xgetcwd-lgpl
 
 configure.ac:
 AC_CHECK_FUNCS_ONCE([getgid getegid])
index f4eb2ecc04e321fbaf80baa4210535e0c4bf99cd..83a300ce929161a0a349281164924d1f1e993cd8 100644 (file)
@@ -17,7 +17,7 @@ timespec
 dup
 utimecmp
 xconcat-filename
-xgetcwd
+xgetcwd-lgpl
 
 configure.ac:
 
index 7781dff3d337e24ecb7fe429383685ee72b6f01f..51110661765d025568479eecc98c0245cad4d6b6 100644 (file)
@@ -16,7 +16,7 @@ timespec
 dup
 utimecmp
 xconcat-filename
-xgetcwd
+xgetcwd-lgpl
 
 configure.ac:
 
index f1aa6317b97dbe77edb0bd17988bccb15e6d37d9..aea6d560f0e4bb89e4335a383957b67d51c8e72d 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 cc7bffa55fedeaea4dcf4925517f11e6597e33e6..4c9d432658bf4dc860fb95808b649db6c681166e 100644 (file)
@@ -15,7 +15,7 @@ stat-time
 stdbool
 symlink
 xconcat-filename
-xgetcwd
+xgetcwd-lgpl
 
 configure.ac:
 AC_CHECK_FUNCS_ONCE([getgid getegid])
index 9a283783b734a6280adba38b1236f81328417a90..4e8d12e0f7e9b6dd764c76dd75619063fc08a9b8 100644 (file)
@@ -9,7 +9,7 @@ stdckdint
 time-h
 unistd
 xconcat-filename
-xgetcwd
+xgetcwd-lgpl
 
 configure.ac:
 
index e354b476b8a476b1d9db95ee770ce5a2c208b339..304d0e097ff6dcbbcef1fe8aa788c0841cba796e 100644 (file)
@@ -14,7 +14,7 @@ symlink
 timespec
 utimecmp
 xconcat-filename
-xgetcwd
+xgetcwd-lgpl
 
 configure.ac:
 
index 3899bf08d4c17eb9763bf8a1671d5cc572a30eec..d18ec5907ea7a05a866b24ec38144bdeed5f0a4c 100644 (file)
@@ -17,7 +17,7 @@ symlink
 timespec
 utimecmp
 xconcat-filename
-xgetcwd
+xgetcwd-lgpl
 
 configure.ac:
 
index 03c8d9990fc1ee4a63a4f24b377637c8161696b8..4842cecdfa600c637fa440baade348f86efb3fe5 100644 (file)
@@ -14,7 +14,7 @@ stdckdint
 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