Skip to content

(gettext) add version 0.22.5 0.23.1 0.24.1 and 0.25 and fix libiconv #7049

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 12, 2025

Conversation

Arthapz
Copy link
Member

@Arthapz Arthapz commented May 1, 2025

  • Before adding new features and new modules, please go to issues to submit the relevant feature description first.
  • Write good commit messages and use the same coding conventions as the rest of the project.
  • Please commit code to dev branch and we will merge into master branch in feature
  • Ensure your edited codes with four spaces instead of TAB.

  • 增加新特性和新模块之前,请先到issues提交相关特性说明,经过讨论评估确认后,再进行相应的代码提交,避免做无用工作。
  • 编写友好可读的提交信息,并使用与工程代码相同的代码规范,代码请用4个空格字符代替tab缩进。
  • 请提交代码到dev分支,如果通过,我们会在特定时间合并到master分支上。
  • 为了规范化提交日志的格式,commit消息,不要用中文,请用英文描述。

@luadebug
Copy link
Contributor

luadebug commented May 1, 2025

C:/Program Files/Git/usr/bin/sh.exe ../libtool  --tag=CC   --mode=compile D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-tautological-constant-out-of-range-compare -Wno-sign-conversion -Wno-type-limits -Wno-unused-const-variable -Wno-error --target=armv7-none-linux-androideabi30 --sysroot=D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot -isystem D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/arm-linux-androideabi -Wno-incompatible-function-pointer-types -IC:/Users/runneradmin/AppData/Local/.xmake/packages/l/libiconv/1.18/a0292ccefb7e473383c72f2d36f0a8c3/include -fPIC -c -o libgnu_la-float.lo `test -f 'float.c' || echo './'`float.c
C:/Program Files/Git/usr/bin/sh.exe ../libtool  --tag=CC   --mode=compile D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-tautological-constant-out-of-range-compare -Wno-sign-conversion -Wno-type-limits -Wno-unused-const-variable -Wno-error --target=armv7-none-linux-androideabi30 --sysroot=D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot -isystem D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/arm-linux-androideabi -Wno-incompatible-function-pointer-types -IC:/Users/runneradmin/AppData/Local/.xmake/packages/l/libiconv/1.18/a0292ccefb7e473383c72f2d36f0a8c3/include -fPIC -c -o libgnu_la-free.lo `test -f 'free.c' || echo './'`free.c
C:/Program Files/Git/usr/bin/sh.exe ../libtool  --tag=CC   --mode=compile D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-tautological-constant-out-of-range-compare -Wno-sign-conversion -Wno-type-limits -Wno-unused-const-variable -Wno-error --target=armv7-none-linux-androideabi30 --sysroot=D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot -isystem D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/arm-linux-androideabi -Wno-incompatible-function-pointer-types -IC:/Users/runneradmin/AppData/Local/.xmake/packages/l/libiconv/1.18/a0292ccefb7e473383c72f2d36f0a8c3/include -fPIC -c -o libgnu_la-getcwd-lgpl.lo `test -f 'getcwd-lgpl.c' || echo './'`getcwd-lgpl.c
C:/Program Files/Git/usr/bin/sh.exe ../libtool  --tag=CC   --mode=compile D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-tautological-constant-out-of-range-compare -Wno-sign-conversion -Wno-type-limits -Wno-unused-const-variable -Wno-error --target=armv7-none-linux-androideabi30 --sysroot=D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot -isystem D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/arm-linux-androideabi -Wno-incompatible-function-pointer-types -IC:/Users/runneradmin/AppData/Local/.xmake/packages/l/libiconv/1.18/a0292ccefb7e473383c72f2d36f0a8c3/include -fPIC -c -o libgnu_la-getlocalename_l-unsafe.lo `test -f 'getlocalename_l-unsafe.c' || echo './'`getlocalename_l-unsafe.c
C:/Program Files/Git/usr/bin/sh.exe ../libtool  --tag=CC   --mode=compile D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-tautological-constant-out-of-range-compare -Wno-sign-conversion -Wno-type-limits -Wno-unused-const-variable -Wno-error --target=armv7-none-linux-androideabi30 --sysroot=D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot -isystem D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/arm-linux-androideabi -Wno-incompatible-function-pointer-types -IC:/Users/runneradmin/AppData/Local/.xmake/packages/l/libiconv/1.18/a0292ccefb7e473383c72f2d36f0a8c3/include -fPIC -c -o libgnu_la-localename-table.lo `test -f 'localename-table.c' || echo './'`localename-table.c
C:/Program Files/Git/usr/bin/sh.exe ../libtool  --tag=CC   --mode=compile D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-tautological-constant-out-of-range-compare -Wno-sign-conversion -Wno-type-limits -Wno-unused-const-variable -Wno-error --target=armv7-none-linux-androideabi30 --sysroot=D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot -isystem D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/arm-linux-androideabi -Wno-incompatible-function-pointer-types -IC:/Users/runneradmin/AppData/Local/.xmake/packages/l/libiconv/1.18/a0292ccefb7e473383c72f2d36f0a8c3/include -fPIC -c -o libgnu_la-hard-locale.lo `test -f 'hard-locale.c' || echo './'`hard-locale.c

Should sh.exe be covered by " like "C:/Program Files/Git/usr/bin/sh.exe" ?

@Arthapz
Copy link
Member Author

Arthapz commented May 1, 2025

C:/Program Files/Git/usr/bin/sh.exe ../libtool  --tag=CC   --mode=compile D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-tautological-constant-out-of-range-compare -Wno-sign-conversion -Wno-type-limits -Wno-unused-const-variable -Wno-error --target=armv7-none-linux-androideabi30 --sysroot=D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot -isystem D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/arm-linux-androideabi -Wno-incompatible-function-pointer-types -IC:/Users/runneradmin/AppData/Local/.xmake/packages/l/libiconv/1.18/a0292ccefb7e473383c72f2d36f0a8c3/include -fPIC -c -o libgnu_la-float.lo `test -f 'float.c' || echo './'`float.c
C:/Program Files/Git/usr/bin/sh.exe ../libtool  --tag=CC   --mode=compile D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-tautological-constant-out-of-range-compare -Wno-sign-conversion -Wno-type-limits -Wno-unused-const-variable -Wno-error --target=armv7-none-linux-androideabi30 --sysroot=D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot -isystem D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/arm-linux-androideabi -Wno-incompatible-function-pointer-types -IC:/Users/runneradmin/AppData/Local/.xmake/packages/l/libiconv/1.18/a0292ccefb7e473383c72f2d36f0a8c3/include -fPIC -c -o libgnu_la-free.lo `test -f 'free.c' || echo './'`free.c
C:/Program Files/Git/usr/bin/sh.exe ../libtool  --tag=CC   --mode=compile D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-tautological-constant-out-of-range-compare -Wno-sign-conversion -Wno-type-limits -Wno-unused-const-variable -Wno-error --target=armv7-none-linux-androideabi30 --sysroot=D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot -isystem D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/arm-linux-androideabi -Wno-incompatible-function-pointer-types -IC:/Users/runneradmin/AppData/Local/.xmake/packages/l/libiconv/1.18/a0292ccefb7e473383c72f2d36f0a8c3/include -fPIC -c -o libgnu_la-getcwd-lgpl.lo `test -f 'getcwd-lgpl.c' || echo './'`getcwd-lgpl.c
C:/Program Files/Git/usr/bin/sh.exe ../libtool  --tag=CC   --mode=compile D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-tautological-constant-out-of-range-compare -Wno-sign-conversion -Wno-type-limits -Wno-unused-const-variable -Wno-error --target=armv7-none-linux-androideabi30 --sysroot=D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot -isystem D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/arm-linux-androideabi -Wno-incompatible-function-pointer-types -IC:/Users/runneradmin/AppData/Local/.xmake/packages/l/libiconv/1.18/a0292ccefb7e473383c72f2d36f0a8c3/include -fPIC -c -o libgnu_la-getlocalename_l-unsafe.lo `test -f 'getlocalename_l-unsafe.c' || echo './'`getlocalename_l-unsafe.c
C:/Program Files/Git/usr/bin/sh.exe ../libtool  --tag=CC   --mode=compile D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-tautological-constant-out-of-range-compare -Wno-sign-conversion -Wno-type-limits -Wno-unused-const-variable -Wno-error --target=armv7-none-linux-androideabi30 --sysroot=D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot -isystem D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/arm-linux-androideabi -Wno-incompatible-function-pointer-types -IC:/Users/runneradmin/AppData/Local/.xmake/packages/l/libiconv/1.18/a0292ccefb7e473383c72f2d36f0a8c3/include -fPIC -c -o libgnu_la-localename-table.lo `test -f 'localename-table.c' || echo './'`localename-table.c
C:/Program Files/Git/usr/bin/sh.exe ../libtool  --tag=CC   --mode=compile D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-tautological-constant-out-of-range-compare -Wno-sign-conversion -Wno-type-limits -Wno-unused-const-variable -Wno-error --target=armv7-none-linux-androideabi30 --sysroot=D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot -isystem D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/arm-linux-androideabi -Wno-incompatible-function-pointer-types -IC:/Users/runneradmin/AppData/Local/.xmake/packages/l/libiconv/1.18/a0292ccefb7e473383c72f2d36f0a8c3/include -fPIC -c -o libgnu_la-hard-locale.lo `test -f 'hard-locale.c' || echo './'`hard-locale.c

Should sh.exe be covered by " like "C:/Program Files/Git/usr/bin/sh.exe" ?

yeah it should, but i don't know how

@luadebug
Copy link
Contributor

luadebug commented May 1, 2025

C:/Program Files/Git/usr/bin/sh.exe ../libtool  --tag=CC   --mode=compile D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-tautological-constant-out-of-range-compare -Wno-sign-conversion -Wno-type-limits -Wno-unused-const-variable -Wno-error --target=armv7-none-linux-androideabi30 --sysroot=D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot -isystem D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/arm-linux-androideabi -Wno-incompatible-function-pointer-types -IC:/Users/runneradmin/AppData/Local/.xmake/packages/l/libiconv/1.18/a0292ccefb7e473383c72f2d36f0a8c3/include -fPIC -c -o libgnu_la-float.lo `test -f 'float.c' || echo './'`float.c
C:/Program Files/Git/usr/bin/sh.exe ../libtool  --tag=CC   --mode=compile D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-tautological-constant-out-of-range-compare -Wno-sign-conversion -Wno-type-limits -Wno-unused-const-variable -Wno-error --target=armv7-none-linux-androideabi30 --sysroot=D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot -isystem D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/arm-linux-androideabi -Wno-incompatible-function-pointer-types -IC:/Users/runneradmin/AppData/Local/.xmake/packages/l/libiconv/1.18/a0292ccefb7e473383c72f2d36f0a8c3/include -fPIC -c -o libgnu_la-free.lo `test -f 'free.c' || echo './'`free.c
C:/Program Files/Git/usr/bin/sh.exe ../libtool  --tag=CC   --mode=compile D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-tautological-constant-out-of-range-compare -Wno-sign-conversion -Wno-type-limits -Wno-unused-const-variable -Wno-error --target=armv7-none-linux-androideabi30 --sysroot=D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot -isystem D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/arm-linux-androideabi -Wno-incompatible-function-pointer-types -IC:/Users/runneradmin/AppData/Local/.xmake/packages/l/libiconv/1.18/a0292ccefb7e473383c72f2d36f0a8c3/include -fPIC -c -o libgnu_la-getcwd-lgpl.lo `test -f 'getcwd-lgpl.c' || echo './'`getcwd-lgpl.c
C:/Program Files/Git/usr/bin/sh.exe ../libtool  --tag=CC   --mode=compile D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-tautological-constant-out-of-range-compare -Wno-sign-conversion -Wno-type-limits -Wno-unused-const-variable -Wno-error --target=armv7-none-linux-androideabi30 --sysroot=D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot -isystem D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/arm-linux-androideabi -Wno-incompatible-function-pointer-types -IC:/Users/runneradmin/AppData/Local/.xmake/packages/l/libiconv/1.18/a0292ccefb7e473383c72f2d36f0a8c3/include -fPIC -c -o libgnu_la-getlocalename_l-unsafe.lo `test -f 'getlocalename_l-unsafe.c' || echo './'`getlocalename_l-unsafe.c
C:/Program Files/Git/usr/bin/sh.exe ../libtool  --tag=CC   --mode=compile D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-tautological-constant-out-of-range-compare -Wno-sign-conversion -Wno-type-limits -Wno-unused-const-variable -Wno-error --target=armv7-none-linux-androideabi30 --sysroot=D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot -isystem D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/arm-linux-androideabi -Wno-incompatible-function-pointer-types -IC:/Users/runneradmin/AppData/Local/.xmake/packages/l/libiconv/1.18/a0292ccefb7e473383c72f2d36f0a8c3/include -fPIC -c -o libgnu_la-localename-table.lo `test -f 'localename-table.c' || echo './'`localename-table.c
C:/Program Files/Git/usr/bin/sh.exe ../libtool  --tag=CC   --mode=compile D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-tautological-constant-out-of-range-compare -Wno-sign-conversion -Wno-type-limits -Wno-unused-const-variable -Wno-error --target=armv7-none-linux-androideabi30 --sysroot=D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot -isystem D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/arm-linux-androideabi -Wno-incompatible-function-pointer-types -IC:/Users/runneradmin/AppData/Local/.xmake/packages/l/libiconv/1.18/a0292ccefb7e473383c72f2d36f0a8c3/include -fPIC -c -o libgnu_la-hard-locale.lo `test -f 'hard-locale.c' || echo './'`hard-locale.c

Should sh.exe be covered by " like "C:/Program Files/Git/usr/bin/sh.exe" ?

yeah it should, but i don't know how

if is_subhost("windows") then
    import("package.tools.autoconf")
    local envs = autoconf.buildenvs(package)
    envs.PATH = "C:/PROGRA~1/Git/usr/bin" .. path.envsep() .. envs.PATH
    autoconf.install(package, configs, {envs = envs, cflags = cflags, ldflags = ldflags})
else
    import("package.tools.autoconf").install(package, configs, {cflags = cflags, ldflags = ldflags})
end

Maybe there is some solution like this. Or either this

        if is_subhost("windows") then
            import("package.tools.autoconf")
            import("lib.detect.find_tool")

            local git = assert(find_tool("git"), "git tool not found!")
            print("git => ")
            print(git)

            local git_folder = path.directory(path.directory(git.program))
            print("Git => " .. git_folder)

            local sh = "sh.exe"

            for _, file in ipairs(os.files(path.join(git_folder, "usr", "bin", "**sh.exe"))) do
                if path.filename(file) == "sh.exe" then
                    print(file)
                    sh = file:replace("Program Files (x86)", "PROGRA~2"):replace("Program Files", "PROGRA~1")
                    print(sh)
                end
            end

            local envs = autoconf.buildenvs(package)
            envs.PATH = path.directory(sh)
            print(envs)

            autoconf.install(package, configs, {envs = envs, cflags = cflags, ldflags = ldflags})
        else
            import("package.tools.autoconf").install(package, configs, {cflags = cflags, ldflags = ldflags})
        end

so it would be envs.PATH = "C:\PROGRA~1\Git\usr\bin"
I dont know how to resolve this as well. Would be good to use some msys2 here for sh.exe & build from mingw shell, so autotools would work much more predictable during detection phase, thus might nullify issue of paths with whitespaces need to be covered by quotes.

@Arthapz
Copy link
Member Author

Arthapz commented May 2, 2025

C:/Program Files/Git/usr/bin/sh.exe ../libtool  --tag=CC   --mode=compile D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-tautological-constant-out-of-range-compare -Wno-sign-conversion -Wno-type-limits -Wno-unused-const-variable -Wno-error --target=armv7-none-linux-androideabi30 --sysroot=D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot -isystem D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/arm-linux-androideabi -Wno-incompatible-function-pointer-types -IC:/Users/runneradmin/AppData/Local/.xmake/packages/l/libiconv/1.18/a0292ccefb7e473383c72f2d36f0a8c3/include -fPIC -c -o libgnu_la-float.lo `test -f 'float.c' || echo './'`float.c
C:/Program Files/Git/usr/bin/sh.exe ../libtool  --tag=CC   --mode=compile D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-tautological-constant-out-of-range-compare -Wno-sign-conversion -Wno-type-limits -Wno-unused-const-variable -Wno-error --target=armv7-none-linux-androideabi30 --sysroot=D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot -isystem D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/arm-linux-androideabi -Wno-incompatible-function-pointer-types -IC:/Users/runneradmin/AppData/Local/.xmake/packages/l/libiconv/1.18/a0292ccefb7e473383c72f2d36f0a8c3/include -fPIC -c -o libgnu_la-free.lo `test -f 'free.c' || echo './'`free.c
C:/Program Files/Git/usr/bin/sh.exe ../libtool  --tag=CC   --mode=compile D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-tautological-constant-out-of-range-compare -Wno-sign-conversion -Wno-type-limits -Wno-unused-const-variable -Wno-error --target=armv7-none-linux-androideabi30 --sysroot=D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot -isystem D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/arm-linux-androideabi -Wno-incompatible-function-pointer-types -IC:/Users/runneradmin/AppData/Local/.xmake/packages/l/libiconv/1.18/a0292ccefb7e473383c72f2d36f0a8c3/include -fPIC -c -o libgnu_la-getcwd-lgpl.lo `test -f 'getcwd-lgpl.c' || echo './'`getcwd-lgpl.c
C:/Program Files/Git/usr/bin/sh.exe ../libtool  --tag=CC   --mode=compile D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-tautological-constant-out-of-range-compare -Wno-sign-conversion -Wno-type-limits -Wno-unused-const-variable -Wno-error --target=armv7-none-linux-androideabi30 --sysroot=D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot -isystem D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/arm-linux-androideabi -Wno-incompatible-function-pointer-types -IC:/Users/runneradmin/AppData/Local/.xmake/packages/l/libiconv/1.18/a0292ccefb7e473383c72f2d36f0a8c3/include -fPIC -c -o libgnu_la-getlocalename_l-unsafe.lo `test -f 'getlocalename_l-unsafe.c' || echo './'`getlocalename_l-unsafe.c
C:/Program Files/Git/usr/bin/sh.exe ../libtool  --tag=CC   --mode=compile D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-tautological-constant-out-of-range-compare -Wno-sign-conversion -Wno-type-limits -Wno-unused-const-variable -Wno-error --target=armv7-none-linux-androideabi30 --sysroot=D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot -isystem D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/arm-linux-androideabi -Wno-incompatible-function-pointer-types -IC:/Users/runneradmin/AppData/Local/.xmake/packages/l/libiconv/1.18/a0292ccefb7e473383c72f2d36f0a8c3/include -fPIC -c -o libgnu_la-localename-table.lo `test -f 'localename-table.c' || echo './'`localename-table.c
C:/Program Files/Git/usr/bin/sh.exe ../libtool  --tag=CC   --mode=compile D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-tautological-constant-out-of-range-compare -Wno-sign-conversion -Wno-type-limits -Wno-unused-const-variable -Wno-error --target=armv7-none-linux-androideabi30 --sysroot=D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot -isystem D:/a/xmake-repo/xmake-repo/ndk/android-ndk-r27/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/arm-linux-androideabi -Wno-incompatible-function-pointer-types -IC:/Users/runneradmin/AppData/Local/.xmake/packages/l/libiconv/1.18/a0292ccefb7e473383c72f2d36f0a8c3/include -fPIC -c -o libgnu_la-hard-locale.lo `test -f 'hard-locale.c' || echo './'`hard-locale.c

Should sh.exe be covered by " like "C:/Program Files/Git/usr/bin/sh.exe" ?

yeah it should, but i don't know how

if is_subhost("windows") then
    import("package.tools.autoconf")
    local envs = autoconf.buildenvs(package)
    envs.PATH = "C:/PROGRA~1/Git/usr/bin" .. path.envsep() .. envs.PATH
    autoconf.install(package, configs, {envs = envs, cflags = cflags, ldflags = ldflags})
else
    import("package.tools.autoconf").install(package, configs, {cflags = cflags, ldflags = ldflags})
end

Maybe there is some solution like this. Or either this

        if is_subhost("windows") then
            import("package.tools.autoconf")
            import("lib.detect.find_tool")

            local git = assert(find_tool("git"), "git tool not found!")
            print("git => ")
            print(git)

            local git_folder = path.directory(path.directory(git.program))
            print("Git => " .. git_folder)

            local sh = "sh.exe"

            for _, file in ipairs(os.files(path.join(git_folder, "usr", "bin", "**sh.exe"))) do
                if path.filename(file) == "sh.exe" then
                    print(file)
                    sh = file:replace("Program Files (x86)", "PROGRA~2"):replace("Program Files", "PROGRA~1")
                    print(sh)
                end
            end

            local envs = autoconf.buildenvs(package)
            envs.PATH = path.directory(sh)
            print(envs)

            autoconf.install(package, configs, {envs = envs, cflags = cflags, ldflags = ldflags})
        else
            import("package.tools.autoconf").install(package, configs, {cflags = cflags, ldflags = ldflags})
        end

so it would be envs.PATH = "C:\PROGRA~1\Git\usr\bin" I dont know how to resolve this as well. Would be good to use some msys2 here for sh.exe & build from mingw shell, so autotools would work much more predictable during detection phase, thus might nullify issue of paths with whitespaces need to be covered by quotes.

ok thx, i think i have a fix

@Arthapz Arthapz force-pushed the update-gettext branch 9 times, most recently from df9723c to e580e76 Compare May 2, 2025 21:36
@Arthapz Arthapz changed the title (gettext) add version 0.22.5 0.23.1 and 0.24 and fix libiconv (gettext) add version 0.22.5 0.23.1 and 0.24.1 and fix libiconv May 2, 2025
@Arthapz
Copy link
Member Author

Arthapz commented May 2, 2025

ok it work for the sh path, but know we have link issues :D

@Arthapz Arthapz force-pushed the update-gettext branch 12 times, most recently from d5e0316 to aec0373 Compare May 5, 2025 02:35
@Arthapz Arthapz marked this pull request as draft May 5, 2025 14:02
@Arthapz Arthapz force-pushed the update-gettext branch 2 times, most recently from 642c8a9 to 91aa559 Compare May 5, 2025 17:42
@Arthapz Arthapz force-pushed the update-gettext branch 9 times, most recently from 7d9a143 to 41bc56e Compare May 5, 2025 20:16
@Arthapz Arthapz marked this pull request as ready for review May 5, 2025 21:28
@Arthapz Arthapz force-pushed the update-gettext branch 2 times, most recently from 0673e63 to e59b623 Compare May 6, 2025 15:50
@Arthapz
Copy link
Member Author

Arthapz commented May 6, 2025

@luadebug finally it's working \o/
but i don't understand why make called from vrunv produce errors but exec doesn't

@waruqi
Copy link
Member

waruqi commented May 8, 2025

@luadebug finally it's working \o/ but i don't understand why make called from vrunv produce errors but exec doesn't

runv will check retval, and raise error if it's non-zero.

but exec will return retval directly, it will not check it.

so make process maybe has non-zero exit value.

@Arthapz
Copy link
Member Author

Arthapz commented May 8, 2025

@luadebug finally it's working \o/ but i don't understand why make called from vrunv produce errors but exec doesn't

runv will check retval, and raise error if it's non-zero.

but exec will return retval directly, it will not check it.

so make process maybe has non-zero exit value.

i've put assert on exec, and it doesn't activate, so execv return a zero exit value, this is black magic

@Arthapz
Copy link
Member Author

Arthapz commented May 9, 2025

so, should i make any changes ? or is it mergeable ?

@Arthapz Arthapz changed the title (gettext) add version 0.22.5 0.23.1 and 0.24.1 and fix libiconv (gettext) add version 0.22.5 0.23.1 0.24.1 and 0.25 and fix libiconv May 11, 2025
@waruqi waruqi merged commit 73fcfab into xmake-io:dev May 12, 2025
73 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants