Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

dev-qt/qttranslations fails to emerge

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
14 posts • Page 1 of 1
Author
Message
Sekuhara
n00b
n00b
Posts: 19
Joined: Fri May 21, 2004 4:31 pm
Contact:
Contact Sekuhara
Website

dev-qt/qttranslations fails to emerge

  • Quote

Post by Sekuhara » Wed Jun 10, 2015 12:21 pm

After a resync today, dev-qt/qttranslations-4.8.6-r1 fails to emerge because ... apparently it can't delete a file

At the end of the emerge process I receive:

Code: Select all

...
install -m 644 -p /var/tmp/portage/dev-qt/qttranslations-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6-abi_x86_64.amd64/translations/qvfb_uk.qm /var/tmp/portage/dev-qt/qttranslations-4.8.6-r1/image//usr/share/qt4/translations/
install -m 644 -p /var/tmp/portage/dev-qt/qttranslations-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6-abi_x86_64.amd64/translations/qvfb_zh_CN.qm /var/tmp/portage/dev-qt/qttranslations-4.8.6-r1/image//usr/share/qt4/translations/
install -m 644 -p /var/tmp/portage/dev-qt/qttranslations-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6-abi_x86_64.amd64/translations/qvfb_zh_TW.qm /var/tmp/portage/dev-qt/qttranslations-4.8.6-r1/image//usr/share/qt4/translations/
rmdir: failed to remove ‘/var/tmp/portage/dev-qt/qttranslations-4.8.6-r1/image///usr/lib64/qt4/pkgconfig’: No such file or directory
 [31;01m*[0m ERROR: dev-qt/qttranslations-4.8.6-r1::gentoo failed (install phase):
 [31;01m*[0m   (no error message)
 [31;01m*[0m 
 [31;01m*[0m Call stack:
 [31;01m*[0m     ebuild.sh, line   93:  Called src_install
 [31;01m*[0m   environment, line 3216:  Called multilib-minimal_src_install
 [31;01m*[0m   environment, line 1992:  Called multilib_foreach_abi 'multilib-minimal_abi_src_install'
 [31;01m*[0m   environment, line 2179:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
 [31;01m*[0m   environment, line 1880:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
 [31;01m*[0m   environment, line 1878:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_install'
 [31;01m*[0m   environment, line  406:  Called multilib-minimal_abi_src_install
 [31;01m*[0m   environment, line 1982:  Called multilib_src_install
 [31;01m*[0m   environment, line 2406:  Called qt4_multilib_src_install
 [31;01m*[0m   environment, line 2947:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m       rmdir "${D}/${QT4_LIBDIR}"/pkgconfig || die;
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of `emerge --info '=dev-qt/qttranslations-4.8.6-r1::gentoo'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=dev-qt/qttranslations-4.8.6-r1::gentoo'`.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/dev-qt/qttranslations-4.8.6-r1/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/dev-qt/qttranslations-4.8.6-r1/temp/environment'.
 [31;01m*[0m Working directory: '/var/tmp/portage/dev-qt/qttranslations-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6-abi_x86_64.amd64'
 [31;01m*[0m S: '/var/tmp/portage/dev-qt/qttranslations-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6'
Full build.log : https://gist.github.com/anonymous/5fa32def466b66783ae4
emerge --info : https://gist.github.com/anonymous/f3d0742e1ded09a2ddc7

Is anyone experiencing a similar issue?
Top
Sekuhara
n00b
n00b
Posts: 19
Joined: Fri May 21, 2004 4:31 pm
Contact:
Contact Sekuhara
Website

  • Quote

Post by Sekuhara » Wed Jun 10, 2015 1:40 pm

Q&D workaround - I edited /usr/portage/eclass/qt4-build-multilib.eclass , line 473 and commented out "|| die", so at least the installation could continue.
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Wed Jun 10, 2015 1:49 pm

Please report as a bug!
Top
Sekuhara
n00b
n00b
Posts: 19
Joined: Fri May 21, 2004 4:31 pm
Contact:
Contact Sekuhara
Website

  • Quote

Post by Sekuhara » Wed Jun 10, 2015 2:12 pm

genstorm wrote:Please report as a bug!
Done: https://bugs.gentoo.org/show_bug.cgi?id=551676
Top
shorty7
n00b
n00b
Posts: 4
Joined: Fri Jul 29, 2005 11:59 pm
Contact:
Contact shorty7
Website

  • Quote

Post by shorty7 » Thu Jun 11, 2015 8:15 am

Sekuhara wrote:Q&D workaround - I edited /usr/portage/eclass/qt4-build-multilib.eclass , line 473 and commented out "|| die", so at least the installation could continue.
Thanks for the quick fix!
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Thu Jun 11, 2015 9:06 am

shorty7 wrote:
Sekuhara wrote:Q&D workaround - I edited /usr/portage/eclass/qt4-build-multilib.eclass , line 473 and commented out "|| die", so at least the installation could continue.
Thanks for the quick fix!
:roll: It's already fixed in the tree - it was was minor thinko in the eclass.
Top
MafiaJoe
n00b
n00b
Posts: 3
Joined: Sun Dec 07, 2014 8:01 am

  • Quote

Post by MafiaJoe » Thu Jun 11, 2015 9:43 am

Sekuhara wrote:Q&D workaround - I edited /usr/portage/eclass/qt4-build-multilib.eclass , line 473 and commented out "|| die", so at least the installation could continue.
Thank you for this, this fixed it for me as well!

I would like to learn how you figured out the solution to this.

What was the process in finding, hinting out the location and line leading up comment out "|| die" ? Thank you :D
Top
Sekuhara
n00b
n00b
Posts: 19
Joined: Fri May 21, 2004 4:31 pm
Contact:
Contact Sekuhara
Website

  • Quote

Post by Sekuhara » Thu Jun 11, 2015 3:10 pm

MafiaJoe wrote:
Sekuhara wrote:Q&D workaround - I edited /usr/portage/eclass/qt4-build-multilib.eclass , line 473 and commented out "|| die", so at least the installation could continue.
Thank you for this, this fixed it for me as well!

I would like to learn how you figured out the solution to this.

What was the process in finding, hinting out the location and line leading up comment out "|| die" ? Thank you :D
I simply searched for the exact string reported in the error message:

Code: Select all

The specific snippet of code: 
      rmdir "${D}/${QT4_LIBDIR}"/pkgconfig

=>

find /usr/portage -exec grep -nH 'rmdir "${D}/${QT4_LIBDIR}"/pkgconfig' {} \;

Last edited by Sekuhara on Fri Jun 12, 2015 9:28 am, edited 1 time in total.
Top
MafiaJoe
n00b
n00b
Posts: 3
Joined: Sun Dec 07, 2014 8:01 am

  • Quote

Post by MafiaJoe » Thu Jun 11, 2015 6:18 pm

I typed in exactly as you shown me, command didn't execute. How did you get it to work?

Code: Select all

find /usr/portage -exec grep -nH 'rmdir "${D}/${QT4_LIBDIR}"/pkgconfig' 
find: missing argument to `-exec'
Top
MarioCorleone
Guru
Guru
User avatar
Posts: 336
Joined: Sun Jun 29, 2003 7:30 pm

  • Quote

Post by MarioCorleone » Thu Jun 11, 2015 8:47 pm

MafiaJoe wrote:I typed in exactly as you shown me, command didn't execute. How did you get it to work?

Code: Select all

find /usr/portage -exec grep -nH 'rmdir "${D}/${QT4_LIBDIR}"/pkgconfig' 
find: missing argument to `-exec'

That is not how he searched for it. open that file in a text editor, search for that line with in the editor, then add the #
-Mario
Top
MafiaJoe
n00b
n00b
Posts: 3
Joined: Sun Dec 07, 2014 8:01 am

  • Quote

Post by MafiaJoe » Thu Jun 11, 2015 9:18 pm

mario18 wrote:
MafiaJoe wrote:I typed in exactly as you shown me, command didn't execute. How did you get it to work?

Code: Select all

find /usr/portage -exec grep -nH 'rmdir "${D}/${QT4_LIBDIR}"/pkgconfig' 
find: missing argument to `-exec'

That is not how he searched for it. open that file in a text editor, search for that line with in the editor, then add the #
What I am asking, is how it was figured out. I want to learn how, what the process was to fixing this? Not just the answer. I already fixed it.

How did OP know to look in that path? which was /usr/portage/eclass/qt4-build-multilib.eclass ?
Top
Sekuhara
n00b
n00b
Posts: 19
Joined: Fri May 21, 2004 4:31 pm
Contact:
Contact Sekuhara
Website

  • Quote

Post by Sekuhara » Fri Jun 12, 2015 9:28 am

MafiaJoe wrote:I typed in exactly as you shown me, command didn't execute. How did you get it to work?

Code: Select all

find /usr/portage -exec grep -nH 'rmdir "${D}/${QT4_LIBDIR}"/pkgconfig' 
find: missing argument to `-exec'
oops sorry, forgot to add {} \; at the end

it has to be

Code: Select all

find /usr/portage -exec grep -nH 'rmdir "${D}/${QT4_LIBDIR}"/pkgconfig' {} \;
This means - search files in /usr/portage and for each of them, search for the string. -n option of grep prints the line numbers, -H prints filenames.
Top
bothie
n00b
n00b
Posts: 5
Joined: Mon Apr 05, 2010 1:34 am

  • Quote

Post by bothie » Wed Jun 17, 2015 12:41 pm

Sekuhara wrote:oops sorry, forgot to add {} \; at the end
Or better yet, add "{} +" instead like so:

Code: Select all

find /usr/portage -exec grep -nH 'rmdir "${D}/${QT4_LIBDIR}"/pkgconfig' {} +
Difference is: \; means, grep is executed for every single file. with +, find collects some number of filenames and then grep is executed for all of them only once.

(whole portage tree in cache: find ... + -> 1.6s real time, find ... \; -> 1 minute + 50s real time.)

Regards, Bodo
Top
toralf
Developer
Developer
User avatar
Posts: 3944
Joined: Sun Feb 01, 2004 2:58 pm
Location: Hamburg
Contact:
Contact toralf
Website

  • Quote

Post by toralf » Wed Jun 17, 2015 9:03 pm

Why not telling find to just look for ebuilds ? :

Code: Select all

 find /usr/portage -type f -name '*.ebuild'  ...
Top
Post Reply

14 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic