[paludis-dev] [Paludis] #1277: Hashes (#) in package.use.mask mid line

Paludis trac-paludis at exherbo.org
Fri Jun 7 15:08:59 UTC 2013


#1277: Hashes (#) in package.use.mask mid line
-----------------------------+--------------------------
    Reporter:  Vality        |       Type:  defect
      Status:  new           |   Priority:  MajorRelease
   Milestone:  Code cleanup  |  Component:  clients/cave
     Version:  1.4.0         |   Keywords:
  Blocked By:                |   Blocking:
Distribution:  Gentoo        |
-----------------------------+--------------------------
 This may  only apply when a configuration has been imported from portage
 however cave resolve operations on my system began to throw up the
 following error:

 {{{
 Resolving: 1 stepscave at 1370616282: [WARNING e.profile.failure] In thread
 ID '7002':
   ... In program cave resolve app-emulation/emul-linux-x86-gtklibs:
   ... When adding targets from commandline:
   ... When adding target 'app-emulation/emul-linux-x86-gtklibs':
   ... When finding slots for 'app-emulation/emul-linux-x86-gtklibs':
   ... When determining resolvents for 'app-emulation/emul-
 linux-x86-gtklibs':
   ... When finding best version of each package from packages matching
 app-emulation/emul-linux-x86-gtklibs (ignoring additional requirements)
 with filter all matches filtered through supports action install filtered
 through not masked filtered through all matches:
   ... When generating metadata for ID 'app-emulation/emul-
 linux-x86-gtklibs-20121202::gentoo':
   ... When loading profiles
 '/usr/portage/profiles/default/linux/amd64/13.0/desktop/kde' for
 repository 'gentoo':
   ... When using directory
 '/usr/portage/profiles/default/linux/amd64/13.0/desktop/kde':
   ... When adding profile directory
 '/usr/portage/profiles/default/linux/amd64/13.0/desktop/kde:
   ... When handling parent file for profile directory
 '/usr/portage/profiles/default/linux/amd64/13.0/desktop/kde:
   ... When adding profile directory
 '/usr/portage/profiles/default/linux/amd64/13.0/desktop:
   ... When handling parent file for profile directory
 '/usr/portage/profiles/default/linux/amd64/13.0/desktop:
   ... When adding profile directory
 '/usr/portage/profiles/default/linux/amd64/13.0:
   ... When handling parent file for profile directory
 '/usr/portage/profiles/default/linux/amd64/13.0:
   ... When adding profile directory
 '/usr/portage/profiles/default/linux/amd64:
   ... When handling parent file for profile directory
 '/usr/portage/profiles/default/linux/amd64:
   ... When adding profile directory '/usr/portage/profiles/base:
   ... When loading specised use file
 '/usr/portage/profiles/base/package.use.mask:
   ... Ignoring token '#' due to exception 'Name '#' is not a valid choice
 name with prefix' (paludis::ChoiceNameWithPrefixError)
 cave at 1370616282: [WARNING e.profile.failure] (same context) Ignoring token
 '#' due to exception 'Name '#' is not a valid choice name with prefix'
 (paludis::ChoiceNameWithPrefixError)
 cave at 1370616282: [WARNING e.profile.failure] (same context) Ignoring token
 '#' due to exception 'Name '#' is not a valid choice name with prefix'
 (paludis::ChoiceNameWithPrefixError)
 cave at 1370616282: [WARNING e.profile.failure] (same context) Ignoring token
 '#' due to exception 'Name '#' is not a valid choice name with prefix'
 (paludis::ChoiceNameWithPrefixError)
 }}}

 (This particular example was when trying to resolve app-emulation/emul-
 linux-x86-gtklibs but a similar error would occur with any resolve
 operation. The resolve will still work but a lot of this output would be
 added, it also makes me think there is a fundamental error with the parser
 for use mask files which could cause other issues)

 This error only occurred if the file
 /usr/portage/profiles/base/package.use.mask or whatever is configured to
 be the use mask file contains hashes (#) mid line such as

 {{{
 >=dev-db/mysql-cluster-5.5 pbxt # Overlay
 }}}

 This should be valid syntax I think regardless of if the hash is at the
 line start or not, though removing the mid line comments does fix this as
 a work around such as:

 {{{
 >=dev-db/mysql-cluster-5.5 pbxt
 }}}

 Or:


 {{{
 # Overlay
 >=dev-db/mysql-cluster-5.5 pbxt
 }}}

-- 
Ticket URL: <http://paludis.exherbo.org/trac/ticket/1277>
Paludis <http://paludis.exherbo.org/>
Paludis, the Other Package Mangler


More information about the paludis-dev mailing list