![]() |
|
Message-ID: <CAM=OvHX0+=cgJwZvs1WKv5UFvwUT7=HOwR7NXRXuPUZGCt94xA@mail.gmail.com>
Date: Sun, 4 May 2025 08:04:08 +0700
From: lid gnulinux <lidgnulinux@...il.com>
To: Rich Felker <dalias@...c.org>
Cc: "musl@...ts.openwall.com" <musl@...ts.openwall.com>, raniriahmad@...il.com,
ahmadraniri1994@...il.com
Subject: Re: Musl & libxcrypt library.
Thank Rich, I thought I solved my case. Today I cleaned all libxcrypt
related stuff / deleted libcrypt.so. Shadow package and linux-pam were
built successfully. I still need to figure out suitable pam configuration.
I think we can close this discussion. Thanks.
On Sat, May 3, 2025 at 8:12 PM Rich Felker <dalias@...c.org> wrote:
> On Thu, May 01, 2025 at 09:03:16PM +0700, lid gnulinux wrote:
> > Hello, I hope it's still relevant with musl.
> > About two months ago, I built a Linux
> > >From Scratch with musl. I mistakenly also
> > built libxcrypt and not knowing that libxcrypt
> > will replace some header files from musl.
> > I fortunately restore some replaced headers
> > back. Today I realized I still have libcrypt.so
> > from libxcrypt. Do I need to keep that library?
> > When I move it (instead of delete it) I can't
> > build shadow package (it complained about
> > missing crypt() function). Thanks.
>
> musl has a working crypt implementation and it's not intended that you
> need to use libxcrypt on a musl-based system, unless you want it for
> the "heavy" hashes. If you do want to use it, it's recommended that
> you install the headers in a separate directory so you can select them
> by putting the appropriate -I in CFLAGS, rather than clobbering the
> libc header. Likewise, the library should be named libxcrypt, not
> libcrypt, so it doesn't supersede or clobber the (intentionally empty;
> all actual functions are in libc.{a,so}) libcrypt.a shipped with musl.
> Then you can select it with the appropriate -I and -l.
>
> Without further information I don't know what your problem building
> the shadow package is, and whether it's a consequence of something
> that got clobbered, some wrong detection the shadow build process is
> doing, or just failure to re-run configure or whatever after fixing
> the mess.
>
Content of type "text/html" skipped
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.