Ver Fonte

fix compile with uclibc

Waldemar Brodkorb há 11 anos atrás
pai
commit
5b3cc3d313

+ 2 - 2
package/libnetfilter_cttimeout/Makefile

@@ -9,8 +9,8 @@ PKG_RELEASE:=		1
 PKG_MD5SUM:=		7697437fc9ebb6f6b83df56a633db7f9
 PKG_DESCR:=		API to the fine-grain connection tracking timeout infrastructure
 PKG_SECTION:=		libs
-PKG_DEPENDS:=		libnfnetlink
-PKG_BUILDDEP:=		libnfnetlink
+PKG_DEPENDS:=		libnfnetlink libmnl
+PKG_BUILDDEP:=		libnfnetlink libmnl
 PKG_URL:=		http://www.netfilter.org/projects/libnetfilter_cttimeout/
 PKG_SITES:=		http://www.netfilter.org/projects/libnetfilter_cttimeout/files/
 

+ 2 - 0
package/libsigc++/Makefile

@@ -18,6 +18,8 @@ include ${TOPDIR}/mk/package.mk
 
 $(eval $(call PKG_template,LIBSIGCXX,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
 
+TARGET_LDFLAGS+=	-L$(STAGING_DIR)/usr/lib64
+
 post-install:
 	${INSTALL_DIR} ${IDIR_LIBSIGCXX}/usr/lib
 	${CP} ${WRKINST}/usr/lib/libsigc-2.0.so* ${IDIR_LIBSIGCXX}/usr/lib/

+ 2 - 1
package/libstdcxx/Makefile

@@ -32,8 +32,9 @@ do-install:
 ifeq ($(ADK_NATIVE),y)
 	$(CP) /usr/lib/libstdc++.so* ${IDIR_LIBSTDCXX}/usr/lib
 else
-	$(CP) ${STAGING_TARGET_DIR}/${ADK_TARGET_LIBC_PATH}/libstdc++.so* ${IDIR_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}
 	(cd ${IDIR_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}; ln -sf libstdc++.so.6.0.17 libstdc++.so.6)
+	(cd ${IDIR_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}; ln -sf libstdc++.so.6.0.17 libstdc++.so)
+	$(CP) ${STAGING_TARGET_DIR}/${ADK_TARGET_LIBC_PATH}/libstdc++.so* ${IDIR_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}
 	-@rm ${IDIR_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}/libstdc++.so.*-gdb.py
 endif
 

+ 4 - 0
package/poppler/Makefile

@@ -9,6 +9,8 @@ PKG_RELEASE:=		1
 PKG_MD5SUM:=		12658f3308597e57f3faff538cc73baf
 PKG_DESCR:=		pdf rendering library
 PKG_SECTION:=		libs
+PKG_BUILDDEP:=		fontconfig libstdcxx
+PKG_DEPENDS:=		fontconfig libstdcxx
 PKG_URL:=		http://poppler.freedesktop.org/
 PKG_SITES:=		http://poppler.freedesktop.org/
 
@@ -16,6 +18,8 @@ include $(TOPDIR)/mk/package.mk
 
 $(eval $(call PKG_template,POPPLER,poppler,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
 
+TARGET_LDFLAGS+=	-L$(STAGING_DIR)/usr/lib64
+
 poppler-install:
 	$(INSTALL_DIR) $(IDIR_POPPLER)/usr/lib
 	$(CP) $(WRKINST)/usr/lib/libpoppler*.so* \

+ 3 - 2
package/util-linux/Makefile

@@ -15,7 +15,7 @@ PKG_NOPARALLEL:=	1
 
 DISTFILES:=		$(PKG_NAME)-$(PKG_VERSION).tar.xz
 
-PKG_SUBPKGS:=		FDISK SFDISK SWAP_UTILS LOSETUP MOUNT MCOOKIE
+PKG_SUBPKGS:=		FDISK SFDISK SWAP_UTILS LOSETUP MCOOKIE MOUNT
 PKG_SUBPKGS+=		LIBUUID LIBBLKID LIBUUID_DEV
 PKGSD_LIBUUID:=		UUID library
 PKGSC_LIBUUID:=		libs
@@ -46,7 +46,8 @@ $(eval $(call PKG_template,LIBUUID,libuuid,${PKG_VERSION}-${PKG_RELEASE},${PKG_D
 $(eval $(call PKG_template,LIBUUID_DEV,libuuid-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBUUID_DEV},${PKGSC_LIBUUID_DEV}))
 $(eval $(call PKG_template,LIBBLKID,libblkid,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBBLKID},${PKGSC_LIBBLKID}))
 
-CONFIGURE_ENV+=		scanf_cv_type_modifier=yes
+CONFIGURE_ENV+=		have_scanf_alloc_modifier=yes \
+			scanf_cv_alloc_modifier=ms
 CONFIGURE_ARGS+=	--disable-use-tty-group \
 			--disable-schedutils \
 			--disable-cramfs \

+ 11 - 0
package/util-linux/patches/patch-Makefile_in

@@ -0,0 +1,11 @@
+--- util-linux-2.22.2.orig/Makefile.in	2012-12-13 12:19:40.000000000 +0100
++++ util-linux-2.22.2/Makefile.in	2013-02-28 14:08:40.000000000 +0100
+@@ -83,7 +83,7 @@ bin_PROGRAMS = $(am__EXEEXT_1) $(am__EXE
+ sbin_PROGRAMS = $(am__EXEEXT_27) $(am__EXEEXT_28) $(am__EXEEXT_29) \
+ 	$(am__EXEEXT_30) $(am__EXEEXT_31) $(am__EXEEXT_32) \
+ 	$(am__EXEEXT_33) $(am__EXEEXT_34) $(am__EXEEXT_35) \
+-	$(am__EXEEXT_36) $(am__EXEEXT_37) fsck.minix$(EXEEXT) \
++	$(am__EXEEXT_36) $(am__EXEEXT_37) \
+ 	mkfs.minix$(EXEEXT) mkfs$(EXEEXT) mkfs.bfs$(EXEEXT) \
+ 	mkswap$(EXEEXT) $(am__EXEEXT_38) $(am__EXEEXT_39) \
+ 	$(am__EXEEXT_40) $(am__EXEEXT_41) $(am__EXEEXT_42) \

+ 74 - 3
package/util-linux/patches/patch-libmount_src_tab_parse_c

@@ -1,6 +1,6 @@
---- util-linux-2.20.1.orig/libmount/src/tab_parse.c	2011-10-18 14:22:27.000000000 +0200
-+++ util-linux-2.20.1/libmount/src/tab_parse.c	2011-12-03 09:43:31.713340136 +0100
-@@ -10,6 +10,8 @@
+--- util-linux-2.22.2.orig/libmount/src/tab_parse.c	2012-12-12 21:04:47.000000000 +0100
++++ util-linux-2.22.2/libmount/src/tab_parse.c	2013-02-28 14:34:10.000000000 +0100
+@@ -16,6 +16,8 @@
  #include <dirent.h>
  #include <fcntl.h>
  
@@ -9,3 +9,74 @@
  #include "at.h"
  #include "mangle.h"
  #include "mountP.h"
+@@ -59,18 +61,21 @@ static int next_number(char **s, int *nu
+ static int mnt_parse_table_line(struct libmnt_fs *fs, char *s)
+ {
+ 	int rc, n = 0, xrc;
+-	char *src = NULL, *fstype = NULL, *optstr = NULL;
++	int len = strlen (s) + 1;
++	char *fstype  = malloc (sizeof *fstype * len);
++	char *optstr  = malloc (sizeof *optstr * len);
++	char *src     = malloc (sizeof *src * len);
+ 
+-	rc = sscanf(s,	UL_SCNsA" "	/* (1) source */
+-			UL_SCNsA" "	/* (2) target */
+-			UL_SCNsA" "	/* (3) FS type */
+-			UL_SCNsA" "	/* (4) options */
++	rc = sscanf(s,	"%s"" "	/* (1) source */
++			"%s"" "	/* (2) target */
++			"%s"" "	/* (3) FS type */
++			"%s"" "	/* (4) options */
+ 			"%n",		/* byte count */
+ 
+-			&src,
+-			&fs->target,
+-			&fstype,
+-			&optstr,
++			src,
++			fs->target,
++			fstype,
++			optstr,
+ 			&n);
+ 	xrc = rc;
+ 
+@@ -135,13 +140,18 @@ static int mnt_parse_mountinfo_line(stru
+ 	int rc, end = 0;
+ 	unsigned int maj, min;
+ 	char *fstype = NULL, *src = NULL, *p;
++	int len = strlen (s) + 1;
++
++	fs->root        = malloc (sizeof *fs->root * len);
++	fs->target      = malloc (sizeof *fs->target * len);
++	fs->vfs_optstr  = malloc (sizeof *fs->vfs_optstr * len);
+ 
+ 	rc = sscanf(s,	"%u "		/* (1) id */
+ 			"%u "		/* (2) parent */
+ 			"%u:%u "	/* (3) maj:min */
+-			UL_SCNsA" "	/* (4) mountroot */
+-			UL_SCNsA" "	/* (5) target */
+-			UL_SCNsA	/* (6) vfs options (fs-independent) */
++			"%s"" "	/* (4) mountroot */
++			"%s"" "	/* (5) target */
++			"%s"	/* (6) vfs options (fs-independent) */
+ 			"%n",		/* number of read bytes */
+ 
+ 			&fs->id,
+@@ -162,10 +172,14 @@ static int mnt_parse_mountinfo_line(stru
+ 		return -EINVAL;
+ 	}
+ 	s = p + 3;
++	len           = strlen (s) + 1;
++	fstype        = malloc (sizeof *fstype * len);
++	src           = malloc (sizeof *src * len);
++	fs->fs_optstr = malloc (sizeof *fs->fs_optstr * len);
+ 
+-	rc += sscanf(s,	UL_SCNsA" "	/* (8) FS type */
+-			UL_SCNsA" "	/* (9) source */
+-			UL_SCNsA,	/* (10) fs options (fs specific) */
++	rc += sscanf(s,	"%s"" "	/* (8) FS type */
++			"%s"" "	/* (9) source */
++			"%s",	/* (10) fs options (fs specific) */
+ 
+ 			&fstype,
+ 			&src,