NagiosEnterprises / nagioscore

Nagios Core
GNU General Public License v2.0
1.53k stars 445 forks source link

[RFE] Building Nagios Server EPEL RPM on CentOS 8.1 #699

Closed tjyang closed 1 week ago

tjyang commented 5 years ago

Hi I create this issue to track the progress . Currently CentOS 8 missed doxygen and gperf packages needed for rpmbuild. They were available in CentOS 7.

error: Failed build dependencies: doxygen is needed by nagios-4.4.5-1.el8.x86_64 gperf is needed by nagios-4.4.5-1.el8.x86_64 [me@centos8t01 contrib]$ pwd /home/muser/github/nagioscore/contrib [me@centos8t01 contrib]$ date Wed Sep 25 19:09:17 CDT 2019 [me@centos8t01 contrib]$

Fr3dY2 commented 4 years ago

Hi,

Haven't tried, but according to https://pagure.io/epel/issue/89, Doxygen is in CodeReadyBuilder (or Powertools in CentOS-8), you just need to enable it:

$ sudo dnf config-manager --set-enabled PowerTools
$ sudo dnf -y install doxygen doxygen-latex doxygen-doxywizard
tjyang commented 4 years ago

@Fr3dY2 , thanks for the pointer.

$ sudo dnf config-manager --set-enabled PowerTools
$ sudo dnf -y install doxygen doxygen-latex doxygen-doxywizard gperf
[me@centos8t01 contrib]$ cat /etc/redhat-release
CentOS Linux release 8.1.1911 (Core)
[me@centos8t01 contrib]$ pwd
/home/me/github/nagioscore/contrib
[me@centos8t01 contrib]$ date
Wed Jan 29 02:49:30 CST 2020
[me@centos8t01 contrib]$ rpmbuild -ba --define "_topdir ${PWD}/rpmbuild"  epel-nagios.spec

<snipped>
/usr/lib/rpm/sepdebugcrcfix: Updated 2 CRC32s, 0 CRC32s did match.
32 blocks
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-ldconfig
/sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /home/me/github/nagioscore/contrib/rpmbuild/BUILDROOT/nagios-4.4.5-1.el8.x86_64/etc/ld.so.conf: No such file or directory
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile 1
+ /usr/lib/rpm/brp-python-hardlink
+ PYTHON3=/usr/libexec/platform-python
+ /usr/lib/rpm/redhat/brp-mangle-shebangs
*** WARNING: ./usr/lib/systemd/system/nagios.service is executable but has empty or no shebang, removing executable bit
Processing files: nagios-4.4.5-1.el8.x86_64
error: File not found: /home/me/github/nagioscore/contrib/rpmbuild/BUILDROOT/nagios-4.4.5-1.el8.x86_64/etc/rc.d/init.d/nagios
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.dEkNGp
+ umask 022
+ cd /home/me/github/nagioscore/contrib/rpmbuild/BUILD
+ cd nagios-4.4.5
+ DOCDIR=/home/me/github/nagioscore/contrib/rpmbuild/BUILDROOT/nagios-4.4.5-1.el8.x86_64/usr/share/doc/nagios
+ export LC_ALL=C
+ LC_ALL=C
+ export DOCDIR
+ /usr/bin/mkdir -p /home/me/github/nagioscore/contrib/rpmbuild/BUILDROOT/nagios-4.4.5-1.el8.x86_64/usr/share/doc/nagios
+ cp -pr Changelog /home/me/github/nagioscore/contrib/rpmbuild/BUILDROOT/nagios-4.4.5-1.el8.x86_64/usr/share/doc/nagios
+ cp -pr INSTALLING /home/me/github/nagioscore/contrib/rpmbuild/BUILDROOT/nagios-4.4.5-1.el8.x86_64/usr/share/doc/nagios
+ cp -pr LICENSE /home/me/github/nagioscore/contrib/rpmbuild/BUILDROOT/nagios-4.4.5-1.el8.x86_64/usr/share/doc/nagios
+ cp -pr README.md /home/me/github/nagioscore/contrib/rpmbuild/BUILDROOT/nagios-4.4.5-1.el8.x86_64/usr/share/doc/nagios
+ cp -pr UPGRADING /home/me/github/nagioscore/contrib/rpmbuild/BUILDROOT/nagios-4.4.5-1.el8.x86_64/usr/share/doc/nagios
+ cp -pr UpgradeToVersion4.ReadMe /home/me/github/nagioscore/contrib/rpmbuild/BUILDROOT/nagios-4.4.5-1.el8.x86_64/usr/share/doc/nagios
+ cp -pr UpgradeToVersion4.sh /home/me/github/nagioscore/contrib/rpmbuild/BUILDROOT/nagios-4.4.5-1.el8.x86_64/usr/share/doc/nagios
+ cp -pr internet.cfg /home/me/github/nagioscore/contrib/rpmbuild/BUILDROOT/nagios-4.4.5-1.el8.x86_64/usr/share/doc/nagios
+ exit 0

RPM build errors:
    File not found: /home/me/github/nagioscore/contrib/rpmbuild/BUILDROOT/nagios-4.4.5-1.el8.x86_64/etc/rc.d/init.d/nagios
[me@centos8t01 contrib]$