File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6969 sudo apt-get -q -y update
7070 sudo apt-get -q -y upgrade
7171 sudo apt-get -y install build-essential automake autoconf libtool pkg-config icu-devtools libicu-dev libxml2-dev uuid-dev fuse libfuse-dev libsnmp-dev
72- sudo cp .github/workflows/icu-config /usr/bin/icu-config
7372 ./autogen.sh
7473 ./configure
7574 make
Load diff This file was deleted.
Original file line number Diff line number Diff line change @@ -290,16 +290,14 @@ You need to add `--enable-lintape` as an argument of ./configure script if you w
290290 | Ubuntu 16.04 LTS | ppc64le | OK - Not checked automatically |
291291 | Ubuntu 18.04 LTS | x86\_ 64 | ![ GH Action status] ( https://github.com/LinearTapeFileSystem/ltfs/actions/workflows/build-ubuntu-bionic.yml/badge.svg ) |
292292 | Ubuntu 18.04 LTS | ppc64le | OK - Not checked automatically |
293- | Ubuntu 20.04 LTS (Need icu-config) | x86\_ 64 | ![ GH Action status] ( https://github.com/LinearTapeFileSystem/ltfs/actions/workflows/build-ubuntu-focal.yml/badge.svg ) |
293+ | Ubuntu 20.04 LTS | x86\_ 64 | ![ GH Action status] ( https://github.com/LinearTapeFileSystem/ltfs/actions/workflows/build-ubuntu-focal.yml/badge.svg ) |
294294 | Debian 9 | x86\_ 64 | ![ GH Action status] ( https://github.com/LinearTapeFileSystem/ltfs/actions/workflows/build-debian9.yml/badge.svg ) |
295- | Debian 10 (Need icu-config) | x86\_ 64 | ![ GH Action status] ( https://github.com/LinearTapeFileSystem/ltfs/actions/workflows/build-debian10.yml/badge.svg ) |
295+ | Debian 10 | x86\_ 64 | ![ GH Action status] ( https://github.com/LinearTapeFileSystem/ltfs/actions/workflows/build-debian10.yml/badge.svg ) |
296296 | ArchLinux 2018.08.01 | x86\_ 64 | OK - Not checked automatically |
297297 | ArchLinux 2018.12.31 (rolling) | x86\_ 64 | OK - Not checked automatically |
298298
299299Currently, automatic build checking is working on GitHub Actions and Travis CI.
300300
301- For Ubuntu20.04 and Debian10, dummy ` icu-config ` is needed in the build machine. See Issue [ #153 ] ( https://github.com/LinearTapeFileSystem/ltfs/issues/153 ) .
302-
303301### Build and install on OSX (macOS)
304302
305303#### Recent Homedrew system setup
Original file line number Diff line number Diff line change 66sudo apt-get -q -y update
77sudo apt-get -q -y upgrade
88sudo apt-get -y install build-essential automake autoconf libtool pkg-config libicu66 icu-devtools libicu-dev libxml2-dev uuid-dev fuse libfuse-dev libsnmp-dev
9- sudo cp .github/workflows/icu-config /usr/bin/icu-config
109./autogen.sh
1110./configure
1211make
Original file line number Diff line number Diff line change 339339
340340dnl
341341dnl Check for ICU
342+ dnl Prefer icu-config for legacy distros; fall back to pkg-config icu-uc/icu-i18n
343+ dnl (icu-config was removed in ICU 63+ and is absent on modern Debian/Ubuntu).
342344dnl
343345ICU_MODULE_CFLAGS="`icu-config --cppflags 2> /dev/null`";
344346ICU_MODULE_LIBS="`icu-config --ldflags 2> /dev/null`";
345347if test -z "$ICU_MODULE_LIBS"
346348then
347- PKG_CHECK_MODULES([ ICU_MODULE] , [ icu >= 0.21] )
349+ PKG_CHECK_MODULES([ ICU_MODULE] , [ icu-uc >= 0.21 icu-i18n >= 0.21] ,
350+ [ ] ,
351+ [ PKG_CHECK_MODULES([ ICU_MODULE] , [ icu >= 0.21] )] )
348352fi
349353
350354AC_MSG_CHECKING ( [ use latest ICU] )
@@ -359,6 +363,10 @@ if test "x${icu_6x}" = "xyes"
359363then
360364 AC_MSG_CHECKING ( for ICU version )
361365 ICU_MODULE_VERSION="`icu-config --version 2> /dev/null`";
366+ if test -z "$ICU_MODULE_VERSION"
367+ then
368+ ICU_MODULE_VERSION="`$PKG_CONFIG --modversion icu-uc 2> /dev/null`";
369+ fi
362370 if test "${ICU_MODULE_VERSION%%.*}" -ge "60"
363371 then
364372 AM_EXTRA_CPPFLAGS="${AM_EXTRA_CPPFLAGS} -D ICU6x"
You can’t perform that action at this time.
0 commit comments