termux-packages/scripts
agnostic-apollo 571db28a3d termux_step_configure_cmake: Revert CMAKE_INSTALL_LIBDIR old behaviour changed in 2af00064
Absolute paths are still allowed in `DCMAKE_INSTALL_LIBDIR` as per https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html

Different packages have different way of handling `DCMAKE_INSTALL_LIBDIR`. The `libprotobuf` is appending an absolute path to `build` directory (#10068), while `libjpeg-turbo` is not appending a relative `lib` path to `DCMAKE_INSTALL_PREFIX` and instead  appending to `build` directory and so all the lib files stay at `/home/builder/.termux-build/libjpeg-turbo/build/lib` and hence won't get added to the `deb`, which results in `openjdk-17` failing if `-i` is not passed to `build-package.sh`, since it can't find `libjpeg.so` with `-L${TERMUX_PREFIX}/lib` after compilation from source, unless `-L$TERMUX_TOPDIR/libjpeg-turbo/build/lib` is passed.

Considering that most packages would likely be considering an absolute path passed in `DCMAKE_INSTALL_LIBDIR` to actually be absolute, the default behaviour should be reverted, specially considering it is what's been working, otherwise lot of packages would need testing, like from https://github.com/termux/termux-packages/commit/9155acd040.

```
checking for which libjpeg to use... system
checking jpeglib.h usability... yes
configure: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!
checking jpeglib.h presence... no
checking for jpeglib.h... yes
configure: WARNING: jpeglib.h: proceeding with the compiler's result
configure: error: --with-libjpeg=system specified, but no libjpeg found
checking for jpeg_CreateDecompress in -ljpeg... no
configure exiting with result code 1
```

```
[0/1] Install the project...
-- Install configuration: "Release"
-- Installing: /home/builder/.termux-build/libjpeg-turbo/build/lib/libturbojpeg.so
-- Installing: /data/data/com.termux/files/usr/bin/tjbench
-- Installing: /home/builder/.termux-build/libjpeg-turbo/build/lib/libturbojpeg.a
-- Installing: /data/data/com.termux/files/usr/include/turbojpeg.h
-- Installing: /home/builder/.termux-build/libjpeg-turbo/build/lib/libjpeg.a
-- Installing: /data/data/com.termux/files/usr/bin/rdjpgcom
-- Installing: /data/data/com.termux/files/usr/bin/wrjpgcom
-- Installing: /data/data/com.termux/files/usr/share/doc/libjpeg-turbo/README.ijg
-- Installing: /data/data/com.termux/files/usr/share/doc/libjpeg-turbo/README.md
-- Installing: /data/data/com.termux/files/usr/share/doc/libjpeg-turbo/example.txt
-- Installing: /data/data/com.termux/files/usr/share/doc/libjpeg-turbo/tjexample.c
-- Installing: /data/data/com.termux/files/usr/share/doc/libjpeg-turbo/libjpeg.txt
-- Installing: /data/data/com.termux/files/usr/share/doc/libjpeg-turbo/structure.txt
-- Installing: /data/data/com.termux/files/usr/share/doc/libjpeg-turbo/usage.txt
-- Installing: /data/data/com.termux/files/usr/share/doc/libjpeg-turbo/wizard.txt
-- Installing: /data/data/com.termux/files/usr/share/doc/libjpeg-turbo/LICENSE.md
-- Installing: /data/data/com.termux/files/usr/share/man/man1/cjpeg.1
-- Installing: /data/data/com.termux/files/usr/share/man/man1/djpeg.1
-- Installing: /data/data/com.termux/files/usr/share/man/man1/jpegtran.1
-- Installing: /data/data/com.termux/files/usr/share/man/man1/rdjpgcom.1
-- Installing: /data/data/com.termux/files/usr/share/man/man1/wrjpgcom.1
-- Installing: /home/builder/.termux-build/libjpeg-turbo/build/lib/pkgconfig/libjpeg.pc
-- Installing: /home/builder/.termux-build/libjpeg-turbo/build/lib/pkgconfig/libturbojpeg.pc
-- Installing: /home/builder/.termux-build/libjpeg-turbo/build/lib/cmake/libjpeg-turbo/libjpeg-turboConfig.cmake
-- Installing: /home/builder/.termux-build/libjpeg-turbo/build/lib/cmake/libjpeg-turbo/libjpeg-turboConfigVersion.cmake
-- Installing: /home/builder/.termux-build/libjpeg-turbo/build/lib/cmake/libjpeg-turbo/libjpeg-turboTargets.cmake
-- Installing: /home/builder/.termux-build/libjpeg-turbo/build/lib/cmake/libjpeg-turbo/libjpeg-turboTargets-release.cmake
-- Installing: /data/data/com.termux/files/usr/include/jconfig.h
-- Installing: /data/data/com.termux/files/usr/include/jerror.h
-- Installing: /data/data/com.termux/files/usr/include/jmorecfg.h
-- Installing: /data/data/com.termux/files/usr/include/jpeglib.h
-- Installing: /home/builder/.termux-build/libjpeg-turbo/build/lib/libjpeg.so
-- Installing: /data/data/com.termux/files/usr/bin/cjpeg
-- Installing: /data/data/com.termux/files/usr/bin/djpeg
-- Installing: /data/data/com.termux/files/usr/bin/jpegtran
...
2022-07-28 15:27:20 +05:00
..
bin feat(auto update): update packages in there build order 2022-05-07 21:23:32 +05:30
build termux_step_configure_cmake: Revert CMAKE_INSTALL_LIBDIR old behaviour changed in 2af00064 2022-07-28 15:27:20 +05:00
updates refactor: update @MrAdityaAlok email address 2022-05-10 00:15:34 +05:30
Dockerfile chore(scripts/Dockerfile): update comments about build/push 2022-07-23 13:35:31 +03:00
Vagrantfile Vagrantfile: update to newer Ubuntu LTS 2021-01-27 10:26:12 +05:30
aptly_api.sh Revert "revertme,ci(aptly_api): hardcode proxy-ip to use for deb uploads" 2022-06-18 19:08:38 +02:00
build-bootstraps.sh Added(scripts): Add build-bootstrap.sh 0.1.0 2022-02-08 08:11:53 +05:00
buildorder.py scripts(buildorder.py): make it possible to ./build-all.sh again 2022-06-18 21:50:23 +02:00
check-built-packages.py scripts,ci(*): use termux.dev instead of termux.org 2022-07-02 10:41:16 +02:00
check-versions.sh No backticks 2019-02-15 18:01:09 +02:00
config.guess Update to latest config.{guess,sub} 2017-01-18 01:02:18 +01:00
config.sub Update to latest config.{guess,sub} 2017-01-18 01:02:18 +01:00
generate-bootstraps.sh scripts,ci(*): use termux.dev instead of termux.org 2022-07-02 10:41:16 +02:00
get_hash_from_file.py get_hash_from_file.py: ignore Packages.gz/bz2 in Release file 2022-07-11 10:55:57 +02:00
lint-packages.sh CI: specify distribution in repo.json as well 2022-04-20 16:37:36 +02:00
list-packages.sh No backticks 2019-02-15 18:01:09 +02:00
list-versions.sh list-versions.sh: use proper way to get path to ./scripts/properties.sh 2020-10-30 21:31:48 +02:00
profile.json profile.json: update to e258d66f17 2022-07-26 15:57:12 +08:00
properties.sh fix(build-package.sh): Do not use dependencies while building from repo if it hosts packages built for a different package name than TERMUX_APP_PACKAGE 2022-07-28 15:27:20 +05:00
run-docker.ps1 enhance(scripts): use GitHub package registry for Docker image 2022-07-23 00:19:08 +03:00
run-docker.sh run-docker.sh: update user id 2022-07-23 10:29:54 +08:00
setup-android-sdk.sh ci(setup-android-sdk.sh): update to ndk r23c 2022-06-23 20:29:28 +02:00
setup-archlinux.sh setup-archlinux: aerc needs scdoc 2021-09-17 11:06:53 +02:00
setup-offline-bundle.sh upgpkg(swift): 5.6.1 to 5.6.2 2022-06-16 21:31:13 +05:30
setup-termux.sh setup-termux.sh: Install package jq and binutils-is-llvm 2022-05-19 11:30:08 +05:30
setup-ubuntu.sh enhance(scripts/Dockerfile): upgrade ubuntu version 2022-07-23 13:35:31 +03:00
test-runner.sh Shell script compliance 2019-02-15 18:01:09 +02:00
update-docker.ps1 enhance(scripts): use GitHub package registry for Docker image 2022-07-23 00:19:08 +03:00
update-docker.sh enhance(scripts): use GitHub package registry for Docker image 2022-07-23 00:19:08 +03:00