[libvirt] errors building rpm

I keep getting the following error when trying to build via a 'sudo make rpm' on the tip of the tree + /usr/lib/rpm/find-lang.sh /var/tmp/libvirt-0.4.6-1.fc9-root libvirt No translations found for libvirt in /var/tmp/libvirt-0.4.6-1.fc9-root error: Bad exit status from /var/tmp/rpm-tmp.82848 (%install) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.82848 (%install) make: *** [rpm] Error 1 This looks like it came in with one of Jim Meyering's latest checkins. I'm wondering if I'm doing something wrong - or if I'm missing a build dependency that I did not need previously? Ben Guthro

On Tue, Oct 21, 2008 at 04:39:36PM -0400, Ben Guthro wrote:
I keep getting the following error when trying to build via a 'sudo make rpm' on the tip of the tree
+ /usr/lib/rpm/find-lang.sh /var/tmp/libvirt-0.4.6-1.fc9-root libvirt No translations found for libvirt in /var/tmp/libvirt-0.4.6-1.fc9-root error: Bad exit status from /var/tmp/rpm-tmp.82848 (%install)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.82848 (%install) make: *** [rpm] Error 1
This looks like it came in with one of Jim Meyering's latest checkins.
Looks like it probably failed to include any of the .po files. I see Jim's change was essentially ALL_LINGUAS=`{cd "po" > /dev/null && ls *.po} | sed 's+\.po$++'` to ALL_LINGUAS=`{cd "$srcdir/po" > /dev/null && ls *.po} | sed 's+\.po$++'` So my expectation is that '$srcdir' is not defined, and thus its trying to use '/po' to find po files. Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

Daniel P. Berrange wrote:
On Tue, Oct 21, 2008 at 04:39:36PM -0400, Ben Guthro wrote:
I keep getting the following error when trying to build via a 'sudo make rpm' on the tip of the tree
+ /usr/lib/rpm/find-lang.sh /var/tmp/libvirt-0.4.6-1.fc9-root libvirt No translations found for libvirt in /var/tmp/libvirt-0.4.6-1.fc9-root error: Bad exit status from /var/tmp/rpm-tmp.82848 (%install)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.82848 (%install) make: *** [rpm] Error 1
This looks like it came in with one of Jim Meyering's latest checkins.
Looks like it probably failed to include any of the .po files. I see Jim's change was essentially
ALL_LINGUAS=`{cd "po" > /dev/null && ls *.po} | sed 's+\.po$++'`
to
ALL_LINGUAS=`{cd "$srcdir/po" > /dev/null && ls *.po} | sed 's+\.po$++'`
So my expectation is that '$srcdir' is not defined, and thus its trying to use '/po' to find po files.
Daniel
I hit this last night. Attached patch fixed it for me, not sure if it breaks anything in subtle ways though. The actual error it's throwing is something like "'{cd' command not found" Thanks, Cole

This looks like it fixed the problem for me, as well Thanks! +1 Cole Robinson wrote on 10/22/2008 09:31 AM:
Daniel P. Berrange wrote:
On Tue, Oct 21, 2008 at 04:39:36PM -0400, Ben Guthro wrote:
I keep getting the following error when trying to build via a 'sudo make rpm' on the tip of the tree
+ /usr/lib/rpm/find-lang.sh /var/tmp/libvirt-0.4.6-1.fc9-root libvirt No translations found for libvirt in /var/tmp/libvirt-0.4.6-1.fc9-root error: Bad exit status from /var/tmp/rpm-tmp.82848 (%install)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.82848 (%install) make: *** [rpm] Error 1
This looks like it came in with one of Jim Meyering's latest checkins. Looks like it probably failed to include any of the .po files. I see Jim's change was essentially
ALL_LINGUAS=`{cd "po" > /dev/null && ls *.po} | sed 's+\.po$++'`
to
ALL_LINGUAS=`{cd "$srcdir/po" > /dev/null && ls *.po} | sed 's+\.po$++'`
So my expectation is that '$srcdir' is not defined, and thus its trying to use '/po' to find po files.
Daniel
I hit this last night. Attached patch fixed it for me, not sure if it breaks anything in subtle ways though. The actual error it's throwing is something like "'{cd' command not found"
Thanks, Cole

On Wed, Oct 22, 2008 at 09:31:58AM -0400, Cole Robinson wrote:
Daniel P. Berrange wrote:
On Tue, Oct 21, 2008 at 04:39:36PM -0400, Ben Guthro wrote:
I keep getting the following error when trying to build via a 'sudo make rpm' on the tip of the tree
+ /usr/lib/rpm/find-lang.sh /var/tmp/libvirt-0.4.6-1.fc9-root libvirt No translations found for libvirt in /var/tmp/libvirt-0.4.6-1.fc9-root error: Bad exit status from /var/tmp/rpm-tmp.82848 (%install)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.82848 (%install) make: *** [rpm] Error 1
This looks like it came in with one of Jim Meyering's latest checkins.
Looks like it probably failed to include any of the .po files. I see Jim's change was essentially
ALL_LINGUAS=`{cd "po" > /dev/null && ls *.po} | sed 's+\.po$++'`
to
ALL_LINGUAS=`{cd "$srcdir/po" > /dev/null && ls *.po} | sed 's+\.po$++'`
So my expectation is that '$srcdir' is not defined, and thus its trying to use '/po' to find po files.
Daniel
I hit this last night. Attached patch fixed it for me, not sure if it breaks anything in subtle ways though. The actual error it's throwing is something like "'{cd' command not found"
Fixes it for me, +1 thanks ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

Cole Robinson <crobinso@redhat.com> wrote:
Daniel P. Berrange wrote:
On Tue, Oct 21, 2008 at 04:39:36PM -0400, Ben Guthro wrote:
I keep getting the following error when trying to build via a 'sudo make rpm' on the tip of the tree
+ /usr/lib/rpm/find-lang.sh /var/tmp/libvirt-0.4.6-1.fc9-root libvirt No translations found for libvirt in /var/tmp/libvirt-0.4.6-1.fc9-root error: Bad exit status from /var/tmp/rpm-tmp.82848 (%install)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.82848 (%install) make: *** [rpm] Error 1
This looks like it came in with one of Jim Meyering's latest checkins.
Looks like it probably failed to include any of the .po files. I see Jim's change was essentially
ALL_LINGUAS=`{cd "po" > /dev/null && ls *.po} | sed 's+\.po$++'`
to
ALL_LINGUAS=`{cd "$srcdir/po" > /dev/null && ls *.po} | sed 's+\.po$++'`
So my expectation is that '$srcdir' is not defined, and thus its trying to use '/po' to find po files.
Hi Cole, Actually I changed () to {}, too, and forgot to add the pesky ";" before the closing "}". I would have noticed sooner, but networking on the box that normally builds libvirt is hosed, and I haven't juggled things to go fix it yet. So, one fix would be to add the semicolon, but your change of removing the {} altogether is even better. Thanks for fixing that! ACK!
I hit this last night. Attached patch fixed it for me, not sure if it breaks anything in subtle ways though. The actual error it's throwing is something like "'{cd' command not found"
Thanks, Cole configure.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/configure.in b/configure.in index 66d271a..d2af4de 100644 --- a/configure.in +++ b/configure.in @@ -1011,7 +1011,7 @@ AM_CONDITIONAL([WITH_LIBVIRTD],[test "x$with_libvirtd" = "xyes"]) dnl Check for gettext AM_GNU_GETTEXT_VERSION([0.14.1]) AM_GNU_GETTEXT([external]) -ALL_LINGUAS=`{cd "$srcdir/po" > /dev/null && ls *.po} | sed 's+\.po$++'` +ALL_LINGUAS=`cd "$srcdir/po" > /dev/null && ls *.po | sed 's+\.po$++'`

Jim Meyering wrote:
Cole Robinson <crobinso@redhat.com> wrote:
Daniel P. Berrange wrote:
On Tue, Oct 21, 2008 at 04:39:36PM -0400, Ben Guthro wrote:
I keep getting the following error when trying to build via a 'sudo make rpm' on the tip of the tree
+ /usr/lib/rpm/find-lang.sh /var/tmp/libvirt-0.4.6-1.fc9-root libvirt No translations found for libvirt in /var/tmp/libvirt-0.4.6-1.fc9-root error: Bad exit status from /var/tmp/rpm-tmp.82848 (%install)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.82848 (%install) make: *** [rpm] Error 1
This looks like it came in with one of Jim Meyering's latest checkins. Looks like it probably failed to include any of the .po files. I see Jim's change was essentially
ALL_LINGUAS=`{cd "po" > /dev/null && ls *.po} | sed 's+\.po$++'`
to
ALL_LINGUAS=`{cd "$srcdir/po" > /dev/null && ls *.po} | sed 's+\.po$++'`
So my expectation is that '$srcdir' is not defined, and thus its trying to use '/po' to find po files.
Hi Cole,
Actually I changed () to {}, too, and forgot to add the pesky ";" before the closing "}". I would have noticed sooner, but networking on the box that normally builds libvirt is hosed, and I haven't juggled things to go fix it yet.
So, one fix would be to add the semicolon, but your change of removing the {} altogether is even better.
Thanks for fixing that!
ACK!
Thanks, pushed now. - Cole
participants (5)
-
Ben Guthro
-
Cole Robinson
-
Daniel P. Berrange
-
Daniel Veillard
-
Jim Meyering