[Starlingx-discuss] enable pbr version

何义鹏 yipeng.he at jitstack.com
Fri Mar 27 02:26:17 UTC 2020


Yes, building the rpm of the starlingx dashboard is a necessary step for my build-iso.


Maybe Saul can respond to the question that python builds allow several versions of components.


------------------ Original ------------------
From:  "Penney, Don"<Don.Penney at windriver.com>;
Date:  Wed, Mar 25, 2020 10:11 PM
To:  "何义鹏"<yipeng.he at jitstack.com>; "Saul Wold(sgw at linux.intel.com)"<sgw at linux.intel.com>; 
Cc:  "'starlingx-discuss at lists.starlingx.io'(starlingx-discuss at lists.starlingx.io)"<starlingx-discuss at lists.starlingx.io>; 
Subject:  RE: Re:RE: [Starlingx-discuss] enable pbr version

 

  
Please keep starlingx-discuss on the receiver list.
 
 
 
You had indicated build-iso was failing, but the build.log you provided appears to be the RPM build log for starlingx-dashboard.
 
 
 
Processing files: starlingx-dashboard-2.9999.9999.rc1.dev23-0.tis.noarch
 
error: File not found: /builddir/build/BUILDROOT/starlingx-dashboard-2.9999.9999.rc1.dev23-0.tis.x86_64/usr/lib/python2.7/site-packages/starlingx_dashboard-2.9999.9999.rc1.dev23*.egg-info
 
RPM build errors:
 
    File not found: /builddir/build/BUILDROOT/starlingx-dashboard-2.9999.9999.rc1.dev23-0.tis.x86_64/usr/lib/python2.7/site-packages/starlingx_dashboard-2.9999.9999.rc1.dev23*.egg-info
 
Child return code was: 1
 
EXCEPTION: [Error()]
 
Traceback (most recent call last):
 
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 95, in trace
 
    result = func(*args, **kw)
 
  File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 746, in do_with_status
 
    raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode)
 
mockbuild.exception.Error: Command failed: 
 
 # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/starlingx-dashboard.spec
 
 
 
 
 
Looking through the build.log, I see the following:
 
Copying starlingx_dashboard.egg-info to build/bdist.linux-x86_64/wheel/starlingx_dashboard-2.9999.9999rc1.dev23-py2.7.egg-info
 
 
 
So in the build, it’s creating the egg with the version set to 2.9999.9999rc1.dev23, while the %files is expecting it to be 2.9999.9999.rc1.dev23.
 
 
 
Looking further through the build.log, there’s the following:
 
+ /usr/bin/python2 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/starlingx-dashboard-2.9999.9999.rc1.dev23-0.tis.x86_64
 
/usr/lib/python2.7/site-packages/setuptools/dist.py:355: UserWarning: Normalizing '2.9999.9999.rc1.dev23' to '2.9999.9999rc1.dev23'
 
  normalized_version,
 
running install
 
 
 
 
 
 
 
Maybe the python build only allows 4 version components?
 
 
 
 
 
From: 何义鹏 [mailto:yipeng.he at jitstack.com] 
 Sent: Tuesday, March 24, 2020 9:59 PM
 To: Penney, Don
 Subject: Re:RE: [Starlingx-discuss] enable pbr version
 
 
  
Hi Saul,
 
  
 
 
  
I added the error log to the attachment. Do you need other files for analysis?
 
   
 
 
  
 
 
  
Thank you for your help.
 
  
   yipeng.he!
 
  
 
 
   
------------------ Original ------------------
 
   
From:  "Penney, Don"<Don.Penney at windriver.com>;
 
  
Date:  Wed, Mar 25, 2020 04:24 AM
 
  
To:  "Saul Wold"<sgw at linux.intel.com>; "何义鹏"<yipeng.he at jitstack.com>; 
 
  
Cc:  "桂来军"<helen.gui at jitstack.com>;  "杨永金"<wesley.yang at jitstack.com>; "曹明晓"<cherish.cao at jitstack.com>;  "starlingx-discuss"<starlingx-discuss at lists.starlingx.io>; 
 
  
Subject:  RE: [Starlingx-discuss] enable pbr version
 
 
  
 
 
  
Hi Yipeng,
 
 Can you provide more info? What was the error you saw from build-iso?
 
 
 -----Original Message-----
 From: Saul Wold [mailto:sgw at linux.intel.com] 
 Sent: Monday, March 23, 2020 6:45 PM
 To: 何义鹏
 Cc: 桂来军; 杨永金; 曹明晓; starlingx-discuss
 Subject: Re: [Starlingx-discuss] enable pbr version
 
 
 Hi Yipeng,
 
 I was out last week on vacation, so I am catching up now.
 
 I think you would have to investigate build-iso and associated scripts 
 and tools to see if there is an awk, sed or some other command that is 
 not parsing the extended version.  I have not investigated this further, 
 that's my initial assessment.
 
 Can you be more specific about what the error is or provide a log file 
 of the build-iso process?
 
 Thanks for working on this project.
 
   Sau!
 
 
 
 On 3/19/20 12:21 AM, 何义鹏 wrote:
 > Hello Saul
 > 
 > I'm Yipeng He from JITStack, and I'm taking over the tasks of PBR.
 > I encountered the following issue when trying to build iso:
 > It fails when the suffix of the version generated by the PBR tool ended 
 > with number, for instance the building fails if the version id is 
 > 2.999.9999.rc1.dev23,
 > and when I replaced it with 2.999.9999.rc1.dev, the ISO building was 
 > successful.
 > I don't knwo why this happens, could please support and advice the 
 > solution for this issue.
 > 
 > 
 > Yipeng.He
 > 
 > _______________________________________________
 > Starlingx-discuss mailing list
 > Starlingx-discuss at lists.starlingx.io
 > http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
 > 
 
 _______________________________________________
 Starlingx-discuss mailing list
 Starlingx-discuss at lists.starlingx.io
 http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20200327/55d7b5ca/attachment.html>


More information about the Starlingx-discuss mailing list