HELP: trouble building packages for optional_arches=i686 *after* upgrading to Plague-0.5.0 (from plague-0.4.3)

Joe Todaro jstodaro at us.ibm.com
Sun Jul 16 13:48:09 UTC 2006


Thanks Dan.

So I ran a quick regression test, just to make sure that *i386* is still 
working, but, it *failed* ... (also note that i686 gave basically the same 
errors..)

SEE BELOW for *regression* test results, both BEFORE and AFTER applying 
patch 'plague-opt-arches-fix.patch' to server/Config.py.  I repeated that 
test sequence several times, by the way.  Also, I was surprised to see 
that 'WhoAmI' was trying to build as an 'i686' rpm rather than a 'noarch' 
which is what it really is. So, since I can't be exactly sure at this 
point how the "optional_arches" design is supposed to tie-in with the 
"base_arches" design, it doesn't make much sense for me (with my limited 
Python skills) to try and dig in any further..

Also, could you please explain/elaborate when you say: "Patch attached 
that should apply against an installed copy of plague-server as well." 
Um, your patch is clearly intended to update file server/Config.py file, 
so I really don't understand how I can also use *it* to update file 
*plague-server* (/usr/bin/plague-server?) as well, which appears to be a 
start-up script -- am I missing something here?

For the good news (for me anyway), I'm also trying to learn Python (Diving 
Into Python) on my own time, so that hopefully one day I might be able 
help squash some of these bugs.. However, in the meantime, I/we very much 
appreciate your help and expertise.. 

REGRESSION TEST RESULTS ARE BELOW...

Dan Williams <dcbw at redhat.com> wrote on 07/15/2006 01:20:54 PM:

> On Tue, 2006-07-04 at 09:58 -0400, Joe Todaro wrote:
> > 
> > Hi, 
> > I'm having a problem *not* being able to build 'i686' packages (i.e.
> > optional_arches=i686) anymore *after* having upgraded our plague
> > server/builder (Opteron x86_64) a couple of weeks ago from
> > plague-0.4.3 to *plague-0.5.0*. The problem happens only with i686
> > (optional_arches=i686) -- not with i386 (base_arches=i386) which
> > continues to work flawlessly. 
> 
> Found and fixed in CVS HEAD.  Patch attached that should apply against
> an installed copy of plague-server as well.  Thanks for the report, and
> sorry for the lag.
> 
> Cheers,
> Dan
> 
> 
> [attachment "plague-opt-arches-fix.patch" deleted by Joe 
> Todaro/Poughkeepsie/IBM] 


REGRESSION TEST RESULTS:

===========================================================================================
*WITHOUT* THE OPTIONAL-ARCH FIX TO CONFIG.PY:
===========================================================================================
[root at lnxbuild1 ]$ cat /var/log/plague-server.log
Using database engine mysql.

Authorized Builders:
------------------------------------------------------------------------------------------
  https://lnxbuild1.abc.com:8888 unavailable
  https://lnxppc.abc.com:8888 unavailable

Build Server accepting requests on lnxbuild1.abc.com:8887.

Re-activating builder 'https://lnxbuild1.abc.com:8888'.
Re-activating builder 'https://lnxppc.abc.com:8888'.
Request to enqueue 'WhoAmI' tag 
'/afs/pok/projects/.../SRPMS/whoami/WhoAmI-4.00-9_rhel4.src.rpm' for 
target 'oc100' (user 'jstodaro at us.ibm.com')
625 (WhoAmI): Starting tag 
'/afs/pok/projects/.../SRPMS/whoami/WhoAmI-4.00-9_rhel4.src.rpm' on target 
'lnxaddons-100-install'
625 (WhoAmI): Requesting depsolve...
625 (WhoAmI): Starting depsolve for arches: ['i386'].
625 (WhoAmI): Finished depsolve (successful), requesting archjobs.
625 (WhoAmI/noarch): https://lnxbuild1.abc.com:8888 - UID is 
f2e2220b50c7707b7f224f18455f39fa088c5a22
625 (WhoAmI/noarch): Build result files - [ 
'WhoAmI-4.00-9_rhel4.noarch.rpm', 'mockconfig.log', 'build.log', 
'root.log', 'WhoAmI-4.00-9_rhel4.src.rpm', 'job.log' ]
Repo 'lnxaddons-100-install': updating repository metadata...
Repo 'lnxaddons-100-install': Done updating.
625 (WhoAmI): Job finished.
Received SIGTERM, quitting...
Shutting down...
Repo (lnxaddons-100-install): shut down.
Repo (lnxaddons-350-install): shut down.
Repo (lnxaddons-100-unsupported): shut down.
Done.

===========================================================================================
*WITH* THE OPTIONAL-ARCH FIX TO CONFIG.PY:
===========================================================================================
[root at lnxbuild1 ]$ cat /var/log/plague-server.log
Using database engine mysql.

Authorized Builders:
------------------------------------------------------------------------------------------
  https://lnxbuild1.abc.com:8888 unavailable
  https://lnxppc.abc.com:8888 unavailable

Build Server accepting requests on lnxbuild1.abc.com:8887.

Re-activating builder 'https://lnxbuild1.abc.com:8888'.
Re-activating builder 'https://lnxppc.abc.com:8888'.
Request to enqueue 'WhoAmI' tag 
'/afs/pok/projects/.../SRPMS/whoami/WhoAmI-4.00-9_rhel4.src.rpm' for 
target 'oc100' (user 'jstodaro at us.ibm.com')
626 (WhoAmI): Starting tag 
'/afs/pok/projects/.../SRPMS/whoami/WhoAmI-4.00-9_rhel4.src.rpm' on target 
'lnxaddons-100-install'
626 (WhoAmI): Requesting depsolve...
626 (WhoAmI): Starting depsolve for arches: ['i386', 'i686', 'noarch'].
626 (WhoAmI/i686): Depsolve Error: WARNING: bad yum config for arch i686.
Exception in thread PackageJob: 626/WhoAmI:
Traceback (most recent call last):
  File "/usr/lib64/python2.3/threading.py", line 436, in __bootstrap
    self.run()
  File "/usr/share/plague/server/PackageJob.py", line 86, in run
    self._pkg_job.process()
  File "/usr/share/plague/server/PackageJob.py", line 719, in process
    if func():
  File "/usr/share/plague/server/PackageJob.py", line 587, in 
_stage_depsolve
    if self._arch_deps_solved(arch) == False:
  File "/usr/share/plague/server/PackageJob.py", line 540, in 
_arch_deps_solved
    if base:
UnboundLocalError: local variable 'base' referenced before assignment

Thanks again,
-Joe 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/buildsys/attachments/20060716/e07626ae/attachment.html 


More information about the buildsys mailing list