[Pkg-cmake-team] Bug#900240: cmake: FTBFS on hurd-i386: please update cmlibuv
Samuel Thibault
sthibault at debian.org
Sun May 27 22:49:40 BST 2018
Package: cmake
Version: 3.11.2-1
Severity: important
Tags: patch
Hello,
Once libuv1 will be fixed (#881882), cmake will still FTBFS, because the
cmake build still builds the embedded libuv. The attached patch updates
it to the patch applied to libuv1, to fix the FTBFS.
Samuel
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'stable-debug'), (500, 'oldoldstable'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.15.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages cmake depends on:
ii cmake-data 3.11.2-1
ii libarchive13 3.2.2-3.1
ii libc6 2.27-3
ii libcurl3 7.58.0-2
ii libexpat1 2.2.5-3
ii libgcc1 1:8.1.0-3
ii libjsoncpp1 1.7.4-3
ii librhash0 1.3.6-2
ii libstdc++6 8.1.0-3
ii libuv1 1.18.0-3
ii procps 2:3.3.14-1+b1
ii zlib1g 1:1.2.11.dfsg-1
Versions of packages cmake recommends:
ii gcc 4:7.2.0-1d1
ii make 4.1-9.1
Versions of packages cmake suggests:
pn cmake-doc <none>
ii ninja-build 1.8.2-1
-- no debconf information
--
Samuel
FYLG> Tiens, vlà une URL qui va bien :
FYLG> ftp://127.0.0.1/WaReZ/NiouZeS/WinDoZe/NeWSMoNGeR/SuPeR
c'est gentil sauf que l'adresse ne fonctionne pas sa me fais une erreur
-+- Furtif in Guide du Neuneu Usenet : <MODE CERVEAU OFF> -+-
-------------- next part --------------
Index: cmake-3.11.2/Utilities/cmlibuv/src/unix/fs.c
===================================================================
--- cmake-3.11.2.orig/Utilities/cmlibuv/src/unix/fs.c
+++ cmake-3.11.2/Utilities/cmlibuv/src/unix/fs.c
@@ -427,6 +427,7 @@ static ssize_t uv__fs_scandir(uv_fs_t* r
}
+#if _POSIX_VERSION < 200809L
static ssize_t uv__fs_pathmax_size(const char* path) {
ssize_t pathmax;
@@ -442,12 +443,19 @@ static ssize_t uv__fs_pathmax_size(const
return pathmax;
}
+#endif
static ssize_t uv__fs_readlink(uv_fs_t* req) {
ssize_t len;
char* buf;
+ struct stat st;
+ int ret;
- len = uv__fs_pathmax_size(req->path);
+ ret = lstat(req->path, &st);
+ if (ret != 0) {
+ return -1;
+ }
+ len = st.st_size;
buf = uv__malloc(len + 1);
if (buf == NULL) {
@@ -474,9 +482,16 @@ static ssize_t uv__fs_readlink(uv_fs_t*
}
static ssize_t uv__fs_realpath(uv_fs_t* req) {
- ssize_t len;
char* buf;
+#if _POSIX_VERSION >= 200809L
+ buf = realpath(req->path, NULL);
+ if (buf == NULL) {
+ return -1;
+ }
+#else
+ ssize_t len;
+
len = uv__fs_pathmax_size(req->path);
buf = uv__malloc(len + 1);
@@ -489,6 +504,7 @@ static ssize_t uv__fs_realpath(uv_fs_t*
uv__free(buf);
return -1;
}
+#endif
req->ptr = buf;
More information about the Pkg-cmake-team
mailing list