tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
getting pkgsrc/emulators/qemu to build on Mac OS X (10.7.x)
After ensuring that "pwd -L" gives the same as "pwd -P" (i.e. not having a
symlink in the current directory's path, see other mail),
building pkgsrc/emulators/qemu fails as it can't use the static libfdt.a.
Apparently it needs ranlib. The attached patch fixes this and gives me a
working qemu.
Any better options? (No, there is no $(RANLIB) available from the
custom/non-autoconf configure script).
OK to commit?
- Hubert
% cat patches/patch-dtc-Makefile
$NetBSD$
Allow linking of libfdt.a on Mac OS X
--- dtc/Makefile.orig 2013-10-09 19:20:35.000000000 +0000
+++ dtc/Makefile
@@ -233,6 +233,9 @@ clean: libfdt_clean tests_clean
%.a:
@$(VECHO) AR $@
$(AR) $(ARFLAGS) $@ $^
+ifeq ($(HOSTOS),darwin)
+ ranlib $@
+endif
$(LIBFDT_lib):
@$(VECHO) LD $@
% cvs diff
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/emulators/qemu/Makefile,v
retrieving revision 1.118
diff -u -r1.118 Makefile
--- Makefile 26 Oct 2013 13:39:37 -0000 1.118
+++ Makefile 27 Oct 2013 00:47:33 -0000
@@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.118 2013/10/26 13:39:37 asau Exp $
DISTNAME= qemu-1.6.1
+PKGREVISION= 1
CATEGORIES= emulators
MASTER_SITES= http://wiki.qemu.org/download/
EXTRACT_SUFX= .tar.bz2
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/emulators/qemu/distinfo,v
retrieving revision 1.89
diff -u -r1.89 distinfo
--- distinfo 26 Oct 2013 23:23:41 -0000 1.89
+++ distinfo 27 Oct 2013 00:47:33 -0000
@@ -3,6 +3,7 @@
SHA1 (qemu-1.6.1.tar.bz2) = ad3ef3709a8ce3a39bd343aa313cefd033afb561
RMD160 (qemu-1.6.1.tar.bz2) = 96dcbb044812ab0349741bd62eb8e6b79552442f
Size (qemu-1.6.1.tar.bz2) = 12041317 bytes
+SHA1 (patch-dtc-Makefile) = 93d4cbfd6f3f9e65425a3983bb287cd59fdc4502
SHA1 (patch-ef) = 871ccf29463dec1bd56d7f7808248c5b1af4d4d6
SHA1 (patch-et) = 939a5555ed1aadae007003951e3aae90ead35ef6
SHA1 (patch-hw_display_omap__dss.c) = af89754a9a078a5b52240473d85351bd447623c0
Home |
Main Index |
Thread Index |
Old Index