Re: gftp: FTBFS on hurd-i386: fatal error: stropts.h: No such file or directory

2021-05-09 Thread hahawang
Hi, Jess     You are right, after I pushed this patch to the upstream repository and the maintainer merged it.     He gave me an reply saying the `stropts.h` now seemed meaningless since most major platforms do not support it, so does GNU Hurd. These lines will be completely removed in the

Re: gftp: FTBFS on hurd-i386: fatal error: stropts.h: No such file or directory

2021-05-09 Thread Jessica Clarke
On 9 May 2021, at 14:56, hahawang wrote: > > Package: gftp > Severity: important > Version: 2.7.0b-1 > Tags: ftbfs,patch > User:hahawang > Usertags: hurd,hurd-i386 > X-Debbugs-CC:debian-h...@lists.debian.org,bug-hurd@gnu.org > > I decide to fix a broken package found at the recommended > page(h

Re: gftp: FTBFS on hurd-i386: fatal error: stropts.h: No such file or directory

2021-05-09 Thread Svante Signell
On Sun, 2021-05-09 at 21:56 +0800, hahawang wrote: > Package: gftp > Severity: important > Version: 2.7.0b-1 > Tags: ftbfs,patch > User:hahawang > Usertags: hurd,hurd-i386 > X-Debbugs-CC:debian-h...@lists.debian.org,bug-hurd@gnu.org > > +#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined

Re: gftp: FTBFS on hurd-i386: fatal error: stropts.h: No such file or directory

2021-05-09 Thread Samuel Thibault
Hello, hahawang, le dim. 09 mai 2021 21:56:58 +0800, a ecrit: > @@ -60,7 +60,7 @@ > >  #elif HAVE_GRANTPT > > -#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__) || > defined(__linux__)) > +#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__) || > defined(

[RFC PATCH glibc 2/3] XXX: Move __pthread_threads to ld.so

2021-05-09 Thread Sergey Bugaev
The next commit is going to introduce a new implementation of THREAD_GSCOPE_WAIT, which needs to access the list of threads. Since it must be usable from the dynamic laoder, we have to move the symbols for the list of threads into the loader. This is my attempt at doing so. --- elf/dl-support.c

[RFC PATCH glibc 0/3] Rewrite THREAD_GSCOPE

2021-05-09 Thread Sergey Bugaev
Alright, here's my second attempt. On Sat, May 8, 2021 at 10:54 PM Samuel Thibault wrote: > While at it, rather try to reproduce the other archs' behavior: use > gscope_flag from the tcb, and switch THREAD_GSCOPE_IN_TCB to 1. That > will make the implementation much simpler and scalable. Well, t

[RFC PATCH glibc 1/3] XXX: Rename THREAD_GSCOPE_IN_TCB -> THREAD_GSCOPE_LINK_MAP

2021-05-09 Thread Sergey Bugaev
This patch is probably bogus; but I'm including it anyway. I've noticed that THREAD_GSCOPE_IN_TCB is actually being used not to check whether the thread global scope state is being stored in TCB, but rather as a general flag to distinguish between NPTL and HTL. When THREAD_GSCOPE_IN_TCB is define

[RFC PATCH glibc 3/3] XXX: Reimplement gscope

2021-05-09 Thread Sergey Bugaev
This moves the Hurd gsope implementation to be more like the Linux one. --- sysdeps/generic/ldsodefs.h | 2 -- sysdeps/htl/dl-thread_gscope_wait.c | 36 + sysdeps/mach/hurd/i386/tls.h| 22 ++ sysdeps/mach/hurd/tls.h | 20 ---

Re: gftp: FTBFS on hurd-i386: fatal error: stropts.h: No such file or directory

2021-05-09 Thread hahawang
I am sorry for the unindented patch file,  due to the thunderbird mail client(or may be I do not know how to use it correctly), so I decide to reply it with a correctly indented patch file. --- hahawang --- a/lib/pty.c +++ b/lib/pty.c @@ -60,7 +60,7 @@  #elif HAVE_GRANTPT -#if !(defined(__

gftp: FTBFS on hurd-i386: fatal error: stropts.h: No such file or directory

2021-05-09 Thread hahawang
Package: gftp Severity: important Version: 2.7.0b-1 Tags: ftbfs,patch User:hahawang Usertags: hurd,hurd-i386 X-Debbugs-CC:debian-h...@lists.debian.org,bug-hurd@gnu.org I decide to fix a broken package found at the recommended page(https://people.debian.org/~sthibault/out_of_date.txt)named `gftp`