Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 370179 - app-office/libreoffice-bin-3.4.0 fails to unpack with USE="offlinehelp" and LINGUAS="de"
Summary: app-office/libreoffice-bin-3.4.0 fails to unpack with USE="offlinehelp" and L...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
: 371847 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-06-05 20:01 UTC by Alexander Straube
Modified: 2011-06-16 17:46 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix of typo in non-english environment (libreofficefix.patch,645 bytes, patch)
2011-06-06 19:48 UTC, Pawel Kraszewski
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Straube 2011-06-05 20:01:28 UTC
Hello,

app-office/libreoffice-3.4.0 fails to unpack with USE="offlinehelp" and LINGUAS="de"

It says "/usr/bin/rpm2tar: Line 156: ./LibO_3.4.0rc2_Linux_x86_helppack-rpm_de/RPMS//libobasis3.4-de-help-3.4.0-12.i586.rpm: No such file or directory"

>>> Failed to emerge app-office/libreoffice-bin-3.4.0, Log file:

>>>  '/var/tmp/portage/app-office/libreoffice-bin-3.4.0/temp/build.log'

 * Messages for package app-office/libreoffice-bin-3.4.0:

 * ERROR: app-office/libreoffice-bin-3.4.0 failed (unpack phase):
 *   failure unpacking ./LibO_3.4.0rc2_Linux_x86_helppack-rpm_de/RPMS//libobasis3.4-de-help-3.4.0-12.i586.rpm
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_unpack
 *   environment, line 2920:  Called rpm_unpack './LibO_3.4.0rc2_Linux_x86_helppack-rpm_de/RPMS//libobasis3.4-de-help-3.4.0-12.i586.rpm'
 *   environment, line 2780:  Called die
 * The specific snippet of code:
 *           rpm2tar -O "${a}" | tar xf - || die "failure unpacking ${a}";
 * 
 * If you need support, post the output of 'emerge --info =app-office/libreoffice-bin-3.4.0',
 * the complete build log and the output of 'emerge -pqv =app-office/libreoffice-bin-3.4.0'.
 * The complete build log is located at '/var/tmp/portage/app-office/libreoffice-bin-3.4.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/libreoffice-bin-3.4.0/temp/environment'.
 * S: '/var/tmp/portage/app-office/libreoffice-bin-3.4.0/work/libreoffice-bin-3.4.0'
 * 
 * The following package has failed to build or install:
 * 
 *  (app-office/libreoffice-bin-3.4.0::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/app-office/libreoffice-bin-3.4.0/temp/build.log'



Reproducible: Always

Steps to Reproduce:
1. USE="offlinehelp" LINGUAS="de" emerge =app-office/libreoffice-bin-3.4.0
Comment 1 onip 2011-06-06 15:51:16 UTC
the same happens with LINGUAS="it"
Comment 2 Pawel Kraszewski 2011-06-06 19:26:39 UTC
ditto with LINGUAS="pl"
Comment 3 Pawel Kraszewski 2011-06-06 19:45:54 UTC
Found to be a tybo in ebuild. Fixable by a following patch, resulting in libreoffice-bin-3.4.0_p1.ebuild :


--- libreoffice-bin-3.4.0.ebuild        2011-06-05 19:47:44.000000000 +0200
+++ libreoffice-bin-3.4.0_p1.ebuild     2011-06-06 21:41:20.564111428 +0200
@@ -8,6 +8,7 @@
 
 IUSE="gnome java offlinehelp"
 
+PV="${PV/_p*}"
 MY_PV="${PV/_/-}"
 MY_PV2="${PV}rc2"
 BVER="3.4.0-12"
@@ -46,7 +47,7 @@
 done
 
 for Y in ${LANGS2} ; do
-       [[ ${Y} != "en" ]] && SRC_URI="${SRC_URI} linguas_${X}? (
+       [[ ${Y} != "en" ]] && SRC_URI="${SRC_URI} linguas_${Y}? (
                amd64? ( offlinehelp? ( "${FILEPATH}"/x86_64/LibO_${PV}_Linux_x86-64_helppack-rpm_${Y/_/-}.tar.gz ) )
                x86? ( offlinehelp? ( "${FILEPATH}"/x86/LibO_${PV}_Linux_x86_helppack-rpm_${Y/_/-}.tar.gz ) ) )"
 done
Comment 4 Pawel Kraszewski 2011-06-06 19:48:55 UTC
Created attachment 276043 [details, diff]
Fix of typo in non-english environment

Patch from libreoffice-bin-3.4.0.ebuild to libreoffice-bin-3.4.0_p1.ebuild

* Enables _p1 suffix processing
* Fixes typo in loop variable
Comment 5 Marco Leogrande 2011-06-11 09:26:47 UTC
I can confirm the bug with LINGUAS="it".
The ebuild above solves the installation issue.
Comment 6 Andreas Proschofsky (RETIRED) gentoo-dev 2011-06-14 18:18:34 UTC
This is fixed in -r1, thanks for reporting and hunting down the stupid oversight!

Closing.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2011-06-16 15:55:18 UTC
*** Bug 371847 has been marked as a duplicate of this bug. ***
Comment 8 Ian Abbott 2011-06-16 17:46:40 UTC
*** Bug 371847 has been marked as a duplicate of this bug. ***