Package Details: mingw-w64-libunistring 1.3-1

Git Clone URL: https://aur.archlinux.org/mingw-w64-libunistring.git (read-only, click to copy)
Package Base: mingw-w64-libunistring
Description: Library for manipulating Unicode strings and C strings (mingw-w64)
Upstream URL: https://www.gnu.org/software/libunistring/
Keywords: libunistring mingw mingw-w64
Licenses: LGPL-3.0-or-later OR GPL-2.0-or-later
Submitter: Schala
Maintainer: pingplug
Last Packager: pingplug
Votes: 21
Popularity: 0.000000
First Submitted: 2012-08-07 01:28 (UTC)
Last Updated: 2024-12-08 08:30 (UTC)

Latest Comments

patlefort commented on 2022-03-04 11:36 (UTC)

There is a problem with the install step for this package: It's being rebuilt while in the package() function and it's causing it to build wrong and not install the dll properly. I had to tweak it as such:

diff --git a/PKGBUILD b/PKGBUILD
index 38d6291..79d48a3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -26,6 +26,7 @@ build() {
     ${_arch}-configure \
       --enable-threads=win32
     make
+    make DESTDIR="$(pwd)/install" install
     popd
   done
 }
@@ -33,7 +34,8 @@ build() {
 package() {
   for _arch in ${_architectures}; do
     cd "${srcdir}/libunistring-${pkgver}/build-${_arch}"
-    make DESTDIR="${pkgdir}" install
+    cp -rf install/* ${pkgdir}
+    mv -f "$pkgdir"/usr/${_arch}/bin/{libunistring-2,libunistring}.dll
     find "${pkgdir}/usr/${_arch}" -name '*.dll' -exec ${_arch}-strip --strip-unneeded {} \;
     find "${pkgdir}/usr/${_arch}" -name '*.a' -o -name '*.dll' | xargs ${_arch}-strip -g
     rm "${pkgdir}/usr/${_arch}/share/info/dir"

Also, the resulting dll filename shouldn't have a postfix or other packages won't find it, my patch fixes that.

basinilya commented on 2020-07-05 07:13 (UTC)

The 32bit /usr/i686-w64-mingw32/bin/libunistring-2.dll is missing in the built package, because libtool fails to locate libiconv.dll under fakeroot during make install:

*** Warning: linker path does not have real file for library -liconv.
...
*** using a file magic. Last file checked: /usr/x86_64-w64-mingw32/lib/libiconv.dll.a
...
*** libtool will only create a static version of it.
make[2]: Leaving directory '/home/il/builds/mingw-w64-libunistring/src/libunistring-0.9.10/build-x86_64-w64-mingw32/lib'

f1she3 commented on 2018-09-17 17:36 (UTC) (edited on 2018-09-17 17:40 (UTC) by f1she3)

Hello,

I can't compile my libcurl project statically on mingw-w64, I can use every other dependences libs statically to get rid of the DLLs, but this one fails to compile with following linker errors (related to uninorm.h) :

undefined reference to '__imp_uninorm_nfc'
undefined reference to '__imp_uninorm_nfc'
undefined reference to '__imp_UC_CATEGORY_M'
undefined reference to '__imp_uninorm_nfc'

  • I use the other AUR packages (mingw-w64-gcc, mingw-w64-curl ...etc)
  • The static file libunistring.a is created when building the package
  • I use curl's -DCURL_STATICLIB flag

The error disappears when I use the dynamic version :
LDFLAGS = -l:libunistring.a -> fails
LDFLAGS = -lunistring -> compiles, but need of DLL

Do you know if I'm doing something wrong, or if it's a bug ?

Thanks a lot

xantares commented on 2014-07-25 11:46 (UTC)

Could it link to http://ftp.gnu.org/ instead of ftp ? It hangs from my machine when downloading.