Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 377863 - app-portage/gentoolkit: euse works improperly on g/fbsd
Summary: app-portage/gentoolkit: euse works improperly on g/fbsd
Status: RESOLVED OBSOLETE
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-05 09:28 UTC by Dmitri Bogomolov
Modified: 2019-10-12 12:17 UTC (History)
0 users

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 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.