Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 575164 - savedconfig.eclass prints extra slashes
Summary: savedconfig.eclass prints extra slashes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All All
: Normal trivial (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on: 686350
Blocks:
  Show dependency tree
 
Reported: 2016-02-19 16:20 UTC by Michael Palimaka (kensington)
Modified: 2019-08-08 19:52 UTC (History)
0 users

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


Attachments
Patch (savedconfig.eclass.patch,1.34 KB, patch)
2019-05-20 00:45 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Palimaka (kensington) gentoo-dev 2016-02-19 16:20:15 UTC
restore_config prints some extra slashes, for example, in linux-firmware:

>>> Preparing source in /var/tmp/portage/sys-kernel/linux-firmware-20151207/work/linux-firmware-20151207 ...
 * Checking existence of //etc/portage/savedconfig//sys-kernel/linux-firmware-20151207 ...
 * found //etc/portage/savedconfig//sys-kernel/linux-firmware-20151207
 * Building using saved configfile //etc/portage/savedconfig//sys-kernel/linux-firmware-20151207
Comment 1 Arfrever Frehtes Taifersar Arahesis 2019-05-20 00:31:01 UTC
Patch for bug #686350 happens to fix most of these problems.
Example:
 * Checking existence of /etc/portage/savedconfig/x86_64-pc-linux-gnu/sys-kernel/linux-firmware-20190514 ...
 * Checking existence of /etc/portage/savedconfig/sys-kernel/linux-firmware-20190514 ...
 * Checking existence of /etc/portage/savedconfig/x86_64-pc-linux-gnu/sys-kernel/linux-firmware-20190514 ...
 * Checking existence of /etc/portage/savedconfig/sys-kernel/linux-firmware-20190514 ...
 * Checking existence of /etc/portage/savedconfig/x86_64-pc-linux-gnu/sys-kernel/linux-firmware ...
 * Checking existence of /etc/portage/savedconfig/sys-kernel/linux-firmware ...
 * Found /etc/portage/savedconfig/sys-kernel/linux-firmware
 * Building using saved configfile /etc/portage/savedconfig/sys-kernel/linux-firmware


When no file for restoring configuration is found, then output still contains 1 path with double slash:
 * Checking existence of /etc/portage/savedconfig/x86_64-pc-linux-gnu/sys-kernel/linux-firmware-20190514 ...
 * Checking existence of /etc/portage/savedconfig/sys-kernel/linux-firmware-20190514 ...
 * Checking existence of /etc/portage/savedconfig/x86_64-pc-linux-gnu/sys-kernel/linux-firmware-20190514 ...
 * Checking existence of /etc/portage/savedconfig/sys-kernel/linux-firmware-20190514 ...
 * Checking existence of /etc/portage/savedconfig/x86_64-pc-linux-gnu/sys-kernel/linux-firmware ...
 * Checking existence of /etc/portage/savedconfig/sys-kernel/linux-firmware ...
 * No saved config to restore - please remove USE=savedconfig or
 * provide a configuration file in //etc/portage/savedconfig/sys-kernel/linux-firmware
 * Your config file(s) will not be used this time
Comment 2 Arfrever Frehtes Taifersar Arahesis 2019-05-20 00:42:41 UTC
(Patch for bug #686348 fixes first double slash in " * Checking existence of //etc/portage/savedconfig//..." and patch for bug #686350 fixes second double slash in " * Checking existence of //etc/portage/savedconfig//...".)
Comment 3 Arfrever Frehtes Taifersar Arahesis 2019-05-20 00:45:12 UTC
Created attachment 577336 [details, diff]
Patch
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2019-08-08 19:52:32 UTC
Should be fixed now.