From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) by sourceware.org (Postfix) with ESMTPS id 32A8C387084E for ; Fri, 5 Mar 2021 11:19:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 32A8C387084E Received: by mail-qk1-x730.google.com with SMTP id z128so1494275qkc.12 for ; Fri, 05 Mar 2021 03:19:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=l2INtSE0iRp0sYmAckiC85BdfOHDqOzMBvCZcsEEOfs=; b=GYGZ8aaOncHBGPYZklr+F/lbPBE1bmIdC0nLDWbvixq7CYFggQ4eRPmzFyEpbmuJNd +iV2fH17DROfSjtJSj8ukEcEeUhQLltnwBldBbUg1qZKRjFCaAkvgtkuQ+AvGcAQ4+Kd CdvdWB35mcOG1fgpY7i+K9RxXH1dI0Kh8B9ACskWdO2hQFvw8DMpOR8xPUY2mnP2gB26 R8O2hOK+PFRMmSgnFMVrWFeqZxHYg5YOe9DIMMih3hZ+ebb7ihFBGbGJIkri8n7isxJ8 NWh8EoaLayLn9k3sLGMMw8fp+D/7MytGvXLt9d7MbBV5vfr9exU+6VDVjGR4KOGZDoi6 TLoA== X-Gm-Message-State: AOAM532+l/05npOhU1AMqFcgXhe5LIcc4WGoOqUS5PjwRYlCDGrBQiKa jH/ZW5RmVT7jsiDy1lvtQo6WRsdsaYilKQ== X-Google-Smtp-Source: ABdhPJyIXP/Ks2wvP6saLd+SdIJgvJLFIjnc4fz2AyjMzEvBwXnXOPrZzY5rUpnig+kSPTob5iGCiw== X-Received: by 2002:a05:620a:13a5:: with SMTP id m5mr8339429qki.498.1614943184566; Fri, 05 Mar 2021 03:19:44 -0800 (PST) Received: from [192.168.1.111] ([177.194.48.209]) by smtp.gmail.com with ESMTPSA id o6sm1610025qtw.56.2021.03.05.03.19.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 Mar 2021 03:19:44 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Adhemerval Zanella Mime-Version: 1.0 (1.0) Subject: Re: Directory structure of glibc and header files installed on Linux Date: Fri, 5 Mar 2021 08:19:42 -0300 Message-Id: References: Cc: Konstantin Kharlamov , Florian Weimer , Peng Yu via Libc-help In-Reply-To: To: Peng Yu X-Mailer: iPhone Mail (18D52) X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, 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: Fri, 05 Mar 2021 11:19:47 -0000 > Il giorno 4 mar 2021, alle ore 23:38, Peng Yu ha scr= itto: >=20 > =EF=BB=BF >>=20 >> FWIW, whenever I need to build a project I don't know how to build yet, I= >> often look at how my distro does that. If it's something complicated (whi= ch >> seems to be the case with glibc), I use the configuration provided by my >> distro. >>=20 >> You said you're using Ubuntu. I found that Ubuntu provides a way to build= a >> package from source by using `apt source =E2=80=A6` and then `dpkg-buildp= ackage =E2=80=A6`, >> see: https://askubuntu.com/a/246721/266507 (unless I misunderstand >> something, the `dpkg-buildpackage` will probably run a script that in tur= n >> runs `configure`, `make`, etc, and at the end would package a deb file). >>=20 >> Side note: apt will download sources for the version of glibc that is >> installed in your Ubuntu. Ubuntu is mostly known as a distro providing >> ancient software (except perhaps browsers), so the glibc you'll get will >> likely be very old. It may or may not be what you want. >=20 > Debian packages are old. It just creates a .deb file. It introduces > another sets of tools which I don't know the details. If there are any > problems, I will not know how to fix along the way. >=20 > It is still too complicated. The original question is to understand > the directory structure. Then, the question became, compile glibc, > installing system from scratch ... I don't think approaches like this > makes sense. it makes a simple thing more complicated than necessary. >=20 The problem here is we giving you the readily available information and step= s on how you can proceed and obtain what you initially want, but you instead= want *us* to spend time compiling and summarizes games instead of do yourse= lf the research. > I think the main problem is that there is not a doc for the directory > structure of glibc. That should have been done. I do not disagree, if you want to contribute I can give you access to glibc w= iki and help you document this properly.