[PATCH] dont compile pwd_to_spwd when shadow passwds is off
Rob Landley
rob at landley.net
Fri Sep 16 15:55:23 UTC 2005
On Friday 16 September 2005 00:28, Amir Shalem wrote:
> >It built fine. How do I reproduce your problem?
>
> like you said,
> just dont forget to remove system <shadow.h> file:
>
> mv /usr/include/shadow.h /usr/include/shadow.h.tmp
Ah, got it.
Ok, the correct thing to do is definitely a makefile tweak, adding something
to libbb/Makefile.in that looks a bit like the conditionals in
archival/libunarchive/Makefile.in
> the problem is that because pwd2spwd.c uses busybox/include/shadow_.h
> and CONFIG_FEATURE_SHADOWPASSWDS, CONFIG_USE_BB_SHADOW are disabled
Okay, so modify libbb/Makefile.in to only add pwd2spwd.o to libraries-y if
CONFIG_FEATURE_SHADOWPASSWDS && !CONFIG_USE_BB_SHADOW. Right.
Ummm...
Not a clue.
I expect to learn a lot by reading the final patch that actually does this,
but right now I have no idea how to get the makefile to do that. Somebody
else on the list should be able to, though.
Rob
More information about the busybox
mailing list