Hi, Shuicheng:

 

         I have run “build-pkgs”, but error log still showed that can’t found corresponding package.

 

Thanks

Dehao

 

build-pkgs Log:

 

16:40:07 Error: No Package found for devtoolset-7-gcc-c++

16:40:07 Error: No Package found for jq

16:40:07 Error: No Package found for libbabeltrace-devel

16:40:07 Error: No Package found for liboath-devel

16:40:07 Error: No Package found for lttng-ust-devel

16:40:07 Error: No Package found for lz4-devel >= 1.7

16:40:07 Error: No Package found for python34-Cython

16:40:07 Error: No Package found for python34-devel

16:40:07 Error: No Package found for python34-setuptools

16:40:07 Error: No Package found for sharutils

16:40:07

16:40:07 End build on 'b0': /localdisk/loadbuild/dehao/starlingx/std/rpmbuild/SRPMS/ceph-13.2.0-0.el7.tis.1.src.rpm

16:40:07 Error building ceph-13.2.0-0.el7.tis.1.src.rpm on 'b0'.

16:40:07 Will try to build again (if some other package will succeed).

16:40:07 ===== iteration 2 complete =====

16:40:07 failed=['/localdisk/loadbuild/dehao/starlingx/std/rpmbuild/SRPMS/ceph-13.2.0-0.el7.tis.1.src.rpm']

16:40:07 to_be_built=['/localdisk/loadbuild/dehao/starlingx/std/rpmbuild/SRPMS/ceph-13.2.0-0.el7.tis.1.src.rpm']

16:40:07

 

=====

 

[dehao@9f9456a3d92b cgcs-root]$ ls cgcs-centos-repo/Binary/x86_64/devtoolset-7-gcc-c++-7.3.1-5.10.el7.x86_64.rpm

cgcs-centos-repo/Binary/x86_64/devtoolset-7-gcc-c++-7.3.1-5.10.el7.x86_64.rpm

[dehao@9f9456a3d92b cgcs-root]$ ll cgcs-centos-repo/Binary/x86_64/devtoolset-7-gcc-c++-7.3.1-5.10.el7.x86_64.rpm

lrwxrwxrwx 1 root root 102 Sep  8 20:11 cgcs-centos-repo/Binary/x86_64/devtoolset-7-gcc-c++-7.3.1-5.10.el7.x86_64.rpm -> /import/mirrors/CentOS/stx-r1/CentOS/pike/Binary/x86_64/devtoolset-7-gcc-c++-7.3.1-5.10.el7.x86_64.rpm

[dehao@9f9456a3d92b cgcs-root]$ ll cgcs-centos-repo/Binary/x86_64/libbabeltrace-devel-1.2.4-3.el7.x86_64.rpm

lrwxrwxrwx 1 root root 98 Sep  8 20:39 cgcs-centos-repo/Binary/x86_64/libbabeltrace-devel-1.2.4-3.el7.x86_64.rpm -> /import/mirrors/CentOS/stx-r1/CentOS/pike/Binary/x86_64/libbabeltrace-devel-1.2.4-3.el7.x86_64.rpm

[dehao@9f9456a3d92b cgcs-root]$ ll cgcs-centos-repo/Binary/x86_64/lldpad-1.0.1-3.git036e314.el7.x86_64.rpm

lrwxrwxrwx 1 dehao cgts 96 Sep  8 19:47 cgcs-centos-repo/Binary/x86_64/lldpad-1.0.1-3.git036e314.el7.x86_64.rpm -> /import/mirrors/CentOS/stx-r1/CentOS/pike/Binary/x86_64/lldpad-1.0.1-3.git036e314.el7.x86_64.rpm

 

 

From: Lin, Shuicheng
Sent: Monday, September 10, 2018 8:41 AM
To: Shang, Dehao <dehao.shang@intel.com>; starlingx-discuss@lists.starlingx.io
Subject: RE: [Starlingx-discuss] building ceph 13.2.0

 

Hi Dehao,

Please have a try with “build-pkgs” after “ln –sf xxxx yyyy”.

The reason is the build system will search the package from the repodata, and “build-pkgs” will add the new package to the repodata.

 

Best Regards

Shuicheng

 

From: Shang, Dehao [mailto:dehao.shang@intel.com]
Sent: Sunday, September 9, 2018 9:13 PM
To: starlingx-discuss@lists.starlingx.io
Subject: [Starlingx-discuss] building ceph 13.2.0

 

 

Hi:

         I re-setup new building environment, and can successfully build starlingx image.

         Based on this new environments, I directly use ceph 13.2.0 to replace ceph 10.2.0, build-pkgs ceph, then directly run “build-pkgs ceph ”.

 

Build-std.log show the following error:

 

02:01:23 Error: No Package found for CUnit-devel

02:01:23 Error: No Package found for devtoolset-7-gcc-c++

02:01:23 Error: No Package found for jq

02:01:23 Error: No Package found for libbabeltrace-devel

02:01:23 Error: No Package found for liboath-devel

02:01:23 Error: No Package found for lttng-ust-devel

02:01:23 Error: No Package found for lz4-devel >= 1.7

02:01:23 Error: No Package found for python34-Cython

02:01:23 Error: No Package found for python34-devel

02:01:23 Error: No Package found for python34-setuptools

02:01:23 Error: No Package found for sharutils

 

So, when i check ceph.spec file of 13.2.0, find some new BuildRequests, for example:

 

BuildRequires:  CUnit-devel

BuildRequires:  devtoolset-7-gcc-c++

……

……

……

 

 

         My methods is as following:

         Step 1 : wget get corresponding rpm, then put it into mirror’s corresponding folder.

         Step 2: create package link, namely : ln –sf xxxx yyyy

        

Then, when i run build-pkgs ceph again, found that one deps CUnit-devel is resolved, but other package still can’t be found.

 

Build-std.log is as following:

02:01:23 Error: No Package found for devtoolset-7-gcc-c++

02:01:23 Error: No Package found for jq

02:01:23 Error: No Package found for libbabeltrace-devel

02:01:23 Error: No Package found for liboath-devel

02:01:23 Error: No Package found for lttng-ust-devel

02:01:23 Error: No Package found for lz4-devel >= 1.7

02:01:23 Error: No Package found for python34-Cython

02:01:23 Error: No Package found for python34-devel

02:01:23 Error: No Package found for python34-setuptools

02:01:23 Error: No Package found for sharutils

 

 

 

         So, I want to ask whether this method is correct ?  Based on this method, why one package can be resolved and other package can’t be found ?

 

 

Thanks

Dehao