[CentOS-devel] JBoss EAP6 rebuild from srpms

Fri Feb 22 13:58:19 UTC 2013
Baptiste AGASSE <baptiste.agasse at lyra-network.com>

Hi all,

> 1.  The repo needs to be self hosting and not use EPEL (only CentOS-6
> Base, Updates, Extras, Fasttrack, and itself)  ... if we need to
> build

i've excluded all packages provided by JBEAP srpms from jpackages repos to minimize jpackages dependencies, but i hit a dependency loop:

[LBG builder at build-el6 ~]$ mock -r lyra-jpackage-devel-el6-x86_64 --rebuild /home/builder/rpmbuild/SRPMS/dom4j-1.6.1-14_lyra_3.el6.src.rpm
INFO: mock.py version 1.1.28 starting...
Start: init plugins
INFO: selinux enabled
Finish: init plugins
Start: run
[...]
Getting requirements for dom4j-1.6.1-14_lyra_3.el6.src
 --> jpackage-utils-5.0.0-7.jpp6.noarch
 --> 1:java-1.6.0-openjdk-devel-1.6.0.0-1.56.1.11.8.el6_3.x86_64
 --> jarjar-1.0-3.jpp6.noarch
 --> jboss-parent-4.0-0.CR1.1.jpp6.noarch
 --> ant-1.8.2-5.jpp6.noarch
 --> junit-3.8.2-10.jpp6.noarch
 --> ant-junit-1.8.2-5.jpp6.noarch
 --> ant-1.8.2-5.jpp6.noarch
 --> ant-apache-resolver-1.8.2-5.jpp6.noarch
 --> 2:jtidy-7.0-0.V04aug2000r7_dev.2.jpp6.noarch
 --> junitperf-1.9.1-5.jpp6.noarch
 --> isorelax-0.1-0.20041111.7.jpp6.noarch
 --> jaxen-1.1.3-8.redhat_2.el6.4.noarch
Error: No Package found for relaxngDatatype


[LBG builder at build-el6 JBEAP]$ mock -r lyra-jpackage-free-el6-x86_64 --rebuild SRPMS/relaxngDatatype-2011.1-0.1_redhat_3.ep6.el6.4.src.rpm
INFO: mock.py version 1.1.28 starting...
Start: init plugins
INFO: selinux enabled
Finish: init plugins
Start: run
[...]
Getting requirements for relaxngDatatype-2011.1-0.1_redhat_3.el6.4.src
 --> jpackage-utils-5.0.0-7.jpp6.noarch
 --> ant-1.8.2-5.jpp6.noarch
 --> maven-deploy-plugin-2.7-3.jpp6.noarch
Error: Package: msv-1.2-0.20050722.7.jpp6.noarch (jpackage)
           Requires: relaxngDatatype
Error: Package: maven-project-info-reports-plugin-2.1.2-1.jpp6.noarch (jpackage)
           Requires: maven-doxia-tools
Error: Package: msv-xsdlib-1.2-0.20050722.7.jpp6.noarch (jpackage)
           Requires: relaxngDatatype
Error: Package: maven2-2.0.8-39.jpp6.noarch (jpackage)
           Requires: xom
Error: Package: maven-checkstyle-plugin-2.5-2.jpp6.noarch (jpackage)
           Requires: maven-doxia-tools
Error: Package: maven-remote-resources-plugin-1.2.1-2.jpp6.noarch (jpackage)
           Requires: maven-shared-artifact-resolver
Error: Package: maven2-2.0.8-39.jpp6.noarch (jpackage)
           Requires: dom4j >= 1.6.1
Error: Package: apache-poi-3.8-2.jpp6.noarch (jpackage)
           Requires: dom4j >= 1.6.1
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest


----- Mail original -----
> De: "Johnny Hughes" <johnny at centos.org>
> À: centos-devel at centos.org
> Envoyé: Mercredi 13 Février 2013 19:03:17
> Objet: Re: [CentOS-devel] JBoss EAP6 rebuild from srpms
> 
> On 02/13/2013 10:47 AM, Baptiste AGASSE wrote:
> > Hi all,
> > 
> > Because i'm interested by functional JBoss EAP6 clone running on
> > CentOS 6 server, I'm trying to rebuild JBoss EAP6 srpms from
> > redhat (found here
> > http://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/JBEAP/SRPMS/).
> > To achieve that, i've setup CentOS 6.3 x86_64 VM + rpmbuild and
> > mock environments. JBoss EAP6 is about 226 srpms packages.
> > 
> > Why this email ? Because i want to share my current work on this,
> > ask if someone else is interested to have JBoss EAP6 server clone
> > working on CentOS, and if someone is also interested to help me to
> > get it working.
> > 
> > At this time i've already successfully built 209 of 226 srpms
> > packages (description of this work above).
> > 
> > Step #0: Mock configs
> > =====================
> > 
> > In all mock configs, there is centos 6, epel6 and
> > jpackage/6.0/generic/free repos enabled
> > 
> > Step #1: building packages
> > ==========================
> > 
> > Build iteration #1:
> > -------------------
> > 
> > Basic mock config with EPEL6
> > 
> > 93 of 226 packages are building fine out of the box
> > 
> > 
> > Build iteration #2:
> > -------------------
> > 
> > At this step, we can see that a lot of packages have
> > "jpackage-utils" not listed in their build dependencies.
> > 
> > I've tried to rebuild previous failed build with:
> > mock -r $MOCK_CFG --install jpackage-utils
> > mock -r $MOCK_CFG --no-clean --rebuild $SRPMS_PATH/$src_rpm_name
> > 
> > Result: 97 of 133 remaining packages built successfully
> > 
> > 
> > Build iteration #3:
> > -------------------
> > 
> > Adding jpackage/6.0/generic/devel repo
> > 
> > 14 of the 36 remaining packages are building fine.
> > 
> > Build iteration #4:
> > -------------------
> > 
> >>From this step, i tried to build packages one by one to see what
> >>goes wrong.
> > 
> > Removing jpackage/6.0/generic/devel by default
> > Adding repo with previously built rpms, and search missing deps.
> > 
> > packages built :
> > 
> > 1) ironjacamar-1.0.13-1.Final_redhat_1.ep6.el6.src.rpm
> >   - Needs jpackage/6.0/generic/devel repo
> > 
> >   - Deps found on fedora koji server: jboss-logging-tools
> > 
> > 2) jbossas-bundles-7.1.3-4.Final_redhat_4.ep6.el6.src.rpm
> > 
> > 3) jbossas-core-7.1.3-4.Final_redhat_4.ep6.el6.src.rpm
> > 
> > 4) velocity-eap6-1.6.3-7.redhat_2.ep6.el6.4.src.rpm
> >   - Needs jpackage/6.0/generic/devel repo
> > 
> > 4 of 22 remaining packages are building fine.
> > 
> > 
> > Remaining packages (18):
> > -------------------
> > 
> > 1) antlr-eap6-2.7.7-15_redhat_2.ep6.el6.src.rpm
> >   - Needs jpackage/6.0/generic/devel repo
> > 
> >   - Last error => build error:
> >   /bin/mv: target `maven2-brew/antlr/antlr/2.7.7-redhat-2/' is not
> >   a directory
> > 
> > 2) atinject-1-8.2_redhat_2.ep6.el6.5.src.rpm
> >   - Last error => missing deps:
> >   vman (https://github.com/jdcasey/pom-version-manipulator)
> > 
> > 3) codehaus-jackson-1.9.2-6_redhat_2.ep6.el6.5.src.rpm
> >   - Deps found on fedora koji server: jsr-311
> > 
> >   - Last error => missing deps:
> >   vman (https://github.com/jdcasey/pom-version-manipulator)
> > 
> > 4) dom4j-1.6.1-14_redhat_3.ep6.el6.src.rpm
> >   - Last error => missing deps:
> >   msv-core
> > 
> > 5) glassfish-jaxb-2.2.5-10_redhat_3.ep6.el6.src.rpm
> >   - Needs jpackage/6.0/generic/devel repo
> > 
> >   - Last error => missing deps:
> >   jboss-component-management
> > 
> > 6) glassfish-jsf-2.1.13-1_redhat_1.ep6.el6.src.rpm
> >   - Last error => missing deps:
> >   jboss-component-management
> > 
> > 7) h2database-1.3.168-2_redhat_1.ep6.el6.src.rpm
> >   - Last error => missing deps:
> >   lucene-core >= 3.0.2
> > 
> > 8) hibernate4-4.1.6-7.Final_redhat_3.ep6.el6.src.rpm
> >   - Deps found on fedora koji server: gradle, jboss-logging-tools
> > 
> >   - Last error => missing deps:
> >   java-classmate
> > 
> > 9) hornetq-2.2.23-1.Final_redhat_1.ep6.el6.src.rpm
> >   - Last error => missing deps:
> >   jboss-component-management
> > 
> > 10) hornetq-native-2.2.21-1.Final.ep6.el6.src.rpm
> >   - Last error => missing deps:
> >   hornetq
> > 
> > 11) jbossas-modules-eap-7.1.3-4.Final_redhat_4.ep6.el6.src.rpm
> >   - Last error => missing deps:
> >   hibernate4-core
> > 
> > 12) jboss-ec2-eap-7.1.3-6.Final_redhat_1.ep6.el6.src.rpm
> >   - Last error => build error:
> >   [ERROR] FATAL ERROR
> > 
> > 13) jboss-integration-7.0.0-0.6.Final_redhat_1.ep6.el6.src.rpm
> >   - Last error => missing deps:
> >   jboss-component-management
> > 
> > 14) jbossts-4.16.6-1.Final_redhat_1.ep6.el6.src.rpm
> >   - Deps found on fedora koji server: byteman, emma
> > 
> >   - Last error => missing deps:
> >   hibernate4-core
> > 
> > 15) jdom-eap6-1.1.2-4.GA_redhat_2.ep6.el6.src.rpm
> >   - Needs jpackage/6.0/generic/devel repo
> > 
> >   - Last error => build error:
> >   /bin/mv: target `maven2-brew/org/jdom/jdom/1.1.2-redhat-2/' is
> >   not a directory
> > 
> > 16) jython-eap6-2.5.2-5.redhat_2.ep6.el6.4.src.rpm
> >   - Deps found on fedora koji server: jnr-constants, jaffl,
> >   jnr-netdb, jnr-posix
> > 
> >   - Last error => missing deps:
> >   jboss-parent >= 8
> > 
> > 17) woodstox-core-4.1.1-1.redhat_2.ep6.el6.4.src.rpm
> >   - Last error => missing deps:
> >   msv-core
> > 
> > 18) xerces-j2-eap6-2.9.1-13_redhat_3.ep6.el6.src.rpm
> >   - Last error => build error:
> >   /bin/mv: target `maven2-brew/xerces/xercesImpl/2.9.1-redhat-3/'
> >   is not a directory
> > 
> > 
> > Step #2: [TODO] Installing and testing
> > ======================================
> > Install packages and try to run JBoss server
> > 
> > 
> > Step #3: [TODO] Removing logos and trademarks
> > =============================================
> > ...
> 
> I actually was getting ready to do this for our oVirt Project for
> CentOS-6 ...
> 
> If you are willing to do a couple of things, we might be able to
> build
> this as a Project for CentOS.
> 
> Those things are:
> 1.  The repo needs to be self hosting and not use EPEL (only CentOS-6
> Base, Updates, Extras, Fasttrack, and itself)  ... if we need to
> build
> some EPEL packages to make that happen, then we can do that.
> 
> 2.  We will need to co-ordinate and get these SRPMS into the
> nazar.karan.org git tree and make it all build on CentOS
> infrastructure.
> 
> I also found this:
> 
> https://github.com/hasalex/eap-build
> 
> Thanks,
> Johnny Hughes
> 
> 
> 
> _______________________________________________
> CentOS-devel mailing list
> CentOS-devel at centos.org
> http://lists.centos.org/mailman/listinfo/centos-devel
>