debugedit

This commit is contained in:
YellowJacketLinux 2024-10-16 22:26:11 -07:00
parent 234ad7a9d0
commit aeca67db89
2 changed files with 65 additions and 0 deletions

52
29-debugedit.sh Normal file
View File

@ -0,0 +1,52 @@
#!/bin/bash
if [ "`whoami`" == "root" ]; then
echo "Danger, Will Robinson!"
echo "Do not execute me as r00t"
exit 1
fi
TARBALL="debugedit-5.0.tar.xz"
DNL="https://sourceware.org/pub/debugedit/5.0/debugedit-5.0.tar.xz"
SHA256="e9ecd7d350bebae1f178ce6776ca19a648b6fe8fa22f5b3044b38d7899aa553e"
[ -d debugedit-5.0 ] && rm -rf debugedit-5.0
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 -Jxf ${TARBALL} && cd debugedit-5.0
./configure --prefix=/usr
if [ $? -ne 0 ]; then
echo "Configure script failed for debugedit. Sorry."
exit 1
fi
make
if [ $? -ne 0 ]; then
echo "Failed building debugedit. Sorry."
exit 1
fi
echo
echo "running make check"
make check > debugedit.check.log 2>&1
echo "Inspect debugedit-5.0/debugedit.check.log for issues"
echo "and if looks good, as root:"
echo
echo " cd debugedit-5.0"
echo " make install"
echo

View File

@ -18,6 +18,7 @@ still three needed components for a complete RPM environment:
3. fakechroot (needed to run the test suite after building RPM)
Dependencies 13 through 27 build GnuPG.
Dependencies 28 and 29 build debugedit.
Dependency One: UnZip
---------------------
@ -259,4 +260,16 @@ Justification: LFS already installs libelf from elfutils, but debugedit needs
libdw from elfutils as well.
* Script: [`28-elfutils.sh`](28-elfutils.sh)
* Status: Script Works
* Note: Binaries in `/usr/bin` installed with an `eu-` prefix.
Dependency Twenty-Nine: debugedit
---------------------------------
Justification: Required for RPM debuginfo packages. Build requires libelf and
libdw from elfutils.
* Script: [`29-debugedit.sh`](29-debugedit.sh)
* Status: Script Untested