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

Bug 577372

Summary: GLEP 42 News-Item-Format 2.0 needs to be implemented
Product: Portage Development Reporter: Ulrich Müller <ulm>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: floppym
Priority: Normal Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=581096
https://bugs.gentoo.org/show_bug.cgi?id=658272
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 290038, 604854    

Description Ulrich Müller gentoo-dev 2016-03-14 11:23:56 UTC
The GLEP 42 update for News-Item-Format 2.0 has been accepted by the council, see bug 568068. The following features need to be implemented in Portage:

- News-Item-Format: Accept 2.* (in addition to current 1.*)
- Content-Type: Don't require this header in format 2.*
- Display-If-Installed: Allow EAPI 5 dependency specifications in format 2.*
- Display-If-Profile: Terminal "/*" operator is a wildcard in format 2.*
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-04-25 09:55:22 UTC
> - Content-Type: Don't require this header in format 2.*

If I read GLEP 42, in format 2.0 this is not only no longer required, but even no longer allowed.
Comment 2 Ulrich Müller gentoo-dev 2016-04-25 10:15:01 UTC
(In reply to Chí-Thanh Christopher Nguyễn from comment #1)
> > - Content-Type: Don't require this header in format 2.*
> 
> If I read GLEP 42, in format 2.0 this is not only no longer required, but
> even no longer allowed.

Yes and no, since Portage must ignore any unrecognised header (like Content-Type in format 2.0):

"[...] tools handling these news items must ignore any unrecognised header."
https://wiki.gentoo.org/wiki/GLEP:42#News_Item_Files
Comment 3 Mike Gilbert gentoo-dev 2016-09-02 20:53:15 UTC
It's kind of a moot point; the portage code never checked Content-Type in the first place.
Comment 5 Zac Medico gentoo-dev 2017-02-10 18:46:58 UTC
Fixed in portage-2.3.3.