Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 670006

Summary: crossdev/avr : failt at emerging anything
Product: Gentoo Linux Reporter: Thomas Capricelli <orzel>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal CC: slyfox
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: /var/log/portage/cross-avr-info.log

Description Thomas Capricelli 2018-10-30 23:35:34 UTC
Created attachment 553724 [details]
/var/log/portage/cross-avr-info.log

using latest portage (2.3.51) and crossdev (20180918) on my ~amd64 box, i keep on having this kind of error

cross-avr-binutils.log.xz:
Calculating dependencies   * Missing digest for '/usr/portage-overlay/cross-avr/avr-libc/avr-libc-2.0.0.ebuild'
. * Missing digest for '/usr/portage-overlay/cross-avr/binutils/binutils-9999.ebuild'
 * Missing digest for '/usr/portage-overlay/cross-avr/binutils/binutils-2.31.1-r1.ebuild'
 * Missing digest for '/usr/portage-overlay/cross-avr/binutils/binutils-2.31.1.ebuild'
 * Missing digest for '/usr/portage-overlay/cross-avr/binutils/binutils-2.30-r4.ebuild'
 * Missing digest for '/usr/portage-overlay/cross-avr/binutils/binutils-2.30-r3.ebuild'
 * Missing digest for '/usr/portage-overlay/cross-avr/binutils/binutils-2.30-r2.ebuild'


For some reason, it sometimes even fails silently, saying
------------------------------------------------------------------------
                                                                                                                                                                             
 * Log: /var/log/portage/cross-avr-binutils.log
 * Emerging cross-binutils ...                                                                                                                                         [ ok ]
 * Log: /var/log/portage/cross-avr-gcc-stage1.log
 * Emerging cross-gcc-stage1 ...

------------------------------------------------------------------------
but nothing was emerged for cross-avr-binutils, and cross-avr-binutils.log indeed is filled with those same "missing digest" errors.
Comment 1 Thomas Capricelli 2018-10-30 23:36:29 UTC
I tried to remove the cross-avr/ directory created by crossutils and start again, but it fails as well.


berlioz ~ # ll /usr/portage-overlay/cross-avr
totale 0
lrwxrwxrwx 1 root root 26 31 ott 00.27 gdb -> /usr/portage/sys-devel/gdb
lrwxrwxrwx 1 root root 26 31 ott 00.27 gcc -> /usr/portage/sys-devel/gcc
lrwxrwxrwx 1 root root 31 31 ott 00.27 binutils -> /usr/portage/sys-devel/binutils
lrwxrwxrwx 1 root root 34 31 ott 00.27 avr-libc -> /usr/portage/dev-embedded/avr-libc
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2018-10-30 23:41:09 UTC
What does /usr/portage-overlay/layout/metadata/layout.conf contain? Does it match ::gentoo setup?
Comment 3 Thomas Capricelli 2018-10-31 00:12:42 UTC
I have no "/usr/portage-overlay/layout" directory. The overlay otherwise works pretty well. Did i miss something ?
Comment 4 Thomas Capricelli 2018-10-31 00:14:33 UTC
I have only this:

orzel@berlioz /usr/portage-overlay% cat metadata/layout.conf 
masters = gentoo
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2018-10-31 07:19:38 UTC
(In reply to Thomas Capricelli from comment #4)
> I have only this:
> 
> orzel@berlioz /usr/portage-overlay% cat metadata/layout.conf 
> masters = gentoo

I guess your main ::gentoo tree has thin manifests (if you are using git checkout). thin manfests don't include 'EBUILD' entries.

As crossdev symlinks ebuild directories from main tree you need to keep overlay configuration in sync with ::gentoo.

You will need to add
    thin-manifests = true
to metadata/layout.conf.

Or you can delete 'metadata/layout.conf' and let crossdev to regenerate and maintain the file.
Comment 6 Thomas Capricelli 2018-10-31 23:15:00 UTC
Indeed, you were right, it works now.

Sorry for the noise, i didn't know about those tree subtleties.

Thanks !
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2018-11-05 23:30:56 UTC
Ah, no problem. We'll add something to crossdev itself to detect this kind of inconsistency and report it explicitly.