Re: Fail to build s6 on GNU/Hurd

2020-03-21 Thread Shengjing Zhu
is to remove the > #include > line from bytestr.h in skalibs. And if someone uses the str_nlen macro, > it is their responsibility to also #include in > their source file to get the strnlen definition even on non-compliant > systems. > Thanks for this detail explanation! -- Shengjing Zhu

Fail to build s6 on GNU/Hurd

2020-03-21 Thread Shengjing Zhu
-notifyoncheck.c @@ -9,7 +9,6 @@ #include #include -#include #include #include #include @@ -19,6 +18,8 @@ #include +#include + But I think there could be a better way to fix this. [1] https://github.com/bminor/glibc/blob/master/sysdeps/mach/hurd/bits/errno.h#L26 -- Shengjing Zhu

Re: Porting skalibs to GNU Hurd

2019-10-31 Thread Shengjing Zhu
d. > > And that is why everyone - including kernels - should always use > different error codes for "can't happen" and "unknown run-time issue". > :) > FWIW, it has been fixed in Hurd upstream. http://git.savannah.gnu.org/cgit/hurd/hurd.git/commit/?id=9b6afce

Re: False positive in skalibs system feature test

2019-10-25 Thread Shengjing Zhu
9#n179 ``` #if defined __stub_$1 || defined __stub___$1 choke me #endif ``` I checked on GNU Hurd, __stub_getrandom is defined. -- Shengjing Zhu

False positive in skalibs system feature test

2019-10-23 Thread Shengjing Zhu
tually. I'm thinking if only these non-linux systems have such confused behaviour(why it links successfully at all...) -- Shengjing Zhu

Re: [PATCH execline] Fix CC variable in cross compile environment

2019-10-21 Thread Shengjing Zhu
f echo $dep | grep -q -- \\.o$ ; then dep="src/$dir/$dep" fi - if echo $dep | grep -q -- '^\${.*_LIB}' ; then + if echo $dep | grep -q -- '^\${.*_LIB}\|^-l' ; then libs="$libs $dep" else deps="$deps $dep" -- Shengjing Zhu

[PATCH execline] Fix CC variable in cross compile environment

2019-10-20 Thread Shengjing Zhu
This patch fixes execline, but other softwares like s6 should be fixed as well. With commit fc7958ecb1c4d5b06521e1ca42f0b48b514e27e1, Makefile uses CC instead of $(CROSS_COMPILE)$(CC), So CC shouldn't strip cross prefix when configure. --- configure | 2 +- 1 file changed, 1 insertion(+), 1

Re: Porting skalibs to GNU Hurd

2019-10-17 Thread Shengjing Zhu
On Thu, Oct 17, 2019 at 7:14 AM Guillermo wrote: > > If compiler predefined macros like __linux__ or __NetBSD__ are OK for > , how about #if defined(__linux__) || > defined(__GNU__)? GCC predefines both __GNU__ and __gnu_hurd__ (I > think, can be checked with 'cpp -dM - the Hurd, and I suppose

Re: Porting skalibs to GNU Hurd

2019-10-17 Thread Shengjing Zhu
diefu2sys(111, "open_write ", control) ; fdctl = open_read(control) ; if (fdctl < 0) strerr_diefu2sys(111, "open_read ", control) ; The errno I got on Hurd is `EIEIO 1073741928 Computer bought the farm`... Seems a Hurd specific errno... -- Shengjing Zhu

Porting skalibs to GNU Hurd

2019-10-15 Thread Shengjing Zhu
first time...) [1] https://www.gnu.org/software/hurd/ [2] https://www.debian.org/ports/hurd/ [3] https://cdimage.debian.org/cdimage/ports/current-hurd-i386/debian-hurd.img.tar.xz -- Shengjing Zhu signature.asc Description: PGP signature

cross-compile packages on multi-arch system(was Re: cross-compile skalibs)

2019-09-23 Thread Shengjing Zhu
/(HOST_BUILD_TYPE)/libskarnet.so, not /usr/lib/(HOST_HOST_TYPE)/libskarnet.so This can be fixed by https://bugs.debian.org/cgi-bin/bugreport.cgi?att=2;bug=917834;filename=cross.patch;msg=5 Helmut Grohne sends me via https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=917834 -- Shengjing Zhu

[PATCH skalibs] Make build reproducible

2019-08-19 Thread Shengjing Zhu
Fix the undetermined object order when linking. See more https://reproducible-builds.org/docs/stable-inputs/ Signed-off-by: Shengjing Zhu --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0724394..80c158b 100644 --- a/Makefile +++ b

Re: Question about enable-absolute-paths option

2018-09-09 Thread Shengjing Zhu
mask/wait "$@" -- Shengjing Zhu

Re: Question about enable-absolute-paths option

2018-09-02 Thread Shengjing Zhu
could just name the package like libexecline(which has binaries as helper programs). Then users will think they can't get an execline pacakge. -- Shengjing Zhu GPG Key: 0xCF0E265B7DFBB2F2 Homepage: https://zhsj.me