Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
tmux + uclibc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Astronome
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2016
Posts: 148

PostPosted: Thu Jan 26, 2017 6:53 am    Post subject: tmux + uclibc Reply with quote

I'm not sure if this is a bug or where this belongs. On amd64 uClibc hardened, I emerged tmux but it always throws this error at run time:

Code:
tmux: need UTF-8 locale (LC_CTYPE) but have ASCII


I don't think uClibc has locale support. Does that mean I can't use tmux?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Thu Jan 26, 2017 3:49 pm    Post subject: Reply with quote

Astronome ...

sounds as though your uclibc-ng (or uclibc) is built without USE="iconv", that would provide locale support.

best ... khay
Back to top
View user's profile Send private message
Astronome
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2016
Posts: 148

PostPosted: Thu Jan 26, 2017 11:30 pm    Post subject: Reply with quote

khayyam wrote:
Astronome ...

sounds as though your uclibc-ng (or uclibc) is built without USE="iconv", that would provide locale support.

best ... khay


That explains a lot. However when I try to add `sys-libs/uclibc-ng iconv` to my package.use and run `emerge -uDU @world` it says there's nothing to build. Do I have to do something special?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Thu Jan 26, 2017 11:42 pm    Post subject: Reply with quote

Astronome wrote:
That explains a lot. However when I try to add `sys-libs/uclibc-ng iconv` to my package.use and run `emerge -uDU @world` it says there's nothing to build. Do I have to do something special?

Astronome ... yes, you would need to add '--changed-use'.

best ... khay
Back to top
View user's profile Send private message
Astronome
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2016
Posts: 148

PostPosted: Fri Jan 27, 2017 12:14 am    Post subject: Reply with quote

khayyam wrote:
Astronome wrote:
That explains a lot. However when I try to add `sys-libs/uclibc-ng iconv` to my package.use and run `emerge -uDU @world` it says there's nothing to build. Do I have to do something special?

Astronome ... yes, you would need to add '--changed-use'.

best ... khay


-U is the short form of --changed-use. I also tried -N (--newuse).
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Fri Jan 27, 2017 12:18 am    Post subject: Reply with quote

Astronome wrote:
khayyam wrote:
Astronome wrote:
That explains a lot. However when I try to add `sys-libs/uclibc-ng iconv` to my package.use and run `emerge -uDU @world` it says there's nothing to build. Do I have to do something special?

Astronome ... yes, you would need to add '--changed-use'.

-U is the short form of --changed-use. I also tried -N (--newuse).

Astronome ... ahh, yes. Well, you have '-u,--update' and there is no 'update', remove that from the options.

best ... khay
Back to top
View user's profile Send private message
Astronome
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2016
Posts: 148

PostPosted: Fri Jan 27, 2017 2:19 am    Post subject: Reply with quote

khayyam wrote:

Astronome ... ahh, yes. Well, you have '-u,--update' and there is no 'update', remove that from the options.

best ... khay


Code:

$ cat /etc/portage/package.use
app-admin/sudo -sendmail
app-admin/sysklogd logrotate
sys-libs/uclibc-ng iconv
x11-terms/st savedconfig
x11-wm/dwm savedconfig

# system profile defaults
sys-apps/busybox -* savedconfig
sys-libs/uclibc-ng -* savedconfig

# workaround for bug 557122
dev-vcs/git -iconv

# workaround for unknown bug
media-libs/mesa -llvm

$ sudo emerge -pv sys-libs/uclibc-ng

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-libs/uclibc-ng-1.0.19::gentoo  USE="savedconfig -debug -hardened -iconv -ipv6 -rpc" 2685 KiB

Total: 1 package (1 reinstall), Size of downloads: 2685 KiB

$ sudo emerge -pvU sys-libs/uclibc-ng

These are the packages that would be merged, in order:

Calculating dependencies... done!

Total: 0 packages, Size of downloads: 0 KiB

$ sudo emerge -pvN sys-libs/uclibc-ng

These are the packages that would be merged, in order:

Calculating dependencies... done!

Total: 0 packages, Size of downloads: 0 KiB

$ emerge --info
Portage 2.3.3 (python 2.7.12-final-0, hardened/linux/uclibc/amd64, gcc-4.9.4, uclibc-ng-1.0.19, 4.4.39-gentoo x86_64)
=================================================================
System uname: Linux-4.4.39-gentoo-x86_64-Intel-R-_Core-TM-_i5-4200M_CPU_@_2.50GHz-with-gentoo-2.3
KiB Mem:     3960156 total,   3727980 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Thu, 26 Jan 2017 23:00:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.22.3_rc4::gentoo
dev-lang/python:          2.7.12::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/uclibc-ng:       1.0.19::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --timeout=10

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-gentoo-linux-uclibc"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--ask=y --quiet-build=y --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=10"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X alsa amd64 bindist cli cracklib crypt cxx dri fortran hardened iconv ipv6 modules ncurses nptl openmp pax_kernel pcre pic readline seccomp session ssl tcpd uclibc unicode xattr zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="uclibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON


What foul magic is this
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Fri Jan 27, 2017 2:48 am    Post subject: Reply with quote

Well, you have
Quote:
sys-libs/uclibc-ng -* savedconfig
in package.use so it shouldn't be a surprise when you get
Quote:
[ebuild R ] sys-libs/uclibc-ng-1.0.19::gentoo USE="savedconfig -debug -hardened -iconv -ipv6 -rpc"
should it?
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
Astronome
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2016
Posts: 148

PostPosted: Fri Jan 27, 2017 2:49 am    Post subject: Reply with quote

The Doctor wrote:
Well, you have
Quote:
sys-libs/uclibc-ng -* savedconfig
in package.use so it shouldn't be a surprise when you get
Quote:
[ebuild R ] sys-libs/uclibc-ng-1.0.19::gentoo USE="savedconfig -debug -hardened -iconv -ipv6 -rpc"
should it?


Oh, derp. I didn't put that there and sorta wondered what it did :oops:
Back to top
View user's profile Send private message
Astronome
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2016
Posts: 148

PostPosted: Sat Jan 28, 2017 4:00 am    Post subject: Reply with quote

After removing `sys-apps/busybox -* savedconfig` and `sys-libs/uclibc-ng -* savedconfig` from my package.use and adding `sys-libs/uclibc-ng iconv` I can no longer log in to my system. This belongs in another thread but prevents me from testing tmux with uClibc for the time being.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sat Jan 28, 2017 12:30 pm    Post subject: Reply with quote

Astronome wrote:
After removing `sys-apps/busybox -* savedconfig` and `sys-libs/uclibc-ng -* savedconfig` from my package.use and adding `sys-libs/uclibc-ng iconv` I can no longer log in to my system. This belongs in another thread but prevents me from testing tmux with uClibc for the time being.

Astronome ... I would expect those were configured that way for a reason, in the case of sys-libs/uclibc-ng it's possibly to avoid USE="hardened" (which I expect is enabled for the hardened-uclibc profile). You might be better with 'sys-libs/uclibc-ng -* iconv savedconfig'. That may be what you're seeing in the other thread due to hardened being enabled.

best ... khay
Back to top
View user's profile Send private message
Astronome
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2016
Posts: 148

PostPosted: Sun Jan 29, 2017 9:09 pm    Post subject: Reply with quote

khayyam wrote:
Astronome wrote:
After removing `sys-apps/busybox -* savedconfig` and `sys-libs/uclibc-ng -* savedconfig` from my package.use and adding `sys-libs/uclibc-ng iconv` I can no longer log in to my system. This belongs in another thread but prevents me from testing tmux with uClibc for the time being.

Astronome ... I would expect those were configured that way for a reason, in the case of sys-libs/uclibc-ng it's possibly to avoid USE="hardened" (which I expect is enabled for the hardened-uclibc profile). You might be better with 'sys-libs/uclibc-ng -* iconv savedconfig'. That may be what you're seeing in the other thread due to hardened being enabled.

best ... khay


Right. The first thing I tried was reverting my changes to package.use, but I wasn't able to log in until I remerged sys-apps/shadow.

However, even with `sys-apps/uclibc-ng -* iconv savedconfig` I still get the same error when starting tmux.
Back to top
View user's profile Send private message
squeegily
n00b
n00b


Joined: 17 Apr 2016
Posts: 57

PostPosted: Thu Apr 20, 2017 7:25 pm    Post subject: Reply with quote

I'm getting this problem as well, despite my having re-emerged uclibc-ng with iconv and rebooted!
Code:
Portage 2.3.3 (python 2.7.12-final-0, hardened/linux/uclibc/amd64, gcc-4.9.4, uclibc-ng-1.0.20, 4.10.10-ck x86_64)
=================================================================
System uname: Linux-4.10.10-ck-x86_64-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-2.3
KiB Mem:     3591792 total,   1699280 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 20 Apr 2017 18:30:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.22.3_rc4::gentoo
dev-lang/python:          2.7.12::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            4.9.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/uclibc-ng:       1.0.20::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-gentoo-linux-uclibc"
CFLAGS="-O2 -pipe -march=nocona -mmmx -msse -msse2 -msse3 -mcx16 -mfxsr --param l1-cache-size=16 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mtune=nocona"
CHOST="x86_64-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=nocona -mmmx -msse -msse2 -msse3 -mcx16 -mfxsr --param l1-cache-size=16 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mtune=nocona"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="amd64 cli cracklib crypt cxx dri fortran hardened iconv ipv6 modules ncurses nptl openmp pax_kernel pcre pic readline seccomp session ssl tcpd uclibc unicode xattr zlib" ABI_X86="64" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3" ELIBC="uclibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
The installation is otherwise basically fresh.
_________________
~0x4657bfb0
Code:
print pack"C*",split/\D+/,`echo "16iII*o\U@{$/=$z;[(pop,pop,unpack"H*",<>
)]}\EsMsKsN0[lN*1lK[d2%Sa2/d0<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<J]dsJxp"|dc`
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Thu Apr 20, 2017 7:42 pm    Post subject: Reply with quote

squeegily ...

the uclibc-ng-1.0.20.ebuild (and I expect other versions similarly) has UCLIBC_HAS_LOCALE "forced off". Not sure why, I'm out of the loop as far as uClibc is concerned.

best ... khay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum