Had a bit of trouble the other day building oprofile from devtoolset 1.1.
Google didn't find me anything that helped right out of the box, so in case you get:
RPM build errors:
File not found: /var/tmp/devtoolset-1.1-oprofile-root/opt/rh/devtoolset-1.1/root/usr/bin/oprof_start
when trying to build devtoolset-1.1-oprofile-0.9.7-6.el5.src.rpm on RHEL5/CentOS5 here is what I ended up doing:
--- oprofile.spec 2013-03-13 09:50:07.730025826 +0900
+++ oprofile.spec.bbh 2013-03-13 09:49:52.557940097 +0900
@@ -124,6 +124,9 @@
--mandir=%{_mandir} \
--infodir=%{_infodir} \
--enable-gui=%{qt_ver} \
+%if 0%{?rhel} < 6
+--with-qt-dir=/usr/lib64/qt-3.3 \
+%endif
--with-java=/usr/lib/jvm/java
make CFLAGS="%{optflags}"
No comments:
Post a Comment