Bug in 0.9.31 branch
Lennart Sorensen
lsorense at csclub.uwaterloo.ca
Mon Jul 5 14:00:48 UTC 2010
On Fri, Jul 02, 2010 at 05:24:33PM -0400, Evan Kroske wrote:
> I'm packaging uClibc for Debian. When I ran `make install_dev`, I got
> several errors, including "ln: creating symbolic link
> debian/tmp/uclibc-dev/user/lib// No such file or directory". The
> double slash at the end was causing the error, so I looked at
> Makefile.in and found this line:
>
> $(LN) -sf $(RUNTIME_PREFIX_LIB_FROM_DEVEL_PREFIX_LIB)$$i.$(MAJOR_VERSION) \
> $(PREFIX)$(DEVEL_PREFIX)$(MULTILIB_DIR)/$$i;
>
> MULTILIB_DIR was set to "lib" in my config file, so I looked at
> Rules.mak and found this:
>
> # Make certain these contain a final "/", but no "//"s.
> TARGET_SUBARCH:=$(call qstrip,$(shell grep -s '^TARGET_SUBARCH'
> $(top_builddir)/.config | $(SED) -e 's/^TARGET_SUBARCH=//'))
> ... snip ...
> MULTILIB_DIR:=$(strip $(subst //,/, $(subst ,/, $(call
> qstrip,$(MULTILIB_DIR)))))
>
> This block was adding the trailing slash to MULTILIB_DIR; I have no
> idea why. Here's my fix:
>
> MULTILIB_DIR:=$(call qstrip,$(MULTILIB_DIR))
>
> I'm at commit d4ede2b0a4727c1f5236dd9308f09cbf7a39761a.
Here is what I use to make a debian package of uclibc (currently with
a git checkout from a couple of months ago)
My case is cross compiling for a coldfire. The rules files is _very_
simple though.
Maybe it is helpful, maybe it isn't.
--
Len Sorensen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uclibc-debian-dir.zip
Type: application/zip
Size: 5067 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20100705/db922f97/attachment.zip>
More information about the uClibc
mailing list