Hy,
I'm facing the problem below on epel-6-x86_64 chroot for both from URL and upload SRPM :
[2016-01-19 15:16:26,790][ INFO][PID:3241] Setting up builder: 172.25.94.167 [2016-01-19 15:16:27,991][ INFO][PID:3241] marking build dir with build_id, [2016-01-19 15:16:27,992][ INFO][PID:3241] Start build: BuildJob<id: 154509, owner: jmliger, project: virt6-upstream, git branch: el6, git_hash: acef5efd6153aa8f9ea760f468333e65c9b46a4e, status: 3 > [2016-01-19 15:16:27,993][ INFO][PID:3241] putting into minimal buildroot of epel-6-x86_64 [2016-01-19 15:16:28,902][ INFO][PID:3241] Cloning Dist Git repo jmliger/virt6-upstream/libvirt, branch acef5efd6153aa8f9ea760f468333e65c9b46a4e, hash el6 [2016-01-19 15:16:30,906][ ERROR][PID:3241] Failed to obtain srpm from dist-git Traceback (most recent call last): File "/usr/share/copr/backend/mockremote/builder.py", line 209, in download_job_pkg_to_builder self.remote_pkg_path = list(results["contacted"].values())[0][u"stdout"].split("Wrote: ")[1] IndexError: list index out of range [2016-01-19 15:16:30,911][ ERROR][PID:3241] builder.build error building pkg `libvirt`: BuildError: Failed to obtain srpm from dist-git: ansible results {'dark': {}, 'contacted': {'172.25.94.167': {'cmd': 'rm -rf /tmp/build_package_repo && mkdir /tmp/build_package_repo && cd /tmp/build_package_repo && git clone http://copr-dist-git.fedorainfracloud.org/git/jmliger/virt6-upstream/libvirt... && cd libvirt && git checkout acef5efd6153aa8f9ea760f468333e65c9b46a4e && fedpkg-copr --dist el6 srpm', 'end': '2016-01-19 15:16:30.308282', 'stdout': 'Downloading libvirt-1.3.1.tar.gz\n\r 0.0%\r 100.0%\r######################################################################## 100.0%', 'changed': True, 'start': '2016-01-19 15:16:28.758321', 'delta': '0:00:01.549961', 'stderr': "Cloning into 'libvirt'...\nNote: checking out 'acef5efd6153aa8f9ea760f468333e65c9b46a4e'.\n\nYou are in 'detached HEAD' state. You can look around, make experimental\nchanges and commit them, and you can discard any commits you make in this\nstate without impacting any branches by performing another checkout.\n\nIf you want to create a new branch to retain commits you create, you may\ndo so (now or later) by using -b with the checkout command again. Example:\n\n git checkout -b <new-branch-name>\n\nHEAD is now at acef5ef... import_srpm\nerror: line 1800: Trigger fired by the same package is already defined in spec file: %post daemon-config-network\n\nerror: query of specfile /tmp/build_package_repo/libvirt/libvirt.spec failed, can't parse\n\nCould not execute srpm: Could not get n-v-r-e from '\n\n'", 'rc': 1, 'invocation': {'module_name': 'shell', 'module_complex_args': {}, 'module_args': u'rm -rf /tmp/build_package_repo && mkdir /tmp/build_package_repo && cd /tmp/build_package_repo && git clone http://copr-dist-git.fedorainfracloud.org/git/jmliger/virt6-upstream/libvirt... && cd libvirt && git checkout acef5efd6153aa8f9ea760f468333e65c9b46a4e && fedpkg-copr --dist el6 srpm'}, 'warnings': ['Consider using file module with state=absent rather than running rm']}}} [2016-01-19 15:16:31,759][ INFO][PID:3241] End Build: BuildJob<id: 154509, owner: jmliger, project: virt6-upstream, git branch: el6, git_hash: acef5efd6153aa8f9ea760f468333e65c9b46a4e, status: 3 >
https://copr.fedoraproject.org/coprs/jmliger/virt6-upstream/builds/
Regards, Jean-Marc LIGER
Hi,
I've tested it the same way with two different projects. Is there any action to bypass this problem ?
JML
Le 19/01/2016 17:01, Jean-Marc LIGER a écrit :
Hi,
I'm facing the problem below on epel-6-x86_64 chroot for both from URL and upload SRPM :
[2016-01-19 15:16:26,790][ INFO][PID:3241] Setting up builder: 172.25.94.167 [2016-01-19 15:16:27,991][ INFO][PID:3241] marking build dir with build_id, [2016-01-19 15:16:27,992][ INFO][PID:3241] Start build: BuildJob<id: 154509, owner: jmliger, project: virt6-upstream, git branch: el6, git_hash: acef5efd6153aa8f9ea760f468333e65c9b46a4e, status: 3 > [2016-01-19 15:16:27,993][ INFO][PID:3241] putting into minimal buildroot of epel-6-x86_64 [2016-01-19 15:16:28,902][ INFO][PID:3241] Cloning Dist Git repo jmliger/virt6-upstream/libvirt, branch acef5efd6153aa8f9ea760f468333e65c9b46a4e, hash el6 [2016-01-19 15:16:30,906][ ERROR][PID:3241] Failed to obtain srpm from dist-git Traceback (most recent call last): File "/usr/share/copr/backend/mockremote/builder.py", line 209, in download_job_pkg_to_builder self.remote_pkg_path = list(results["contacted"].values())[0][u"stdout"].split("Wrote: ")[1] IndexError: list index out of range [2016-01-19 15:16:30,911][ ERROR][PID:3241] builder.build error building pkg `libvirt`: BuildError: Failed to obtain srpm from dist-git: ansible results {'dark': {}, 'contacted': {'172.25.94.167': {'cmd': 'rm -rf /tmp/build_package_repo && mkdir /tmp/build_package_repo && cd /tmp/build_package_repo && git clone http://copr-dist-git.fedorainfracloud.org/git/jmliger/virt6-upstream/libvirt... && cd libvirt && git checkout acef5efd6153aa8f9ea760f468333e65c9b46a4e && fedpkg-copr --dist el6 srpm', 'end': '2016-01-19 15:16:30.308282', 'stdout': 'Downloading libvirt-1.3.1.tar.gz\n\r 0.0%\r 100.0%\r######################################################################## 100.0%', 'changed': True, 'start': '2016-01-19 15:16:28.758321', 'delta': '0:00:01.549961', 'stderr': "Cloning into 'libvirt'...\nNote: checking out 'acef5efd6153aa8f9ea760f468333e65c9b46a4e'.\n\nYou are in 'detached HEAD' state. You can look around, make experimental\nchanges and commit them, and you can discard any commits you make in this\nstate without impacting any branches by performing another checkout.\n\nIf you want to create a new branch to retain commits you create, you may\ndo so (now or later) by using -b with the checkout command again. Example:\n\n git checkout -b <new-branch-name>\n\nHEAD is now at acef5ef... import_srpm\nerror: line 1800: Trigger fired by the same package is already defined in spec file: %post daemon-config-network\n\nerror: query of specfile /tmp/build_package_repo/libvirt/libvirt.spec failed, can't parse\n\nCould not execute srpm: Could not get n-v-r-e from '\n\n'", 'rc': 1, 'invocation': {'module_name': 'shell', 'module_complex_args': {}, 'module_args': u'rm -rf /tmp/build_package_repo && mkdir /tmp/build_package_repo && cd /tmp/build_package_repo && git clone http://copr-dist-git.fedorainfracloud.org/git/jmliger/virt6-upstream/libvirt... && cd libvirt && git checkout acef5efd6153aa8f9ea760f468333e65c9b46a4e && fedpkg-copr --dist el6 srpm'}, 'warnings': ['Consider using file module with state=absent rather than running rm']}}} [2016-01-19 15:16:31,759][ INFO][PID:3241] End Build: BuildJob<id: 154509, owner: jmliger, project: virt6-upstream, git branch: el6, git_hash: acef5efd6153aa8f9ea760f468333e65c9b46a4e, status: 3 >
https://copr.fedoraproject.org/coprs/jmliger/virt6-upstream/builds/
Regards, Jean-Marc LIGER
copr-devel mailing list copr-devel@lists.fedorahosted.org https://lists.fedorahosted.org/admin/lists/copr-devel@lists.fedorahosted.org
Ping
Le 26/01/2016 15:33, Jean-Marc LIGER a écrit :
Hi,
I've tested it the same way with two different projects. Is there any action to bypass this problem ?
JML
Le 19/01/2016 17:01, Jean-Marc LIGER a écrit :
Hi,
I'm facing the problem below on epel-6-x86_64 chroot for both from URL and upload SRPM :
[2016-01-19 15:16:26,790][ INFO][PID:3241] Setting up builder: 172.25.94.167 [2016-01-19 15:16:27,991][ INFO][PID:3241] marking build dir with build_id, [2016-01-19 15:16:27,992][ INFO][PID:3241] Start build: BuildJob<id: 154509, owner: jmliger, project: virt6-upstream, git branch: el6, git_hash: acef5efd6153aa8f9ea760f468333e65c9b46a4e, status: 3 > [2016-01-19 15:16:27,993][ INFO][PID:3241] putting into minimal buildroot of epel-6-x86_64 [2016-01-19 15:16:28,902][ INFO][PID:3241] Cloning Dist Git repo jmliger/virt6-upstream/libvirt, branch acef5efd6153aa8f9ea760f468333e65c9b46a4e, hash el6 [2016-01-19 15:16:30,906][ ERROR][PID:3241] Failed to obtain srpm from dist-git Traceback (most recent call last): File "/usr/share/copr/backend/mockremote/builder.py", line 209, in download_job_pkg_to_builder self.remote_pkg_path = list(results["contacted"].values())[0][u"stdout"].split("Wrote: ")[1] IndexError: list index out of range [2016-01-19 15:16:30,911][ ERROR][PID:3241] builder.build error building pkg `libvirt`: BuildError: Failed to obtain srpm from dist-git: ansible results {'dark': {}, 'contacted': {'172.25.94.167': {'cmd': 'rm -rf /tmp/build_package_repo && mkdir /tmp/build_package_repo && cd /tmp/build_package_repo && git clone http://copr-dist-git.fedorainfracloud.org/git/jmliger/virt6-upstream/libvirt... && cd libvirt && git checkout acef5efd6153aa8f9ea760f468333e65c9b46a4e && fedpkg-copr --dist el6 srpm', 'end': '2016-01-19 15:16:30.308282', 'stdout': 'Downloading libvirt-1.3.1.tar.gz\n\r 0.0%\r 100.0%\r######################################################################## 100.0%', 'changed': True, 'start': '2016-01-19 15:16:28.758321', 'delta': '0:00:01.549961', 'stderr': "Cloning into 'libvirt'...\nNote: checking out 'acef5efd6153aa8f9ea760f468333e65c9b46a4e'.\n\nYou are in 'detached HEAD' state. You can look around, make experimental\nchanges and commit them, and you can discard any commits you make in this\nstate without impacting any branches by performing another checkout.\n\nIf you want to create a new branch to retain commits you create, you may\ndo so (now or later) by using -b with the checkout command again. Example:\n\n git checkout -b <new-branch-name>\n\nHEAD is now at acef5ef... import_srpm\nerror: line 1800: Trigger fired by the same package is already defined in spec file: %post daemon-config-network\n\nerror: query of specfile /tmp/build_package_repo/libvirt/libvirt.spec failed, can't parse\n\nCould not execute srpm: Could not get n-v-r-e from '\n\n'", 'rc': 1, 'invocation': {'module_name': 'shell', 'module_complex_args': {}, 'module_args': u'rm -rf /tmp/build_package_repo && mkdir /tmp/build_package_repo && cd /tmp/build_package_repo && git clone http://copr-dist-git.fedorainfracloud.org/git/jmliger/virt6-upstream/libvirt... && cd libvirt && git checkout acef5efd6153aa8f9ea760f468333e65c9b46a4e && fedpkg-copr --dist el6 srpm'}, 'warnings': ['Consider using file module with state=absent rather than running rm']}}} [2016-01-19 15:16:31,759][ INFO][PID:3241] End Build: BuildJob<id: 154509, owner: jmliger, project: virt6-upstream, git branch: el6, git_hash: acef5efd6153aa8f9ea760f468333e65c9b46a4e, status: 3 >
https://copr.fedoraproject.org/coprs/jmliger/virt6-upstream/builds/
Regards, Jean-Marc LIGER
copr-devel mailing list copr-devel@lists.fedorahosted.org https://lists.fedorahosted.org/admin/lists/copr-devel@lists.fedorahosted.org
copr-devel mailing list copr-devel@lists.fedorahosted.org https://lists.fedorahosted.org/admin/lists/copr-devel@lists.fedorahosted.org
Dne 19.1.2016 v 17:01 Jean-Marc LIGER napsal(a):
Hy,
I'm facing the problem below on epel-6-x86_64 chroot for both from URL and upload SRPM :
[2016-01-19 15:16:26,790][ INFO][PID:3241] Setting up builder: 172.25.94.167 [2016-01-19 15:16:27,991][ INFO][PID:3241] marking build dir with build_id, [2016-01-19 15:16:27,992][ INFO][PID:3241] Start build: BuildJob<id: 154509, owner: jmliger, project: virt6-upstream, git branch: el6, git_hash: acef5efd6153aa8f9ea760f468333e65c9b46a4e, status: 3 > [2016-01-19 15:16:27,993][ INFO][PID:3241] putting into minimal buildroot of epel-6-x86_64 [2016-01-19 15:16:28,902][ INFO][PID:3241] Cloning Dist Git repo jmliger/virt6-upstream/libvirt, branch acef5efd6153aa8f9ea760f468333e65c9b46a4e, hash el6 [2016-01-19 15:16:30,906][ ERROR][PID:3241] Failed to obtain srpm from dist-git Traceback (most recent call last): File "/usr/share/copr/backend/mockremote/builder.py", line 209, in download_job_pkg_to_builder self.remote_pkg_path = list(results["contacted"].values())[0][u"stdout"].split("Wrote: ")[1] IndexError: list index out of range [2016-01-19 15:16:30,911][ ERROR][PID:3241] builder.build error building pkg `libvirt`: BuildError: Failed to obtain srpm from dist-git: ansible results {'dark': {}, 'contacted': {'172.25.94.167': {'cmd': 'rm -rf /tmp/build_package_repo && mkdir /tmp/build_package_repo && cd /tmp/build_package_repo && git clone http://copr-dist-git.fedorainfracloud.org/git/jmliger/virt6-upstream/libvirt... && cd libvirt && git checkout acef5efd6153aa8f9ea760f468333e65c9b46a4e && fedpkg-copr --dist el6 srpm', 'end': '2016-01-19 15:16:30.308282', 'stdout': 'Downloading libvirt-1.3.1.tar.gz\n\r 0.0%\r 100.0%\r######################################################################## 100.0%', 'changed': True, 'start': '2016-01-19 15:16:28.758321', 'delta': '0:00:01.549961', 'stderr': "Cloning into 'libvirt'...\nNote: checking out 'acef5efd6153aa8f9ea760f468333e65c9b46a4e'.\n\nYou are in 'detached HEAD' state. You can look around, make experimental\nchanges and commit them, and you can discard any commits you make in this\nstate without impacting any branches by performing another checkout.\n\nIf you want to create a new branch to retain commits you create, you may\ndo so (now or later) by using -b with the checkout command again. Example:\n\n git checkout -b <new-branch-name>\n\nHEAD is now at acef5ef... import_srpm\nerror: line 1800: Trigger fired by the same package is already defined in spec file: %post daemon-config-network\n\nerror: query of specfile /tmp/build_package_repo/libvirt/libvirt.spec failed, can't parse\n\nCould not execute srpm: Could not get n-v-r-e from '\n\n'", 'rc': 1, 'invocation': {'module_name': 'shell', 'module_complex_args': {}, 'module_args': u'rm -rf /tmp/build_package_repo && mkdir /tmp/build_package_repo && cd /tmp/build_package_repo && git clone http://copr-dist-git.fedorainfracloud.org/git/jmliger/virt6-upstream/libvirt... && cd libvirt && git checkout acef5efd6153aa8f9ea760f468333e65c9b46a4e && fedpkg-copr --dist el6 srpm'}, 'warnings': ['Consider using file module with state=absent rather than running rm']}}} [2016-01-19 15:16:31,759][ INFO][PID:3241] End Build: BuildJob<id: 154509, owner: jmliger, project: virt6-upstream, git branch: el6, git_hash: acef5efd6153aa8f9ea760f468333e65c9b46a4e, status: 3 >
https://copr.fedoraproject.org/coprs/jmliger/virt6-upstream/builds/
Regards, Jean-Marc LIGER
copr-devel mailing list copr-devel@lists.fedorahosted.org https://lists.fedorahosted.org/admin/lists/copr-devel@lists.fedorahosted.org
It is some problem with your spec file. You can reproduce it by installing fedpkg-copr from our Copr project and git clone http://copr-dist-git.fedorainfracloud.org/git/jmliger/virt6-upstream/libvirt... cd libvirt git checkout acef5efd6153aa8f9ea760f468333e65c9b46a4e fedpkg-copr -vvv --dist el6 srpm
Which will fails on:
rpm --define '_sourcedir /tmp/libvirt' --define '_specdir /tmp/libvirt' --define '_builddir /tmp/libvirt' --define '_srcrpmdir /tmp/libvirt' --define '_rpmdir /tmp/libvirt' --define 'dist .el6' --define 'rhel 6' --eval '%undefine fedora' --define 'el6 1' --eval '%undefine fc23' -q --qf "%{NAME} %{EPOCH} %{VERSION} %{RELEASE}??" --specfile /tmp/libvirt/libvirt.spec
error: line 1800: Trigger fired by the same package is already defined in spec file: %post daemon-config-network error: query of specfile /tmp/libvirt/libvirt.spec failed, can't parse
And your spec file is so complex that I have no idea why it is failing. You may ask on RPM mailing list.
Le 19/02/2016 11:40, Miroslav Suchý a écrit :
Dne 19.1.2016 v 17:01 Jean-Marc LIGER napsal(a):
Hy,
I'm facing the problem below on epel-6-x86_64 chroot for both from URL and upload SRPM :
[2016-01-19 15:16:26,790][ INFO][PID:3241] Setting up builder: 172.25.94.167 [2016-01-19 15:16:27,991][ INFO][PID:3241] marking build dir with build_id, [2016-01-19 15:16:27,992][ INFO][PID:3241] Start build: BuildJob<id: 154509, owner: jmliger, project: virt6-upstream, git branch: el6, git_hash: acef5efd6153aa8f9ea760f468333e65c9b46a4e, status: 3 > [2016-01-19 15:16:27,993][ INFO][PID:3241] putting into minimal buildroot of epel-6-x86_64 [2016-01-19 15:16:28,902][ INFO][PID:3241] Cloning Dist Git repo jmliger/virt6-upstream/libvirt, branch acef5efd6153aa8f9ea760f468333e65c9b46a4e, hash el6 [2016-01-19 15:16:30,906][ ERROR][PID:3241] Failed to obtain srpm from dist-git Traceback (most recent call last): File "/usr/share/copr/backend/mockremote/builder.py", line 209, in download_job_pkg_to_builder self.remote_pkg_path = list(results["contacted"].values())[0][u"stdout"].split("Wrote: ")[1] IndexError: list index out of range [2016-01-19 15:16:30,911][ ERROR][PID:3241] builder.build error building pkg `libvirt`: BuildError: Failed to obtain srpm from dist-git: ansible results {'dark': {}, 'contacted': {'172.25.94.167': {'cmd': 'rm -rf /tmp/build_package_repo && mkdir /tmp/build_package_repo && cd /tmp/build_package_repo && git clone http://copr-dist-git.fedorainfracloud.org/git/jmliger/virt6-upstream/libvirt... && cd libvirt && git checkout acef5efd6153aa8f9ea760f468333e65c9b46a4e && fedpkg-copr --dist el6 srpm', 'end': '2016-01-19 15:16:30.308282', 'stdout': 'Downloading libvirt-1.3.1.tar.gz\n\r 0.0%\r 100.0%\r######################################################################## 100.0%', 'changed': True, 'start': '2016-01-19 15:16:28.758321', 'delta': '0:00:01.549961', 'stderr': "Cloning into 'libvirt'...\nNote: checking out 'acef5efd6153aa8f9ea760f468333e65c9b46a4e'.\n\nYou are in 'detached HEAD' state. You can look around, make experimental\nchanges and commit them, and you can discard any commits you make in this\nstate without impacting any branches by performing another checkout.\n\nIf you want to create a new branch to retain commits you create, you may\ndo so (now or later) by using -b with the checkout command again. Example:\n\n git checkout -b <new-branch-name>\n\nHEAD is now at acef5ef... import_srpm\nerror: line 1800: Trigger fired by the same package is already defined in spec file: %post daemon-config-network\n\nerror: query of specfile /tmp/build_package_repo/libvirt/libvirt.spec failed, can't parse\n\nCould not execute srpm: Could not get n-v-r-e from '\n\n'", 'rc': 1, 'invocation': {'module_name': 'shell', 'module_complex_args': {}, 'module_args': u'rm -rf /tmp/build_package_repo && mkdir /tmp/build_package_repo && cd /tmp/build_package_repo && git clone http://copr-dist-git.fedorainfracloud.org/git/jmliger/virt6-upstream/libvirt... && cd libvirt && git checkout acef5efd6153aa8f9ea760f468333e65c9b46a4e && fedpkg-copr --dist el6 srpm'}, 'warnings': ['Consider using file module with state=absent rather than running rm']}}} [2016-01-19 15:16:31,759][ INFO][PID:3241] End Build: BuildJob<id: 154509, owner: jmliger, project: virt6-upstream, git branch: el6, git_hash: acef5efd6153aa8f9ea760f468333e65c9b46a4e, status: 3 >
https://copr.fedoraproject.org/coprs/jmliger/virt6-upstream/builds/
Regards, Jean-Marc LIGER
copr-devel mailing list copr-devel@lists.fedorahosted.org https://lists.fedorahosted.org/admin/lists/copr-devel@lists.fedorahosted.org
It is some problem with your spec file. You can reproduce it by installing fedpkg-copr from our Copr project and git clone http://copr-dist-git.fedorainfracloud.org/git/jmliger/virt6-upstream/libvirt... cd libvirt git checkout acef5efd6153aa8f9ea760f468333e65c9b46a4e fedpkg-copr -vvv --dist el6 srpm
Which will fails on:
rpm --define '_sourcedir /tmp/libvirt' --define '_specdir /tmp/libvirt' --define '_builddir /tmp/libvirt' --define '_srcrpmdir /tmp/libvirt' --define '_rpmdir /tmp/libvirt' --define 'dist .el6' --define 'rhel 6' --eval '%undefine fedora' --define 'el6 1' --eval '%undefine fc23' -q --qf "%{NAME} %{EPOCH} %{VERSION} %{RELEASE}??" --specfile /tmp/libvirt/libvirt.spec
error: line 1800: Trigger fired by the same package is already defined in spec file: %post daemon-config-network error: query of specfile /tmp/libvirt/libvirt.spec failed, can't parse
And your spec file is so complex that I have no idea why it is failing. You may ask on RPM mailing list.
Thanks for your reply, I'm addressing this problem to the libvirt list.
Le 22/02/2016 12:08, Jean-Marc LIGER a écrit :
Le 19/02/2016 11:40, Miroslav Suchý a écrit :
Dne 19.1.2016 v 17:01 Jean-Marc LIGER napsal(a):
Hy,
I'm facing the problem below on epel-6-x86_64 chroot for both from URL and upload SRPM :
[2016-01-19 15:16:26,790][ INFO][PID:3241] Setting up builder: 172.25.94.167 [2016-01-19 15:16:27,991][ INFO][PID:3241] marking build dir with build_id, [2016-01-19 15:16:27,992][ INFO][PID:3241] Start build: BuildJob<id: 154509, owner: jmliger, project: virt6-upstream, git branch: el6, git_hash: acef5efd6153aa8f9ea760f468333e65c9b46a4e, status: 3 > [2016-01-19 15:16:27,993][ INFO][PID:3241] putting into minimal buildroot of epel-6-x86_64 [2016-01-19 15:16:28,902][ INFO][PID:3241] Cloning Dist Git repo jmliger/virt6-upstream/libvirt, branch acef5efd6153aa8f9ea760f468333e65c9b46a4e, hash el6 [2016-01-19 15:16:30,906][ ERROR][PID:3241] Failed to obtain srpm from dist-git Traceback (most recent call last): File "/usr/share/copr/backend/mockremote/builder.py", line 209, in download_job_pkg_to_builder self.remote_pkg_path = list(results["contacted"].values())[0][u"stdout"].split("Wrote: ")[1] IndexError: list index out of range [2016-01-19 15:16:30,911][ ERROR][PID:3241] builder.build error building pkg `libvirt`: BuildError: Failed to obtain srpm from dist-git: ansible results {'dark': {}, 'contacted': {'172.25.94.167': {'cmd': 'rm -rf /tmp/build_package_repo && mkdir /tmp/build_package_repo && cd /tmp/build_package_repo && git clone http://copr-dist-git.fedorainfracloud.org/git/jmliger/virt6-upstream/libvirt... && cd libvirt && git checkout acef5efd6153aa8f9ea760f468333e65c9b46a4e && fedpkg-copr --dist el6 srpm', 'end': '2016-01-19 15:16:30.308282', 'stdout': 'Downloading libvirt-1.3.1.tar.gz\n\r 0.0%\r 100.0%\r######################################################################## 100.0%', 'changed': True, 'start': '2016-01-19 15:16:28.758321', 'delta': '0:00:01.549961', 'stderr': "Cloning into 'libvirt'...\nNote: checking out 'acef5efd6153aa8f9ea760f468333e65c9b46a4e'.\n\nYou are in 'detached HEAD' state. You can look around, make experimental\nchanges and commit them, and you can discard any commits you make in this\nstate without impacting any branches by performing another checkout.\n\nIf you want to create a new branch to retain commits you create, you may\ndo so (now or later) by using -b with the checkout command again. Example:\n\n git checkout -b <new-branch-name>\n\nHEAD is now at acef5ef... import_srpm\nerror: line 1800: Trigger fired by the same package is already defined in spec file: %post daemon-config-network\n\nerror: query of specfile /tmp/build_package_repo/libvirt/libvirt.spec failed, can't parse\n\nCould not execute srpm: Could not get n-v-r-e from '\n\n'", 'rc': 1, 'invocation': {'module_name': 'shell', 'module_complex_args': {}, 'module_args': u'rm -rf /tmp/build_package_repo && mkdir /tmp/build_package_repo && cd /tmp/build_package_repo && git clone http://copr-dist-git.fedorainfracloud.org/git/jmliger/virt6-upstream/libvirt... && cd libvirt && git checkout acef5efd6153aa8f9ea760f468333e65c9b46a4e && fedpkg-copr --dist el6 srpm'}, 'warnings': ['Consider using file module with state=absent rather than running rm']}}} [2016-01-19 15:16:31,759][ INFO][PID:3241] End Build: BuildJob<id: 154509, owner: jmliger, project: virt6-upstream, git branch: el6, git_hash: acef5efd6153aa8f9ea760f468333e65c9b46a4e, status: 3 >
https://copr.fedoraproject.org/coprs/jmliger/virt6-upstream/builds/
Regards, Jean-Marc LIGER
copr-devel mailing list copr-devel@lists.fedorahosted.org https://lists.fedorahosted.org/admin/lists/copr-devel@lists.fedorahosted.org
It is some problem with your spec file. You can reproduce it by installing fedpkg-copr from our Copr project and git clone http://copr-dist-git.fedorainfracloud.org/git/jmliger/virt6-upstream/libvirt... cd libvirt git checkout acef5efd6153aa8f9ea760f468333e65c9b46a4e fedpkg-copr -vvv --dist el6 srpm
Which will fails on:
rpm --define '_sourcedir /tmp/libvirt' --define '_specdir /tmp/libvirt' --define '_builddir /tmp/libvirt' --define '_srcrpmdir /tmp/libvirt' --define '_rpmdir /tmp/libvirt' --define 'dist .el6' --define 'rhel 6' --eval '%undefine fedora' --define 'el6 1' --eval '%undefine fc23' -q --qf "%{NAME} %{EPOCH} %{VERSION} %{RELEASE}??" --specfile /tmp/libvirt/libvirt.spec
error: line 1800: Trigger fired by the same package is already defined in spec file: %post daemon-config-network error: query of specfile /tmp/libvirt/libvirt.spec failed, can't parse
And your spec file is so complex that I have no idea why it is failing. You may ask on RPM mailing list.
Thanks for your reply, I'm addressing this problem to the libvirt list.
Your feedback was helpfull to resolve this trigger issue : https://copr.fedorainfracloud.org/coprs/jmliger/virt6-upstream/build/167475/
I will submit a patch to the libvirt list.
Regards, Jean-Marc
Dne 11.3.2016 v 14:41 Jean-Marc LIGER napsal(a):
Your feedback was helpfull to resolve this trigger issue : https://copr.fedorainfracloud.org/coprs/jmliger/virt6-upstream/build/167475/
I will submit a patch to the libvirt list.
What was the cause and what was the solution? I'm curious.
Le 11/03/2016 14:59, Miroslav Suchý a écrit :
Dne 11.3.2016 v 14:41 Jean-Marc LIGER napsal(a):
Your feedback was helpfull to resolve this trigger issue : https://copr.fedorainfracloud.org/coprs/jmliger/virt6-upstream/build/167475/
I will submit a patch to the libvirt list.
What was the cause and what was the solution? I'm curious.
The following instructions where sequentialy applies for systems without systemd which cause a trigger issue. %triggerpostun daemon -- libvirt-daemon < 1.2.1 %triggerpostun daemon -- libvirt-daemon < 1.3.0
I inverse the order and put the %triggerpostun daemon -- libvirt-daemon < 1.2.1 in the next test case for non systemd.
diff -uri a/libvirt.spec.in b/libvirt.spec.in --- a/libvirt.spec.in 2016-03-01 04:21:48.000000000 +0100 +++ b/libvirt.spec.in 2016-03-11 14:57:43.347652313 +0100 @@ -1767,16 +1767,6 @@ fi %endif
- %if %{with_systemd} - %else -%triggerpostun daemon -- libvirt-daemon < 1.2.1 -if [ "$1" -ge "1" ]; then - /sbin/service virtlockd reload > /dev/null 2>&1 || : - /sbin/service virtlogd reload > /dev/null 2>&1 || : - /sbin/service libvirtd condrestart > /dev/null 2>&1 -fi - %endif - # In upgrade scenario we must explicitly enable virtlockd/virtlogd # sockets, if libvirtd is already enabled and start them if # libvirtd is running, otherwise you'll get failures to start @@ -1789,6 +1779,12 @@ /bin/systemctl is-active libvirtd.service 1>/dev/null 2>&1 && /bin/systemctl start virtlogd.socket || : %else + %triggerpostun daemon -- libvirt-daemon < 1.2.1 + if [ "$1" -ge "1" ]; then + /sbin/service virtlockd reload > /dev/null 2>&1 || : + /sbin/service virtlogd reload > /dev/null 2>&1 || : + /sbin/service libvirtd condrestart > /dev/null 2>&1 + fi /sbin/chkconfig libvirtd 1>/dev/null 2>&1 && /sbin/chkconfig virtlogd on || : /sbin/service libvirtd status 1>/dev/null 2>&1 &&
Le 11/03/2016 14:59, Miroslav Suchý a écrit :
Dne 11.3.2016 v 14:41 Jean-Marc LIGER napsal(a):
Your feedback was helpfull to resolve this trigger issue : https://copr.fedorainfracloud.org/coprs/jmliger/virt6-upstream/build/167475/
I will submit a patch to the libvirt list.
What was the cause and what was the solution? I'm curious.
The following instructions where sequentialy applied for systems without systemd which was causing a trigger issue. %triggerpostun daemon -- libvirt-daemon < 1.2.1 %triggerpostun daemon -- libvirt-daemon < 1.3.0
I've inversed the order and so moved the %triggerpostun daemon -- libvirt-daemon < 1.2.1 in the next test case for non systemd.
diff -uri a/libvirt.spec.in b/libvirt.spec.in --- a/libvirt.spec.in 2016-03-01 04:21:48.000000000 +0100 +++ b/libvirt.spec.in 2016-03-11 14:57:43.347652313 +0100 @@ -1767,16 +1767,6 @@ fi %endif
- %if %{with_systemd} - %else -%triggerpostun daemon -- libvirt-daemon < 1.2.1 -if [ "$1" -ge "1" ]; then - /sbin/service virtlockd reload > /dev/null 2>&1 || : - /sbin/service virtlogd reload > /dev/null 2>&1 || : - /sbin/service libvirtd condrestart > /dev/null 2>&1 -fi - %endif - # In upgrade scenario we must explicitly enable virtlockd/virtlogd # sockets, if libvirtd is already enabled and start them if # libvirtd is running, otherwise you'll get failures to start @@ -1789,6 +1779,12 @@ /bin/systemctl is-active libvirtd.service 1>/dev/null 2>&1 && /bin/systemctl start virtlogd.socket || : %else + %triggerpostun daemon -- libvirt-daemon < 1.2.1 + if [ "$1" -ge "1" ]; then + /sbin/service virtlockd reload > /dev/null 2>&1 || : + /sbin/service virtlogd reload > /dev/null 2>&1 || : + /sbin/service libvirtd condrestart > /dev/null 2>&1 + fi /sbin/chkconfig libvirtd 1>/dev/null 2>&1 && /sbin/chkconfig virtlogd on || : /sbin/service libvirtd status 1>/dev/null 2>&1 &&
copr-devel@lists.fedorahosted.org