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

Bug 377863

Summary: app-portage/gentoolkit: euse works improperly on g/fbsd
Product: Portage Development Reporter: Dmitri Bogomolov <4glitch>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---

Description Dmitri Bogomolov 2011-08-05 09:28:40 UTC
euse prints error messages in place of local use flags information.

Reproducible: Always

Steps to Reproduce:
1.euse -i i18n

Actual Results:  
global use flags (searching: i18n)
************************************************************
no matching entries found

local use flags (searching: i18n)
************************************************************
sed: 1: "/^#.*$/{d}
": extra characters at the end of d command
sed: 1: "/^#.*$/ {d}
": extra characters at the end of d command
[-      ] i18n
fold: illegal option -- -
usage: fold [-bs] [-w width] [file ...]
sort: invalid option -- V
Try `sort --help' for more information.

[-      ] i18n
fold: illegal option -- -
usage: fold [-bs] [-w width] [file ...]
sort: invalid option -- V
Try `sort --help' for more information.

Expected Results:  
global use flags (searching: i18n)
************************************************************
no matching entries found

local use flags (searching: i18n)
************************************************************
[-      ] i18n
    dev-python/jinja: Enables support for i18n with dev-python/Babel
        [-  ] 2.5.5 [gentoo]

[-      ] i18n
    www-apps/trac: Enable support for i18n with dev-python/Babel
        [-  ] 0.12.2 [gentoo]

I have app-portage/gentoolkit-0.3.0.4-r1 and g/fbsd-8.2.
Comment 1 Dmitri Bogomolov 2011-08-05 09:48:10 UTC
# grep fold /usr/bin/euse   
                                        | fold --width=$((${COLUMNS:-80}-10)) -s | sed -e "s/^/    /g"

`man fold' says no --width on FreeBSD fold. I suggest replace --width= with -w

# grep sort /usr/bin/euse
        done | cut -d " "  -f1 | sort --field=":" --key=1,1 --unique
                        | sort -t \; -k2,2 -V); do

`man sort' says FreeBSD sort have no -V option.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-10-12 12:17:35 UTC
G/FBSD is dead.