[uClibc]Patch to fix 'make install' bug...
Steven J. Hill
sjhill at cotw.com
Thu Jan 31 21:09:05 UTC 2002
Greetings.
This patch fixes a bug when installing the uclibc. The assumption is made
that your user name and group name are the same. This is not a good
idea to assume. A variant of this patch is to use the 'id' command and
parse the output of it for the user and group names. Please apply. Thanks.
-Steve
-- diff -urN uclibc-20020131/Makefile uclibc-20020131-patched/Makefile
--- uclibc-20020131/Makefile Thu Jan 31 10:15:25 2002
+++ uclibc-20020131-patched/Makefile Thu Jan 31 14:57:40 2002
@@ -195,7 +195,7 @@
- at for i in `find $(PREFIX)$(DEVEL_PREFIX) -type d` ; do \
chmod -f 755 $$i; chmod -f 644 $$i/*.h; \
done;
- (NAME=`whoami`; chown -R $$NAME.$$NAME $(PREFIX)$(DEVEL_PREFIX))
+ (NAME=`whoami`; GROUP=`groups | cut -d" " -f1` ; chown -R $$NAME.$$GROUP
$(PREFIX)$(DEVEL_PREFIX))
ifeq ($(strip $(HAVE_SHARED)),true)
find lib/ -type l -name '*.so' -exec cp -a {}
$(PREFIX)$(DEVEL_PREFIX)/lib ';'
endif
--
Steven J. Hill - Embedded SW Engineer
More information about the uClibc
mailing list