Building from .spec file
Hi all
I'm attempting to build an RPM of xymon 4.3.2 on a RHEL box using mock. I'm getting the following at the end of /var/lib/mock/epel-6-x86_64/result/build.log.
- /usr/lib/rpm/redhat/brp-java-repack-jars Processing files: xymon-4.3.2-1.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.rYcaIi error: File not found: /builddir/build/BUILDROOT/xymon-4.3.2-1.x86_64/var/lib/xymon/www/menu/xymonmenu.css
- umask 022
- cd /builddir/build/BUILD
- cd xymon-4.3.2
- DOCDIR=/builddir/build/BUILDROOT/xymon-4.3.2-1.x86_64/usr/share/doc/xymon-4.3.2
- export DOCDIR
- rm -rf /builddir/build/BUILDROOT/xymon-4.3.2-1.x86_64/usr/share/doc/xymon-4.3.2
- /bin/mkdir -p /builddir/build/BUILDROOT/xymon-4.3.2-1.x86_64/usr/share/doc/xymon-4.3.2
- cp -pr README README.CLIENT Changes COPYING CREDITS RELEASENOTES /builddir/build/BUILDROOT/xymon-4.3.2-1.x86_64/usr/share/doc/xymon-4.3.2
- exit 0 RPM build errors: File not found: /builddir/build/BUILDROOT/xymon-4.3.2-1.x86_64/var/lib/xymon/www/menu/xymonmenu.css Child returncode was: 1 EXCEPTION: Command failed. See logs for output.
['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps
builddir/build/SPECS/xymon.spec'] Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/mock/trace_decorator.py", line 70, in trace result = func(*args, **kw) File "/usr/lib/python2.6/site-packages/mock/util.py", line 325, in do raise mock.exception.Error, ("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output.
['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps
builddir/build/SPECS/xymon.spec'] LEAVE do --> EXCEPTION RAISED
Any one seen/resolved this?
Thanks
CC
-- RHCE#805007969328369
On 4/19/11 2:04 AM, "Colin Coe" <colin.coe at gmail.com> wrote:
Hi all
I'm attempting to build an RPM of xymon 4.3.2 on a RHEL box using mock. I'm getting the following at the end of
RPM build errors: File not found: /builddir/build/BUILDROOT/xymon-4.3.2-1.x86_64/var/lib/xymon/www/menu/xymonmen u.css Any one seen/resolved this?
I'm seeing similar things trying to build xymon 4.3.2 on Mandriva Enterprise server 5:
Checking for unpackaged file(s): /usr/lib/rpm/check-files /tmp/xymon-root
RPM build errors: File not found: /tmp/xymon-root/var/lib/xymon/www/menu/xymonmenu.css File not found: /tmp/xymon-root/etc/xymon/critical.cfg.bak File listed twice: /usr/lib/xymon/client/bin/clientupdate File listed twice: /usr/lib/xymon/client/bin/logfetch File listed twice: /usr/lib/xymon/client/ext
Mandriva's cooker still has 4.2.3-8 as the most recent version
Anyone got a working .spec? I could probably tweak this to work, but if someone has a working copy already, I'd rather not re-invent the wheel.
At this point I'm looking at a fresh install rather than a migration, so I don't need the scripts to rename the files that Buchan was discussing about a month ago on this list.
-- Daniel J McDonald, CCIE # 2495, CISSP # 78281
Hi guys
You might want to ping Buchan Milne on this one. (Devmon developer) I think he created some RPMs for the earlier versions.
Regards Vernon
On Tue, Apr 19, 2011 at 8:43 PM, McDonald, Dan <Dan.McDonald at austinenergy.com> wrote:
On 4/19/11 2:04 AM, "Colin Coe" <colin.coe at gmail.com> wrote:
Hi all
I'm attempting to build an RPM of xymon 4.3.2 on a RHEL box using mock. I'm getting the following at the end of
RPM build errors: File not found:
/builddir/build/BUILDROOT/xymon-4.3.2-1.x86_64/var/lib/xymon/www/menu/xymonmen u.css Any one seen/resolved this?
I'm seeing similar things trying to build xymon 4.3.2 on Mandriva Enterprise server 5:
Checking for unpackaged file(s): /usr/lib/rpm/check-files /tmp/xymon-root
RPM build errors: File not found: /tmp/xymon-root/var/lib/xymon/www/menu/xymonmenu.css File not found: /tmp/xymon-root/etc/xymon/critical.cfg.bak File listed twice: /usr/lib/xymon/client/bin/clientupdate File listed twice: /usr/lib/xymon/client/bin/logfetch File listed twice: /usr/lib/xymon/client/ext
Mandriva's cooker still has 4.2.3-8 as the most recent version
Anyone got a working .spec? I could probably tweak this to work, but if someone has a working copy already, I'd rather not re-invent the wheel.
At this point I'm looking at a fresh install rather than a migration, so I don't need the scripts to rename the files that Buchan was discussing about a month ago on this list.
-- Daniel J McDonald, CCIE # 2495, CISSP # 78281
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
For the xymonmenu.css not found, this is because in 4.3.0, there are two files, xymonmenu-blue and xymonmenu-grey, in your spec file at the bottom under the %files declaration:
comment out the xymonmenu.css line and put this in its place: %attr(644, root, root) %config /var/lib/xymon/www/menu/xymonmenu-blue.css %attr(644, root, root) %config /var/lib/xymon/www/menu/xymonmenu-grey.css
I am not sure about the critical.cfg.bak file and what that is used for, I do not use the critical systems page in my implementation. You can comment that line out also in order to get a successful build but it might break the feature..
On Apr 19, 2011, at 7:43 AM, McDonald, Dan wrote:
On 4/19/11 2:04 AM, "Colin Coe" <colin.coe at gmail.com> wrote:
Hi all
I'm attempting to build an RPM of xymon 4.3.2 on a RHEL box using mock. I'm getting the following at the end of
RPM build errors: File not found: /builddir/build/BUILDROOT/xymon-4.3.2-1.x86_64/var/lib/xymon/www/menu/xymonmen u.css Any one seen/resolved this?
I'm seeing similar things trying to build xymon 4.3.2 on Mandriva Enterprise server 5:
Checking for unpackaged file(s): /usr/lib/rpm/check-files /tmp/xymon-root
RPM build errors: File not found: /tmp/xymon-root/var/lib/xymon/www/menu/xymonmenu.css File not found: /tmp/xymon-root/etc/xymon/critical.cfg.bak File listed twice: /usr/lib/xymon/client/bin/clientupdate File listed twice: /usr/lib/xymon/client/bin/logfetch File listed twice: /usr/lib/xymon/client/ext
Mandriva's cooker still has 4.2.3-8 as the most recent version
Anyone got a working .spec? I could probably tweak this to work, but if someone has a working copy already, I'd rather not re-invent the wheel.
At this point I'm looking at a fresh install rather than a migration, so I don't need the scripts to rename the files that Buchan was discussing about a month ago on this list.
-- Daniel J McDonald, CCIE # 2495, CISSP # 78281
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
Jason Kincl
On Tuesday, 19 April 2011 14:43:01 McDonald, Dan wrote:
On 4/19/11 2:04 AM, "Colin Coe" <colin.coe at gmail.com> wrote:
Hi all
I'm attempting to build an RPM of xymon 4.3.2 on a RHEL box using mock. I'm getting the following at the end of
RPM build errors: File not found: /builddir/build/BUILDROOT/xymon-4.3.2-1.x86_64/var/lib/xymon/www/menu/xym onmen u.css Any one seen/resolved this?
I'm seeing similar things trying to build xymon 4.3.2 on Mandriva Enterprise server 5:
Hmm, I didn't know anyone use Xymon on MES5, I could look at providing packages and/or updates ...
Checking for unpackaged file(s): /usr/lib/rpm/check-files /tmp/xymon-root
RPM build errors: File not found: /tmp/xymon-root/var/lib/xymon/www/menu/xymonmenu.css File not found: /tmp/xymon-root/etc/xymon/critical.cfg.bak File listed twice: /usr/lib/xymon/client/bin/clientupdate File listed twice: /usr/lib/xymon/client/bin/logfetch File listed twice: /usr/lib/xymon/client/ext
Mandriva's cooker still has 4.2.3-8 as the most recent version
I've been on "paternity leave" ... my package queue is quite long and free time is in short supply.
Anyone got a working .spec? I could probably tweak this to work, but if someone has a working copy already, I'd rather not re-invent the wheel.
At this point I'm looking at a fresh install rather than a migration, so I don't need the scripts to rename the files that Buchan was discussing about a month ago on this list.
Well, for Mandriva, without migration scripts, I can probably get 4.3.2 into Mandriva svn quite soon.
The bigger issues from a Xymon project perspective are handling upgrades from the diverging (I think there are at least 4) spec files that exist. Since I haven't seen much feedback about the issues in question, I will carry on on the Mandriva packages and rebuild for RHEL, and leave Xymon svn's spec file alone until there is some consensus or discussion of the issues.
Regards, Buchan
participants (5)
-
bgmilne@staff.telkomsa.net
-
colin.coe@gmail.com
-
Dan.McDonald@austinenergy.com
-
everett.vernon@gmail.com
-
jkincl1@lsu.edu