From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by sourceware.org (Postfix) with ESMTPS id 812F83858004 for ; Sun, 21 Mar 2021 15:17:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 812F83858004 Received: by mail-pg1-x536.google.com with SMTP id n11so6973189pgm.12 for ; Sun, 21 Mar 2021 08:17:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=ktU5pyshCyGN8BehKzii0w0PIHwYWzQVJs9fMw4UwSQ=; b=sNb8EnjaMrSHQiGfzFNBDFQucRJ65T8Qd2ebQ8eA0wLc4o3QiTS7+n2HkOMksJAh6m Kz+lgY284vfXwTFqvO/JoIpO/0wIRhEPBUQo64oe632KQEIVZdtkPMbmR5qZBtv7TQ+E vPmn/h/0lpf/EkZ5h4ctS6n6A3rjdfFpnAuGRtV9CoRPw+BtPXJbNMBxwrS5Dd2tF5iB +clW5X/u10fYXPcn3nRpYw6+2pa6W56Kkbk21x5qfovebhQ1Owe5stwCyiXHsbeOtMgF YkG3R+7m0dUuJ/3ykwU5pzoIorZjsZOft9yxCofWw6o0/FdCrEbtPVd2N6ogm8dF0AsO B4Rw== X-Gm-Message-State: AOAM531nPYkT3CvYrNSBjn7NUOreD1sV8+w6liZV1eP422qBuOSlirSa R0IKUpKWsk54pmQVyo5LhIicRiY8NLZO3A== X-Google-Smtp-Source: ABdhPJwEHYs/KtFZ6oqDwaJUvfgANRu4fRYQL5kBWVyC2sUS1ICovonx4vXBHwBEmbs6IOpbABFF2Q== X-Received: by 2002:a65:6a10:: with SMTP id m16mr2651719pgu.353.1616339865013; Sun, 21 Mar 2021 08:17:45 -0700 (PDT) Received: from [192.168.10.170] (c-73-15-174-176.hsd1.ca.comcast.net. [73.15.174.176]) by smtp.gmail.com with ESMTPSA id g5sm11421408pfb.77.2021.03.21.08.17.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 Mar 2021 08:17:44 -0700 (PDT) Subject: Re: Issue with locale (sysroot installation) To: Florian Weimer , Oleg Smolsky via Libc-help References: <878s6g2a1z.fsf@mid.deneb.enyo.de> From: Oleg Smolsky Message-ID: Date: Sun, 21 Mar 2021 08:17:43 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <878s6g2a1z.fsf@mid.deneb.enyo.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2021 15:17:49 -0000 On 2021-03-21 01:19, Florian Weimer wrote: > >> 4. Glibc was configured with: >> >> CC=$boostrap_gcc/bin/gcc CXX=$boostrap_gcc/bin/g++ PATH=/opt/3p/bin:$PATH \ >>     ../configure \ >>         --prefix=/usr --libdir=/usr/lib \ >>         --host=x86_64-pc-linux \ >>         --enable-kernel=4.4.0 \ >>         --with-headers=$sysroot/usr/include > Due to --prefix=/usr, the built glibc will locate ancillary in the > standard paths. Therefore, you have to set LOCPATH and GCONV_PATH to > tell the glibc in the sysroot to use files at non-standard locations. > (The system files are not necessarily compatible.) Ah, I see. Thank you for the hint, Florian! The run-time solution works, but I would like to bake the locale location into glibc. My current build recipe configures GLibc with "--prefix=/usr --libdir=/usr/lib" and then I do "make install_root=$sysroot install". This generates the right directory structure for GCC to discover everything and for the generated executables to run (given the minimal rpath tweaks). Is there a different way to configure/install so that the locale path gets baked in and discovered at run-time? Thanks! Oleg.