Re: SL6/Centos6 rebuild question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Dear All...

I was able to build el6 rpms for infernalis but they requires GCC 4.8.3. If you are interested in the details on how to do it, let me know.

There were two major issues:

- The build complains about a parsing configuration error on ceph-9.2.0/selinux/ceph.te
/usr/bin/checkmodule: loading policy configuration from tmp/ceph.tmp
ceph.te":108:ERROR 'syntax error' at token 'fsadm_manage_pid' on line 15442:
fsadm_manage_pid(ceph_t
I've checked that if I comment that line, the build goes on but, for the time being, I just changed the ceph.spec to remove the selinux support.

- The build then fails with the error

   + /usr/lib/rpm/find-debuginfo.sh --strict-build-id /root/rpmbuild/BUILD/ceph-9.2.0
   extracting debug info from /root/rpmbuild/BUILDROOT/ceph-9.2.0-0.el6.x86_64/sbin/mount.ceph
   *** ERROR: No build ID note found in /root/rpmbuild/BUILDROOT/ceph-9.2.0-0.el6.x86_64/sbin/mount.ceph
   error: Bad exit status from /var/tmp/rpm-tmp.8iKDQ5 (%install)
  
   RPM build errors:
       Bad exit status from /var/tmp/rpm-tmp.8iKDQ5 (%install)

I worked around this inserting

    %define  debug_package %{nil}

in the ceph.spec to avoid building debug packages which I do not really need.

Cheers
Goncalo


On 11/13/2015 08:27 PM, Goncalo Borges wrote:
Well... I misinterpreted the error. It is not systemd related but selinux related. I must be missing some selinux component. Will investigate better.


________________________________________
From: Goncalo Borges [goncalo.borges@xxxxxxxxxxxxx]
Sent: 13 November 2015 16:51
To: ceph-users@xxxxxxxxxxxxxx
Subject: SL6/Centos6 rebuild question

Dear Ceph Gurus...

I have tried to rebuild Ceph (9.2.0) in Centos6 with GCC 4.8 using the SRPM for Centos7.

I could easily start rebuilding Ceph after solving some dependencies issues. However, it fails right at the end with systemd related messages:
# rpmbuild --rebuild ceph-9.2.0-0.el7.src.rpm
(...)
build succeeded, 1 warning.
make[1]: Leaving directory `/root/rpmbuild/BUILD/ceph-9.2.0/man'
Making all in doc
make[1]: Entering directory `/root/rpmbuild/BUILD/ceph-9.2.0/doc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/rpmbuild/BUILD/ceph-9.2.0/doc'
Making all in systemd
make[1]: Entering directory `/root/rpmbuild/BUILD/ceph-9.2.0/systemd'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/rpmbuild/BUILD/ceph-9.2.0/systemd'
Making all in selinux
make[1]: Entering directory `/root/rpmbuild/BUILD/ceph-9.2.0/selinux'
make -j1 -f /usr/share/selinux/devel/Makefile ceph.pp
cat: /selinux/mls: No such file or directory
make[2]: Entering directory `/root/rpmbuild/BUILD/ceph-9.2.0/selinux'
Compiling targeted ceph module
/usr/bin/checkmodule:  loading policy configuration from tmp/ceph.tmp
ceph.te":108:ERROR 'syntax error' at token 'fsadm_manage_pid' on line 15442:
fsadm_manage_pid(ceph_t)

/usr/bin/checkmodule:  error(s) encountered while parsing configuration
make[2]: *** [tmp/ceph.mod] Error 1
make[2]: Leaving directory `/root/rpmbuild/BUILD/ceph-9.2.0/selinux'
make[1]: *** [ceph.pp] Error 2
make[1]: Leaving directory `/root/rpmbuild/BUILD/ceph-9.2.0/selinux'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.3TtsUK (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.3TtsUK (%build)
I remember that systemd support was introduced in the latest infernalis release, and I just wonder if that, somehow, breaks the backward compatibility with older systems.

Cheers
Goncalo




--
Goncalo Borges
Research Computing
ARC Centre of Excellence for Particle Physics at the Terascale
School of Physics A28 | University of Sydney, NSW  2006
T: +61 2 93511937


_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

-- 
Goncalo Borges
Research Computing
ARC Centre of Excellence for Particle Physics at the Terascale
School of Physics A28 | University of Sydney, NSW  2006
T: +61 2 93511937
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux