mirror of
https://github.com/YellowJacketLinux/lfs-rpmify.git
synced 2025-01-23 14:32:11 +08:00
CMake
This commit is contained in:
parent
ed04c184c5
commit
89f7c701b6
59
18-cmake.sh
Normal file
59
18-cmake.sh
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ "`whoami`" == "root" ]; then
|
||||||
|
echo "Danger, Will Robinson!"
|
||||||
|
echo "Do not execute me as r00t"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
TARBALL="cmake-3.30.5.tar.gz"
|
||||||
|
DNL="https://cmake.org/files/v3.30/cmake-3.30.5.tar.gz"
|
||||||
|
SHA256="9f55e1a40508f2f29b7e065fa08c29f82c402fa0402da839fffe64a25755a86d"
|
||||||
|
|
||||||
|
[ -d cmake-3.30.5 ] && rm -rf cmake-3.30.5
|
||||||
|
|
||||||
|
if [ ! -f ${TARBALL} ]; then
|
||||||
|
wget ${DNL}
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Could not retrieve ${DNL}"
|
||||||
|
echo "Sorry."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
CHECK="`sha256sum ${TARBALL} |awk ' { print $1 } ' `"
|
||||||
|
if [ "${CHECK}" != "${SHA256}" ]; then
|
||||||
|
echo "${TARBALL} does not match expected SHA256. Sorry."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
tar -zxf ${TARBALL} && cd cmake-3.30.5
|
||||||
|
|
||||||
|
sed -i '/"lib64"/s/64//' Modules/GNUInstallDirs.cmake
|
||||||
|
|
||||||
|
./bootstrap --prefix=/usr \
|
||||||
|
--system-libs \
|
||||||
|
--mandir=/share/man \
|
||||||
|
--no-system-jsoncpp \
|
||||||
|
--no-system-cppdap \
|
||||||
|
--no-system-librhash
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Bootstrap script failed for CMake. Sorry."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
make
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Failed building CMake. Sorry."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "running test suite"
|
||||||
|
LC_ALL=en_US.UTF-8 bin/ctest -j4 -O cmake-3.30.5-test.log
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "Inspect cmake-3.30.5/cmake-3.30.5-test.log and if okay, as root:"
|
||||||
|
echo
|
||||||
|
echo " cd cmake-3.30.5"
|
||||||
|
echo " make install"
|
||||||
|
echo
|
14
README.md
14
README.md
@ -112,8 +112,8 @@ Justification: Needed for libarchive. No build dependencies outside of LFS.
|
|||||||
Dependency Eleven: libarchive
|
Dependency Eleven: libarchive
|
||||||
-----------------------------
|
-----------------------------
|
||||||
|
|
||||||
Justification: Needed to build RPM. Depends upon libxml2, LZO, Nettle, and
|
Justification: Needed to build RPM and CMake. Depends upon libxml2, LZO, Nettle,
|
||||||
pcre2.
|
and pcre2.
|
||||||
|
|
||||||
* Script: [`11-libarchive.sh`](11-libarchive.sh)
|
* Script: [`11-libarchive.sh`](11-libarchive.sh)
|
||||||
* Status: Script Works
|
* Status: Script Works
|
||||||
@ -165,3 +165,13 @@ Justification: Needed to build CMake. Depends upon libxml2 to build.
|
|||||||
|
|
||||||
* Script: [`17-nghttp2.sh`](17-nghttp2.sh)
|
* Script: [`17-nghttp2.sh`](17-nghttp2.sh)
|
||||||
* Status: Script Untested
|
* Status: Script Untested
|
||||||
|
|
||||||
|
Dependency Eighteen: CMake
|
||||||
|
--------------------------
|
||||||
|
|
||||||
|
Justification: Needed by brotli and current RPM versions. Depends upon curl,
|
||||||
|
libarchive, libuv, and nghttp2.
|
||||||
|
|
||||||
|
* Script: [`18-cmake.sh`](18-cmake.sh)
|
||||||
|
* Status: Script Untested
|
||||||
|
* Note: Rebuild once GCC Fortran available
|
||||||
|
Loading…
Reference in New Issue
Block a user