Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 408897 - app-portage/layman-9999: update_news() failed running portage news reporter function
Summary: app-portage/layman-9999: update_news() failed running portage news reporter f...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 375789
  Show dependency tree
 
Reported: 2012-03-19 17:31 UTC by Sergei Trofimovich (RETIRED)
Modified: 2012-11-19 01:50 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2012-03-19 17:31:58 UTC
Syncing (or fetching) haskell overlay with live layman fails:

$ layman -s haskell

 * Succeeded:
 * ------
 * Successfully synchronized overlay "haskell".
 * 

 * CLI: Errors occured processing action sync
 * update_news() failed running portage news reporter function
 * Error was; Invalid repoID: haskell

$ git describe --tags
v1.4.2-208-g216ffc0

Looks like ti caused by commit (implements bug #388233):
http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commitdiff;h=ad38a35a994b32ea65df5395d78a9ffabe9773e4

$ cat /var/lib/layman/haskell/profiles/repo_name 
gentoo-haskell

Does it complain about haskell/gentoo-haskell mismatch?

Thanks!
Comment 1 Brian Dolbec (RETIRED) gentoo-dev 2012-03-20 07:50:55 UTC
I can duplicate your result with the haskell overlay.

I believe you are correct about the mismatch.  Layman was passing portage the "haskell' name which is the name it is given.  But the real repo_name is "gentoo-haskell".  normally layman does not care about what the repo_name is or even if it is defined.

It looks like in this instance it will need to check repo_name and use it to pass into portage/pkgcore to process any news items pending.
Comment 2 Brian Dolbec (RETIRED) gentoo-dev 2012-03-26 03:53:47 UTC
OK, fixed in git commit 7a74871ab63f3b36d7d2377a5af5b0cfc1a2ee29

If portage is set for the news reporter function. It will now get the correct repo_names from portage for the overlay paths.  Then call the portage news function with those names.

I'll leave this bug open for now till an rc4 release is out.
Comment 3 Brian Dolbec (RETIRED) gentoo-dev 2012-10-07 23:59:57 UTC
I found one additional error that occurred when it did not get a valid repo name form portage.  It will now skip the repo if it doesn't get a repo name back from portage.

commit: http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=2bc0b7478a14a9bf95a2e3728ed5a5f8d755e9b1
Comment 4 Brian Dolbec (RETIRED) gentoo-dev 2012-11-19 01:50:33 UTC
released in layman-2.0.0_rc4 and rc5