On Wed, 2025-09-17 at 19:41 +0500, zyxhere💭 wrote: > Hello I'm trying to build (well have built) a stage3 from scratch > using > > emerge -av --root /path/to/new/rootfs \ > virtual/package-manager virtual/libc make gcc binutils \ > app-alternatives/tar app-alternatives/bzip2 app-alternatives/gzip \ > bash coreutils patch grep awk sed shadow findutils diffutils > > Then chroot into rootfs and build everything else from there with my > ideal C*FLAGS. I have built it to a complete GNOME desktop (I'm using > profile 45 musl/hardened). But theres just one problem I can't seem > to > fix which is [subject]. I have noto-emoji installed but nano in > gnome- > console doesn't show any (instead of cat cry tears it has �^=^x� > instead). The weird thing is that if I download the musl-hardened > stage3 from downloads.gentoo.org and chroot into that the nano in > there > is able to show the emojis! I'm a little stumped as to why that is. I > have built a new rootfs with just -O2 -pipe and still emojis broken > 😿 > I have no clue why. I can tar up the rootfs and share it if anyone's > curious (and see if it reproduces for anyone else too). > > I have also rebuilt the stage3 from gentoo.org > > emerge -1 gcc musl && emerge -e @world > > And nano in there is still able to show emojis. > > Maybe I'm missing a dependency or something for nano. > > emerge --info from the newly built rootfs > > Portage 3.0.69 (python 3.13.7-final-0, > default/linux/amd64/23.0/musl/hardened, gcc-14, musl-1.2.5-r3, > 6.16.5- > gentoo-r1 x86_64) > ================================================================= > System Settings > ================================================================= > System uname: Linux-6.16.5-gentoo-r1-x86_64-12th_Gen_Intel-R-_Core- > TM- > _i5-1235U-with-libc > Timestamp of repository gentoo: Wed, 17 Sep 2025 10:30:00 +0000 > sh bash 5.3_p3-r2 > app-misc/pax-utils: 1.3.8::gentoo > app-shells/bash: 5.3_p3-r2::gentoo > dev-build/make: 4.4.1-r101::gentoo > dev-lang/python: 3.13.7::gentoo > sys-apps/baselayout: 2.18::gentoo > sys-apps/sandbox: 2.46::gentoo > sys-devel/binutils: 2.44-r4::gentoo > sys-devel/binutils-config: 5.5.2::gentoo > sys-devel/gcc: 14.3.0::gentoo > sys-kernel/linux-headers: 6.16::gentoo > sys-libs/musl: 1.2.5-r3::gentoo > Repositories: > > gentoo > location: /var/db/repos/gentoo > sync-type: git > sync-uri: https://anongit.gentoo.org/git/repo/gentoo.git > sync-user: root:portage > priority: -1000 > volatile: True > > local > location: /var/db/repos/local > masters: gentoo > volatile: True > > Binary Repositories: > > gentoobinhost > priority: 1 > sync-uri: > 🐧 > https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64_m > usl_hardened🐧 > > ACCEPT_KEYWORDS="amd64 ~amd64" > ACCEPT_LICENSE="@FREE" > CBUILD="x86_64-pc-linux-musl" > CFLAGS="-O2 -pipe" > CHOST="x86_64-pc-linux-musl" > CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" > CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf > /etc/gentoo-release /etc/sandbox.d" > CXXFLAGS="-O2 -pipe" > DISTDIR="/var/cache/distfiles" > ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY > GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX > PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME > XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" > FCFLAGS="-O2 -pipe" > FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs > binpkg-multi-instance buildpkg-live candy config-protect-if-modified > distlocks ebuild-locks export-pms-vars fixlafiles ipc-sandbox merge- > sync merge-wait network-sandbox news parallel-fetch pid-sandbox > pkgdir- > index-trusted preserve-libs protect-owned qa-unresolved-soname-deps > sandbox strict unknown-features-warn unmerge-logs unmerge-orphans > userfetch userpriv usersandbox usersync xattr 😿" > FFLAGS="-O2 -pipe" > GENTOO_MIRRORS="https://mirror.freedif.org/gentoo > https://distfiles.gentoo.org" > INSTALL_MASK="charset.alias /usr/share/locale/locale.alias" > LANG="C" > LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs" > LEX="flex" > MAKEOPTS="-j9" > PKGDIR="/var/cache/binpkgs" > 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" > RUSTFLAGS="-C target-cpu=native" > SHELL="/bin/bash" > USE="acl amd64 bzip2 cet crypt hardened iconv ipv6 libtirpc lz4 lzma > lzo ncurses nls pam pcre pic pie readline seccomp ssl ssp test-rust > unicode xattr xml xtpax zlib zstd 🐾" ABI_X86="64" > ADA_TARGET="gcc_14" > APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions > alias auth_basic authn_anon authn_dbm authn_file authz_dbm > authz_groupfile authz_host authz_owner authz_user autoindex cache cgi > cgid dav dav_fs dav_lock deflate dir env expires ext_filter > file_cache > filter headers include info log_config logio mime mime_magic > negotiation rewrite setenvif speling status unique_id userdir > usertrack > vhost_alias" CALLIGRA_FEATURES="karbon sheets words" > COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" > CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 avx_vnni bmi1 bmi2 > f16c > fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 ssse3 vpclmulqdq" > ELIBC="musl" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 > garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore > rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" > GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" > INPUT_DEVICES="libinput" > KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 > mtxorb text" LLVM_TARGETS="AMDGPU X86" LUA_SINGLE_TARGET="lua5-1" > LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" > PHP_TARGETS="php8-3" POSTGRES_TARGETS="postgres17" > PYTHON_SINGLE_TARGET="python3_13" PYTHON_TARGETS="python3_13" > RUBY_TARGETS="ruby33" VIDEO_CARDS="fbdev intel vesa dummy lavapipe" > XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p > iface > geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac > delude > chaos account" > Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, > CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, > EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LD, LFLAGS, LIBTOOL, > LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, > PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, > PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, > STRIP, YACC, YFLAGS > > ================================================================= > Package Settings > ================================================================= > > app-editors/nano-8.6::gentoo was built with the following: > USE="ncurses nls spell (unicode) -debug -justify -magic -minimal" > > > sys-libs/ncurses-6.5_p20250802::gentoo was built with the following: > USE="cxx (tinfo) -ada -debug -doc -gpm -minimal -profile (-split-usr) > (-stack-realign) -static-libs -test -trace -verify-sig" > > > sys-libs/musl-1.2.5-r3::gentoo was built with the following: > USE="-crypt -headers-only (-split-usr) -verify-sig" > > sys-devel/gcc-14.3.0::gentoo was built with the following: > USE="(cxx) (default-stack-clash-protection) (default-znow) fortran > hardened openmp (pie) sanitize (ssp) zstd -ada (-cet) (-custom- > cflags) > -d -debug -doc (-fixed-point) -go -graphite (-ieee-long-double) -jit > (- > libssp) -lto -modula2 (-multilib) (-nls) -objc -objc++ -objc-gc (- > pch) > -pgo -rust (-systemtap) -test (-time64) -valgrind -vanilla (-vtv)" > CFLAGS="-march=x86-64 -mtune=generic -pipe -O2" > CXXFLAGS="-march=x86-64 -mtune=generic -pipe -O2"
I didn't setup the locale with musl-locale and eselect locale apparently. Big oops everythings good now

