Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   CentOS Development (http://www.linux-archive.org/centos-development/)
-   -   Mock SCM Issue (http://www.linux-archive.org/centos-development/591592-mock-scm-issue.html)

Jarod Watkins 10-26-2011 06:26 PM

Mock SCM Issue
 
Hello,
I am trying to build an RPM with Mock via a git repo. It seems like I
run into an issue with the Sources option inside my spec file:


DEBUG: Initializing SCM integration...
DEBUG: SCM checkout command: git clone git://gitrepo reponame
DEBUG: SCM checkout post command: git checkout master
DEBUG: SCM checkout directory: /tmp/tmp2178L4.mock-scm.reponame
DEBUG: Executing command: ['git', 'clone', 'git://gitrepo', 'reponame']
DEBUG: Cloning into reponame...
DEBUG: Child returncode was: 0
DEBUG: Executing command: ['git', 'checkout', 'master']
DEBUG: Already on 'master'
DEBUG: Child returncode was: 0
DEBUG: Fetched sources from SCM
DEBUG: Preparing SCM sources
ERROR: iteration over non-sequence
Traceback (most recent call last):
File "/usr/sbin/mock", line 864, in ?
main(retParams)
File "/usr/sbin/mock", line 672, in main
(options.sources, options.spec) = scmWorker.prepare_sources()
File "/usr/lib/python2.4/site-packages/mockbuild/scm.py", line 111,
in prepare_sources
for (filename, num, flags) in rpm_spec.sources:
TypeError: iteration over non-sequence

My spec file is a normal spec file that can be built via Mock when not
attempting to use it from Git. My Mock version is 1.0.22 from EPEL.

Is this a known issue or am I doing something wrong?

Thanks,
Jarod
_______________________________________________
CentOS-devel mailing list
CentOS-devel@centos.org
http://lists.centos.org/mailman/listinfo/centos-devel

Karanbir Singh 10-26-2011 08:52 PM

Mock SCM Issue
 
On 10/26/2011 07:26 PM, Jarod Watkins wrote:
> Hello,
> I am trying to build an RPM with Mock via a git repo. It seems like I
> run into an issue with the Sources option inside my spec file:

You might want to take this to either the EPEL list, or (even better and
more appropriately ) the fedora-buildsys list.

- KB
_______________________________________________
CentOS-devel mailing list
CentOS-devel@centos.org
http://lists.centos.org/mailman/listinfo/centos-devel

Jarod Watkins 10-26-2011 09:04 PM

Mock SCM Issue
 
Hello,
I am trying to build an RPM with Mock via a git repo. It seems like I
run into an issue with the Sources option inside my spec file:


DEBUG: Initializing SCM integration...
DEBUG: SCM checkout command: git clone git://gitrepo reponame
DEBUG: SCM checkout post command: git checkout master
DEBUG: SCM checkout directory: /tmp/tmp2178L4.mock-scm.reponame
DEBUG: Executing command: ['git', 'clone', 'git://gitrepo', 'reponame']
DEBUG: Cloning into reponame...
DEBUG: Child returncode was: 0
DEBUG: Executing command: ['git', 'checkout', 'master']
DEBUG: Already on 'master'
DEBUG: Child returncode was: 0
DEBUG: Fetched sources from SCM
DEBUG: Preparing SCM sources
ERROR: iteration over non-sequence
Traceback (most recent call last):
File "/usr/sbin/mock", line 864, in ?
main(retParams)
File "/usr/sbin/mock", line 672, in main
(options.sources, options.spec) = scmWorker.prepare_sources()
File "/usr/lib/python2.4/site-packages/mockbuild/scm.py", line 111,
in prepare_sources
for (filename, num, flags) in rpm_spec.sources:
TypeError: iteration over non-sequence

My spec file is a normal spec file that can be built via Mock when not
attempting to use it from Git. My Mock version is 1.0.22 from EPEL on
a CentOS 5 box.

Is this a known issue or am I doing something wrong?

Thanks,
Jarod
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys

Jarod Watkins 10-26-2011 09:05 PM

Mock SCM Issue
 
On Wed, Oct 26, 2011 at 4:52 PM, Karanbir Singh <mail-lists@karan.org> wrote:
> On 10/26/2011 07:26 PM, Jarod Watkins wrote:
>> Hello,
>> I am trying to build an RPM with Mock via a git repo. It seems like I
>> run into an issue with the Sources option inside my spec file:
>
> You might want to take this to either the EPEL list, or (even better and
> more appropriately ) the fedora-buildsys list.
>
> - KB
> _______________________________________________
> CentOS-devel mailing list
> CentOS-devel@centos.org
> http://lists.centos.org/mailman/listinfo/centos-devel
>

Thanks I will send it to the fedora-buildsys list.

Jarod
_______________________________________________
CentOS-devel mailing list
CentOS-devel@centos.org
http://lists.centos.org/mailman/listinfo/centos-devel

Thu Oct 27 00:30:02 2011
Return-path: <gentoo-dev+bounces-48395-tom=linux-archive.org@lists.gentoo.org>
Envelope-to: tom@linux-archive.org
Delivery-date: Thu, 27 Oct 2011 00:05:50 +0300
Received: from pigeon.gentoo.org ([208.92.234.80]:53743 helo=lists.gentoo.org)
by s2.java-tips.org with esmtps (TLSv1:AES256-SHA:256)
(Exim 4.69)
(envelope-from <gentoo-dev+bounces-48395-tom=linux-archive.org@lists.gentoo.org>)
id 1RJAfW-0003T0-9J
for tom@linux-archive.org; Thu, 27 Oct 2011 00:05:50 +0300
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
by pigeon.gentoo.org (Postfix) with SMTP id 01FE721C0A3;
Wed, 26 Oct 2011 21:05:47 +0000 (UTC)
X-Original-To: gentoo-dev@lists.gentoo.org
Delivered-To: gentoo-dev@lists.gentoo.org
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
by pigeon.gentoo.org (Postfix) with ESMTP id 1333921C094;
Wed, 26 Oct 2011 21:03:36 +0000 (UTC)
Received: from [192.168.178.20] (e178073180.adsl.alicedsl.de [85.178.73.180])
(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
(No client certificate requested)
(Authenticated sender: chithanh)
by smtp.gentoo.org (Postfix) with ESMTPSA id EED241B401F;
Wed, 26 Oct 2011 21:03:34 +0000 (UTC)
Message-ID: <4EA875AB.6000404@gentoo.org>
Date: Wed, 26 Oct 2011 23:03:39 +0200
From: =?UTF-8?B?Q2jDrS1UaGFuaCBDaHJpc3RvcGhlciBOZ3V54buFbg==?=
<chithanh@gentoo.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110827 Firefox/6.0 SeaMonkey/2.3.1
Precedence: bulk
List-Post: <mailto:gentoo-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-dev+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
X-BeenThere: gentoo-dev@lists.gentoo.org
Reply-to: gentoo-dev@lists.gentoo.org
MIME-Version: 1.0
To: gentoo-project@lists.gentoo.org, gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-project] Re: [gentoo-dev] Call for agenda items -- Council
meeting 2011-11-08
References: <20111026163025.GA843@gentoo.org> <20111026183551.32cfffe8@pomiocik.lan> <20111026163724.GB843@gentoo.org> <20111026184927.255ed3bb@pomiocik.lan> <20111026170607.GF843@gentoo.org> <20111026191124.411c1f00@pomiocik.lan> <20111026171554.GG843@gentoo.org> <1319652305.5300.7.camel@belkin4> <20111026205843.GH843@gentoo.org>
In-Reply-To: <20111026205843.GH843@gentoo.org>
X-Enigmail-Version: 1.3
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Fabian Groffen schrieb:
> You can see it has been removed, but you typically want to know why.
> That's the idea of the ChangeLog file.

One of the arguments for logging everything in ChangeLog was that
extracting this kind information from CVS can be cumbersome. So, I would
not agree with "typically".


Best regards,
Ch=C3=AD-Thanh Christopher Nguy=E1=BB=85n

Clark Williams 10-26-2011 09:37 PM

Mock SCM Issue
 
On Wed, 26 Oct 2011 17:04:18 -0400
Jarod Watkins <jwatkins@jarodw.com> wrote:

> Hello,
> I am trying to build an RPM with Mock via a git repo. It seems like I
> run into an issue with the Sources option inside my spec file:
>
>
> DEBUG: Initializing SCM integration...
> DEBUG: SCM checkout command: git clone git://gitrepo reponame
> DEBUG: SCM checkout post command: git checkout master
> DEBUG: SCM checkout directory: /tmp/tmp2178L4.mock-scm.reponame
> DEBUG: Executing command: ['git', 'clone', 'git://gitrepo', 'reponame']
> DEBUG: Cloning into reponame...
> DEBUG: Child returncode was: 0
> DEBUG: Executing command: ['git', 'checkout', 'master']
> DEBUG: Already on 'master'
> DEBUG: Child returncode was: 0
> DEBUG: Fetched sources from SCM
> DEBUG: Preparing SCM sources
> ERROR: iteration over non-sequence
> Traceback (most recent call last):
> File "/usr/sbin/mock", line 864, in ?
> main(retParams)
> File "/usr/sbin/mock", line 672, in main
> (options.sources, options.spec) = scmWorker.prepare_sources()
> File "/usr/lib/python2.4/site-packages/mockbuild/scm.py", line 111,
> in prepare_sources
> for (filename, num, flags) in rpm_spec.sources:
> TypeError: iteration over non-sequence

This is complaining that rpm_spec.sources is not a sequence.

What command line did you use to invoke mock?


>
> My spec file is a normal spec file that can be built via Mock when not
> attempting to use it from Git. My Mock version is 1.0.22 from EPEL on
> a CentOS 5 box.
>
> Is this a known issue or am I doing something wrong?
>
> Thanks,
> Jarod
> --
> buildsys mailing list
> buildsys@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/buildsys
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys

Thu Oct 27 01:30:01 2011
Return-path: <ubuntu-desktop-bounces@lists.ubuntu.com>
Envelope-to: tom@linux-archive.org
Delivery-date: Thu, 27 Oct 2011 00:42:34 +0300
Received: from chlorine.canonical.com ([91.189.94.204]:37938)
by s2.java-tips.org with esmtp (Exim 4.69)
(envelope-from <ubuntu-desktop-bounces@lists.ubuntu.com>)
id 1RJBF3-000687-Vp
for tom@linux-archive.org; Thu, 27 Oct 2011 00:42:34 +0300
Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com)
by chlorine.canonical.com with esmtp (Exim 4.71)
(envelope-from <ubuntu-desktop-bounces@lists.ubuntu.com>)
id 1RJBF1-0005lx-VO; Wed, 26 Oct 2011 21:42:32 +0000
Received: from youngberry.canonical.com ([91.189.89.112])
by chlorine.canonical.com with esmtp (Exim 4.71)
(envelope-from <aurelien.gateau@canonical.com>)
id 1RJBEz-0005lp-U4; Wed, 26 Oct 2011 21:42:29 +0000
Received: from [71.46.235.243] (helo=[10.155.35.48])
by youngberry.canonical.com with esmtpsa
(TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71)
(envelope-from <aurelien.gateau@canonical.com>)
id 1RJBEz-0003AO-N9; Wed, 26 Oct 2011 21:42:29 +0000
Message-ID: <4EA87EC2.3080509@canonical.com>
Date: Wed, 26 Oct 2011 17:42:26 -0400
From: =?ISO-8859-1?Q?Aur=E9lien_G=E2teau?=
<aurelien.gateau@canonical.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1
MIME-Version: 1.0
To: ubuntu-desktop@lists.ubuntu.com,
Kubuntu Developer Discussion <kubuntu-devel@lists.ubuntu.com>
Subject: Rotating
X-BeenThere: ubuntu-desktop@lists.ubuntu.com
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Desktop Team co-ordination and discussion
<ubuntu-desktop.lists.ubuntu.com>
List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/ubuntu-desktop>,
<mailto:ubuntu-desktop-request@lists.ubuntu.com?subject=unsubscribe>
List-Archive: <https://lists.ubuntu.com/archives/ubuntu-desktop>
List-Post: <mailto:ubuntu-desktop@lists.ubuntu.com>
List-Help: <mailto:ubuntu-desktop-request@lists.ubuntu.com?subject=help>
List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/ubuntu-desktop>,
<mailto:ubuntu-desktop-request@lists.ubuntu.com?subject=subscribe>
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
Sender: ubuntu-desktop-bounces@lists.ubuntu.com
Errors-To: ubuntu-desktop-bounces@lists.ubuntu.com

Hi,

Just a quick mail to sort of introduce myself for those who do not know me.

I have been a member of the Desktop Experience team, mainly working on =

Qt implementations of DX technologies (libindicate-qt, libdbusmenu-qt, =

appmenu-qt...) as well as on Unity 2D (mainly the panel).

Having spent 2.5 years on the top 24 lines of the screen, I decided to =

take a bold move and discover the rest of the screen. I am doing a =

rotation to the desktop team for Precise cycle, so you may find me =

working on some packages in the next few months, hopefully without =

causing too much breakage.

Aur=E9lien

-- =

ubuntu-desktop mailing list
ubuntu-desktop@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-desktop

Thu Oct 27 01:30:01 2011
Return-path: <kubuntu-devel-bounces@lists.ubuntu.com>
Envelope-to: tom@linux-archive.org
Delivery-date: Thu, 27 Oct 2011 00:42:36 +0300
Received: from chlorine.canonical.com ([91.189.94.204]:38061)
by s2.java-tips.org with esmtp (Exim 4.69)
(envelope-from <kubuntu-devel-bounces@lists.ubuntu.com>)
id 1RJBF6-00068L-Kk
for tom@linux-archive.org; Thu, 27 Oct 2011 00:42:36 +0300
Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com)
by chlorine.canonical.com with esmtp (Exim 4.71)
(envelope-from <kubuntu-devel-bounces@lists.ubuntu.com>)
id 1RJBF2-0005m7-Ih; Wed, 26 Oct 2011 21:42:32 +0000
Received: from youngberry.canonical.com ([91.189.89.112])
by chlorine.canonical.com with esmtp (Exim 4.71)
(envelope-from <aurelien.gateau@canonical.com>)
id 1RJBEz-0005lp-U4; Wed, 26 Oct 2011 21:42:29 +0000
Received: from [71.46.235.243] (helo=[10.155.35.48])
by youngberry.canonical.com with esmtpsa
(TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71)
(envelope-from <aurelien.gateau@canonical.com>)
id 1RJBEz-0003AO-N9; Wed, 26 Oct 2011 21:42:29 +0000
Message-ID: <4EA87EC2.3080509@canonical.com>
Date: Wed, 26 Oct 2011 17:42:26 -0400
From: =?ISO-8859-1?Q?Aur=E9lien_G=E2teau?=
<aurelien.gateau@canonical.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1
MIME-Version: 1.0
To: ubuntu-desktop@lists.ubuntu.com,
Kubuntu Developer Discussion <kubuntu-devel@lists.ubuntu.com>
Subject: Rotating
X-BeenThere: kubuntu-devel@lists.ubuntu.com
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Kubuntu Developer Discussion <kubuntu-devel@lists.ubuntu.com>
List-Id: Kubuntu Developer Discussion <kubuntu-devel.lists.ubuntu.com>
List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kubuntu-devel>,
<mailto:kubuntu-devel-request@lists.ubuntu.com?subject=unsubscribe>
List-Archive: <https://lists.ubuntu.com/archives/kubuntu-devel>
List-Post: <mailto:kubuntu-devel@lists.ubuntu.com>
List-Help: <mailto:kubuntu-devel-request@lists.ubuntu.com?subject=help>
List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kubuntu-devel>,
<mailto:kubuntu-devel-request@lists.ubuntu.com?subject=subscribe>
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
Sender: kubuntu-devel-bounces@lists.ubuntu.com
Errors-To: kubuntu-devel-bounces@lists.ubuntu.com

Hi,

Just a quick mail to sort of introduce myself for those who do not know me.

I have been a member of the Desktop Experience team, mainly working on =

Qt implementations of DX technologies (libindicate-qt, libdbusmenu-qt, =

appmenu-qt...) as well as on Unity 2D (mainly the panel).

Having spent 2.5 years on the top 24 lines of the screen, I decided to =

take a bold move and discover the rest of the screen. I am doing a =

rotation to the desktop team for Precise cycle, so you may find me =

working on some packages in the next few months, hopefully without =

causing too much breakage.

Aur=E9lien

-- =

kubuntu-devel mailing list
kubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinf=
o/kubuntu-devel

Jarod Watkins 10-26-2011 11:17 PM

Mock SCM Issue
 
Sorry I forgot to reply all:

mock -r centos-5-x86_64 --scm-enable --scm-option package=package_name
--scm-option git_get='git clone repourl reponame' --scm-option
spec='package_name.spec' -v

and in my site-defaults.cfg I have:

config_opts['scm'] = True
config_opts['scm_opts']['method'] = 'git'
config_opts['scm_opts']['ext_src_dir'] = '/dev/null'
config_opts['scm_opts']['write_tar'] = True
config_opts['scm_opts']['branch'] = 'master'

On Wed, Oct 26, 2011 at 5:37 PM, Clark Williams
<clark.williams@gmail.com> wrote:
> On Wed, 26 Oct 2011 17:04:18 -0400
> Jarod Watkins <jwatkins@jarodw.com> wrote:
>
>> Hello,
>> I am trying to build an RPM with Mock via a git repo. It seems like I
>> run into an issue with the Sources option inside my spec file:
>>
>>
>> DEBUG: Initializing SCM integration...
>> DEBUG: SCM checkout command: git clone git://gitrepo reponame
>> DEBUG: SCM checkout post command: git checkout master
>> DEBUG: SCM checkout directory: /tmp/tmp2178L4.mock-scm.reponame
>> DEBUG: Executing command: ['git', 'clone', 'git://gitrepo', 'reponame']
>> DEBUG: Cloning into reponame...
>> DEBUG: Child returncode was: 0
>> DEBUG: Executing command: ['git', 'checkout', 'master']
>> DEBUG: Already on 'master'
>> DEBUG: Child returncode was: 0
>> DEBUG: Fetched sources from SCM
>> DEBUG: Preparing SCM sources
>> ERROR: iteration over non-sequence
>> Traceback (most recent call last):
>> *File "/usr/sbin/mock", line 864, in ?
>> * *main(retParams)
>> *File "/usr/sbin/mock", line 672, in main
>> * *(options.sources, options.spec) = scmWorker.prepare_sources()
>> *File "/usr/lib/python2.4/site-packages/mockbuild/scm.py", line 111,
>> in prepare_sources
>> * *for (filename, num, flags) in rpm_spec.sources:
>> TypeError: iteration over non-sequence
>
> This is complaining that rpm_spec.sources is not a sequence.
>
> What command line did you use to invoke mock?
>
>
>>
>> My spec file is a normal spec file that can be built via Mock when not
>> attempting to use it from Git. My Mock version is 1.0.22 from EPEL on
>> a CentOS 5 box.
>>
>> Is this a known issue or am I doing something wrong?
>>
>> Thanks,
>> Jarod
>> --
>> buildsys mailing list
>> buildsys@lists.fedoraproject.org
>> https://admin.fedoraproject.org/mailman/listinfo/buildsys
>
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys

Marko Myllynen 10-27-2011 10:41 AM

Mock SCM Issue
 
Hi,

thanks for the report, it seems that nobody had really tested Mock SCM
on RHEL 5 before. I opened a BZ about this and attached a patch which
fixes the issues with RHEL 5 RPM Python API and RHEL 5 tar, please try
it out:

https://bugzilla.redhat.com/show_bug.cgi?id=749518

Cheers,

On 2011-10-27 02:17, Jarod Watkins wrote:
> Sorry I forgot to reply all:
>
> mock -r centos-5-x86_64 --scm-enable --scm-option package=package_name
> --scm-option git_get='git clone repourl reponame' --scm-option
> spec='package_name.spec' -v
>
> and in my site-defaults.cfg I have:
>
> config_opts['scm'] = True
> config_opts['scm_opts']['method'] = 'git'
> config_opts['scm_opts']['ext_src_dir'] = '/dev/null'
> config_opts['scm_opts']['write_tar'] = True
> config_opts['scm_opts']['branch'] = 'master'
>
> On Wed, Oct 26, 2011 at 5:37 PM, Clark Williams
> <clark.williams@gmail.com> wrote:
>> On Wed, 26 Oct 2011 17:04:18 -0400
>> Jarod Watkins <jwatkins@jarodw.com> wrote:
>>
>>> Hello,
>>> I am trying to build an RPM with Mock via a git repo. It seems like I
>>> run into an issue with the Sources option inside my spec file:
>>>
>>>
>>> DEBUG: Initializing SCM integration...
>>> DEBUG: SCM checkout command: git clone git://gitrepo reponame
>>> DEBUG: SCM checkout post command: git checkout master
>>> DEBUG: SCM checkout directory: /tmp/tmp2178L4.mock-scm.reponame
>>> DEBUG: Executing command: ['git', 'clone', 'git://gitrepo', 'reponame']
>>> DEBUG: Cloning into reponame...
>>> DEBUG: Child returncode was: 0
>>> DEBUG: Executing command: ['git', 'checkout', 'master']
>>> DEBUG: Already on 'master'
>>> DEBUG: Child returncode was: 0
>>> DEBUG: Fetched sources from SCM
>>> DEBUG: Preparing SCM sources
>>> ERROR: iteration over non-sequence
>>> Traceback (most recent call last):
>>> File "/usr/sbin/mock", line 864, in ?
>>> main(retParams)
>>> File "/usr/sbin/mock", line 672, in main
>>> (options.sources, options.spec) = scmWorker.prepare_sources()
>>> File "/usr/lib/python2.4/site-packages/mockbuild/scm.py", line 111,
>>> in prepare_sources
>>> for (filename, num, flags) in rpm_spec.sources:
>>> TypeError: iteration over non-sequence
>>
>> This is complaining that rpm_spec.sources is not a sequence.
>>
>> What command line did you use to invoke mock?
>>
>>
>>>
>>> My spec file is a normal spec file that can be built via Mock when not
>>> attempting to use it from Git. My Mock version is 1.0.22 from EPEL on
>>> a CentOS 5 box.
>>>
>>> Is this a known issue or am I doing something wrong?
>>>
>>> Thanks,
>>> Jarod
>>> --
>>> buildsys mailing list
>>> buildsys@lists.fedoraproject.org
>>> https://admin.fedoraproject.org/mailman/listinfo/buildsys
>>


--
Marko Myllynen
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys

Jarod Watkins 10-27-2011 09:15 PM

Mock SCM Issue
 
That works! Thank you so much for the quick response and fix.

Thanks,
Jarod

On Thu, Oct 27, 2011 at 6:41 AM, Marko Myllynen <myllynen@redhat.com> wrote:
> Hi,
>
> thanks for the report, it seems that nobody had really tested Mock SCM
> on RHEL 5 before. I opened a BZ about this and attached a patch which
> fixes the issues with RHEL 5 RPM Python API and RHEL 5 tar, please try
> it out:
>
> https://bugzilla.redhat.com/show_bug.cgi?id=749518
>
> Cheers,
>
> On 2011-10-27 02:17, Jarod Watkins wrote:
>> Sorry I forgot to reply all:
>>
>> mock -r centos-5-x86_64 --scm-enable --scm-option package=package_name
>> --scm-option git_get='git clone repourl reponame' --scm-option
>> spec='package_name.spec' -v
>>
>> and in my site-defaults.cfg I have:
>>
>> config_opts['scm'] = True
>> config_opts['scm_opts']['method'] = 'git'
>> config_opts['scm_opts']['ext_src_dir'] = '/dev/null'
>> config_opts['scm_opts']['write_tar'] = True
>> config_opts['scm_opts']['branch'] = 'master'
>>
>> On Wed, Oct 26, 2011 at 5:37 PM, Clark Williams
>> <clark.williams@gmail.com> wrote:
>>> On Wed, 26 Oct 2011 17:04:18 -0400
>>> Jarod Watkins <jwatkins@jarodw.com> wrote:
>>>
>>>> Hello,
>>>> I am trying to build an RPM with Mock via a git repo. It seems like I
>>>> run into an issue with the Sources option inside my spec file:
>>>>
>>>>
>>>> DEBUG: Initializing SCM integration...
>>>> DEBUG: SCM checkout command: git clone git://gitrepo reponame
>>>> DEBUG: SCM checkout post command: git checkout master
>>>> DEBUG: SCM checkout directory: /tmp/tmp2178L4.mock-scm.reponame
>>>> DEBUG: Executing command: ['git', 'clone', 'git://gitrepo', 'reponame']
>>>> DEBUG: Cloning into reponame...
>>>> DEBUG: Child returncode was: 0
>>>> DEBUG: Executing command: ['git', 'checkout', 'master']
>>>> DEBUG: Already on 'master'
>>>> DEBUG: Child returncode was: 0
>>>> DEBUG: Fetched sources from SCM
>>>> DEBUG: Preparing SCM sources
>>>> ERROR: iteration over non-sequence
>>>> Traceback (most recent call last):
>>>> *File "/usr/sbin/mock", line 864, in ?
>>>> * *main(retParams)
>>>> *File "/usr/sbin/mock", line 672, in main
>>>> * *(options.sources, options.spec) = scmWorker.prepare_sources()
>>>> *File "/usr/lib/python2.4/site-packages/mockbuild/scm.py", line 111,
>>>> in prepare_sources
>>>> * *for (filename, num, flags) in rpm_spec.sources:
>>>> TypeError: iteration over non-sequence
>>>
>>> This is complaining that rpm_spec.sources is not a sequence.
>>>
>>> What command line did you use to invoke mock?
>>>
>>>
>>>>
>>>> My spec file is a normal spec file that can be built via Mock when not
>>>> attempting to use it from Git. My Mock version is 1.0.22 from EPEL on
>>>> a CentOS 5 box.
>>>>
>>>> Is this a known issue or am I doing something wrong?
>>>>
>>>> Thanks,
>>>> Jarod
>>>> --
>>>> buildsys mailing list
>>>> buildsys@lists.fedoraproject.org
>>>> https://admin.fedoraproject.org/mailman/listinfo/buildsys
>>>
>
>
> --
> Marko Myllynen
>
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys


All times are GMT. The time now is 01:41 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.