Browse Source

Merge remote-tracking branch 'upstream/master'

Updated to latest trunk
lilik-openwrt-22.03
fededim 10 years ago
parent
commit
865c06eafe
368 changed files with 108587 additions and 3769 deletions
  1. +74
    -8
      CONTRIBUTING.md
  2. +6
    -5
      README.md
  3. +3
    -1
      admin/debootstrap/Makefile
  4. +2
    -2
      admin/htop/Makefile
  5. +1
    -1
      admin/monit/Makefile
  6. +3
    -1
      admin/muninlite/Makefile
  7. +2
    -2
      admin/zabbix/Makefile
  8. +115
    -0
      devel/gcc/Makefile
  9. +8
    -0
      devel/gcc/README
  10. +15
    -0
      devel/gcc/patches/002-dont-choke-when-building-32bit-on-64bit.patch
  11. +38
    -0
      devel/gcc/patches/003-mpfr-longlong-mips.patch
  12. +23
    -0
      devel/gcc/patches/010-documentation.patch
  13. +33
    -0
      devel/gcc/patches/100-uclibc-conf.patch
  14. +321
    -0
      devel/gcc/patches/200-musl.patch
  15. +11
    -0
      devel/gcc/patches/800-arm_v5te_no_ldrd_strd.patch
  16. +25
    -0
      devel/gcc/patches/810-arm-softfloat-libgcc.patch
  17. +36
    -0
      devel/gcc/patches/820-libgcc_pic.patch
  18. +13
    -0
      devel/gcc/patches/830-arm_unbreak_armv4t.patch
  19. +19
    -0
      devel/gcc/patches/840-armv4_pass_fix-v4bx_to_ld.patch
  20. +47
    -0
      devel/gcc/patches/850-use_shared_libgcc.patch
  21. +29
    -0
      devel/gcc/patches/860-uclibc_use_eh_frame.patch
  22. +11
    -0
      devel/gcc/patches/870-ppc_no_crtsavres.patch
  23. +11
    -0
      devel/gcc/patches/880-no_java_section.patch
  24. +9
    -0
      devel/gcc/patches/900-bad-mips16-crt.patch
  25. +253
    -0
      devel/gcc/patches/910-mbsd_multi.patch
  26. +14
    -0
      devel/gcc/patches/920-specs_nonfatal_getenv.patch
  27. +2
    -0
      devel/patch/Makefile
  28. +2
    -0
      ipv6/aiccu/Makefile
  29. +1
    -1
      ipv6/aiccu/files/aiccu.sh
  30. +3
    -1
      ipv6/tayga/Makefile
  31. +335
    -0
      lang/erlang/Makefile
  32. +11
    -0
      lang/erlang/patches/101-emulator_includes.patch
  33. +11
    -0
      lang/erlang/patches/103-disable_emacs.patch
  34. +1
    -0
      lang/luabitop/Makefile
  35. +1
    -0
      lang/luaposix/Makefile
  36. +56
    -0
      lang/luasoap/Makefile
  37. +116
    -0
      lang/luasql/Makefile
  38. +53
    -0
      lang/micropython-lib/Makefile
  39. +58
    -0
      lang/micropython/Makefile
  40. +3
    -3
      lang/perl-compress-bzip2/Makefile
  41. +17
    -2
      lang/perl-dbi/Makefile
  42. +1
    -1
      lang/perl-html-parser/Makefile
  43. +1
    -1
      lang/perl-html-tagset/Makefile
  44. +1
    -1
      lang/perl-html-tree/Makefile
  45. +1
    -1
      lang/perl-lockfile-simple/Makefile
  46. +1
    -1
      lang/perl-net-telnet/Makefile
  47. +3
    -3
      lang/perl-test-harness/Makefile
  48. +1
    -1
      lang/perl-uri/Makefile
  49. +1
    -1
      lang/perl-www-curl/Makefile
  50. +1
    -1
      lang/perl-www-mechanize/Makefile
  51. +2
    -2
      lang/perl-www/Makefile
  52. +41
    -0
      lang/perl-www/patches/010-lwp-https-call-verify-hostname-when-avail.patch
  53. +113
    -0
      lang/perl-www/patches/020-lwp-https-verify-hostnames-by-default.patch
  54. +14
    -5
      lang/perl/Makefile
  55. +0
    -1083
      lang/perl/files/Module/ScanDeps.pm
  56. +3
    -3
      lang/perl/files/config.sh-arm.in
  57. +3
    -3
      lang/perl/files/config.sh-armeb.in
  58. +3
    -3
      lang/perl/files/config.sh-avr32.in
  59. +3
    -3
      lang/perl/files/config.sh-i486.in
  60. +3
    -3
      lang/perl/files/config.sh-mips.in
  61. +3
    -3
      lang/perl/files/config.sh-mipsel.in
  62. +3
    -3
      lang/perl/files/config.sh-powerpc.in
  63. +3
    -3
      lang/perl/files/config.sh-x86_64.in
  64. +0
    -81
      lang/perl/files/perlmod-deps.sh
  65. +0
    -176
      lang/perl/files/scan-perlbase.sh
  66. +0
    -11
      lang/perl/files/strippm.sh
  67. +6
    -0
      lang/perl/patches/500-add-relink-hack.patch
  68. +93
    -8
      lang/perl/perlbase.mk
  69. +31
    -0
      lang/perl/perlmod.mk
  70. +487
    -0
      lang/ruby/Makefile
  71. +112
    -0
      libs/cyrus-sasl/Makefile
  72. +10
    -8
      libs/db47/Makefile
  73. +6
    -7
      libs/db47/patches/010-patch.4.7.25.1.patch
  74. +4
    -5
      libs/db47/patches/020-patch.4.7.25.2.patch
  75. +16
    -17
      libs/db47/patches/030-patch.4.7.25.3.patch
  76. +118
    -0
      libs/db47/patches/040-patch.4.7.25.4.patch
  77. +46
    -0
      libs/dtndht/Makefile
  78. +1
    -0
      libs/engine_pkcs11/Makefile
  79. +3
    -3
      libs/file/Makefile
  80. +1
    -1
      libs/flac/Makefile
  81. +78
    -0
      libs/freetype/Makefile
  82. +1
    -1
      libs/gdbm/Makefile
  83. +2
    -2
      libs/gnutls/Makefile
  84. +49
    -0
      libs/ibrcommon/Makefile
  85. +50
    -0
      libs/ibrdtn/Makefile
  86. +33
    -0
      libs/ibrdtn/patches/100-add_configure_options.patch
  87. +58
    -0
      libs/libarchive/Makefile
  88. +2
    -1
      libs/libaudiofile/Makefile
  89. +105
    -0
      libs/libdbi-drivers/Makefile
  90. +11
    -0
      libs/libdbi-drivers/patches/001_libsqlite3_fix.patch
  91. +57
    -0
      libs/libdbi/Makefile
  92. +73
    -0
      libs/libdmapsharing/Makefile
  93. +24
    -0
      libs/libdmapsharing/patches/001-diable_pixbuf.patch
  94. +4
    -1
      libs/libexif/Makefile
  95. +1
    -0
      libs/libftdi/Makefile
  96. +1
    -0
      libs/libftdi1/Makefile
  97. +1
    -1
      libs/libid3tag/Makefile
  98. +3
    -3
      libs/libidn/Makefile
  99. +5
    -16
      libs/libjpeg/Makefile
  100. +0
    -11
      libs/libjpeg/patches/001-allow-ccache.patch

+ 74
- 8
CONTRIBUTING.md View File

@ -1,25 +1,91 @@
# Contributing Guidelines
# Contributing Guidelines
(See <http://wiki.openwrt.org/doc/devel/packages> for overall format and construction)
All packages you commit or submit by pull-request should follow these simple guidelines:
Please make sure that all packages you commit or request to pull:
* Package a version which is still maintained by the upstream author.
* Have yourself or another person listed in the (PKG_)MAINTAINER field.
* Will be updated regularly to maintained and supported versions.
* Have no dependencies outside the openwrt core packages or this feed.
* Are tested to run (or at the very least tested to compile sucessfully)
* Have no dependencies outside the OpenWrt core packages or this repository feed.
* Have been tested to compile with the correct includes and dependencies. Also, test with "Compile with full language support" found under "General Build Settings" set.
* Best of all -- it works as expected!
Makefile contents should contain:
* An up-to-date copyright notice. Use OpenWrt if no other present or supply your own.
* A (PKG_)MAINTAINER definition listing either yourself or another person in the field.
(E.g.: PKG_MAINTAINER:= Joe D. Hacker `<jdh@jdhs-email-provider.org`>)
* A PKG_LICENSE tag declaring the main license of the package.
(E.g.: PKG_LICENSE:=GPL-2.0+) Please use SPDX identifiers if possible (see list at the bottom).
* An optional PKG_LICENSE_FILE including the filename of the license-file in the source-package.
(E.g.: PKG_LICENSE_FILE:=COPYING)
Please make sure that all commits you make to this repository:
* Are signed-off (see https://dev.openwrt.org/wiki/SubmittingPatches#a10.Signyourwork)
* Have a proper description prefixed with the package name
Commits and pull-requests:
* Have a useful description prefixed with the package name
(E.g.: "foopkg: Add libzot dependency")
* Include Signed-off-by in the comment
(See <https://dev.openwrt.org/wiki/SubmittingPatches#a10.Signyourwork>)
If you have commit access:
* Do NOT use git push --force.
* Do NOT commit to other maintainer's packages without their consent.
* Use Pull Requests if you are unsure and to suggest changes to other maintainers.
Gaining commit access:
* We will gladly grant commit access to responsible contributors who have made
useful pull requests and / or feedback or patches to this repository or
OpenWrt in general. Please include your request for commit access in your
next pull request or ticket.
Release Branches:
* Branches named "for-XX.YY" (e.g. for-14.07) are release branches.
* These branches are built with the respective OpenWrt release and are created
during the release stabilisation phase.
* Please ONLY cherry-pick or commit security and bug-fixes to these branches.
* Do NOT add new packages and do NOT do major upgrades of packages here.
* If you are unsure if your change is suitable, please use a pull request.
####Common LICENSE tags (short list)
(Complete list can be found at: <http://spdx.org/licenses>)
####
| Full Name | Identifier |
|---|:---|
|Apache License 1.0|Apache-1.0|
|Apache License 1.1|Apache-1.1|
|Apache License 2.0|Apache-2.0|
|Artistic License 1.0|Artistic-1.0|
|Artistic License 1.0 (Perl)|Artistic-1.0-Perl|
|Artistic License 1.0 w/clause 8|Artistic-1.0-cl8|
|Artistic License 2.0|Artistic-2.0|
|BSD 2-clause "Simplified" License|BSD-2-Clause|
|BSD 2-clause FreeBSD License|BSD-2-Clause-FreeBSD|
|BSD 2-clause NetBSD License|BSD-2-Clause-NetBSD|
|BSD 3-clause "New" or "Revised" License|BSD-3-Clause|
|BSD 3-clause Clear License|BSD-3-Clause-Clear|
|BSD 4-clause "Original" or "Old" License|BSD-4-Clause|
|BSD Protection License|BSD-Protection|
|BSD with attribution|BSD-3-Clause-Attribution|
|BSD-4-Clause (University of California-Specific)|BSD-4-Clause-UC|
|GNU General Public License v1.0 only|GPL-1.0|
|GNU General Public License v1.0 or later|GPL-1.0+|
|GNU General Public License v2.0 only|GPL-2.0|
|GNU General Public License v2.0 or later|GPL-2.0+|
|GNU General Public License v3.0 only|GPL-3.0|
|GNU General Public License v3.0 or later|GPL-3.0+|
|GNU Lesser General Public License v2.1 only|LGPL-2.1|
|GNU Lesser General Public License v2.1 or later|LGPL-2.1+|
|GNU Lesser General Public License v3.0 only|LGPL-3.0|
|GNU Lesser General Public License v3.0 or later|LGPL-3.0+|
|GNU Library General Public License v2 only|LGPL-2.0|
|GNU Library General Public License v2 or later|LGPL-2.0+|
|Fair License|Fair|
|ISC License|ISC|
|MIT License|MIT|
|No Limit Public License|NLPL|
|OpenSSL License|OpenSSL|
|X11 License|X11|
|zlib License|Zlib|

+ 6
- 5
README.md View File

@ -1,4 +1,4 @@
# OpenWRT packages feed
# OpenWrt packages feed
## Description
@ -6,10 +6,11 @@ This is the OpenWrt "packages"-feed containing community-maintained packages.
## Usage
This feed is enabled by default. To install all its package definitions:
Run: ./scripts/feeds update packages
Run: ./scripts/feeds install -a -p packages
This feed is enabled by default. To install all its package definitions, run:
```
./scripts/feeds update packages
./scripts/feeds install -a -p packages
```
## License


+ 3
- 1
admin/debootstrap/Makefile View File

@ -1,6 +1,6 @@
#
# Copyright (C) 2010 Gianluigi Tiesi <sherpya@netfarm.it>
# Copyright (C) 2011-2013 OpenWrt.org
# Copyright (C) 2011-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@ -16,6 +16,8 @@ PKG_MAINTAINER=Daniel Golle <daniel@makrotopia.org>
PKG_SOURCE:=$(PKG_NAME)-udeb_$(PKG_VERSION)_all.udeb
PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/d/debootstrap
PKG_MD5SUM:=6d4e3b97981b9e0bb86f49d8edac91af
PKG_LICENSE:=Unique
PKG_LICENSE_FILES:=debian/copyright
UNPACK_CMD=ar -p "$(DL_DIR)/$(PKG_SOURCE)" data.tar.xz | xzcat | tar -C $(1) -xf -


+ 2
- 2
admin/htop/Makefile View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2007-2012 OpenWrt.org
# Copyright (C) 2007-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@ -16,7 +16,7 @@ PKG_SOURCE_URL:=http://hisham.hm/htop/releases/$(PKG_VERSION)/
PKG_MD5SUM:=e768b9b55c033d9c1dffda72db3a6ac7
PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=
PKG_LICENSE_FILES:=COPYING
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1


+ 1
- 1
admin/monit/Makefile View File

@ -16,7 +16,7 @@ PKG_SOURCE_URL:=http://mmonit.com/monit/dist
PKG_MD5SUM:=9467328f1da0b644a766a387443db2ea
PKG_LICENSE:=AGPL-3.0
PKG_LICENSE_FILES:=
PKG_LICENSE_FILES:=COPYING
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL:=1


+ 3
- 1
admin/muninlite/Makefile View File

@ -14,6 +14,8 @@ PKG_RELEASE:=5
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
PKG_MD5SUM:=a8cc86f0cc536a6c22dc298f4ed55339
PKG_LICENSE:=GPL-2.0+
PKG_LICENSE_FILES:=LICENSE
include $(INCLUDE_DIR)/package.mk
@ -23,7 +25,7 @@ define Package/muninlite
DEPENDS:=+xinetd
TITLE:=Munin node implemented in shell
URL:=http://sourceforge.net/projects/muninlite/
MAINTAINER:=Jonathan McCrohan <jmccrohan@gmail.com>
PKG_MAINTAINER:=Jonathan McCrohan <jmccrohan@gmail.com>
endef
define Package/muninlite/Default/description


+ 2
- 2
admin/zabbix/Makefile View File

@ -15,8 +15,8 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/zabbix
PKG_MD5SUM:=e7b74a0208743f743585d9cc1d46eccf
PKG_LICENSE:=GPLv2
PKG_LICENSE_FILES:=
PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=COPYING
PKG_INSTALL:=1


+ 115
- 0
devel/gcc/Makefile View File

@ -0,0 +1,115 @@
#
# Copyright (C) 2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
#
include $(TOPDIR)/rules.mk
PKG_NAME:=gcc
PKG_VERSION:=4.8.3
PKG_RELEASE:=1
PKG_SOURCE_URL:=ftp://ftp.fu-berlin.de/unix/languages/gcc/releases/gcc-$(PKG_VERSION) \
http://mirrors.rcn.net/pub/sourceware/gcc/releases/gcc-$(PKG_VERSION) \
ftp://ftp.gnu.org/gnu/gcc/releases/gcc-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_MD5SUM:=7c60f24fab389f77af203d2516ee110f
PKG_INSTALL:=1
PKG_FIXUP:=libtool
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
TARGET_LANGUAGES:="c,c++"
BUGURL=https://dev.openwrt.org/
PKGVERSION=OpenWrt GCC $(PKG_VERSION)
# not using sstrip here as this fucks up the .so's somehow
STRIP:=$(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)strip
RSTRIP:= \
NM="$(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)nm" \
STRIP="$(STRIP)" \
STRIP_KMOD="$(STRIP) --strip-debug" \
$(SCRIPT_DIR)/rstrip.sh
define Package/gcc
SECTION:=devel
CATEGORY:=Development
TITLE:=gcc
MAINTAINER:=Christian Beier <cb@shoutrlabs.com>
DEPENDS:= +binutils +libstdcpp
endef
define Package/gcc/description
build a native toolchain for compiling on target
endef
define Build/Prepare
$(PKG_UNPACK)
# we have to download additional stuff before patching
(cd $(PKG_BUILD_DIR) && ./contrib/download_prerequisites)
$(Build/Patch)
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
SHELL="$(BASH)" \
$(TARGET_CONFIGURE_OPTS) \
$(PKG_BUILD_DIR)/configure \
$(CONFIGURE_ARGS) \
--build=$(GNU_HOST_NAME) \
--host=$(REAL_GNU_TARGET_NAME) \
--target=$(REAL_GNU_TARGET_NAME) \
--enable-languages=$(TARGET_LANGUAGES) \
--with-bugurl=$(BUGURL) \
--with-pkgversion="$(PKGVERSION)" \
--enable-shared \
--disable-__cxa_atexit \
--enable-target-optspace \
--with-gnu-ld \
--disable-nls \
--disable-libmudflap \
--disable-multilib \
--disable-libgomp \
--disable-libquadmath \
--disable-libssp \
--disable-decimal-float \
--disable-libstdcxx-pch \
--with-host-libstdcxx=-lstdc++ \
--prefix=/usr \
--libexecdir=/usr/lib \
$(SOFT_FLOAT_CONFIG_OPTION) \
$(call qstrip,$(CONFIG_EXTRA_GCC_CONFIG_OPTIONS)) \
$(if $(CONFIG_mips64)$(CONFIG_mips64el),--with-arch=mips64 \
--with-abi=$(subst ",,$(CONFIG_MIPS64_ABI))) \
);
endef
define Build/Compile
export SHELL="$(BASH)"; $(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE_ARGS) all install
endef
define Package/gcc/install
$(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib $(1)/usr/lib/$(PKG_NAME)/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION)
cp -ar $(PKG_INSTALL_DIR)/usr/include $(1)/usr
cp -a $(PKG_INSTALL_DIR)/usr/bin/{$(REAL_GNU_TARGET_NAME)-{g++,gcc},cpp,gcov} $(1)/usr/bin
ln -s $(REAL_GNU_TARGET_NAME)-g++ $(1)/usr/bin/c++
ln -s $(REAL_GNU_TARGET_NAME)-g++ $(1)/usr/bin/g++
ln -s $(REAL_GNU_TARGET_NAME)-g++ $(1)/usr/bin/$(REAL_GNU_TARGET_NAME)-c++
ln -s $(REAL_GNU_TARGET_NAME)-gcc $(1)/usr/bin/gcc
ln -s $(REAL_GNU_TARGET_NAME)-gcc $(1)/usr/bin/$(REAL_GNU_TARGET_NAME)-gcc-$(PKG_VERSION)
cp -ar $(PKG_INSTALL_DIR)/usr/lib/gcc $(1)/usr/lib
$(RM) $(1)/usr/lib/$(PKG_NAME)/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION)/*.a
cp -ar $(TOOLCHAIN_DIR)/include $(1)/usr/lib/$(PKG_NAME)/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION)
cp -a $(TOOLCHAIN_DIR)/lib/*.{o,so*} $(1)/usr/lib/$(PKG_NAME)/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION)
cp -a $(TOOLCHAIN_DIR)/lib/*nonshared*.a $(1)/usr/lib/$(PKG_NAME)/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION)
endef
$(eval $(call BuildPackage,gcc))

+ 8
- 0
devel/gcc/README View File

@ -0,0 +1,8 @@
Native GCC that runs on target.
To save disk space, this GCC only supports dynamic linking on the target box,
there are no static libraries shipped.
For now, this was only tested on a mips target. Others to be done...
Christian Beier <cb@shoutrlabs.com>

+ 15
- 0
devel/gcc/patches/002-dont-choke-when-building-32bit-on-64bit.patch View File

@ -0,0 +1,15 @@
diff --git a/gcc/real.h b/gcc/real.h
index 2ff84f6..fbb4b0e 100644
--- a/gcc/real.h
+++ b/gcc/real.h
@@ -72,8 +72,10 @@ struct GTY(()) real_value {
+ (REAL_VALUE_TYPE_SIZE%HOST_BITS_PER_WIDE_INT ? 1 : 0)) /* round up */
/* Verify the guess. */
+#ifndef __LP64__
extern char test_real_width
[sizeof(REAL_VALUE_TYPE) <= REAL_WIDTH*sizeof(HOST_WIDE_INT) ? 1 : -1];
+#endif
/* Calculate the format for CONST_DOUBLE. We need as many slots as
are necessary to overlay a REAL_VALUE_TYPE on them. This could be

+ 38
- 0
devel/gcc/patches/003-mpfr-longlong-mips.patch View File

@ -0,0 +1,38 @@
diff -Naurd mpfr-2.4.2-a/mpfr-longlong.h mpfr-2.4.2-b/mpfr-longlong.h
--- -a/mpfr-2.4.2/mpfr-longlong.h 2009-11-30 02:43:08.000000000 +0000
+++ -b/mpfr-2.4.2/mpfr-longlong.h 2009-12-18 12:04:29.000000000 +0000
@@ -1011,7 +1011,15 @@
#endif /* __m88000__ */
#if defined (__mips) && W_TYPE_SIZE == 32
-#if __GNUC__ > 2 || __GNUC_MINOR__ >= 7
+#if (__GNUC__ >= 5) || (__GNUC__ >= 4 && __GNUC_MINOR__ >= 4)
+#define umul_ppmm(w1, w0, u, v) \
+ do { \
+ UDItype _r; \
+ _r = (UDItype) u * v; \
+ (w1) = _r >> 32; \
+ (w0) = (USItype) _r; \
+ } while (0)
+#elif __GNUC__ > 2 || __GNUC_MINOR__ >= 7
#define umul_ppmm(w1, w0, u, v) \
__asm__ ("multu %2,%3" : "=l" (w0), "=h" (w1) : "d" (u), "d" (v))
#else
@@ -1024,7 +1032,16 @@
#endif /* __mips */
#if (defined (__mips) && __mips >= 3) && W_TYPE_SIZE == 64
-#if __GNUC__ > 2 || __GNUC_MINOR__ >= 7
+#if (__GNUC__ >= 5) || (__GNUC__ >= 4 && __GNUC_MINOR__ >= 4)
+typedef unsigned int UTItype __attribute__ ((mode (TI)));
+#define umul_ppmm(w1, w0, u, v) \
+ do { \
+ UTItype _r; \
+ _r = (UTItype) u * v; \
+ (w1) = _r >> 64; \
+ (w0) = (UDItype) _r; \
+ } while (0)
+#elif __GNUC__ > 2 || __GNUC_MINOR__ >= 7
#define umul_ppmm(w1, w0, u, v) \
__asm__ ("dmultu %2,%3" : "=l" (w0), "=h" (w1) : "d" (u), "d" (v))
#else

+ 23
- 0
devel/gcc/patches/010-documentation.patch View File

@ -0,0 +1,23 @@
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -4326,18 +4326,10 @@ doc/gcc.info: $(TEXI_GCC_FILES)
doc/gccint.info: $(TEXI_GCCINT_FILES)
doc/cppinternals.info: $(TEXI_CPPINT_FILES)
-doc/%.info: %.texi
- if [ x$(BUILD_INFO) = xinfo ]; then \
- $(MAKEINFO) $(MAKEINFOFLAGS) -I . -I $(gcc_docdir) \
- -I $(gcc_docdir)/include -o $@ $<; \
- fi
+doc/%.info:
# Duplicate entry to handle renaming of gccinstall.info
-doc/gccinstall.info: $(TEXI_GCCINSTALL_FILES)
- if [ x$(BUILD_INFO) = xinfo ]; then \
- $(MAKEINFO) $(MAKEINFOFLAGS) -I $(gcc_docdir) \
- -I $(gcc_docdir)/include -o $@ $<; \
- fi
+doc/gccinstall.info:
doc/cpp.dvi: $(TEXI_CPP_FILES)
doc/gcc.dvi: $(TEXI_GCC_FILES)

+ 33
- 0
devel/gcc/patches/100-uclibc-conf.patch View File

@ -0,0 +1,33 @@
--- a/contrib/regression/objs-gcc.sh
+++ b/contrib/regression/objs-gcc.sh
@@ -106,6 +106,10 @@ if [ $H_REAL_TARGET = $H_REAL_HOST -a $H
then
make all-gdb all-dejagnu all-ld || exit 1
make install-gdb install-dejagnu install-ld || exit 1
+elif [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-uclibc ]
+ then
+ make all-gdb all-dejagnu all-ld || exit 1
+ make install-gdb install-dejagnu install-ld || exit 1
elif [ $H_REAL_TARGET = $H_REAL_HOST ] ; then
make bootstrap || exit 1
make install || exit 1
--- a/libjava/classpath/ltconfig
+++ b/libjava/classpath/ltconfig
@@ -603,7 +603,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
case $host_os in
-linux-gnu*) ;;
+linux-gnu*|linux-uclibc*) ;;
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
esac
@@ -1247,7 +1247,7 @@ linux-gnuoldld* | linux-gnuaout* | linux
;;
# This must be Linux ELF.
-linux-gnu*)
+linux*)
version_type=linux
need_lib_prefix=no
need_version=no

+ 321
- 0
devel/gcc/patches/200-musl.patch View File

@ -0,0 +1,321 @@
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -549,7 +549,7 @@ case ${target} in
esac
# Common C libraries.
-tm_defines="$tm_defines LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3"
+tm_defines="$tm_defines LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 LIBC_MUSL=4"
# Common parts for widely ported systems.
case ${target} in
@@ -652,6 +652,9 @@ case ${target} in
*-*-*uclibc*)
tm_defines="$tm_defines DEFAULT_LIBC=LIBC_UCLIBC"
;;
+ *-*-*musl*)
+ tm_defines="$tm_defines DEFAULT_LIBC=LIBC_MUSL"
+ ;;
*)
tm_defines="$tm_defines DEFAULT_LIBC=LIBC_GLIBC"
;;
--- a/gcc/config/arm/linux-eabi.h
+++ b/gcc/config/arm/linux-eabi.h
@@ -77,6 +77,10 @@
%{mfloat-abi=soft*:" GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "} \
%{!mfloat-abi=*:" GLIBC_DYNAMIC_LINKER_DEFAULT "}"
+/* musl has no "classic" (i.e. broken) mode */
+#undef MUSL_DYNAMIC_LINKER
+#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-arm.so.1"
+
/* At this point, bpabi.h will have clobbered LINK_SPEC. We want to
use the GNU/Linux version, not the generic BPABI version. */
#undef LINK_SPEC
--- a/gcc/config/i386/linux.h
+++ b/gcc/config/i386/linux.h
@@ -21,3 +21,4 @@ along with GCC; see the file COPYING3.
#define GNU_USER_LINK_EMULATION "elf_i386"
#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
+#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-i386.so.1"
--- a/gcc/config/i386/linux64.h
+++ b/gcc/config/i386/linux64.h
@@ -30,3 +30,7 @@ see the files COPYING3 and COPYING.RUNTI
#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2"
#define GLIBC_DYNAMIC_LINKERX32 "/libx32/ld-linux-x32.so.2"
+
+#define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-i386.so.1"
+#define MUSL_DYNAMIC_LINKER64 "/lib/ld-musl-x86_64.so.1"
+#define MUSL_DYNAMIC_LINKERX32 "/lib/ld-musl-x32.so.1"
--- a/gcc/config/linux.h
+++ b/gcc/config/linux.h
@@ -32,10 +32,12 @@ see the files COPYING3 and COPYING.RUNTI
#define OPTION_GLIBC (DEFAULT_LIBC == LIBC_GLIBC)
#define OPTION_UCLIBC (DEFAULT_LIBC == LIBC_UCLIBC)
#define OPTION_BIONIC (DEFAULT_LIBC == LIBC_BIONIC)
+#define OPTION_MUSL (DEFAULT_LIBC == LIBC_MUSL)
#else
#define OPTION_GLIBC (linux_libc == LIBC_GLIBC)
#define OPTION_UCLIBC (linux_libc == LIBC_UCLIBC)
#define OPTION_BIONIC (linux_libc == LIBC_BIONIC)
+#define OPTION_MUSL (linux_libc == LIBC_MUSL)
#endif
#define GNU_USER_TARGET_OS_CPP_BUILTINS() \
@@ -53,18 +55,21 @@ see the files COPYING3 and COPYING.RUNTI
uClibc or Bionic is the default C library and whether
-muclibc or -mglibc or -mbionic has been passed to change the default. */
-#define CHOOSE_DYNAMIC_LINKER1(LIBC1, LIBC2, LIBC3, LD1, LD2, LD3) \
- "%{" LIBC2 ":" LD2 ";:%{" LIBC3 ":" LD3 ";:" LD1 "}}"
+#define CHOOSE_DYNAMIC_LINKER1(LIBC1, LIBC2, LIBC3, LIBC4, LD1, LD2, LD3, LD4) \
+ "%{" LIBC2 ":" LD2 ";:%{" LIBC3 ":" LD3 ";:%{" LIBC4 ":" LD4 ";:" LD1 "}}}"
#if DEFAULT_LIBC == LIBC_GLIBC
-#define CHOOSE_DYNAMIC_LINKER(G, U, B) \
- CHOOSE_DYNAMIC_LINKER1 ("mglibc", "muclibc", "mbionic", G, U, B)
+#define CHOOSE_DYNAMIC_LINKER(G, U, B, M) \
+ CHOOSE_DYNAMIC_LINKER1 ("mglibc", "muclibc", "mbionic", "mmusl", G, U, B, M)
#elif DEFAULT_LIBC == LIBC_UCLIBC
-#define CHOOSE_DYNAMIC_LINKER(G, U, B) \
- CHOOSE_DYNAMIC_LINKER1 ("muclibc", "mglibc", "mbionic", U, G, B)
+#define CHOOSE_DYNAMIC_LINKER(G, U, B, M) \
+ CHOOSE_DYNAMIC_LINKER1 ("muclibc", "mglibc", "mbionic", "mmusl", U, G, B, M)
#elif DEFAULT_LIBC == LIBC_BIONIC
-#define CHOOSE_DYNAMIC_LINKER(G, U, B) \
- CHOOSE_DYNAMIC_LINKER1 ("mbionic", "mglibc", "muclibc", B, G, U)
+#define CHOOSE_DYNAMIC_LINKER(G, U, B, M) \
+ CHOOSE_DYNAMIC_LINKER1 ("mbionic", "mglibc", "muclibc", "mmusl", B, G, U, M)
+#elif DEFAULT_LIBC == LIBC_MUSL
+#define CHOOSE_DYNAMIC_LINKER(G, U, B, M) \
+ CHOOSE_DYNAMIC_LINKER1 ("mmusl", "mglibc", "muclibc", "mbionic", M, G, U, B)
#else
#error "Unsupported DEFAULT_LIBC"
#endif /* DEFAULT_LIBC */
@@ -84,16 +89,16 @@ see the files COPYING3 and COPYING.RUNTI
#define GNU_USER_DYNAMIC_LINKER \
CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER, \
- BIONIC_DYNAMIC_LINKER)
+ BIONIC_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER)
#define GNU_USER_DYNAMIC_LINKER32 \
CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER32, \
- BIONIC_DYNAMIC_LINKER32)
+ BIONIC_DYNAMIC_LINKER32, MUSL_DYNAMIC_LINKER32)
#define GNU_USER_DYNAMIC_LINKER64 \
CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER64, UCLIBC_DYNAMIC_LINKER64, \
- BIONIC_DYNAMIC_LINKER64)
+ BIONIC_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKER64)
#define GNU_USER_DYNAMIC_LINKERX32 \
CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERX32, UCLIBC_DYNAMIC_LINKERX32, \
- BIONIC_DYNAMIC_LINKERX32)
+ BIONIC_DYNAMIC_LINKERX32, MUSL_DYNAMIC_LINKERX32)
/* Determine whether the entire c99 runtime
is present in the runtime library. */
--- a/gcc/config/linux.opt
+++ b/gcc/config/linux.opt
@@ -30,3 +30,7 @@ Use GNU C library
muclibc
Target Report RejectNegative Var(linux_libc,LIBC_UCLIBC) Negative(mbionic)
Use uClibc C library
+
+mmusl
+Target Report RejectNegative Var(linux_libc,LIBC_MUSL) Negative(mglibc)
+Use musl C library
--- a/gcc/config/mips/linux.h
+++ b/gcc/config/mips/linux.h
@@ -18,3 +18,5 @@ along with GCC; see the file COPYING3.
<http://www.gnu.org/licenses/>. */
#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
+
+#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-mips.so.1"
--- a/gcc/config/rs6000/linux64.h
+++ b/gcc/config/rs6000/linux64.h
@@ -364,17 +364,21 @@ extern int dot_symbols;
#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld64.so.1"
#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
+#define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-powerpc.so.1"
+#define MUSL_DYNAMIC_LINKER64 "/lib/ld-musl-powerpc64.so.1"
#if DEFAULT_LIBC == LIBC_UCLIBC
-#define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}"
+#define CHOOSE_DYNAMIC_LINKER(G, U, M) "%{mglibc:" G ";:%{mmusl:" M ";:" U "}}"
#elif DEFAULT_LIBC == LIBC_GLIBC
-#define CHOOSE_DYNAMIC_LINKER(G, U) "%{muclibc:" U ";:" G "}"
+#define CHOOSE_DYNAMIC_LINKER(G, U, M) "%{muclibc:" U ";:%{mmusl:" M ";:" G "}}"
+#elif DEFAULT_LIBC == LIBC_MUSL
+#define CHOOSE_DYNAMIC_LINKER(G, U, M) "%{mglibc:" G ";:%{muclibc:" U ";:" M "}}"
#else
#error "Unsupported DEFAULT_LIBC"
#endif
#define GNU_USER_DYNAMIC_LINKER32 \
- CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER32)
+ CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER32, MUSL_DYNAMIC_LINKER32)
#define GNU_USER_DYNAMIC_LINKER64 \
- CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER64, UCLIBC_DYNAMIC_LINKER64)
+ CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER64, UCLIBC_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKER64)
#define LINK_OS_LINUX_SPEC32 "-m elf32ppclinux %{!shared: %{!static: \
--- a/gcc/config/rs6000/sysv4.h
+++ b/gcc/config/rs6000/sysv4.h
@@ -789,15 +789,18 @@ extern int fixuplabelno;
#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
+#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-powerpc.so.1"
#if DEFAULT_LIBC == LIBC_UCLIBC
-#define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}"
+#define CHOOSE_DYNAMIC_LINKER(G, U, M) "%{mglibc:" G ";:%{mmusl:" M ";:" U "}}"
+#elif DEFAULT_LIBC == LIBC_MUSL
+#define CHOOSE_DYNAMIC_LINKER(G, U, M) "%{mglibc:" G ";:%{muclibc:" U ";:" M "}}"
#elif !defined (DEFAULT_LIBC) || DEFAULT_LIBC == LIBC_GLIBC
-#define CHOOSE_DYNAMIC_LINKER(G, U) "%{muclibc:" U ";:" G "}"
+#define CHOOSE_DYNAMIC_LINKER(G, U, M) "%{muclibc:" U ";:%{mmusl:" M ";:" G "}}"
#else
#error "Unsupported DEFAULT_LIBC"
#endif
#define GNU_USER_DYNAMIC_LINKER \
- CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
+ CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER)
#define LINK_OS_LINUX_SPEC "-m elf32ppclinux %{!shared: %{!static: \
%{rdynamic:-export-dynamic} \
--- a/gcc/ginclude/stddef.h
+++ b/gcc/ginclude/stddef.h
@@ -181,6 +181,7 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t;
#ifndef _GCC_SIZE_T
#ifndef _SIZET_
#ifndef __size_t
+#ifndef __DEFINED_size_t /* musl */
#define __size_t__ /* BeOS */
#define __SIZE_T__ /* Cray Unicos/Mk */
#define _SIZE_T
@@ -197,6 +198,7 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t;
#define ___int_size_t_h
#define _GCC_SIZE_T
#define _SIZET_
+#define __DEFINED_size_t /* musl */
#if (defined (__FreeBSD__) && (__FreeBSD__ >= 5)) \
|| defined(__FreeBSD_kernel__)
/* __size_t is a typedef on FreeBSD 5, must not trash it. */
@@ -214,6 +216,7 @@ typedef __SIZE_TYPE__ size_t;
typedef long ssize_t;
#endif /* __BEOS__ */
#endif /* !(defined (__GNUG__) && defined (size_t)) */
+#endif /* __DEFINED_size_t */
#endif /* __size_t */
#endif /* _SIZET_ */
#endif /* _GCC_SIZE_T */
--- a/libgomp/config/posix/time.c
+++ b/libgomp/config/posix/time.c
@@ -28,6 +28,8 @@
The following implementation uses the most simple POSIX routines.
If present, POSIX 4 clocks should be used instead. */
+#define _POSIX_C_SOURCE 199309L /* for clocks */
+
#include "libgomp.h"
#include <unistd.h>
#if TIME_WITH_SYS_TIME
--- a/libitm/config/arm/hwcap.cc
+++ b/libitm/config/arm/hwcap.cc
@@ -40,7 +40,11 @@ int GTM_hwcap HIDDEN = 0
#ifdef __linux__
#include <unistd.h>
+#ifdef __GLIBC__
#include <sys/fcntl.h>
+#else
+#include <fcntl.h>
+#endif
#include <elf.h>
static void __attribute__((constructor))
--- a/libitm/config/linux/x86/tls.h
+++ b/libitm/config/linux/x86/tls.h
@@ -25,16 +25,19 @@
#ifndef LIBITM_X86_TLS_H
#define LIBITM_X86_TLS_H 1
-#if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 10)
+#if defined(__GLIBC_PREREQ)
+#if __GLIBC_PREREQ(2, 10)
/* Use slots in the TCB head rather than __thread lookups.
GLIBC has reserved words 10 through 13 for TM. */
#define HAVE_ARCH_GTM_THREAD 1
#define HAVE_ARCH_GTM_THREAD_DISP 1
#endif
+#endif
#include "config/generic/tls.h"
-#if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 10)
+#if defined(__GLIBC_PREREQ)
+#if __GLIBC_PREREQ(2, 10)
namespace GTM HIDDEN {
#ifdef __x86_64__
@@ -101,5 +104,6 @@ static inline void set_abi_disp(struct a
} // namespace GTM
#endif /* >= GLIBC 2.10 */
+#endif
#endif // LIBITM_X86_TLS_H
--- a/libstdc++-v3/configure.host
+++ b/libstdc++-v3/configure.host
@@ -264,6 +264,13 @@ case "${host_os}" in
os_include_dir="os/bsd/freebsd"
;;
gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
+ # check for musl by target
+ case "${host_os}" in
+ *-musl*)
+ os_include_dir="os/generic"
+ ;;
+ *)
+
if [ "$uclibc" = "yes" ]; then
os_include_dir="os/uclibc"
elif [ "$bionic" = "yes" ]; then
@@ -272,6 +279,9 @@ case "${host_os}" in
os_include_dir="os/gnu-linux"
fi
;;
+
+ esac
+ ;;
hpux*)
os_include_dir="os/hpux"
;;
--- a/gcc/config/mips/linux64.h
+++ b/gcc/config/mips/linux64.h
@@ -27,6 +27,9 @@ along with GCC; see the file COPYING3.
#define GLIBC_DYNAMIC_LINKERN32 "/lib32/ld.so.1"
#define UCLIBC_DYNAMIC_LINKERN32 "/lib32/ld-uClibc.so.0"
#define BIONIC_DYNAMIC_LINKERN32 "/system/bin/linker32"
+#define MUSL_DYNAMIC_LINKERN32 "/lib/ld-musl-mips.so.1"
+#define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-mips.so.1"
+#define MUSL_DYNAMIC_LINKER64 "/lib/ld-musl-mips.so.1"
#define GNU_USER_DYNAMIC_LINKERN32 \
CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32, \
- BIONIC_DYNAMIC_LINKERN32)
+ BIONIC_DYNAMIC_LINKERN32, MUSL_DYNAMIC_LINKERN32)
--- a/gcc/config/sparc/linux64.h 2013-09-10 10:02:45.663973856 +0100
+++ b/gcc/config/sparc/linux64.h 2013-09-10 10:03:17.871972435 +0100
@@ -104,6 +104,9 @@
#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux.so.2"
+#define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-sparc.so.1"
+#define MUSL_DYNAMIC_LINKER64 "/lib/ld-musl-sparc.so.1"
+
#ifdef SPARC_BI_ARCH
#undef SUBTARGET_EXTRA_SPECS

+ 11
- 0
devel/gcc/patches/800-arm_v5te_no_ldrd_strd.patch View File

@ -0,0 +1,11 @@
--- a/gcc/config/arm/arm.h
+++ b/gcc/config/arm/arm.h
@@ -271,7 +271,7 @@ extern void (*arm_lang_output_object_att
/* Thumb-1 only. */
#define TARGET_THUMB1_ONLY (TARGET_THUMB1 && !arm_arch_notm)
-#define TARGET_LDRD (arm_arch5e && ARM_DOUBLEWORD_ALIGN \
+#define TARGET_LDRD (arm_arch6 && ARM_DOUBLEWORD_ALIGN \
&& !TARGET_THUMB1)
/* The following two macros concern the ability to execute coprocessor

+ 25
- 0
devel/gcc/patches/810-arm-softfloat-libgcc.patch View File

@ -0,0 +1,25 @@
--- a/libgcc/config/arm/t-linux
+++ b/libgcc/config/arm/t-linux
@@ -1,6 +1,10 @@
LIB1ASMSRC = arm/lib1funcs.S
LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx _clzsi2 _clzdi2 \
- _ctzsi2 _arm_addsubdf3 _arm_addsubsf3
+ _ctzsi2 _arm_addsubdf3 _arm_addsubsf3 \
+ _arm_negdf2 _arm_muldivdf3 _arm_cmpdf2 _arm_unorddf2 \
+ _arm_fixdfsi _arm_fixunsdfsi _arm_truncdfsf2 \
+ _arm_negsf2 _arm_muldivsf3 _arm_cmpsf2 _arm_unordsf2 \
+ _arm_fixsfsi _arm_fixunssfsi
# Just for these, we omit the frame pointer since it makes such a big
# difference.
--- a/gcc/config/arm/linux-elf.h
+++ b/gcc/config/arm/linux-elf.h
@@ -55,8 +55,6 @@
%{shared:-lc} \
%{!shared:%{profile:-lc_p}%{!profile:-lc}}"
-#define LIBGCC_SPEC "%{mfloat-abi=soft*:-lfloat} -lgcc"
-
#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
#define LINUX_TARGET_LINK_SPEC "%{h*} \

+ 36
- 0
devel/gcc/patches/820-libgcc_pic.patch View File

@ -0,0 +1,36 @@
--- a/libgcc/Makefile.in
+++ b/libgcc/Makefile.in
@@ -865,11 +865,12 @@ $(libgcov-objects): %$(objext): $(srcdir
# Static libraries.
libgcc.a: $(libgcc-objects)
+libgcc_pic.a: $(libgcc-s-objects)
libgcov.a: $(libgcov-objects)
libunwind.a: $(libunwind-objects)
libgcc_eh.a: $(libgcc-eh-objects)
-libgcc.a libgcov.a libunwind.a libgcc_eh.a:
+libgcc.a libgcov.a libunwind.a libgcc_eh.a libgcc_pic.a:
-rm -f $@
objects="$(objects)"; \
@@ -891,7 +892,7 @@ libgcc_s$(SHLIB_EXT): libunwind$(SHLIB_E
endif
ifeq ($(enable_shared),yes)
-all: libgcc_eh.a libgcc_s$(SHLIB_EXT)
+all: libgcc_eh.a libgcc_pic.a libgcc_s$(SHLIB_EXT)
ifneq ($(LIBUNWIND),)
all: libunwind$(SHLIB_EXT)
endif
@@ -1058,6 +1059,10 @@ install-shared:
chmod 644 $(DESTDIR)$(inst_libdir)/libgcc_eh.a
$(RANLIB) $(DESTDIR)$(inst_libdir)/libgcc_eh.a
+ $(INSTALL_DATA) libgcc_pic.a $(mapfile) $(DESTDIR)$(inst_libdir)/
+ chmod 644 $(DESTDIR)$(inst_libdir)/libgcc_pic.a
+ $(RANLIB) $(DESTDIR)$(inst_libdir)/libgcc_pic.a
+
$(subst @multilib_dir@,$(MULTIDIR),$(subst \
@shlib_base_name@,libgcc_s,$(subst \
@shlib_slibdir_qual@,$(MULTIOSSUBDIR),$(SHLIB_INSTALL))))

+ 13
- 0
devel/gcc/patches/830-arm_unbreak_armv4t.patch View File

@ -0,0 +1,13 @@
http://sourceware.org/ml/crossgcc/2008-05/msg00009.html
--- a/gcc/config/arm/linux-eabi.h
+++ b/gcc/config/arm/linux-eabi.h
@@ -45,7 +45,7 @@
The ARM10TDMI core is the default for armv5t, so set
SUBTARGET_CPU_DEFAULT to achieve this. */
#undef SUBTARGET_CPU_DEFAULT
-#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm10tdmi
+#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm9tdmi
/* TARGET_BIG_ENDIAN_DEFAULT is set in
config.gcc for big endian configurations. */

+ 19
- 0
devel/gcc/patches/840-armv4_pass_fix-v4bx_to_ld.patch View File

@ -0,0 +1,19 @@
--- a/gcc/config/arm/linux-eabi.h
+++ b/gcc/config/arm/linux-eabi.h
@@ -81,10 +81,15 @@
#undef MUSL_DYNAMIC_LINKER
#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-arm.so.1"
+/* For armv4 we pass --fix-v4bx to linker to support EABI */
+#undef TARGET_FIX_V4BX_SPEC
+#define TARGET_FIX_V4BX_SPEC " %{mcpu=arm8|mcpu=arm810|mcpu=strongarm*"\
+ "|march=armv4|mcpu=fa526|mcpu=fa626:--fix-v4bx}"
+
/* At this point, bpabi.h will have clobbered LINK_SPEC. We want to
use the GNU/Linux version, not the generic BPABI version. */
#undef LINK_SPEC
-#define LINK_SPEC BE8_LINK_SPEC \
+#define LINK_SPEC BE8_LINK_SPEC TARGET_FIX_V4BX_SPEC \
LINUX_OR_ANDROID_LD (LINUX_TARGET_LINK_SPEC, \
LINUX_TARGET_LINK_SPEC " " ANDROID_LINK_SPEC)

+ 47
- 0
devel/gcc/patches/850-use_shared_libgcc.patch View File

@ -0,0 +1,47 @@
--- a/gcc/config/arm/linux-eabi.h
+++ b/gcc/config/arm/linux-eabi.h
@@ -114,10 +114,6 @@
#define ENDFILE_SPEC \
LINUX_OR_ANDROID_LD (GNU_USER_TARGET_ENDFILE_SPEC, ANDROID_ENDFILE_SPEC)
-/* Use the default LIBGCC_SPEC, not the version in linux-elf.h, as we
- do not use -lfloat. */
-#undef LIBGCC_SPEC
-
/* Clear the instruction cache from `beg' to `end'. This is
implemented in lib1funcs.S, so ensure an error if this definition
is used. */
--- a/gcc/config/linux.h
+++ b/gcc/config/linux.h
@@ -51,6 +51,10 @@ see the files COPYING3 and COPYING.RUNTI
builtin_assert ("system=posix"); \
} while (0)
+#ifndef LIBGCC_SPEC
+#define LIBGCC_SPEC "%{static|static-libgcc:-lgcc}%{!static:%{!static-libgcc:-lgcc_s}}"
+#endif
+
/* Determine which dynamic linker to use depending on whether GLIBC or
uClibc or Bionic is the default C library and whether
-muclibc or -mglibc or -mbionic has been passed to change the default. */
--- a/libgcc/mkmap-symver.awk
+++ b/libgcc/mkmap-symver.awk
@@ -132,5 +132,5 @@ function output(lib) {
else if (inherit[lib])
printf("} %s;\n", inherit[lib]);
else
- printf ("\n local:\n\t*;\n};\n");
+ printf ("\n\t*;\n};\n");
}
--- a/gcc/config/rs6000/linux.h
+++ b/gcc/config/rs6000/linux.h
@@ -61,6 +61,9 @@
#undef CPLUSPLUS_CPP_SPEC
#define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)"
+#undef LIBGCC_SPEC
+#define LIBGCC_SPEC "%{!static:%{!static-libgcc:-lgcc_s}} -lgcc"
+
#undef LINK_SHLIB_SPEC
#define LINK_SHLIB_SPEC "%{shared:-shared} %{!shared: %{static:-static}}"

+ 29
- 0
devel/gcc/patches/860-uclibc_use_eh_frame.patch View File

@ -0,0 +1,29 @@
--- a/libgcc/crtstuff.c
+++ b/libgcc/crtstuff.c
@@ -100,15 +100,20 @@ call_ ## FUNC (void) \
#if defined(OBJECT_FORMAT_ELF) \
&& !defined(OBJECT_FORMAT_FLAT) \
&& defined(HAVE_LD_EH_FRAME_HDR) \
- && !defined(inhibit_libc) && !defined(CRTSTUFFT_O) \
- && defined(__GLIBC__) && __GLIBC__ >= 2
+ && !defined(inhibit_libc) && !defined(CRTSTUFFT_O)
#include <link.h>
/* uClibc pretends to be glibc 2.2 and DT_CONFIG is defined in its link.h.
But it doesn't use PT_GNU_EH_FRAME ELF segment currently. */
-# if !defined(__UCLIBC__) \
- && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) \
- || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG)))
-# define USE_PT_GNU_EH_FRAME
+# if defined(__UCLIBC__)
+# if (__UCLIBC_MAJOR__ > 0 || __UCLIBC_MINOR__ > 9 || \
+ (__UCLIBC_MINOR__ == 9 && __UCLIBC_SUBLEVEL__ >= 33))
+# define USE_PT_GNU_EH_FRAME
+# endif
+# elif defined(__GLIBC__)
+# if (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) \
+ || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG)))
+# define USE_PT_GNU_EH_FRAME
+# endif
# endif
#endif

+ 11
- 0
devel/gcc/patches/870-ppc_no_crtsavres.patch View File

@ -0,0 +1,11 @@
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -17653,7 +17653,7 @@ rs6000_savres_strategy (rs6000_stack_t *
/* Define cutoff for using out-of-line functions to save registers. */
if (DEFAULT_ABI == ABI_V4 || TARGET_ELF)
{
- if (!optimize_size)
+ if (1)
{
strategy |= SAVE_INLINE_FPRS | REST_INLINE_FPRS;
strategy |= SAVE_INLINE_GPRS | REST_INLINE_GPRS;

+ 11
- 0
devel/gcc/patches/880-no_java_section.patch View File

@ -0,0 +1,11 @@
--- a/gcc/defaults.h
+++ b/gcc/defaults.h
@@ -380,7 +380,7 @@ see the files COPYING3 and COPYING.RUNTI
/* If we have named section and we support weak symbols, then use the
.jcr section for recording java classes which need to be registered
at program start-up time. */
-#if defined (TARGET_ASM_NAMED_SECTION) && SUPPORTS_WEAK
+#if 0 && defined (TARGET_ASM_NAMED_SECTION) && SUPPORTS_WEAK
#ifndef JCR_SECTION_NAME
#define JCR_SECTION_NAME ".jcr"
#endif

+ 9
- 0
devel/gcc/patches/900-bad-mips16-crt.patch View File

@ -0,0 +1,9 @@
--- a/libgcc/config/mips/t-mips16
+++ b/libgcc/config/mips/t-mips16
@@ -43,3 +43,6 @@ SYNC_CFLAGS = -mno-mips16
# Version these symbols if building libgcc.so.
SHLIB_MAPFILES += $(srcdir)/config/mips/libgcc-mips16.ver
+
+CRTSTUFF_T_CFLAGS += -mno-mips16
+CRTSTUFF_T_CFLAGS_S += -mno-mips16

+ 253
- 0
devel/gcc/patches/910-mbsd_multi.patch View File

@ -0,0 +1,253 @@
This patch brings over a few features from MirBSD:
* -fhonour-copts
If this option is not given, it's warned (depending
on environment variables). This is to catch errors
of misbuilt packages which override CFLAGS themselves.
* -Werror-maybe-reset
Has the effect of -Wno-error if GCC_NO_WERROR is
set and not '0', a no-operation otherwise. This is
to be able to use -Werror in "make" but prevent
GNU autoconf generated configure scripts from
freaking out.
* Make -fno-strict-aliasing and -fno-delete-null-pointer-checks
the default for -O2/-Os, because they trigger gcc bugs
and can delete code with security implications.
This patch was authored by Thorsten Glaser <tg at mirbsd.de>
with copyright assignment to the FSF in effect.
--- a/gcc/c-family/c-opts.c
+++ b/gcc/c-family/c-opts.c
@@ -104,6 +104,9 @@ static size_t include_cursor;
/* Whether any standard preincluded header has been preincluded. */
static bool done_preinclude;
+/* Check if a port honours COPTS. */
+static int honour_copts = 0;
+
static void handle_OPT_d (const char *);
static void set_std_cxx98 (int);
static void set_std_cxx11 (int);
@@ -383,6 +386,9 @@ c_common_handle_option (size_t scode, co
cpp_opts->warn_endif_labels = value;
break;
+ case OPT_Werror_maybe_reset:
+ break;
+
case OPT_Winvalid_pch:
cpp_opts->warn_invalid_pch = value;
break;
@@ -491,6 +497,12 @@ c_common_handle_option (size_t scode, co
flag_no_builtin = !value;
break;
+ case OPT_fhonour_copts:
+ if (c_language == clk_c) {
+ honour_copts++;
+ }
+ break;
+
case OPT_fconstant_string_class_:
constant_string_class_name = arg;
break;
@@ -1027,6 +1039,47 @@ c_common_init (void)
return false;
}
+ if (c_language == clk_c) {
+ char *ev = getenv ("GCC_HONOUR_COPTS");
+ int evv;
+ if (ev == NULL)
+ evv = -1;
+ else if ((*ev == '0') || (*ev == '\0'))
+ evv = 0;
+ else if (*ev == '1')
+ evv = 1;
+ else if (*ev == '2')
+ evv = 2;
+ else if (*ev == 's')
+ evv = -1;
+ else {
+ warning (0, "unknown GCC_HONOUR_COPTS value, assuming 1");
+ evv = 1; /* maybe depend this on something like MIRBSD_NATIVE? */
+ }
+ if (evv == 1) {
+ if (honour_copts == 0) {
+ error ("someone does not honour COPTS at all in lenient mode");
+ return false;
+ } else if (honour_copts != 1) {
+ warning (0, "someone does not honour COPTS correctly, passed %d times",
+ honour_copts);
+ }
+ } else if (evv == 2) {
+ if (honour_copts == 0) {
+ error ("someone does not honour COPTS at all in strict mode");
+ return false;
+ } else if (honour_copts != 1) {
+ error ("someone does not honour COPTS correctly, passed %d times",
+ honour_copts);
+ return false;
+ }
+ } else if (evv == 0) {
+ if (honour_copts != 1)
+ inform (0, "someone does not honour COPTS correctly, passed %d times",
+ honour_copts);
+ }
+ }
+
return true;
}
--- a/gcc/c-family/c.opt
+++ b/gcc/c-family/c.opt
@@ -379,6 +379,10 @@ Werror-implicit-function-declaration
C ObjC RejectNegative Warning Alias(Werror=, implicit-function-declaration)
This switch is deprecated; use -Werror=implicit-function-declaration instead
+Werror-maybe-reset
+C ObjC C++ ObjC++
+; Documented in common.opt
+
Wfloat-equal
C ObjC C++ ObjC++ Var(warn_float_equal) Warning
Warn if testing floating point numbers for equality
@@ -949,6 +953,9 @@ C++ ObjC++ Optimization Alias(fexception
fhonor-std
C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
+fhonour-copts
+C ObjC C++ ObjC++ RejectNegative
+
fhosted
C ObjC
Assume normal C execution environment
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -541,6 +541,10 @@ Werror=
Common Joined
Treat specified warning as error
+Werror-maybe-reset
+Common
+If environment variable GCC_NO_WERROR is set, act as -Wno-error
+
Wextra
Common Var(extra_warnings) Warning
Print extra (possibly unwanted) warnings
@@ -1242,6 +1246,9 @@ fguess-branch-probability
Common Report Var(flag_guess_branch_prob) Optimization
Enable guessing of branch probabilities
+fhonour-copts
+Common RejectNegative
+
; Nonzero means ignore `#ident' directives. 0 means handle them.
; Generate position-independent code for executables if possible
; On SVR4 targets, it also controls whether or not to emit a
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -468,8 +468,6 @@ static const struct default_options defa
{ OPT_LEVELS_2_PLUS, OPT_fschedule_insns2, NULL, 1 },
#endif
{ OPT_LEVELS_2_PLUS, OPT_fregmove, NULL, 1 },
- { OPT_LEVELS_2_PLUS, OPT_fstrict_aliasing, NULL, 1 },
- { OPT_LEVELS_2_PLUS, OPT_fstrict_overflow, NULL, 1 },
{ OPT_LEVELS_2_PLUS, OPT_freorder_blocks, NULL, 1 },
{ OPT_LEVELS_2_PLUS, OPT_freorder_functions, NULL, 1 },
{ OPT_LEVELS_2_PLUS, OPT_ftree_vrp, NULL, 1 },
@@ -488,6 +486,8 @@ static const struct default_options defa
{ OPT_LEVELS_2_PLUS, OPT_fhoist_adjacent_loads, NULL, 1 },
/* -O3 optimizations. */
+ { OPT_LEVELS_3_PLUS, OPT_fstrict_aliasing, NULL, 1 },
+ { OPT_LEVELS_3_PLUS, OPT_fstrict_overflow, NULL, 1 },
{ OPT_LEVELS_3_PLUS, OPT_ftree_loop_distribute_patterns, NULL, 1 },
{ OPT_LEVELS_3_PLUS, OPT_fpredictive_commoning, NULL, 1 },
/* Inlining of functions reducing size is a good idea with -Os
@@ -1423,6 +1423,17 @@ common_handle_option (struct gcc_options
opts, opts_set, loc, dc);
break;
+ case OPT_Werror_maybe_reset:
+ {
+ char *ev = getenv ("GCC_NO_WERROR");
+ if ((ev != NULL) && (*ev != '0'))
+ warnings_are_errors = 0;
+ }
+ break;
+
+ case OPT_fhonour_copts:
+ break;
+
case OPT_Wlarger_than_:
opts->x_larger_than_size = value;
opts->x_warn_larger_than = value != -1;
--- a/gcc/doc/cppopts.texi
+++ b/gcc/doc/cppopts.texi
@@ -163,6 +163,11 @@ in older programs. This warning is on b
Make all warnings into hard errors. Source code which triggers warnings
will be rejected.
+ at item -Werror-maybe-reset
+ at opindex Werror-maybe-reset
+Act like @samp{-Wno-error} if the @env{GCC_NO_WERROR} environment
+variable is set to anything other than 0 or empty.
+
@item -Wsystem-headers
@opindex Wsystem-headers
Issue warnings for code in system headers. These are normally unhelpful
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -240,7 +240,7 @@ Objective-C and Objective-C++ Dialects}.
-Wconversion -Wcoverage-mismatch -Wno-cpp -Wno-deprecated @gol
-Wno-deprecated-declarations -Wdisabled-optimization @gol
-Wno-div-by-zero -Wdouble-promotion -Wempty-body -Wenum-compare @gol
--Wno-endif-labels -Werror -Werror=* @gol
+-Wno-endif-labels -Werror -Werror=* -Werror-maybe-reset @gol
-Wfatal-errors -Wfloat-equal -Wformat -Wformat=2 @gol
-Wno-format-contains-nul -Wno-format-extra-args -Wformat-nonliteral @gol
-Wformat-security -Wformat-y2k @gol
@@ -4808,6 +4808,22 @@ This option is only supported for C and
@option{-Wall} and by @option{-Wpedantic}, which can be disabled with
@option{-Wno-pointer-sign}.
+ at item -Werror-maybe-reset
+ at opindex Werror-maybe-reset
+Act like @samp{-Wno-error} if the @env{GCC_NO_WERROR} environment
+variable is set to anything other than 0 or empty.
+
+ at item -fhonour-copts
+ at opindex fhonour-copts
+If @env{GCC_HONOUR_COPTS} is set to 1, abort if this option is not
+given at least once, and warn if it is given more than once.
+If @env{GCC_HONOUR_COPTS} is set to 2, abort if this option is not
+given exactly once.
+If @env{GCC_HONOUR_COPTS} is set to 0 or unset, warn if this option
+is not given exactly once.
+The warning is quelled if @env{GCC_HONOUR_COPTS} is set to @samp{s}.
+This flag and environment variable only affect the C language.
+
@item -Wstack-protector
@opindex Wstack-protector
@opindex Wno-stack-protector
@@ -6919,7 +6935,7 @@ so, the first branch is redirected to ei
second branch or a point immediately following it, depending on whether
the condition is known to be true or false.
-Enabled at levels @option{-O2}, @option{-O3}, @option{-Os}.
+Enabled at levels @option{-O3}.
@item -fsplit-wide-types
@opindex fsplit-wide-types
--- a/gcc/java/jvspec.c
+++ b/gcc/java/jvspec.c
@@ -626,6 +626,7 @@ lang_specific_pre_link (void)
class name. Append dummy `.c' that can be stripped by set_input so %b
is correct. */
set_input (concat (main_class_name, "main.c", NULL));
+ putenv ("GCC_HONOUR_COPTS=s"); /* XXX hack! */
err = do_spec (jvgenmain_spec);
if (err == 0)
{

+ 14
- 0
devel/gcc/patches/920-specs_nonfatal_getenv.patch View File

@ -0,0 +1,14 @@
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -8003,7 +8003,10 @@ getenv_spec_function (int argc, const ch
value = getenv (argv[0]);
if (!value)
- fatal_error ("environment variable %qs not defined", argv[0]);
+ {
+ warning (0, "environment variable %qs not defined", argv[0]);
+ value = "";
+ }
/* We have to escape every character of the environment variable so
they are not interpreted as active spec characters. A

+ 2
- 0
devel/patch/Makefile View File

@ -14,6 +14,8 @@ PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@GNU/patch
PKG_MD5SUM:=e9ae5393426d3ad783a300a338c09b72
PKG_LICENSE:=GPL-3.0+
PKG_LICENSE_FILES:=COPYING
include $(INCLUDE_DIR)/package.mk


+ 2
- 0
ipv6/aiccu/Makefile View File

@ -14,6 +14,8 @@ PKG_RELEASE:=11
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.sixxs.net/archive/sixxs/aiccu/unix
PKG_MD5SUM:=c9bcc83644ed788e22a7c3f3d4021350
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=doc/LICENSE
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)


+ 1
- 1
ipv6/aiccu/files/aiccu.sh View File

@ -34,7 +34,7 @@ proto_aiccu_setup() {
echo "ipv6_interface $link" >> "$CFGFILE"
[ -n "$server" ] && echo "server $server" >> "$CFGFILE"
[ -n "$protocol" ] && echo "protocol $protocol" >> "$CFGFILE"
[ -n "$tunnel_id" ] && echo "tunnel_id $tunnel_id" >> "$CFGFILE"
[ -n "$tunnelid" ] && echo "tunnel_id $tunnelid" >> "$CFGFILE"
[ -n "$requiretls" ] && echo "requiretls $requiretls" >> "$CFGFILE"
[ "$nat" == 1 ] && echo "behindnat true" >> "$CFGFILE"
[ "$heartbeat" == 1 ] && echo "makebeats true" >> "$CFGFILE"


+ 3
- 1
ipv6/tayga/Makefile View File

@ -9,8 +9,10 @@ PKG_RELEASE:=2
PKG_SOURCE:=tayga-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://www.litech.org/tayga/
PKG_MD5SUM:=7a7b24165ce008df772f398d86fa280e
PKG_CAT:=bzcat
PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=COPYING
PKG_CAT:=bzcat
PKG_BUILD_DIR:=$(BUILD_DIR)/tayga-$(PKG_VERSION)
PKG_FIXUP:=autoreconf


+ 335
- 0
lang/erlang/Makefile View File

@ -0,0 +1,335 @@
#
# Copyright (C) 2009-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=erlang
PKG_VERSION:=17.1
PKG_RELEASE:=1
PKG_SOURCE:=otp_src_$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:= http://www.erlang.org/download/ \
http://erlang.mirror.su.se/
PKG_MD5SUM:=9c90706ce70e01651adde34a2b79bf4c
PKG_LICENSE:=ErlPL-1.1
PKG_LICENSE_FILE:=EPLICENCE
PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
PKG_BUILD_DEPENDS:=erlang/host openssl
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/otp_src_$(PKG_VERSION)
PKG_BUILD_DIR:=$(BUILD_DIR)/otp_src_$(PKG_VERSION)
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/package.mk
define Package/erlang/Default
SUBMENU:=Erlang
SECTION:=lang
CATEGORY:=Languages
TITLE:=Erlang/OTP programming language
URL:=http://www.erlang.org/
endef
define Package/erlang/Default/description
Erlang/OTP is a general-purpose programming language and runtime
environment. Erlang has built-in support for concurrency, distribution
and fault tolerance.
endef
define Package/erlang
$(call Package/erlang/Default)
DEPENDS+= +libncurses +librt +zlib
PROVIDES:= erlang-erts=6.1 erlang-kernel=3.0.1 erlang-sasl=2.4 erlang-stdlib=2.1
endef
define Package/erlang/description
$(call Package/erlang/Default/description)
.
This package contains the runtime implementation and a minimal set of
modules (erts, kernel, sasl & stdlib).
endef
define Package/erlang-asn1
$(call Package/erlang/Default)
TITLE:=Abstract Syntax Notation One (ASN.1) support
VERSION:=3.0.1
DEPENDS+= +erlang +erlang-syntax-tools
endef
define Package/erlang-asn1/description
$(call Package/erlang/Default/description)
.
This Erlang/OTP package provides Abstract Syntax Notation One (ASN.1)
support.
endef
define Package/erlang-compiler
$(call Package/erlang/Default)
TITLE:=Byte code compiler
VERSION:=5.0.1
DEPENDS+= +erlang +erlang-hipe
endef
define Package/erlang-compiler/description
$(call Package/erlang/Default/description)
.
This Erlang/OTP package provides a byte code compiler for Erlang which
produces highly compact code.
endef
define Package/erlang-crypto
$(call Package/erlang/Default)
TITLE:=Cryptography support
VERSION:=3.4
DEPENDS+= +erlang +libopenssl
endef
define Package/erlang-crypto/description
$(call Package/erlang/Default/description)
.
This Erlang/OTP package provides functions for computation of message
digests, and encryption and decryption functions.
endef
define Package/erlang-hipe
$(call Package/erlang/Default)
TITLE:=High Performance Erlang
VERSION:=3.11
DEPENDS+= +erlang
endef
define Package/erlang-hipe/description
$(call Package/erlang/Default/description)
.
This Erlang/OTP package provides HiPE (High Performance Erlang)
support.
endef
define Package/erlang-inets
$(call Package/erlang/Default)
TITLE:=Internet clients and servers
VERSION:=5.10.2
DEPENDS+= +erlang
endef
define Package/erlang-inets/description
$(call Package/erlang/Default/description)
.
This Erlang/OTP package provides a container for Internet clients and
servers. Currently a FTP client, a HTTP client and server, and a tftp
client and server have been incorporated in Inets.
endef
define Package/erlang-mnesia
$(call Package/erlang/Default)
TITLE:=Distributed database
VERSION:=4.12.1
DEPENDS+= +erlang
endef
define Package/erlang-mnesia/description
$(call Package/erlang/Default/description)
.
This Erlang/OTP package provides a distributed DataBase Management
System (DBMS), appropriate for telecommunications applications and
other Erlang applications which require continuous operation and
exhibit soft real-time properties.
endef
define Package/erlang-runtime-tools
$(call Package/erlang/Default)
TITLE:=Low-profile debugging/tracing tools
VERSION:=1.8.14
DEPENDS+= +erlang
endef
define Package/erlang-runtime-tools/description
$(call Package/erlang/Default/description)
.
This Erlang/OTP package provides low footprint tracing/debugging tools
suitable for inclusion in a production system.
endef
define Package/erlang-snmp
$(call Package/erlang/Default)
TITLE:=Simple Network Management Protocol (SNMP) support
VERSION:=4.25.1
DEPENDS+= +erlang +erlang-asn1
endef
define Package/erlang-snmp/description
$(call Package/erlang/Default/description)
.
This Erlang/OTP package provides Simple Network Management Protocol
(SNMP) support including a MIB compiler and tools for creating SNMP
agents.
endef
define Package/erlang-ssh
$(call Package/erlang/Default)
TITLE:=Secure Shell (SSH) support
VERSION:=3.0.3
DEPENDS+= +erlang +erlang-crypto
endef
define Package/erlang-ssh/description
$(call Package/erlang/Default/description)
.
This Erlang/OTP package provides an implementation of the Secure Shell
protocol, with SSH & SFTP support.
endef
define Package/erlang-ssl
$(call Package/erlang/Default)
TITLE:=Secure Sockets Layer (SSL) support
VERSION:=5.3.5
DEPENDS+= +erlang +erlang-crypto
endef
define Package/erlang-ssl/description
$(call Package/erlang/Default/description)
.
This Erlang/OTP package provides support for secure communication over
sockets.
endef
define Package/erlang-syntax-tools
$(call Package/erlang/Default)
TITLE:=Abstract Erlang syntax trees handling support
VERSION:=1.6.15
DEPENDS+= +erlang
endef
define Package/erlang-syntax-tools/description
$(call Package/erlang/Default/description)
.
This Erlang/OTP package provides support for handling abstract Erlang
syntax trees.
endef
# Host
HOST_CONFIGURE_ARGS += \
--disable-hipe \
--disable-smp-support \
--without-javac
define Host/Compile
$(MAKE) -C $(HOST_BUILD_DIR) all
endef
define Host/Install
$(MAKE) -C $(HOST_BUILD_DIR) install
endef
# Target
CONFIGURE_ARGS += \
--disable-hipe \
--disable-smp-support \
--without-javac \
--enable-dynamic-ssl-lib
CONFIGURE_VARS += \
SHLIB_LD="$(TARGET_CC)" \
TARGET_ARCH="$(TARGET_ARCH)" \
ac_cv_func_mmap_fixed_mapped=yes \
ac_cv_path_WX_CONFIG_PATH=no \
erl_xcomp_getaddrinfo=no \
erl_xcomp_sysroot="$(STAGING_DIR)"
EXTRA_LDFLAGS+=-lz
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
noboot
$(MAKE) -C $(PKG_BUILD_DIR) \
INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \
install
endef
define Package/erlang/install
$(INSTALL_DIR) $(1)/usr/bin
for f in epmd erl erlc escript run_erl; do \
$(CP) $(PKG_INSTALL_DIR)/usr/bin/$$$$f $(1)/usr/bin/ ; \
done
$(INSTALL_DIR) $(1)/usr/lib/erlang/bin
for f in erl erlc escript run_erl start start.boot start.script start_clean.boot start_erl start_sasl.boot to_erl; do \
$(CP) $(PKG_INSTALL_DIR)/usr/lib/erlang/bin/$$$$f $(1)/usr/lib/erlang/bin/ ; \
done
$(INSTALL_DIR) $(1)/usr/lib/erlang/lib
for m in erts kernel sasl stdlib; do \
$(CP) $(PKG_INSTALL_DIR)/usr/lib/erlang/lib/$$$$m-* $(1)/usr/lib/erlang/lib/ ; \
rm -rf $(1)/usr/lib/erlang/lib/$$$$m-*/examples ; \
rm -rf $(1)/usr/lib/erlang/lib/$$$$m-*/src ; \
done
$(INSTALL_DIR) $(1)/usr/lib/erlang
$(CP) $(PKG_INSTALL_DIR)/usr/lib/erlang/erts-* $(1)/usr/lib/erlang/
rm -rf $(1)/usr/lib/erlang/erts-*/{doc,include,lib,man,src}
rm -rf $(1)/usr/lib/erlang/erts-*/bin/*.src
$(INSTALL_DIR) $(1)/usr/lib/erlang/releases
$(CP) $(PKG_INSTALL_DIR)/usr/lib/erlang/releases/* $(1)/usr/lib/erlang/releases/
$(SED) 's,%ERL_ROOT%,/usr/lib/erlang,g' \
$(1)/usr/lib/erlang/releases/RELEASES.src
mv -f $(1)/usr/lib/erlang/releases/RELEASES.src \
$(1)/usr/lib/erlang/releases/RELEASES
for f in bin/erl bin/start erts-*/bin/erl erts-*/bin/start; do \
$(SED) 's,^\(ROOTDIR\)=.*,\1=/usr/lib/erlang,g' \
$(1)/usr/lib/erlang/$$$$f ; \
done
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/lib/erl_interface/obj/*/*.a $(1)/usr/lib
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_BUILD_DIR)/lib/erl_interface/include/*.h $(1)/usr/include
endef
define BuildModule
define Package/erlang-$(1)/install
$(INSTALL_DIR) $$(1)/usr/lib/erlang/lib
for m in $(2); do \
$(CP) $(PKG_INSTALL_DIR)/usr/lib/erlang/lib/$$$$$$$$m-* $$(1)/usr/lib/erlang/lib/ ; \
rm -rf $$(1)/usr/lib/erlang/lib/$$$$$$$$m-*/{examples,priv/obj,src} ; \
done
endef
$$(eval $$(call BuildPackage,erlang-$(1)))
endef
$(eval $(call HostBuild))
$(eval $(call BuildPackage,erlang))
$(eval $(call BuildModule,asn1,asn1))
$(eval $(call BuildModule,compiler,compiler))
$(eval $(call BuildModule,crypto,crypto))
$(eval $(call BuildModule,hipe,hipe))
$(eval $(call BuildModule,inets,inets))
$(eval $(call BuildModule,mnesia,mnesia))
$(eval $(call BuildModule,runtime-tools,runtime_tools))
$(eval $(call BuildModule,snmp,snmp))
$(eval $(call BuildModule,ssh,ssh))
$(eval $(call BuildModule,ssl,ssl))
$(eval $(call BuildModule,syntax-tools,syntax_tools))

+ 11
- 0
lang/erlang/patches/101-emulator_includes.patch View File

@ -0,0 +1,11 @@
--- a/erts/emulator/Makefile.in
+++ b/erts/emulator/Makefile.in
@@ -682,7 +682,7 @@ $(OBJDIR)/beam_emu.o: beam/beam_emu.c
endif
$(OBJDIR)/%.o: beam/%.c
- $(V_CC) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) $(INCLUDES) -c $< -o $@
+ $(V_CC) $(INCLUDES) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) -c $< -o $@
$(OBJDIR)/%.o: $(TARGET)/%.c
$(V_CC) $(CFLAGS) $(INCLUDES) -Idrivers/common -c $< -o $@

+ 11
- 0
lang/erlang/patches/103-disable_emacs.patch View File

@ -0,0 +1,11 @@
--- a/lib/tools/Makefile
+++ b/lib/tools/Makefile
@@ -23,7 +23,7 @@ include $(ERL_TOP)/make/$(TARGET)/otp.mk
# Macros
# ----------------------------------------------------
-SUB_DIRECTORIES = c_src src doc/src examples priv emacs
+SUB_DIRECTORIES = c_src src doc/src examples priv
include vsn.mk
VSN = $(TOOLS_VSN)

+ 1
- 0
lang/luabitop/Makefile View File

@ -18,6 +18,7 @@ PKG_SOURCE:=$(_BASENAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://bitop.luajit.org/download/
PKG_MD5SUM:=d0c1080fe0c844e8477279668e2d0d06
PKG_BUILD_DIR:=$(BUILD_DIR)/$(_BASENAME)-$(PKG_VERSION)
PKG_LICENSE:=MIT
include $(INCLUDE_DIR)/package.mk


+ 1
- 0
lang/luaposix/Makefile View File

@ -18,6 +18,7 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-release-$(PKG_VERSION)
PKG_REMOVE_FILES:=aclocal.m4
PKG_FIXUP:=autoreconf
PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
PKG_LICENSE:=MIT
include $(INCLUDE_DIR)/package.mk


+ 56
- 0
lang/luasoap/Makefile View File

@ -0,0 +1,56 @@
#
# Copyright (C) 2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=luasoap
PKG_VERSION:=2014-08-21
PKG_RELEASE=$(PKG_SOURCE_VERSION)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/tomasguisasola/luasoap.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=af1e100281cee4b972df10121e37e51d53367a98
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MIRROR_MD5SUM:=
PKG_MAINTAINER:=Liu Peng <pengliu@credosemi.com>
PKG_LICENSE:=MIT
include $(INCLUDE_DIR)/package.mk
define Package/luasoap
SUBMENU:=Lua
SECTION:=lang
CATEGORY:=Languages
TITLE:=LuaSOAP
URL:=https://github.com/tomasguisasola/luasoap
DEPENDS:=+lua +luaexpat +luasec +luasocket
endef
define Package/luasoap/description
LuaSOAP is a library of functions to deal with SOAP.
endef
define Build/Configure
endef
define Build/Compile
endef
define Package/luasoap/install
$(INSTALL_DIR) $(1)/usr/lib/lua
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/soap.lua $(1)/usr/lib/lua/
$(INSTALL_DIR) $(1)/usr/lib/lua/soap
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/{client,server}.lua $(1)/usr/lib/lua/soap/
$(INSTALL_DIR) $(1)/usr/lib/lua/soap/client
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/client/https.lua $(1)/usr/lib/lua/soap/client/
$(INSTALL_DIR) $(1)/usr/lib/lua/soap/tests
$(INSTALL_DATA) $(PKG_BUILD_DIR)/tests/test{,-http,-server}.lua $(1)/usr/lib/lua/soap/tests/
endef
$(eval $(call BuildPackage,luasoap))

+ 116
- 0
lang/luasql/Makefile View File

@ -0,0 +1,116 @@
#
# Copyright (C) 2010-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=luasql
PKG_VERSION:=2.1.1
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://files.luaforge.net/releases/luasql/luasql
PKG_MD5SUM:=63bdd57de4b9d1be336ba112d8cb69eb
PKG_LICENSE:=MIT
PKG_LICENSE_FILE:=docs/us/license.html
PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/luasql/Default
SUBMENU:=Lua
SECTION:=lang
CATEGORY:=Languages
TITLE:=Lua SQL binding
URL:=http://www.keplerproject.org/luasql/
DEPENDS:= +lua
endef
define Package/luasql/Default/description
LuaSQL is a simple interface from Lua to a DBMS.
endef
define Package/luasql-mysql
$(call Package/luasql/Default)
TITLE+= for MySQL
DEPENDS+= +libmysqlclient
VARIANT:=mysql
endef
define Package/luasql-mysql/description
$(call Package/luasql/Default/description)
.
This package contains the MySQL binding.
endef
define Package/luasql-pgsql
$(call Package/luasql/Default)
TITLE+= for PostgreSQL
DEPENDS+= +libpq
VARIANT:=postgres
endef
define Package/luasql-pgsql/description
$(call Package/luasql/Default/description)
.
This package contains the PostgreSQL binding.
endef
define Package/luasql-sqlite3
$(call Package/luasql/Default)
TITLE+= for SQLite 3
DEPENDS+= +libsqlite3
VARIANT:=sqlite3
endef
define Package/luasql-sqlite3/description
$(call Package/luasql/Default/description)
.
This package contains the SQLite 3 binding.
endef
TARGET_CFLAGS += $(FPIC) -std=gnu99
TARGET_CPPFLAGS += -DLUA_USE_LINUX
ifeq ($(BUILD_VARIANT),mysql)
TARGET_CPPFLAGS += -I$(STAGING_DIR)/usr/include/mysql
TARGET_LDFLAGS += -L$(STAGING_DIR)/usr/lib/mysql -lmysqlclient -lz
endif
ifeq ($(BUILD_VARIANT),postgres)
TARGET_LDFLAGS += -lpq
endif
ifeq ($(BUILD_VARIANT),sqlite3)
TARGET_LDFLAGS += -lsqlite3 -lpthread
endif
MAKE_FLAGS += \
T="$(BUILD_VARIANT)" \
DRIVER_INCS="$(TARGET_CPPFLAGS)" \
DRIVER_LIBS="$(TARGET_LDFLAGS)" \
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
lib
define Package/Install/Default
$(INSTALL_DIR) $(1)/usr/lib/lua/luasql
$(CP) $(PKG_BUILD_DIR)/src/*.so $(1)/usr/lib/lua/luasql/
endef
Package/luasql-mysql/install = $(Package/Install/Default)
Package/luasql-pgsql/install = $(Package/Install/Default)
Package/luasql-sqlite3/install = $(Package/Install/Default)
$(eval $(call BuildPackage,luasql-mysql))
$(eval $(call BuildPackage,luasql-pgsql))
$(eval $(call BuildPackage,luasql-sqlite3))

+ 53
- 0
lang/micropython-lib/Makefile View File

@ -0,0 +1,53 @@
#
# Copyright (C) 2008-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=micropython-lib
PKG_VERSION:=2014-08-12
PKG_RELEASE:=1
PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
PKG_LICENSE:=MIT
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/micropython/micropython-lib.git
PKG_SOURCE_VERSION:=7bc0c0a45894ec10eb3fd3515428a087a24ac228
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION)
PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
define Package/micropython-lib
SECTION:=lang
CATEGORY:=Languages
TITLE:=micropython-lib
URL:=https://github.com/micropython/micropython-lib
DEPENDS:=+micropython
endef
define Package/micropython-lib/description
This package contains micropython-lib, a project to develop a non-monolothic
standard library for Micro Python. Note that this is a work in progress and
several libraries may be missing, incomplete or buggy.
endef
MAKE_FLAGS:=\
-C $(PKG_BUILD_DIR) \
PREFIX=$(PKG_BUILD_DIR)/_install_tmp \
install
define Package/micropython-lib/install
$(INSTALL_DIR) $(1)/usr/lib/micropython
$(CP) $(PKG_BUILD_DIR)/_install_tmp/* $(1)/usr/lib/micropython
endef
$(eval $(call BuildPackage,micropython-lib))

+ 58
- 0
lang/micropython/Makefile View File

@ -0,0 +1,58 @@
#
# Copyright (C) 2008-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=micropython
PKG_VERSION=1.2-$(PKG_SOURCE_VERSION)
PKG_RELEASE:=1
PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/micropython/micropython.git
PKG_SOURCE_VERSION:=86de21b810693bccdd88d53aacb6d8acf26f09e0
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION)
PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
define Package/micropython
SECTION:=lang
CATEGORY:=Languages
TITLE:=Micro Python
URL:=http://micropython.org
DEPENDS:=+libffi
endef
define Package/micropython/description
This package contains Micro Python, a lean and fast implementation of the Python 3.4 programming language
that is optimised to run on a microcontroller (and low power computers).
endef
# The following hacks have been tested for MIPS builds, but may need to be modified for other platforms.
# (Based on: https://github.com/pfalcon/micropython/blob/2663b63241498569d9acb9c7cf9e01e831dbd816/unix/build-mips.sh)
TARGET_CFLAGS_EXTRA += -DMICROPY_GCREGS_SETJMP=1 -DMICROPY_NLR_SETJMP=1 -DMICROPY_EMIT_X64=0
TARGET_STRIPFLAGS_EXTRA += --remove-section=.pdr -R .comment -R .gnu.version -R .gnu.version_r -R .gnu.attributes -R .reginfo -R .mdebug.abi32
MAKE_FLAGS += \
-C $(PKG_BUILD_DIR)/unix \
MICROPY_USE_READLINE=0 \
CFLAGS_EXTRA="$(TARGET_CFLAGS_EXTRA)" \
STRIPFLAGS_EXTRA="$(TARGET_STRIPFLAGS_EXTRA)"
define Package/micropython/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/unix/micropython $(1)/usr/bin/micropython
endef
$(eval $(call BuildPackage,micropython))

+ 3
- 3
lang/perl-compress-bzip2/Makefile View File

@ -8,14 +8,14 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=perl-compress-bzip2
PKG_VERSION:=2.17
PKG_VERSION:=2.18
PKG_RELEASE:=1
PKG_SOURCE_URL:=http://www.cpan.org/authors/id/R/RU/RURBAN/
PKG_SOURCE:=Compress-Bzip2-$(PKG_VERSION).tar.gz
PKG_MD5SUM:=d8b809f6efe3edb33f81d608c932b2ef
PKG_MD5SUM:=c4a1995df9443cb97c28593cbbb23304
PKG_LICENSE:=GPLv1+ ARTISTIC
PKG_LICENSE:=GPL-1.0+ Artistic-1.0-Perl
PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
PKG_BUILD_DIR:=$(BUILD_DIR)/perl/Compress-Bzip2-$(PKG_VERSION)


+ 17
- 2
lang/perl-dbi/Makefile View File

@ -9,18 +9,20 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=perl-dbi
PKG_VERSION:=1.631
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE_URL:=http://www.cpan.org/authors/id/T/TI/TIMB/
PKG_SOURCE:=DBI-$(PKG_VERSION).tar.gz
PKG_MD5SUM:=444d3c305e86597e11092b517794a840
PKG_LICENSE:=GPLv1+ ARTISTIC
PKG_LICENSE:=GPL-1.0+ Artistic-1.0-Perl
PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
PKG_BUILD_DIR:=$(BUILD_DIR)/perl/DBI-$(PKG_VERSION)
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/perl/DBI-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
include ../perl/perlmod.mk
define Package/perl-dbi
@ -40,9 +42,22 @@ define Build/Compile
$(call perlmod/Compile,,)
endef
define Host/Configure
$(call perlmod/host/Configure,,)
endef
define Host/Compile
$(call perlmod/host/Compile,,)
endef
define Host/Install
$(call perlmod/host/Install,$(1),)
endef
define Package/perl-dbi/install
$(call perlmod/Install,$(1),DB* auto/DBI,DBI/W32ODBC.pm auto/DBI/*.h)
endef
$(eval $(call BuildPackage,perl-dbi))
$(eval $(call HostBuild))

+ 1
- 1
lang/perl-html-parser/Makefile View File

@ -15,7 +15,7 @@ PKG_SOURCE_URL:=http://www.cpan.org/authors/id/G/GA/GAAS/
PKG_SOURCE:=HTML-Parser-$(PKG_VERSION).tar.gz
PKG_MD5SUM:=9128a45893097dfa3bf03301b19c5efe
PKG_LICENSE:=GPLv1+ ARTISTIC
PKG_LICENSE:=GPL-1.0+ Artistic-1.0-Perl
PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
PKG_BUILD_DIR:=$(BUILD_DIR)/perl/HTML-Parser-$(PKG_VERSION)


+ 1
- 1
lang/perl-html-tagset/Makefile View File

@ -15,7 +15,7 @@ PKG_SOURCE_URL:=http://www.cpan.org/authors/id/P/PE/PETDANCE/
PKG_SOURCE:=HTML-Tagset-$(PKG_VERSION).tar.gz
PKG_MD5SUM:=d2bfa18fe1904df7f683e96611e87437
PKG_LICENSE:=GPLv1+ ARTISTIC
PKG_LICENSE:=GPL-1.0+ Artistic-1.0-Perl
PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
PKG_BUILD_DIR:=$(BUILD_DIR)/perl/HTML-Tagset-$(PKG_VERSION)


+ 1
- 1
lang/perl-html-tree/Makefile View File

@ -16,7 +16,7 @@ PKG_SOURCE_URL:=http://www.cpan.org/authors/id/P/PE/PETEK/
PKG_SOURCE:=HTML-Tree-$(PKG_VERSION).tar.gz
PKG_MD5SUM:=6352f50be402301f79b580dd235d7762
PKG_LICENSE:=GPLv1+ ARTISTIC
PKG_LICENSE:=GPL-1.0+ Artistic-1.0-Perl
PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
PKG_BUILD_DIR:=$(BUILD_DIR)/perl/HTML-Tree-$(PKG_VERSION)


+ 1
- 1
lang/perl-lockfile-simple/Makefile View File

@ -15,7 +15,7 @@ PKG_SOURCE_URL:=http://www.cpan.org/authors/id/S/SC/SCHWIGON/lockfile-simple/
PKG_SOURCE:=LockFile-Simple-$(PKG_VERSION).tar.gz
PKG_MD5SUM:=4421283b4f32549e5299963734170044
PKG_LICENSE:=GPLv2+ ARTISTIC
PKG_LICENSE:=GPL-2.0+ Artistic-1.0-Perl
PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
PKG_BUILD_DIR:=$(BUILD_DIR)/perl/LockFile-Simple-$(PKG_VERSION)


+ 1
- 1
lang/perl-net-telnet/Makefile View File

@ -15,7 +15,7 @@ PKG_SOURCE_URL:=http://www.cpan.org/authors/id/J/JR/JROGERS/
PKG_SOURCE:=Net-Telnet-$(PKG_VERSION).tar.gz
PKG_MD5SUM:=d2514080116c1b0fa5f96295c84538e3
PKG_LICENSE:=GPLv1+ ARTISTIC
PKG_LICENSE:=GPL-1.0+ Artistic-1.0-Perl
PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
PKG_BUILD_DIR:=$(BUILD_DIR)/perl/Net-Telnet-$(PKG_VERSION)


+ 3
- 3
lang/perl-test-harness/Makefile View File

@ -8,14 +8,14 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=perl-test-harness
PKG_VERSION:=3.32
PKG_VERSION:=3.33
PKG_RELEASE:=1
PKG_SOURCE_URL:=http://www.cpan.org/authors/id/L/LE/LEONT/
PKG_SOURCE:=Test-Harness-$(PKG_VERSION).tar.gz
PKG_MD5SUM:=a1241b628dc80f5271ed9235c211e55c
PKG_MD5SUM:=7a72849ee1e67184db098146cc7c8855
PKG_LICENSE:=GPLv1+ ARTISTIC
PKG_LICENSE:=GPL-1.0+ Artistic-1.0-Perl
PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
PKG_BUILD_DIR:=$(BUILD_DIR)/perl/Test-Harness-$(PKG_VERSION)


+ 1
- 1
lang/perl-uri/Makefile View File

@ -15,7 +15,7 @@ PKG_SOURCE_URL:=http://www.cpan.org/authors/id/E/ET/ETHER/
PKG_SOURCE:=URI-$(PKG_VERSION).tar.gz
PKG_MD5SUM:=975b2282bc8f0fd72a6dae5cefc33824
PKG_LICENSE:=GPLv1+ ARTISTIC
PKG_LICENSE:=GPL-1.0+ Artistic-1.0-Perl
PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
PKG_BUILD_DIR:=$(BUILD_DIR)/perl/URI-$(PKG_VERSION)


+ 1
- 1
lang/perl-www-curl/Makefile View File

@ -15,7 +15,7 @@ PKG_SOURCE_URL:=http://www.cpan.org/authors/id/S/SZ/SZBALINT/
PKG_SOURCE:=WWW-Curl-$(PKG_VERSION).tar.gz
PKG_MD5SUM:=997ac81cd6b03b30b36f7cd930474845
PKG_LICENSE:=GPLv1+ ARTISTIC
PKG_LICENSE:=GPL-1.0+ Artistic-1.0-Perl
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>


+ 1
- 1
lang/perl-www-mechanize/Makefile View File

@ -15,7 +15,7 @@ PKG_SOURCE:=WWW-Mechanize-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.cpan.org/authors/id/E/ET/ETHER/
PKG_MD5SUM:=de0a9c528c12793c881151301bc14d1a
PKG_LICENSE:=GPLv1+ ARTISTIC
PKG_LICENSE:=GPL-1.0+ Artistic-1.0-Perl
PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
PKG_BUILD_DIR:=$(BUILD_DIR)/perl/WWW-Mechanize-$(PKG_VERSION)


+ 2
- 2
lang/perl-www/Makefile View File

@ -9,13 +9,13 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=perl-www
PKG_VERSION:=5.837
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE_URL:=http://www.cpan.org/authors/id/G/GA/GAAS/
PKG_SOURCE:=libwww-perl-$(PKG_VERSION).tar.gz
PKG_MD5SUM:=9bbf1bce482b0bac98bb4f04253c03d0
PKG_LICENSE:=GPLv1+ ARTISTIC
PKG_LICENSE:=GPL-1.0+ Artistic-1.0-Perl
PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
PKG_BUILD_DIR:=$(BUILD_DIR)/perl/libwww-perl-$(PKG_VERSION)


+ 41
- 0
lang/perl-www/patches/010-lwp-https-call-verify-hostname-when-avail.patch View File

@ -0,0 +1,41 @@
commit 3b266f17ccd5613a9c42d1e04118e94ca6467489
Author: Gisle Aas <gisle@aas.no>
Date: Sun Jan 16 12:56:30 2011 +0100
Call IO::Socket::SSL's verify_hostname when available
--- a/lib/LWP/Protocol/https.pm
+++ b/lib/LWP/Protocol/https.pm
@@ -14,6 +14,15 @@ sub socket_type
sub _check_sock
{
my($self, $req, $sock) = @_;
+ if ($sock->can("verify_hostname")) {
+ if (!$sock->verify_hostname($req->uri->host, "www")) {
+ my $subject = $sock->peer_certificate("subject");
+ die "SSL-peer fails verification [subject=$subject]\n";
+ }
+ else {
+ $req->{ssl_sock_verified}++;
+ }
+ }
my $check = $req->header("If-SSL-Cert-Subject");
if (defined $check) {
my $cert = $sock->get_peer_certificate ||
@@ -36,9 +45,14 @@ sub _get_sock_info
$res->header("Client-SSL-Cert-Subject" => $cert->subject_name);
$res->header("Client-SSL-Cert-Issuer" => $cert->issuer_name);
}
- if(! eval { $sock->get_peer_verify }) {
- $res->header("Client-SSL-Warning" => "Peer certificate not verified");
+ if (!$res->request->{ssl_sock_verified}) {
+ if(! eval { $sock->get_peer_verify }) {
+ my $msg = "Peer certificate not verified";
+ $msg .= " [$@]" if $@;
+ $res->header("Client-SSL-Warning" => $msg);
+ }
}
+ $res->header("Client-SSL-Socket-Class" => $Net::HTTPS::SSL_SOCKET_CLASS);
}
#-----------------------------------------------------------

+ 113
- 0
lang/perl-www/patches/020-lwp-https-verify-hostnames-by-default.patch View File

@ -0,0 +1,113 @@
commit 62dd58188d8f8987d24bd84951813a54a8bf5987
Author: Gisle Aas <gisle@aas.no>
Date: Mon Jan 24 23:19:59 2011 +0100
Default to verifying hostnames when using SSL
--- a/lib/LWP/Protocol/https.pm
+++ b/lib/LWP/Protocol/https.pm
@@ -11,18 +11,30 @@ sub socket_type
return "https";
}
-sub _check_sock
+sub _extra_sock_opts
{
- my($self, $req, $sock) = @_;
- if ($sock->can("verify_hostname")) {
- if (!$sock->verify_hostname($req->uri->host, "www")) {
- my $subject = $sock->peer_certificate("subject");
- die "SSL-peer fails verification [subject=$subject]\n";
- }
- else {
- $req->{ssl_sock_verified}++;
+ my $self = shift;
+ my %ssl_opts = %{$self->{ua}{ssl_opts} || {}};
+ unless (exists $ssl_opts{SSL_verify_mode}) {
+ $ssl_opts{SSL_verify_mode} = 1;
+ }
+ if (delete $ssl_opts{verify_hostname}) {
+ $ssl_opts{SSL_verify_mode} ||= 1;
+ $ssl_opts{SSL_verifycn_scheme} = 'www';
+ }
+ if ($ssl_opts{SSL_verify_mode}) {
+ unless (exists $ssl_opts{SSL_ca_file} || exists $ssl_opts{SSL_ca_path}) {
+ require Mozilla::CA;
+ $ssl_opts{SSL_ca_file} = Mozilla::CA::SSL_ca_file();
}
}
+ $self->{ssl_opts} = \%ssl_opts;
+ return (%ssl_opts, $self->SUPER::_extra_sock_opts);
+}
+
+sub _check_sock
+{
+ my($self, $req, $sock) = @_;
my $check = $req->header("If-SSL-Cert-Subject");
if (defined $check) {
my $cert = $sock->get_peer_certificate ||
@@ -45,12 +57,11 @@ sub _get_sock_info
$res->header("Client-SSL-Cert-Subject" => $cert->subject_name);
$res->header("Client-SSL-Cert-Issuer" => $cert->issuer_name);
}
- if (!$res->request->{ssl_sock_verified}) {
- if(! eval { $sock->get_peer_verify }) {
- my $msg = "Peer certificate not verified";
- $msg .= " [$@]" if $@;
- $res->header("Client-SSL-Warning" => $msg);
- }
+ if (!$self->{ssl_opts}{SSL_verify_mode}) {
+ $res->push_header("Client-SSL-Warning" => "Peer certificate not verified");
+ }
+ elsif (!$self->{ssl_opts}{SSL_verifycn_scheme}) {
+ $res->push_header("Client-SSL-Warning" => "Peer hostname match with certificate not verified");
}
$res->header("Client-SSL-Socket-Class" => $Net::HTTPS::SSL_SOCKET_CLASS);
}
--- a/lib/LWP/UserAgent.pm
+++ b/lib/LWP/UserAgent.pm
@@ -41,6 +41,7 @@ sub new
my $timeout = delete $cnf{timeout};
$timeout = 3*60 unless defined $timeout;
my $local_address = delete $cnf{local_address};
+ my $ssl_opts = delete $cnf{ssl_opts};
my $use_eval = delete $cnf{use_eval};
$use_eval = 1 unless defined $use_eval;
my $parse_head = delete $cnf{parse_head};
@@ -83,6 +84,7 @@ sub new
def_headers => $def_headers,
timeout => $timeout,
local_address => $local_address,
+ ssl_opts => { $ssl_opts ? %$ssl_opts : (verify_hostname => 1) },
use_eval => $use_eval,
show_progress=> $show_progress,
max_size => $max_size,
@@ -582,6 +584,20 @@ sub max_size { shift->_elem('max_siz
sub max_redirect { shift->_elem('max_redirect', @_); }
sub show_progress{ shift->_elem('show_progress', @_); }
+sub ssl_opts {
+ my $self = shift;
+ if (@_ == 1) {
+ my $k = shift;
+ return $self->{ssl_opts}{$k};
+ }
+ if (@_) {
+ %{$self->{ssl_opts}} = (%{$self->{ssl_opts}}, @_);
+ }
+ else {
+ return keys %{$self->{ssl_opts}};
+ }
+}
+
sub parse_head {
my $self = shift;
if (@_) {
@@ -1040,6 +1056,7 @@ The following options correspond to attr
cookie_jar undef
default_headers HTTP::Headers->new
local_address undef
+ ssl_opts { verify_hostname => 1 }
max_size undef
max_redirect 7
parse_head 1

+ 14
- 5
lang/perl/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=perl
PKG_VERSION:=5.20.0
PKG_RELEASE:=4
PKG_RELEASE:=5
PKG_SOURCE_URL:=ftp://ftp.cpan.org/pub/CPAN/src/5.0 \
http://www.cpan.org/src/5.0/perl-5.20.0.tar.gz \
@ -22,12 +22,13 @@ PKG_SOURCE_URL:=ftp://ftp.cpan.org/pub/CPAN/src/5.0 \
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_MD5SUM:=406ec049ebe3afcc80d9c76ec78ca4f8
PKG_LICENSE:=GPLv1+ ARTISTIC
PKG_LICENSE:=GPL-1.0+ Artistic-1.0-Perl
PKG_LICENSE_FILES:=Copying Artistic README
PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
# Build settings
PKG_BUILD_DIR:=$(BUILD_DIR)/perl/$(PKG_NAME)-$(PKG_VERSION)
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/perl/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL:=1
PKG_BUILD_DEPENDS:=perl/host
PKG_BUILD_PARALLEL:=1
@ -45,6 +46,7 @@ TARGET_CPPFLAGS_PERL:=$(patsubst -g3,-g,$(TARGET_CPPFLAGS))
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
include perlmod.mk
define Package/perl
SUBMENU:=Perl
@ -69,6 +71,11 @@ endef
define Host/Install
( cd $(HOST_BUILD_DIR); ./miniperl installperl )
$(CP) $(HOST_BUILD_DIR)/generate_uudmap $(HOST_PERL_PREFIX)/bin/
# Link any possibly installed static extension in
$(MAKE) -C $(HOST_BUILD_DIR)/relink clean || true
( cd $(HOST_BUILD_DIR)/relink && $(HOST_PERL_PREFIX)/bin/perl Makefile.PL )
$(call perlmod/host/relink,$(HOST_BUILD_DIR)/relink)
endef
# Target perl
@ -98,14 +105,17 @@ define Build/Compile
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/lib/perl5/5.20/CORE
$(CP) $(PKG_INSTALL_DIR)/usr/lib/perl5/5.20/CORE/*.h $(1)/usr/lib/perl5/5.20/CORE/
$(INSTALL_DIR) $(1)/usr/lib/perl5/5.20
$(CP) $(PKG_INSTALL_DIR)/usr/lib/perl5/5.20 $(1)/usr/lib/perl5/
endef
define Package/perl/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/perl$(PKG_VERSION) $(1)/usr/bin
ln -nsf perl$(PKG_VERSION) $(1)/usr/bin/perl
$(INSTALL_DIR) $(1)/usr/lib/perl5/5.20/CORE
$(CP) $(PKG_INSTALL_DIR)/usr/lib/perl5/5.20/CORE/libperl.so $(1)/usr/lib/perl5/5.20/CORE/
endef
@ -116,5 +126,4 @@ $(eval $(call RequireCommand,rsync, \
$(eval $(call BuildPackage,perl))
$(eval $(call HostBuild))
include perlmod.mk
-include perlbase.mk

+ 0
- 1083
lang/perl/files/Module/ScanDeps.pm
File diff suppressed because it is too large
View File


+ 3
- 3
lang/perl/files/config.sh-arm.in View File

@ -53,7 +53,6 @@ castflags='0'
cat='cat'
cc='%%CC%%'
cccdlflags='-fPIC'
ccdlflags='-Wl,-E'
ccflags='%%CFLAGS%%'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccname='gcc'
@ -739,7 +738,7 @@ ldlibpthname='LD_LIBRARY_PATH'
less='less'
lib_ext='.a'
libc=''
libperl='libperl.a'
libperl='libperl.so'
libpth='%%LIBDIRS%%'
libs='-lgdbm -ldb -lnsl -ldl -lm -lcrypt -lutil -lc'
libsdirs='%%LIBDIRS%%'
@ -1002,7 +1001,7 @@ useposix='true'
usereentrant='undef'
userelocatableinc='undef'
usesfio='false'
useshrplib='false'
useshrplib='true'
usesitecustomize='undef'
usesocks='undef'
usethreads='undef'
@ -1156,6 +1155,7 @@ version_patchlevel_string='version 20 subversion 0'
PERL_VERSION=20
PERL_API_VERSION=20
patchlevel='20'
ccdlflags='-fPIC -Wl,-rpath,/usr/lib/perl5/5.20/CORE'
# Make perl use these tools instead of the target binaries during build.
hostgenerate='%%HOSTGENERATE%%'


+ 3
- 3
lang/perl/files/config.sh-armeb.in View File

@ -53,7 +53,6 @@ castflags='0'
cat='cat'
cc='%%CC%%'
cccdlflags='-fPIC'
ccdlflags='-Wl,-E'
ccflags='%%CFLAGS%%'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccname='gcc'
@ -739,7 +738,7 @@ ldlibpthname='LD_LIBRARY_PATH'
less='less'
lib_ext='.a'
libc=''
libperl='libperl.a'
libperl='libperl.so'
libpth='%%LIBDIRS%%'
libs='-lgdbm -ldb -lnsl -ldl -lm -lcrypt -lutil -lc'
libsdirs='%%LIBDIRS%%'
@ -1002,7 +1001,7 @@ useposix='true'
usereentrant='undef'
userelocatableinc='undef'
usesfio='false'
useshrplib='false'
useshrplib='true'
usesitecustomize='undef'
usesocks='undef'
usethreads='undef'
@ -1156,6 +1155,7 @@ version_patchlevel_string='version 20 subversion 0'
PERL_VERSION=20
PERL_API_VERSION=20
patchlevel='20'
ccdlflags='-fPIC -Wl,-rpath,/usr/lib/perl5/5.20/CORE'
# Make perl use these tools instead of the target binaries during build.
hostgenerate='%%HOSTGENERATE%%'


+ 3
- 3
lang/perl/files/config.sh-avr32.in View File

@ -53,7 +53,6 @@ castflags='0'
cat='cat'
cc='%%CC%%'
cccdlflags='-fPIC'
ccdlflags='-Wl,-E'
ccflags='%%CFLAGS%%'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccname='gcc'
@ -741,7 +740,7 @@ ldlibpthname='LD_LIBRARY_PATH'
less='less'
lib_ext='.a'
libc=''
libperl='libperl.a'
libperl='libperl.so'
libpth='%%LIBDIRS%%'
libs='-lgdbm -ldb -lnsl -ldl -lm -lcrypt -lutil -lc'
libsdirs='%%LIBDIRS%%'
@ -1004,7 +1003,7 @@ useposix='true'
usereentrant='undef'
userelocatableinc='undef'
usesfio='false'
useshrplib='false'
useshrplib='true'
usesitecustomize='undef'
usesocks='undef'
usethreads='undef'
@ -1158,6 +1157,7 @@ version_patchlevel_string='version 20 subversion 0'
PERL_VERSION=20
PERL_API_VERSION=20
patchlevel='20'
ccdlflags='-fPIC -Wl,-rpath,/usr/lib/perl5/5.20/CORE'
# Make perl use these tools instead of the target binaries during build.
hostgenerate='%%HOSTGENERATE%%'


+ 3
- 3
lang/perl/files/config.sh-i486.in View File

@ -51,7 +51,6 @@ castflags='0'
cat='cat'
cc='%%CC%%'
cccdlflags='-fPIC'
ccdlflags='-Wl,-E'
ccflags='%%CFLAGS%%'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccname='gcc'
@ -732,7 +731,7 @@ ldlibpthname='LD_LIBRARY_PATH'
less='less'
lib_ext='.a'
libc=''
libperl='libperl.a'
libperl='libperl.so'
libpth='%%LIBDIRS%%'
libs='-lgdbm -ldb -lnsl -ldl -lm -lcrypt -lutil -lc'
libsdirs='%%LIBDIRS%%'
@ -991,7 +990,7 @@ useposix='true'
usereentrant='undef'
userelocatableinc='undef'
usesfio='false'
useshrplib='false'
useshrplib='true'
usesitecustomize='undef'
usesocks='undef'
usethreads='undef'
@ -1141,6 +1140,7 @@ version_patchlevel_string='version 20 subversion 0'
PERL_VERSION=20
PERL_API_VERSION=20
patchlevel='20'
ccdlflags='-fPIC -Wl,-rpath,/usr/lib/perl5/5.20/CORE'
# Make perl use these tools instead of the target binaries during build.
hostgenerate='%%HOSTGENERATE%%'


+ 3
- 3
lang/perl/files/config.sh-mips.in View File

@ -53,7 +53,6 @@ castflags='0'
cat='cat'
cc='%%CC%%'
cccdlflags='-fPIC'
ccdlflags='-Wl,-E'
ccflags='%%CFLAGS%%'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccname='gcc'
@ -739,7 +738,7 @@ ldlibpthname='LD_LIBRARY_PATH'
less='less'
lib_ext='.a'
libc=''
libperl='libperl.a'
libperl='libperl.so'
libpth='%%LIBDIRS%%'
libs='-lgdbm -ldb -lnsl -ldl -lm -lcrypt -lutil -lc'
libsdirs='%%LIBDIRS%%'
@ -1002,7 +1001,7 @@ useposix='true'
usereentrant='undef'
userelocatableinc='undef'
usesfio='false'
useshrplib='false'
useshrplib='true'
usesitecustomize='undef'
usesocks='undef'
usethreads='undef'
@ -1156,6 +1155,7 @@ version_patchlevel_string='version 20 subversion 0'
PERL_VERSION=20
PERL_API_VERSION=20
patchlevel='20'
ccdlflags='-fPIC -Wl,-rpath,/usr/lib/perl5/5.20/CORE'
# Make perl use these tools instead of the target binaries during build.
hostgenerate='%%HOSTGENERATE%%'


+ 3
- 3
lang/perl/files/config.sh-mipsel.in View File

@ -51,7 +51,6 @@ castflags='0'
cat='cat'
cc='%%CC%%'
cccdlflags='-fPIC'
ccdlflags='-Wl,-E'
ccflags='%%CFLAGS%%'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccname='gcc'
@ -732,7 +731,7 @@ ldlibpthname='LD_LIBRARY_PATH'
less='less'
lib_ext='.a'
libc=''
libperl='libperl.a'
libperl='libperl.so'
libpth='%%LIBDIRS%%'
libs='-lgdbm -ldb -lnsl -ldl -lm -lcrypt -lutil -lc'
libsdirs='%%LIBDIRS%%'
@ -991,7 +990,7 @@ useposix='true'
usereentrant='undef'
userelocatableinc='undef'
usesfio='false'
useshrplib='false'
useshrplib='true'
usesitecustomize='undef'
usesocks='undef'
usethreads='undef'
@ -1141,6 +1140,7 @@ version_patchlevel_string='version 20 subversion 0'
PERL_VERSION=20
PERL_API_VERSION=20
patchlevel='20'
ccdlflags='-fPIC -Wl,-rpath,/usr/lib/perl5/5.20/CORE'
# Make perl use these tools instead of the target binaries during build.
hostgenerate='%%HOSTGENERATE%%'


+ 3
- 3
lang/perl/files/config.sh-powerpc.in View File

@ -53,7 +53,6 @@ castflags='0'
cat='cat'
cc='%%CC%%'
cccdlflags='-fPIC'
ccdlflags='-Wl,-E'
ccflags='%%CFLAGS%%'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccname='gcc'
@ -739,7 +738,7 @@ ldlibpthname='LD_LIBRARY_PATH'
less='less'
lib_ext='.a'
libc=''
libperl='libperl.a'
libperl='libperl.so'
libpth='%%LIBDIRS%%'
libs='-lgdbm -ldb -lnsl -ldl -lm -lcrypt -lutil -lc'
libsdirs='%%LIBDIRS%%'
@ -1002,7 +1001,7 @@ useposix='true'
usereentrant='undef'
userelocatableinc='undef'
usesfio='false'
useshrplib='false'
useshrplib='true'
usesitecustomize='undef'
usesocks='undef'
usethreads='undef'
@ -1156,6 +1155,7 @@ version_patchlevel_string='version 20 subversion 0'
PERL_VERSION=20
PERL_API_VERSION=20
patchlevel='20'
ccdlflags='-fPIC -Wl,-rpath,/usr/lib/perl5/5.20/CORE'
# Make perl use these tools instead of the target binaries during build.
hostgenerate='%%HOSTGENERATE%%'


+ 3
- 3
lang/perl/files/config.sh-x86_64.in View File

@ -51,7 +51,6 @@ castflags='0'
cat='cat'
cc='%%CC%%'
cccdlflags='-fPIC'
ccdlflags='-Wl,-E'
ccflags='%%CFLAGS%%'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccname='gcc'
@ -732,7 +731,7 @@ ldlibpthname='LD_LIBRARY_PATH'
less='less'
lib_ext='.a'
libc=''
libperl='libperl.a'
libperl='libperl.so'
libpth='%%LIBDIRS%%'
libs='-lgdbm -ldb -lnsl -ldl -lm -lcrypt -lutil -lc'
libsdirs='%%LIBDIRS%%'
@ -991,7 +990,7 @@ useposix='true'
usereentrant='undef'
userelocatableinc='undef'
usesfio='false'
useshrplib='false'
useshrplib='true'
usesitecustomize='undef'
usesocks='undef'
usethreads='undef'
@ -1141,6 +1140,7 @@ version_patchlevel_string='version 20 subversion 0'
PERL_VERSION=20
PERL_API_VERSION=20
patchlevel='20'
ccdlflags='-fPIC -Wl,-rpath,/usr/lib/perl5/5.20/CORE'
# Make perl use these tools instead of the target binaries during build.
hostgenerate='%%HOSTGENERATE%%'


+ 0
- 81
lang/perl/files/perlmod-deps.sh View File

@ -1,81 +0,0 @@
#!/bin/sh
#
# Generate perl module package dependencies
#
# Copyright (C) 2007 Peter Colberg <peter@petercolberg.org>
# Licensed under the terms of the GNU General Public License.
#
if [ $# -lt 3 ]; then
echo >&2 "Usage: $(basename $0) STAGING-DIR PERL-BUILD-DIR [FILES...] [DIRECTORIES...]"
exit 1
fi
STAGING_DIR="$1"
PERL_BIN="$STAGING_DIR/usr/bin/perl"
PERL_LIB="$STAGING_DIR/usr/lib/perl5/5.10"
INC_DIR="$(dirname $0)"
shift
"$PERL_BIN" -I"$INC_DIR" -I"$PERL_LIB" - "$@" <<'PERL_SCRIPT'
use strict;
use warnings;
use Module::ScanDeps;
use File::Find;
use Cwd;
our $sitelib = "/usr/lib/perl5/5.10";
sub scandeps {
my $builddir = Cwd::abs_path(shift);
my @scanpaths = @_;
my ($curdir, @pkgdirs, $dir, @deps, %depends, $file);
our ($pkg, %bundles, $path, @files);
@pkgdirs = glob($builddir . "/*/ipkg");
$curdir = getcwd();
@INC = ();
for $dir (@pkgdirs) {
chdir($dir) or die "$dir: $!";
for $pkg (glob("*")) {
chdir($dir . "/" . $pkg . $sitelib) or next;
push @INC, getcwd();
sub wanted {
return unless (-f $_);
s/^\.\///;
$bundles{$_} = $pkg;
}
find({ wanted => \&wanted, no_chdir => 1 }, ".");
}
}
chdir($curdir) or die "$curdir: $!\n";
for $path (@scanpaths) {
sub scan_wanted {
return unless (-f $_ and /\.(pl|pm)$/);
push @files, $_;
}
if (-f $path) {
push @files, $path;
}
elsif (-d $path) {
find({ wanted => \&scan_wanted, no_chdir => 1 }, $path);
}
}
@deps = keys %{scan_deps(files => \@files, recurse => 0)};
for $file (grep { not exists $bundles{$_} } @deps) {
warn "could not resolve dependency: $file\n";
}
%depends = map { $bundles{$_}, 1 } grep { exists $bundles{$_} } @deps;
if (%depends) {
print join(' ', 'perl', sort keys %depends), "\n";
}
}
if (@ARGV > 1) {
scandeps(@ARGV);
}
PERL_SCRIPT

+ 0
- 176
lang/perl/files/scan-perlbase.sh View File

@ -1,176 +0,0 @@
#!/bin/sh
#
# Generate perl base modules package definitions
#
# Copyright (C) 2007 Peter Colberg <peter@petercolberg.org>
# Licensed under the terms of the GNU General Public License.
#
if [ $# -lt 1 ]; then
echo >&2 "Usage: $(basename $0) STAGING-DIR [OUTFILE]"
exit 1
fi
STAGING_DIR="$1"
PERL_BIN="$STAGING_DIR/usr/bin/perl"
PERL_LIB="$STAGING_DIR/usr/lib/perl5/5.10"
INC_DIR="$(dirname $0)"
shift
"$PERL_BIN" -I"$INC_DIR" -I"$PERL_LIB" - "$PERL_LIB" "$@" <<'PERL_SCRIPT'
use strict;
use warnings;
use Module::ScanDeps;
use File::Find;
use File::Basename;
our $skipfiles = 'CORE vmsish.pm auto/sdbm';
our %defmodules = (
'essential' => 'lib.pm vars.pm strict.pm warnings.pm warnings Carp Carp.pm Exporter Exporter.pm locale.pm subs.pm overload.pm constant.pm',
'getoptpl' => 'getopt.pl getopts.pl',
'utf8' => 'utf8_heavy.pl',
'Getopt' => 'newgetopt.pl',
'open' => 'open2.pl open3.pl',
'Config' => 'Config_heavy.pl',
'bytes' => 'bytes_heavy.pl',
);
our %defdepends = (
'DB_File' => 'libdb1-compat',
'GDBM_File' => 'libgdbm',
);
our $prefix = 'perlbase-';
sub template ($) {
$_ = $_[0];
return <<TEMPLATE;
define Package/$$_{package}
SECTION:=lang
CATEGORY:=Languages
URL:=http://www.cpan.org/
TITLE:=$$_{module} perl module
DEPENDS:=$$_{depends}
endef
define Package/$$_{package}/install
\$(call perlmod/Install,\$(1),$$_{files},$$_{exclude})
endef
\$(eval \$(call BuildPackage,$$_{package}))
TEMPLATE
}
sub scandeps ($) {
my $sitedir = shift;
my @result;
my ($mod, $file, @deps, $dep, %depends, $parent, $pkg);
our (%files, %modules);
my (%packages, %excludes);
for $mod (keys %defmodules) {
($pkg = $prefix . $mod) =~ tr/A-Z_/a-z-/;
$modules{$pkg} = $mod;
for $file (split / /, $defmodules{$mod}) {
$files{$file} = $pkg;
}
}
for $file ('pod', 'Pod', split(/ /, $skipfiles)) {
$files{$file} = undef;
}
sub wanted {
s/^\.\///;
return if (/^(\.|auto)$/ or exists $files{$_});
if (/\.pod$/) {
$files{$_} = undef;
}
elsif (exists $files{dirname($_)}) {
$files{$_} = $files{dirname($_)};
}
elsif (m!^(?:auto/)?([^./]+)(?:\.(?:pl|pm)|/|$)!) {
(my $pkg = $prefix . $1) =~ tr/A-Z_/a-z-/;
$modules{$pkg} = $1;
$files{$_} = $pkg;
}
else {
$files{$_} = undef;
}
}
chdir($sitedir);
find({ wanted => \&wanted, no_chdir => 1}, '.');
for $pkg (keys %modules) {
$packages{$pkg} = [];
$excludes{$pkg} = [];
$depends{$pkg} = {};
}
for $file (keys %files) {
$mod = $files{$file};
$parent = $files{dirname($file)};
if (defined ($mod)) {
if (defined ($parent) and not ($parent eq $mod)) {
push @{$packages{$mod}}, $file;
push @{$excludes{$parent}}, $file;
}
elsif (not defined ($parent)) {
push @{$packages{$mod}}, $file;
}
}
elsif (defined ($parent)) {
push @{$excludes{$parent}}, $file;
}
}
for $mod (keys %defdepends) {
($pkg = $prefix . $mod) =~ tr/A-Z_/a-z-/;
for $dep (split / /, $defdepends{$mod}) {
${$depends{$pkg}}{$dep} = 1;
}
}
@INC = ('.');
for $file (grep { -f $_ and defined $files{$_} } keys %files) {
@deps = keys %{scan_deps(files => [ $file ], recurse => 0)};
$pkg = $files{$file};
for $dep (grep { not defined $files{$_} } @deps) {
warn "$file: could not resolve dependency: $dep\n";
}
for $dep (grep { defined $files{$_} } @deps) {
next if ($files{$dep} eq $pkg);
${$depends{$pkg}}{$files{$dep}} = 1;
}
}
for $pkg (sort keys %packages) {
push @result, template({
package => $pkg,
module => $modules{$pkg},
depends => join(' ', 'perl', sort keys %{$depends{$pkg}}),
files => join(' ', sort @{$packages{$pkg}}),
exclude => join(' ', sort @{$excludes{$pkg}}),
});
}
return join('', @result);
}
if (@ARGV > 1) {
open FILE, ">$ARGV[1]" or die "$ARGV[1]: $!\n";
print FILE scandeps($ARGV[0]);
close FILE;
}
else {
print scandeps($ARGV[0] or '.');
}
PERL_SCRIPT

+ 0
- 11
lang/perl/files/strippm.sh View File

@ -1,11 +0,0 @@
#!/bin/sh
#
# Attempt to strip comments and pod docs from perl modules
#
[ "$#" -gt 0 ] || set .
echo "---> Stripping modules in: $@" >&2
find "$@" -name \*.pm -or -name \*.pl -or -name \*.pod | while read fn; do
echo " $fn" >&2
sed -i -e '/^=\(head\|pod\|item\|over\|back\)/,/^=cut/d; /^=\(head\|pod\|item\|over\|back\)/,$d; /^#$/d; /^#[^!"'"'"']/d' "$fn"
done

+ 6
- 0
lang/perl/patches/500-add-relink-hack.patch View File

@ -0,0 +1,6 @@
--- /dev/null
+++ b/relink/Makefile.PL
@@ -0,0 +1,3 @@
+use ExtUtils::MakeMaker;
+
+WriteMakefile(NAME => "relink");

+ 93
- 8
lang/perl/perlbase.mk View File

@ -9,6 +9,7 @@ endef
define Package/perlbase-anydbm-file
$(call Package/perlbase-template)
TITLE:=AnyDBM_File perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-anydbm-file/install
@ -21,6 +22,7 @@ $(eval $(call BuildPackage,perlbase-anydbm-file))
define Package/perlbase-archive
$(call Package/perlbase-template)
TITLE:=Archive perl module
DEPENDS+=+perlbase-cwd +perlbase-essential +perlbase-file +perlbase-io
endef
define Package/perlbase-archive/install
@ -33,6 +35,7 @@ $(eval $(call BuildPackage,perlbase-archive))
define Package/perlbase-attribute
$(call Package/perlbase-template)
TITLE:=Attribute perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-attribute/install
@ -45,6 +48,7 @@ $(eval $(call BuildPackage,perlbase-attribute))
define Package/perlbase-attributes
$(call Package/perlbase-template)
TITLE:=attributes perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-attributes/install
@ -57,6 +61,7 @@ $(eval $(call BuildPackage,perlbase-attributes))
define Package/perlbase-autoloader
$(call Package/perlbase-template)
TITLE:=AutoLoader perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-autoloader/install
@ -69,6 +74,7 @@ $(eval $(call BuildPackage,perlbase-autoloader))
define Package/perlbase-autosplit
$(call Package/perlbase-template)
TITLE:=AutoSplit perl module
DEPENDS+=+perlbase-config +perlbase-essential +perlbase-file
endef
define Package/perlbase-autosplit/install
@ -93,6 +99,7 @@ $(eval $(call BuildPackage,perlbase-autouse))
define Package/perlbase-b
$(call Package/perlbase-template)
TITLE:=B perl module
DEPENDS+=+perlbase-config +perlbase-essential
endef
define Package/perlbase-b/install
@ -105,6 +112,7 @@ $(eval $(call BuildPackage,perlbase-b))
define Package/perlbase-base
$(call Package/perlbase-template)
TITLE:=base perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-base/install
@ -117,6 +125,7 @@ $(eval $(call BuildPackage,perlbase-base))
define Package/perlbase-benchmark
$(call Package/perlbase-template)
TITLE:=Benchmark perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-benchmark/install
@ -129,6 +138,7 @@ $(eval $(call BuildPackage,perlbase-benchmark))
define Package/perlbase-bigint
$(call Package/perlbase-template)
TITLE:=bigint perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-bigint/install
@ -141,6 +151,7 @@ $(eval $(call BuildPackage,perlbase-bigint))
define Package/perlbase-bignum
$(call Package/perlbase-template)
TITLE:=bignum perl module
DEPENDS+=+perlbase-bigint +perlbase-essential
endef
define Package/perlbase-bignum/install
@ -153,6 +164,7 @@ $(eval $(call BuildPackage,perlbase-bignum))
define Package/perlbase-blib
$(call Package/perlbase-template)
TITLE:=blib perl module
DEPENDS+=+perlbase-cwd +perlbase-essential +perlbase-file
endef
define Package/perlbase-blib/install
@ -177,6 +189,7 @@ $(eval $(call BuildPackage,perlbase-bytes))
define Package/perlbase-cgi
$(call Package/perlbase-template)
TITLE:=CGI perl module
DEPENDS+=+perlbase-base +perlbase-essential +perlbase-file +perlbase-if
endef
define Package/perlbase-cgi/install
@ -189,6 +202,7 @@ $(eval $(call BuildPackage,perlbase-cgi))
define Package/perlbase-charnames
$(call Package/perlbase-template)
TITLE:=charnames perl module
DEPENDS+=+perlbase-bytes +perlbase-essential +perlbase-re +perlbase-unicore
endef
define Package/perlbase-charnames/install
@ -201,6 +215,7 @@ $(eval $(call BuildPackage,perlbase-charnames))
define Package/perlbase-class
$(call Package/perlbase-template)
TITLE:=Class perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-class/install
@ -213,6 +228,7 @@ $(eval $(call BuildPackage,perlbase-class))
define Package/perlbase-compress
$(call Package/perlbase-template)
TITLE:=Compress perl module
DEPENDS+=+perlbase-bytes +perlbase-essential +perlbase-io +perlbase-scalar
endef
define Package/perlbase-compress/install
@ -237,6 +253,7 @@ $(eval $(call BuildPackage,perlbase-config))
define Package/perlbase-cpan
$(call Package/perlbase-template)
TITLE:=CPAN perl module
DEPENDS+=+perlbase-b +perlbase-config +perlbase-cwd +perlbase-dirhandle +perlbase-essential +perlbase-extutils +perlbase-fcntl +perlbase-file +perlbase-filehandle +perlbase-list +perlbase-net +perlbase-safe +perlbase-scalar +perlbase-sys +perlbase-text +perlbase-version
endef
define Package/perlbase-cpan/install
@ -249,6 +266,7 @@ $(eval $(call BuildPackage,perlbase-cpan))
define Package/perlbase-cwd
$(call Package/perlbase-template)
TITLE:=Cwd perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-cwd/install
@ -261,6 +279,7 @@ $(eval $(call BuildPackage,perlbase-cwd))
define Package/perlbase-data
$(call Package/perlbase-template)
TITLE:=Data perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-data/install
@ -273,7 +292,7 @@ $(eval $(call BuildPackage,perlbase-data))
define Package/perlbase-db
$(call Package/perlbase-template)
TITLE:=DB perl module
DEPENDS+= +libdb47
DEPENDS+=+libdb47 +perlbase-essential
endef
define Package/perlbase-db/install
@ -286,7 +305,7 @@ $(eval $(call BuildPackage,perlbase-db))
define Package/perlbase-db-file
$(call Package/perlbase-template)
TITLE:=DB_File perl module
DEPENDS+= +libdb47
DEPENDS+=+libdb47 +perlbase-essential
endef
define Package/perlbase-db-file/install
@ -299,6 +318,7 @@ $(eval $(call BuildPackage,perlbase-db-file))
define Package/perlbase-dbm-filter
$(call Package/perlbase-template)
TITLE:=DBM_Filter perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-dbm-filter/install
@ -311,6 +331,7 @@ $(eval $(call BuildPackage,perlbase-dbm-filter))
define Package/perlbase-devel
$(call Package/perlbase-template)
TITLE:=Devel perl module
DEPENDS+=+perlbase-essential +perlbase-file
endef
define Package/perlbase-devel/install
@ -323,6 +344,7 @@ $(eval $(call BuildPackage,perlbase-devel))
define Package/perlbase-diagnostics
$(call Package/perlbase-template)
TITLE:=diagnostics perl module
DEPENDS+=+perlbase-config +perlbase-essential +perlbase-text
endef
define Package/perlbase-diagnostics/install
@ -335,6 +357,7 @@ $(eval $(call BuildPackage,perlbase-diagnostics))
define Package/perlbase-digest
$(call Package/perlbase-template)
TITLE:=Digest perl module
DEPENDS+=+perlbase-essential +perlbase-fcntl +perlbase-integer
endef
define Package/perlbase-digest/install
@ -347,6 +370,7 @@ $(eval $(call BuildPackage,perlbase-digest))
define Package/perlbase-dirhandle
$(call Package/perlbase-template)
TITLE:=DirHandle perl module
DEPENDS+=+perlbase-essential +perlbase-symbol
endef
define Package/perlbase-dirhandle/install
@ -359,6 +383,7 @@ $(eval $(call BuildPackage,perlbase-dirhandle))
define Package/perlbase-dumpvalue
$(call Package/perlbase-template)
TITLE:=Dumpvalue perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-dumpvalue/install
@ -383,6 +408,7 @@ $(eval $(call BuildPackage,perlbase-dumpvar))
define Package/perlbase-dynaloader
$(call Package/perlbase-template)
TITLE:=DynaLoader perl module
DEPENDS+=+perlbase-config
endef
define Package/perlbase-dynaloader/install
@ -395,6 +421,7 @@ $(eval $(call BuildPackage,perlbase-dynaloader))
define Package/perlbase-encode
$(call Package/perlbase-template)
TITLE:=Encode perl module
DEPENDS+=+perlbase-essential +perlbase-mime +perlbase-utf8 +perlbase-xsloader
endef
define Package/perlbase-encode/install
@ -407,6 +434,7 @@ $(eval $(call BuildPackage,perlbase-encode))
define Package/perlbase-encoding
$(call Package/perlbase-template)
TITLE:=encoding perl module
DEPENDS+=+perlbase-encode +perlbase-essential
endef
define Package/perlbase-encoding/install
@ -431,6 +459,7 @@ $(eval $(call BuildPackage,perlbase-english))
define Package/perlbase-env
$(call Package/perlbase-template)
TITLE:=Env perl module
DEPENDS+=+perlbase-config +perlbase-tie
endef
define Package/perlbase-env/install
@ -443,6 +472,7 @@ $(eval $(call BuildPackage,perlbase-env))
define Package/perlbase-errno
$(call Package/perlbase-template)
TITLE:=Errno perl module
DEPENDS+=+perlbase-config +perlbase-essential
endef
define Package/perlbase-errno/install
@ -455,10 +485,11 @@ $(eval $(call BuildPackage,perlbase-errno))
define Package/perlbase-essential
$(call Package/perlbase-template)
TITLE:=essential perl module
DEPENDS+=+perlbase-config
endef
define Package/perlbase-essential/install
$(call perlmod/Install,$(1),Carp Carp.pm Exporter Exporter.pm constant.pm lib.pm locale.pm overload.pm strict.pm subs.pm vars.pm warnings warnings.pm overloading.pm,)
$(call perlmod/Install,$(1),Carp Carp.pm Exporter Exporter.pm constant.pm lib.pm locale.pm overload.pm overloading.pm parent.pm strict.pm subs.pm vars.pm warnings warnings.pm,)
endef
$(eval $(call BuildPackage,perlbase-essential))
@ -467,6 +498,7 @@ $(eval $(call BuildPackage,perlbase-essential))
define Package/perlbase-extutils
$(call Package/perlbase-template)
TITLE:=ExtUtils perl module
DEPENDS+=+perlbase-autosplit +perlbase-config +perlbase-cwd +perlbase-dirhandle +perlbase-essential +perlbase-file +perlbase-io +perlbase-ipc +perlbase-symbol +perlbase-text
endef
define Package/perlbase-extutils/install
@ -479,6 +511,7 @@ $(eval $(call BuildPackage,perlbase-extutils))
define Package/perlbase-fatal
$(call Package/perlbase-template)
TITLE:=Fatal perl module
DEPENDS+=+perlbase-config +perlbase-essential +perlbase-scalar +perlbase-tie
endef
define Package/perlbase-fatal/install
@ -491,6 +524,7 @@ $(eval $(call BuildPackage,perlbase-fatal))
define Package/perlbase-fcntl
$(call Package/perlbase-template)
TITLE:=Fcntl perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-fcntl/install
@ -515,6 +549,7 @@ $(eval $(call BuildPackage,perlbase-feature))
define Package/perlbase-fields
$(call Package/perlbase-template)
TITLE:=fields perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-fields/install
@ -527,6 +562,7 @@ $(eval $(call BuildPackage,perlbase-fields))
define Package/perlbase-file
$(call Package/perlbase-template)
TITLE:=File perl module
DEPENDS+=+perlbase-class +perlbase-config +perlbase-cwd +perlbase-errno +perlbase-essential +perlbase-fcntl +perlbase-filehandle +perlbase-io +perlbase-locale +perlbase-params +perlbase-scalar
endef
define Package/perlbase-file/install
@ -539,6 +575,7 @@ $(eval $(call BuildPackage,perlbase-file))
define Package/perlbase-filecache
$(call Package/perlbase-template)
TITLE:=FileCache perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-filecache/install
@ -551,6 +588,7 @@ $(eval $(call BuildPackage,perlbase-filecache))
define Package/perlbase-filehandle
$(call Package/perlbase-template)
TITLE:=FileHandle perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-filehandle/install
@ -575,6 +613,7 @@ $(eval $(call BuildPackage,perlbase-filetest))
define Package/perlbase-filter
$(call Package/perlbase-template)
TITLE:=Filter perl module
DEPENDS+=+perlbase-essential +perlbase-text
endef
define Package/perlbase-filter/install
@ -587,6 +626,7 @@ $(eval $(call BuildPackage,perlbase-filter))
define Package/perlbase-findbin
$(call Package/perlbase-template)
TITLE:=FindBin perl module
DEPENDS+=+perlbase-cwd +perlbase-essential +perlbase-file
endef
define Package/perlbase-findbin/install
@ -599,7 +639,7 @@ $(eval $(call BuildPackage,perlbase-findbin))
define Package/perlbase-gdbm-file
$(call Package/perlbase-template)
TITLE:=GDBM_File perl module
DEPENDS+= +libgdbm
DEPENDS+=+libgdbm +perlbase-essential
endef
define Package/perlbase-gdbm-file/install
@ -612,6 +652,7 @@ $(eval $(call BuildPackage,perlbase-gdbm-file))
define Package/perlbase-getopt
$(call Package/perlbase-template)
TITLE:=Getopt perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-getopt/install
@ -624,6 +665,7 @@ $(eval $(call BuildPackage,perlbase-getopt))
define Package/perlbase-hash
$(call Package/perlbase-template)
TITLE:=Hash perl module
DEPENDS+=+perlbase-essential +perlbase-scalar
endef
define Package/perlbase-hash/install
@ -636,6 +678,7 @@ $(eval $(call BuildPackage,perlbase-hash))
define Package/perlbase-i18n
$(call Package/perlbase-template)
TITLE:=I18N perl module
DEPENDS+=+perlbase-essential +perlbase-posix
endef
define Package/perlbase-i18n/install
@ -672,9 +715,7 @@ $(eval $(call BuildPackage,perlbase-integer))
define Package/perlbase-io
$(call Package/perlbase-template)
TITLE:=IO perl module
DEPENDS+=+perlbase-symbol +perlbase-selectsaver +perlbase-essential \
+perlbase-xsloader +perlbase-fcntl +perlbase-tie \
+perlbase-file +perlbase-errno
DEPENDS+=+perlbase-base +perlbase-bytes +perlbase-config +perlbase-errno +perlbase-essential +perlbase-fcntl +perlbase-list +perlbase-posix +perlbase-scalar +perlbase-selectsaver +perlbase-socket +perlbase-symbol +perlbase-tie +perlbase-xsloader
endef
define Package/perlbase-io/install
@ -687,6 +728,7 @@ $(eval $(call BuildPackage,perlbase-io))
define Package/perlbase-ipc
$(call Package/perlbase-template)
TITLE:=IPC perl module
DEPENDS+=+perlbase-config +perlbase-essential +perlbase-file +perlbase-locale +perlbase-params +perlbase-symbol +perlbase-text
endef
define Package/perlbase-ipc/install
@ -699,6 +741,7 @@ $(eval $(call BuildPackage,perlbase-ipc))
define Package/perlbase-less
$(call Package/perlbase-template)
TITLE:=less perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-less/install
@ -711,6 +754,7 @@ $(eval $(call BuildPackage,perlbase-less))
define Package/perlbase-list
$(call Package/perlbase-template)
TITLE:=List perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-list/install
@ -723,6 +767,7 @@ $(eval $(call BuildPackage,perlbase-list))
define Package/perlbase-locale
$(call Package/perlbase-template)
TITLE:=Locale perl module
DEPENDS+=+perlbase-essential +perlbase-i18n +perlbase-integer +perlbase-utf8
endef
define Package/perlbase-locale/install
@ -735,6 +780,7 @@ $(eval $(call BuildPackage,perlbase-locale))
define Package/perlbase-math
$(call Package/perlbase-template)
TITLE:=Math perl module
DEPENDS+=+perlbase-config +perlbase-essential +perlbase-scalar
endef
define Package/perlbase-math/install
@ -747,6 +793,7 @@ $(eval $(call BuildPackage,perlbase-math))
define Package/perlbase-memoize
$(call Package/perlbase-template)
TITLE:=Memoize perl module
DEPENDS+=+perlbase-config +perlbase-essential +perlbase-storable
endef
define Package/perlbase-memoize/install
@ -759,6 +806,7 @@ $(eval $(call BuildPackage,perlbase-memoize))
define Package/perlbase-mime
$(call Package/perlbase-template)
TITLE:=MIME perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-mime/install
@ -771,6 +819,7 @@ $(eval $(call BuildPackage,perlbase-mime))
define Package/perlbase-module
$(call Package/perlbase-template)
TITLE:=Module perl module
DEPENDS+=+perlbase-config +perlbase-cwd +perlbase-data +perlbase-essential +perlbase-extutils +perlbase-file +perlbase-filehandle +perlbase-if +perlbase-io +perlbase-locale +perlbase-params +perlbase-text +perlbase-version
endef
define Package/perlbase-module/install
@ -783,6 +832,7 @@ $(eval $(call BuildPackage,perlbase-module))
define Package/perlbase-mro
$(call Package/perlbase-template)
TITLE:=mro perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-mro/install
@ -795,6 +845,7 @@ $(eval $(call BuildPackage,perlbase-mro))
define Package/perlbase-net
$(call Package/perlbase-template)
TITLE:=Net perl module
DEPENDS+=+perlbase-class +perlbase-errno +perlbase-essential +perlbase-fcntl +perlbase-filehandle +perlbase-io +perlbase-posix +perlbase-socket +perlbase-symbol +perlbase-time
endef
define Package/perlbase-net/install
@ -807,6 +858,7 @@ $(eval $(call BuildPackage,perlbase-net))
define Package/perlbase-next
$(call Package/perlbase-template)
TITLE:=NEXT perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-next/install
@ -819,6 +871,7 @@ $(eval $(call BuildPackage,perlbase-next))
define Package/perlbase-o
$(call Package/perlbase-template)
TITLE:=O perl module
DEPENDS+=+perlbase-b +perlbase-essential
endef
define Package/perlbase-o/install
@ -831,6 +884,7 @@ $(eval $(call BuildPackage,perlbase-o))
define Package/perlbase-opcode
$(call Package/perlbase-template)
TITLE:=Opcode perl module
DEPENDS+=+perlbase-essential +perlbase-xsloader
endef
define Package/perlbase-opcode/install
@ -843,6 +897,7 @@ $(eval $(call BuildPackage,perlbase-opcode))
define Package/perlbase-open
$(call Package/perlbase-template)
TITLE:=open perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-open/install
@ -855,6 +910,7 @@ $(eval $(call BuildPackage,perlbase-open))
define Package/perlbase-ops
$(call Package/perlbase-template)
TITLE:=ops perl module
DEPENDS+=+perlbase-opcode
endef
define Package/perlbase-ops/install
@ -867,6 +923,7 @@ $(eval $(call BuildPackage,perlbase-ops))
define Package/perlbase-package
$(call Package/perlbase-template)
TITLE:=Package perl module
DEPENDS+=+perlbase-essential +perlbase-if
endef
define Package/perlbase-package/install
@ -879,6 +936,7 @@ $(eval $(call BuildPackage,perlbase-package))
define Package/perlbase-params
$(call Package/perlbase-template)
TITLE:=Params perl module
DEPENDS+=+perlbase-essential +perlbase-locale
endef
define Package/perlbase-params/install
@ -891,6 +949,7 @@ $(eval $(call BuildPackage,perlbase-params))
define Package/perlbase-perl5db
$(call Package/perlbase-template)
TITLE:=perl5db perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-perl5db/install
@ -903,6 +962,7 @@ $(eval $(call BuildPackage,perlbase-perl5db))
define Package/perlbase-perlio
$(call Package/perlbase-template)
TITLE:=PerlIO perl module
DEPENDS+=+perlbase-essential +perlbase-mime +perlbase-xsloader
endef
define Package/perlbase-perlio/install
@ -911,9 +971,11 @@ endef
$(eval $(call BuildPackage,perlbase-perlio))
define Package/perlbase-pod
$(call Package/perlbase-template)
TITLE:=Pod perl module
DEPENDS+=+perlbase-config +perlbase-cwd +perlbase-encode +perlbase-essential +perlbase-fcntl +perlbase-file +perlbase-getopt +perlbase-integer +perlbase-posix +perlbase-symbol +perlbase-term +perlbase-text
endef
define Package/perlbase-pod/install
@ -926,6 +988,7 @@ $(eval $(call BuildPackage,perlbase-pod))
define Package/perlbase-posix
$(call Package/perlbase-template)
TITLE:=POSIX perl module
DEPENDS+=+perlbase-essential +perlbase-fcntl
endef
define Package/perlbase-posix/install
@ -938,6 +1001,7 @@ $(eval $(call BuildPackage,perlbase-posix))
define Package/perlbase-re
$(call Package/perlbase-template)
TITLE:=re perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-re/install
@ -950,6 +1014,7 @@ $(eval $(call BuildPackage,perlbase-re))
define Package/perlbase-safe
$(call Package/perlbase-template)
TITLE:=Safe perl module
DEPENDS+=+perlbase-b +perlbase-essential +perlbase-opcode +perlbase-scalar
endef
define Package/perlbase-safe/install
@ -962,6 +1027,7 @@ $(eval $(call BuildPackage,perlbase-safe))
define Package/perlbase-scalar
$(call Package/perlbase-template)
TITLE:=Scalar perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-scalar/install
@ -974,6 +1040,7 @@ $(eval $(call BuildPackage,perlbase-scalar))
define Package/perlbase-sdbm-file
$(call Package/perlbase-template)
TITLE:=SDBM_File perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-sdbm-file/install
@ -986,6 +1053,7 @@ $(eval $(call BuildPackage,perlbase-sdbm-file))
define Package/perlbase-search
$(call Package/perlbase-template)
TITLE:=Search perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-search/install
@ -998,6 +1066,7 @@ $(eval $(call BuildPackage,perlbase-search))
define Package/perlbase-selectsaver
$(call Package/perlbase-template)
TITLE:=SelectSaver perl module
DEPENDS+=+perlbase-essential +perlbase-symbol
endef
define Package/perlbase-selectsaver/install
@ -1010,6 +1079,7 @@ $(eval $(call BuildPackage,perlbase-selectsaver))
define Package/perlbase-selfloader
$(call Package/perlbase-template)
TITLE:=SelfLoader perl module
DEPENDS+=+perlbase-essential +perlbase-io
endef
define Package/perlbase-selfloader/install
@ -1022,6 +1092,7 @@ $(eval $(call BuildPackage,perlbase-selfloader))
define Package/perlbase-sigtrap
$(call Package/perlbase-template)
TITLE:=sigtrap perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-sigtrap/install
@ -1034,6 +1105,7 @@ $(eval $(call BuildPackage,perlbase-sigtrap))
define Package/perlbase-socket
$(call Package/perlbase-template)
TITLE:=Socket perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-socket/install
@ -1046,6 +1118,7 @@ $(eval $(call BuildPackage,perlbase-socket))
define Package/perlbase-sort
$(call Package/perlbase-template)
TITLE:=sort perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-sort/install
@ -1058,6 +1131,7 @@ $(eval $(call BuildPackage,perlbase-sort))
define Package/perlbase-storable
$(call Package/perlbase-template)
TITLE:=Storable perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-storable/install
@ -1082,6 +1156,7 @@ $(eval $(call BuildPackage,perlbase-symbol))
define Package/perlbase-sys
$(call Package/perlbase-template)
TITLE:=Sys perl module
DEPENDS+=+perlbase-essential +perlbase-file +perlbase-posix +perlbase-socket
endef
define Package/perlbase-sys/install
@ -1094,6 +1169,7 @@ $(eval $(call BuildPackage,perlbase-sys))
define Package/perlbase-term
$(call Package/perlbase-template)
TITLE:=Term perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-term/install
@ -1106,13 +1182,13 @@ $(eval $(call BuildPackage,perlbase-term))
define Package/perlbase-test
$(call Package/perlbase-template)
TITLE:=Test perl module
DEPENDS+=+perlbase-base +perlbase-config +perlbase-essential +perlbase-symbol +perlbase-text
endef
define Package/perlbase-test/install
$(call perlmod/Install,$(1),Test Test.pm,Test/Harness/TAP.pod Test/Tutorial.pod)
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/prove $(1)/usr/bin
$(call perlmod/Install,$(1),Test Test.pm,Test/Harness/TAP.pod Test/Tutorial.pod)
endef
$(eval $(call BuildPackage,perlbase-test))
@ -1121,6 +1197,7 @@ $(eval $(call BuildPackage,perlbase-test))
define Package/perlbase-text
$(call Package/perlbase-template)
TITLE:=Text perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-text/install
@ -1133,6 +1210,7 @@ $(eval $(call BuildPackage,perlbase-text))
define Package/perlbase-thread
$(call Package/perlbase-template)
TITLE:=Thread perl module
DEPENDS+=+perlbase-essential +perlbase-scalar +perlbase-threads
endef
define Package/perlbase-thread/install
@ -1145,6 +1223,7 @@ $(eval $(call BuildPackage,perlbase-thread))
define Package/perlbase-threads
$(call Package/perlbase-template)
TITLE:=threads perl module
DEPENDS+=+perlbase-essential +perlbase-scalar
endef
define Package/perlbase-threads/install
@ -1157,6 +1236,7 @@ $(eval $(call BuildPackage,perlbase-threads))
define Package/perlbase-tie
$(call Package/perlbase-template)
TITLE:=Tie perl module
DEPENDS+=+perlbase-essential +perlbase-fcntl +perlbase-posix
endef
define Package/perlbase-tie/install
@ -1169,6 +1249,7 @@ $(eval $(call BuildPackage,perlbase-tie))
define Package/perlbase-time
$(call Package/perlbase-template)
TITLE:=Time perl module
DEPENDS+=+perlbase-class +perlbase-config +perlbase-essential
endef
define Package/perlbase-time/install
@ -1181,6 +1262,7 @@ $(eval $(call BuildPackage,perlbase-time))
define Package/perlbase-unicode
$(call Package/perlbase-template)
TITLE:=Unicode perl module
DEPENDS+=+perlbase-base +perlbase-charnames +perlbase-essential +perlbase-file
endef
define Package/perlbase-unicode/install
@ -1217,6 +1299,7 @@ $(eval $(call BuildPackage,perlbase-universal))
define Package/perlbase-user
$(call Package/perlbase-template)
TITLE:=User perl module
DEPENDS+=+perlbase-class +perlbase-config +perlbase-essential
endef
define Package/perlbase-user/install
@ -1229,6 +1312,7 @@ $(eval $(call BuildPackage,perlbase-user))
define Package/perlbase-utf8
$(call Package/perlbase-template)
TITLE:=utf8 perl module
DEPENDS+=+perlbase-essential +perlbase-re
endef
define Package/perlbase-utf8/install
@ -1241,6 +1325,7 @@ $(eval $(call BuildPackage,perlbase-utf8))
define Package/perlbase-version
$(call Package/perlbase-template)
TITLE:=version perl module
DEPENDS+=+perlbase-essential
endef
define Package/perlbase-version/install


+ 31
- 0
lang/perl/perlmod.mk View File

@ -12,6 +12,37 @@ PERL_CMD:=$(STAGING_DIR_HOST)/usr/bin/perl5.20.0
# Module install prefix
PERL_SITELIB:=/usr/lib/perl5/5.20
define perlmod/host/relink
rm -f $(1)/Makefile.aperl
$(MAKE) -C $(1) perl
$(CP) $(1)/perl $(PERL_CMD)
$(CP) $(1)/perl $(STAGING_DIR_HOST)/usr/bin/perl
endef
define perlmod/host/Configure
(cd $(HOST_BUILD_DIR); \
PERL_MM_USE_DEFAULT=1 \
$(2) \
$(PERL_CMD) Makefile.PL \
$(1) \
);
endef
define perlmod/host/Compile
$(2) \
$(MAKE) -C $(HOST_BUILD_DIR) \
$(1) \
install
endef
define perlmod/host/Install
$(2) \
$(MAKE) -C $(HOST_BUILD_DIR) \
$(1) \
install
$(call perlmod/host/relink,$(HOST_BUILD_DIR))
endef
define perlmod/Configure
(cd $(PKG_BUILD_DIR); \
PERL_MM_USE_DEFAULT=1 \


+ 487
- 0
lang/ruby/Makefile View File

@ -0,0 +1,487 @@
#
# Copyright (C) 2006-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
#
# To Do:
# - split up encodings
# - allow selection of either native or pure version of a library where supported
# +-> some native libraries are probably only supported if ruby-dl is enabled
# anything else?
include $(TOPDIR)/rules.mk
PKG_NAME:=ruby
PKG_VERSION:=2.1.2
PKG_RELEASE:=1
PKG_LIBVER:=2.1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://cache.ruby-lang.org/pub/ruby/$(PKG_LIBVER)/
PKG_MD5SUM:=ed9b8565bdeccb401d628ec8d54a0774
PKG_MAINTAINER:=Luiz Angelo Daros de Luca <luizluca@gmail.com>
PKG_LICENSE:=BSD-2-Clause
PKG_LICENSE_FILE:=COPYING
PKG_BUILD_DEPENDS:=ruby/host
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
PKG_FIXUP:=autoreconf
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
define Package/ruby/Default
SUBMENU:=Ruby
SECTION:=lang
CATEGORY:=Languages
TITLE:=Ruby scripting language
URL:=http://www.ruby-lang.org/
endef
define Package/ruby/Default/description
Ruby is the interpreted scripting language for quick and easy
object-oriented programming. It has many features to process text files
and to do system management tasks (as in perl). It is simple,
straight-forward, and extensible.
endef
define Package/ruby
$(call Package/ruby/Default)
TITLE+= (interpreter)
DEPENDS:=+libruby
endef
define Package/ruby/description
$(call Package/ruby/Default/description)
endef
define Package/libruby
$(call Package/ruby/Default)
SUBMENU:=
SECTION:=libs
CATEGORY:=Libraries
TITLE+= (shared library)
DEPENDS+= +libpthread +librt +libgmp
endef
# Ongoing work to break up ruby's standard library into coherent pieces
# with minimal dependencies between them
define Package/ruby-core
$(call Package/ruby/Default)
TITLE:=Ruby standard libraries
DEPENDS:=ruby +libdb47 +libffi
endef
define Package/ruby-cgi
$(call Package/ruby/Default)
TITLE:=Ruby CGI support toolkit
DEPENDS:=ruby
endef
define Package/ruby-dl
$(call Package/ruby/Default)
TITLE+= (dynamic linker support) (adds 5MB+)
DEPENDS:=ruby
endef
define Package/ruby-enc
$(call Package/ruby/Default)
TITLE+= (character re-coding library) (adds 2MB+)
DEPENDS:=ruby
endef
define Package/ruby-erb
$(call Package/ruby/Default)
TITLE+= (embedded interpreter)
DEPENDS:=ruby
endef
define Package/ruby-gdbm
$(call Package/ruby/Default)
TITLE:=Ruby support for gdbm
DEPENDS:=ruby +libgdbm
endef
define Package/ruby-gems
$(call Package/ruby/Default)
TITLE:=Ruby gems packet management
DEPENDS:=ruby +ruby-yaml +ruby-zlib +ruby-openssl +ruby-webrick +ruby-erb
endef
define Package/ruby-irb
$(call Package/ruby/Default)
TITLE+= (interactive shell)
DEPENDS:=ruby +ruby-core
endef
define Package/ruby-json
$(call Package/ruby/Default)
TITLE:=Ruby support for JSON
DEPENDS:=ruby
endef
define Package/ruby-ncurses
$(call Package/ruby/Default)
TITLE:=Ruby support for ncurses
DEPENDS:=ruby +libncurses +libncursesw
endef
define Package/ruby-nkf
$(call Package/ruby/Default)
TITLE:=Ruby Network Kanji Filter
DEPENDS:=ruby
endef
define Package/ruby-openssl
$(call Package/ruby/Default)
TITLE:=Ruby support for openssl
DEPENDS:=ruby +libopenssl
endef
define Package/ruby-rdoc
$(call Package/ruby/Default)
TITLE+= (documentation generator)
DEPENDS:=ruby
endef
define Package/ruby-rake
$(call Package/ruby/Default)
TITLE+=Ruby Rake (make replacement)
DEPENDS:=ruby
endef
define Package/ruby-readline
$(call Package/ruby/Default)
TITLE:=Ruby support for readline
DEPENDS:=ruby +libncurses +libreadline
endef
define Package/ruby-rexml
$(call Package/ruby/Default)
TITLE:=Ruby XML toolkit
DEPENDS:=ruby
endef
define Package/ruby-rss
$(call Package/ruby/Default)
TITLE:=Ruby RSS toolkit
DEPENDS:=ruby
endef
define Package/ruby-unit
$(call Package/ruby/Default)
TITLE:=Ruby unit testing toolkit
DEPENDS:=ruby
endef
define Package/ruby-webrick
$(call Package/ruby/Default)
TITLE:=Ruby Web server toolkit
DEPENDS:=ruby
endef
define Package/ruby-xmlrpc
$(call Package/ruby/Default)
TITLE:=Ruby XML-RPC toolkit
DEPENDS:=ruby
endef
define Package/ruby-yaml
$(call Package/ruby/Default)
TITLE:=Ruby YAML toolkit
DEPENDS:=ruby
endef
define Package/ruby-zlib
$(call Package/ruby/Default)
TITLE:=Ruby support for zlib
DEPENDS:=ruby +zlib
endef
HOST_CONFIGURE_ARGS += \
--disable-install-doc \
--disable-install-rdoc \
--disable-install-capi \
--with-static-linked-ext \
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
--disable-rpath \
--enable-ipv6 \
--with-ruby-version=minor \
--with-iconv-dir=$(ICONV_PREFIX) \
TARGET_LDFLAGS += -L$(PKG_BUILD_DIR)
MAKE_FLAGS += \
DESTDIR="$(PKG_INSTALL_DIR)" \
SHELL="/bin/bash"
define Package/ruby/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ruby $(1)/usr/bin/
endef
define Package/libruby/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libruby.so.* $(1)/usr/lib/
endef
define Package/ruby-core/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby $(1)/usr/lib/
rm -rf \
$(1)/usr/lib/ruby/$(PKG_LIBVER)/*/curses.so \
\
$(1)/usr/lib/ruby/$(PKG_LIBVER)/*/gdbm.so \
\
$(1)/usr/lib/ruby/$(PKG_LIBVER)/kconv.rb \
$(1)/usr/lib/ruby/$(PKG_LIBVER)/*/nkf.so \
\
$(1)/usr/lib/ruby/$(PKG_LIBVER)/digest \
$(1)/usr/lib/ruby/$(PKG_LIBVER)/digest.rb \
$(1)/usr/lib/ruby/$(PKG_LIBVER)/*/digest \
$(1)/usr/lib/ruby/$(PKG_LIBVER)/*/digest.so \
$(1)/usr/lib/ruby/$(PKG_LIBVER)/openssl \
$(1)/usr/lib/ruby/$(PKG_LIBVER)/openssl.rb \
$(1)/usr/lib/ruby/$(PKG_LIBVER)/*/openssl.so \
$(1)/usr/lib/ruby/$(PKG_LIBVER)/drb/ssl.rb \
$(1)/usr/lib/ruby/$(PKG_LIBVER)/net/https.rb \
$(1)/usr/lib/ruby/$(PKG_LIBVER)/webrick/ssl.rb \
\
$(1)/usr/lib/ruby/$(PKG_LIBVER)/*/dl.so \
\
$(1)/usr/lib/ruby/$(PKG_LIBVER)/*/enc \
\
$(1)/usr/lib/ruby/$(PKG_LIBVER)/*/readline.so \
$(1)/usr/lib/ruby/$(PKG_LIBVER)/irb/completion.rb \
$(1)/usr/lib/ruby/$(PKG_LIBVER)/irb/ext/save-history.rb \
\
$(1)/usr/lib/ruby/$(PKG_LIBVER)/*/zlib.so \
\
$(1)/usr/lib/ruby/$(PKG_LIBVER)/erb.rb \
\
$(1)/usr/lib/ruby/$(PKG_LIBVER)/json.rb \
$(1)/usr/lib/ruby/$(PKG_LIBVER)/json \
$(1)/usr/lib/ruby/$(PKG_LIBVER)/*/json \
\
$(1)/usr/lib/ruby/$(PKG_LIBVER)/irb.rb \
$(1)/usr/lib/ruby/$(PKG_LIBVER)/irb \
\
$(1)/usr/lib/ruby/$(PKG_LIBVER)/rdoc \
\
$(1)/usr/lib/ruby/$(PKG_LIBVER)/rake.rb \
$(1)/usr/lib/ruby/$(PKG_LIBVER)/rake \
\
$(1)/usr/lib/ruby/$(PKG_LIBVER)/rubygems.rb \
$(1)/usr/lib/ruby/$(PKG_LIBVER)/rubygems \
\
$(1)/usr/lib/ruby/$(PKG_LIBVER)/cgi.rb \
$(1)/usr/lib/ruby/$(PKG_LIBVER)/cgi \
\
$(1)/usr/lib/ruby/$(PKG_LIBVER)/rexml \
\
$(1)/usr/lib/ruby/$(PKG_LIBVER)/rss \
$(1)/usr/lib/ruby/$(PKG_LIBVER)/rss.rb \
\
$(1)/usr/lib/ruby/$(PKG_LIBVER)/test \
\
$(1)/usr/lib/ruby/$(PKG_LIBVER)/webrick \
$(1)/usr/lib/ruby/$(PKG_LIBVER)/webrick.rb \
\
$(1)/usr/lib/ruby/$(PKG_LIBVER)/xmlrpc \
\
$(1)/usr/lib/ruby/$(PKG_LIBVER)/yaml \
$(1)/usr/lib/ruby/$(PKG_LIBVER)/yaml.rb \
$(1)/usr/lib/ruby/$(PKG_LIBVER)/*/syck.so \
find $(1) -name '*.h' | xargs rm -f
endef
define Package/ruby-cgi/install
$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/cgi $(1)/usr/lib/ruby/$(PKG_LIBVER)/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/cgi.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
endef
define Package/ruby-dl/install
( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
usr/lib/ruby/$(PKG_LIBVER)/*/dl.so \
) | ( cd $(1); $(TAR) -xf - )
endef
define Package/ruby-enc/install
( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
usr/lib/ruby/$(PKG_LIBVER)/*/enc \
) | ( cd $(1); $(TAR) -xf - )
endef
define Package/ruby-erb/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/erb $(1)/usr/bin/
$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/erb.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
endef
define Package/ruby-gdbm/install
( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
usr/lib/ruby/$(PKG_LIBVER)/*/gdbm.so \
) | ( cd $(1); $(TAR) -xf - )
endef
define Package/ruby-gems/install
$(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/gem $(1)/usr/bin/
$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rubygems.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rubygems $(1)/usr/lib/ruby/$(PKG_LIBVER)/
endef
define Package/ruby-irb/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/irb $(1)/usr/bin/
$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/irb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/irb.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
endef
define Package/ruby-json/install
( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
usr/lib/ruby/$(PKG_LIBVER)/json.rb \
usr/lib/ruby/$(PKG_LIBVER)/json \
usr/lib/ruby/$(PKG_LIBVER)/*/json \
) | ( cd $(1); $(TAR) -xf - )
endef
define Package/ruby-ncurses/install
( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
usr/lib/ruby/$(PKG_LIBVER)/*/curses.so \
) | ( cd $(1); $(TAR) -xf - )
endef
define Package/ruby-nkf/install
( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
usr/lib/ruby/$(PKG_LIBVER)/kconv.rb \
usr/lib/ruby/$(PKG_LIBVER)/*/nkf.so \
) | ( cd $(1); $(TAR) -xf - )
endef
define Package/ruby-openssl/install
( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
usr/lib/ruby/$(PKG_LIBVER)/digest \
usr/lib/ruby/$(PKG_LIBVER)/digest.rb \
usr/lib/ruby/$(PKG_LIBVER)/*/digest.so \
usr/lib/ruby/$(PKG_LIBVER)/*/digest/*.so \
usr/lib/ruby/$(PKG_LIBVER)/openssl \
usr/lib/ruby/$(PKG_LIBVER)/openssl.rb \
usr/lib/ruby/$(PKG_LIBVER)/*/openssl.so \
usr/lib/ruby/$(PKG_LIBVER)/drb/ssl.rb \
usr/lib/ruby/$(PKG_LIBVER)/net/https.rb \
) | ( cd $(1); $(TAR) -xf - )
endef
define Package/ruby-rdoc/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rdoc $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ri $(1)/usr/bin/
$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rdoc $(1)/usr/lib/ruby/$(PKG_LIBVER)/
endef
define Package/ruby-rake/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rake $(1)/usr/bin/
$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rake.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rake $(1)/usr/lib/ruby/$(PKG_LIBVER)/
endef
define Package/ruby-readline/install
( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
usr/lib/ruby/$(PKG_LIBVER)/*/readline.so \
) | ( cd $(1); $(TAR) -xf - )
endef
define Package/ruby-rexml/install
$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rexml $(1)/usr/lib/ruby/$(PKG_LIBVER)/
endef
define Package/ruby-rss/install
$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rss $(1)/usr/lib/ruby/$(PKG_LIBVER)/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rss.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
endef
define Package/ruby-unit/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/testrb $(1)/usr/bin/
$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/test $(1)/usr/lib/ruby/$(PKG_LIBVER)/
endef
define Package/ruby-webrick/install
$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/webrick $(1)/usr/lib/ruby/$(PKG_LIBVER)/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/webrick.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
endef
define Package/ruby-xmlrpc/install
$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/xmlrpc $(1)/usr/lib/ruby/$(PKG_LIBVER)/
endef
define Package/ruby-yaml/install
( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
usr/lib/ruby/$(PKG_LIBVER)/yaml \
usr/lib/ruby/$(PKG_LIBVER)/yaml.rb \
usr/lib/ruby/$(PKG_LIBVER)/*/syck.so \
) | ( cd $(1); $(TAR) -xf - )
endef
define Package/ruby-zlib/install
( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
usr/lib/ruby/$(PKG_LIBVER)/*/zlib.so \
) | ( cd $(1); $(TAR) -xf - )
endef
define Build/InstallDev
( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
. \
) | ( cd $(1); $(TAR) -xf - )
endef
$(eval $(call BuildPackage,ruby))
$(eval $(call BuildPackage,libruby))
$(eval $(call BuildPackage,ruby-core))
$(eval $(call BuildPackage,ruby-cgi))
$(eval $(call BuildPackage,ruby-dl))
$(eval $(call BuildPackage,ruby-enc))
$(eval $(call BuildPackage,ruby-erb))
$(eval $(call BuildPackage,ruby-gdbm))
$(eval $(call BuildPackage,ruby-gems))
$(eval $(call BuildPackage,ruby-json))
$(eval $(call BuildPackage,ruby-irb))
$(eval $(call BuildPackage,ruby-ncurses))
$(eval $(call BuildPackage,ruby-nkf))
$(eval $(call BuildPackage,ruby-openssl))
$(eval $(call BuildPackage,ruby-rake))
$(eval $(call BuildPackage,ruby-rdoc))
$(eval $(call BuildPackage,ruby-readline))
$(eval $(call BuildPackage,ruby-rexml))
$(eval $(call BuildPackage,ruby-rss))
$(eval $(call BuildPackage,ruby-unit))
$(eval $(call BuildPackage,ruby-webrick))
$(eval $(call BuildPackage,ruby-xmlrpc))
$(eval $(call BuildPackage,ruby-yaml))
$(eval $(call BuildPackage,ruby-zlib))
$(eval $(call HostBuild))

+ 112
- 0
libs/cyrus-sasl/Makefile View File

@ -0,0 +1,112 @@
#
# Copyright (C) 2006-2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=cyrus-sasl
PKG_VERSION:=2.1.26
PKG_RELEASE:=2
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=ftp://ftp.cyrusimap.org/cyrus-sasl/
PKG_MD5SUM:=a7f4e5e559a0e37b3ffc438c9456e425
PKG_LICENSE:=BSD-4c BSD
PKG_LICENSE_FILES:=COPYING cmulocal/COPYING saslauthd/COPYING
PKG_FIXUP:=autoreconf
PKG_MACRO_PATHS:=cmulocal config ../cmulocal ../config
PKG_AUTOMAKE_PATHS:=. saslauthd sasldb
PKG_REMOVE_FILES:=aclocal.m4 saslauthd/aclocal.m4 config/libtool.m4
include $(INCLUDE_DIR)/package.mk
define Package/libsasl2
SECTION:=libs
CATEGORY:=Libraries
TITLE:=A general purpose authentication library
URL:=http://asg.web.cmu.edu/sasl/
DEPENDS:=libopenssl
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
--disable-sample \
--enable-staticdlopen \
--disable-java \
--disable-alwaystrue \
--disable-checkapop \
--enable-cram \
--enable-digest \
--without-auth-sasldb \
--disable-otp \
--disable-srp \
--disable-srp-setpass \
--disable-krb4 \
--disable-gssapi \
--disable-gss_mutexes \
--enable-plain \
--enable-anon \
--disable-login \
--disable-ntlm \
--disable-sql \
--disable-ldapdb \
--without-dblib \
--without-gdbm \
--with-devrandom="/dev/urandom" \
--without-pam \
--without-saslauthd \
--without-authdaemond \
--without-pwcheck \
--with-ipctype=unix \
--with-openssl="$(STAGING_DIR)/usr" \
--without-des \
--without-opie \
--without-ldap \
--without-mysql \
--without-pgsql \
--without-sqlite \
--without-rc4 \
--without-dmalloc \
--without-sfio \
--disable-sample
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)/include \
CC="$(HOSTCC)" \
LINK="$(HOSTCC) -o makemd5 -lc" \
CFLAGS="" \
CPPFLAGS="" \
makemd5
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/
$(CP) $(PKG_INSTALL_DIR)/usr/include/sasl $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsasl2.{a,so*} $(1)/usr/lib/
ln -sf libsasl2.a $(1)/usr/lib/libsasl.a
ln -sf libsasl2.so $(1)/usr/lib/libsasl.so
$(INSTALL_DIR) $(1)/usr/lib/sasl2
$(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.{a,so*} $(1)/usr/lib/sasl2/
endef
define Package/libsasl2/install
$(INSTALL_DIR) $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsasl2.so.* $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/sasl2
$(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.so.* $(1)/usr/lib/sasl2/
endef
$(eval $(call BuildPackage,libsasl2))

+ 10
- 8
libs/db47/Makefile View File

@ -8,16 +8,19 @@
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/uclibc++.mk
BASE_VERSION:=4.7.25
PKG_NAME:=db47
PKG_VERSION:=4.7.25.NC
PKG_RELEASE:=6
PKG_VERSION:=$(BASE_VERSION).4.NC
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/db-$(PKG_VERSION)
PKG_SOURCE:=db-$(PKG_VERSION).tar.gz
PKG_BUILD_DIR:=$(BUILD_DIR)/db-$(BASE_VERSION).NC
PKG_SOURCE:=db-$(BASE_VERSION).NC.tar.gz
PKG_SOURCE_URL:=http://download.oracle.com/berkeley-db/
PKG_MD5SUM:=073ab7f20d24b3872a51ca762f5090e7
PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
PKG_LICENSE:=BSD-2c
PKG_LICENSE:=Sleepycat
PKG_LICENSE_FILES:=LICENSE
PKG_FIXUP:=autoreconf
@ -31,7 +34,7 @@ define Package/libdb47
CATEGORY:=Libraries
DEPENDS:=+libxml2
TITLE:=Berkeley DB library (4.7)
URL:=http://www.sleepycat.com/products/db.shtml
URL:=http://www.oracle.com/us/products/database/berkeley-db
endef
define Package/libdb47/description
@ -43,7 +46,7 @@ define Package/libdb47xx
CATEGORY:=Libraries
DEPENDS:=+libdb47 $(CXX_DEPENDS)
TITLE:=Berkeley DB library (4.7) for C++
URL:=http://www.sleepycat.com/products/db.shtml
URL:=http://www.oracle.com/us/products/database/berkeley-db
endef
define Package/libdb47xx/description
@ -95,4 +98,3 @@ endef
$(eval $(call BuildPackage,libdb47))
$(eval $(call BuildPackage,libdb47xx))

libs/db47/patches/001-sequence_lock.patch → libs/db47/patches/010-patch.4.7.25.1.patch View File


libs/db47/patches/002-lock.patch → libs/db47/patches/020-patch.4.7.25.2.patch View File


libs/db47/patches/003-dead_lock.patch → libs/db47/patches/030-patch.4.7.25.3.patch View File


+ 118
- 0
libs/db47/patches/040-patch.4.7.25.4.patch View File

@ -0,0 +1,118 @@
--- a/dbinc/repmgr.h
+++ b/dbinc/repmgr.h
@@ -374,6 +374,7 @@ typedef struct {
#define SITE_FROM_EID(eid) (&db_rep->sites[eid])
#define EID_FROM_SITE(s) ((int)((s) - (&db_rep->sites[0])))
#define IS_VALID_EID(e) ((e) >= 0)
+#define IS_KNOWN_REMOTE_SITE(e) ((e) >= 0 && ((u_int)(e)) < db_rep->site_cnt)
#define SELF_EID INT_MAX
#define IS_PEER_POLICY(p) ((p) == DB_REPMGR_ACKS_ALL_PEERS || \
--- a/rep/rep_elect.c
+++ b/rep/rep_elect.c
@@ -33,7 +33,7 @@ static int __rep_elect_init
static int __rep_fire_elected __P((ENV *, REP *, u_int32_t));
static void __rep_elect_master __P((ENV *, REP *));
static int __rep_tally __P((ENV *, REP *, int, u_int32_t *, u_int32_t, roff_t));
-static int __rep_wait __P((ENV *, db_timeout_t *, int *, int, u_int32_t));
+static int __rep_wait __P((ENV *, db_timeout_t *, int, u_int32_t));
/*
* __rep_elect --
@@ -55,7 +55,7 @@ __rep_elect(dbenv, given_nsites, nvotes,
ENV *env;
LOG *lp;
REP *rep;
- int done, eid, elected, full_elect, locked, in_progress, need_req;
+ int done, elected, full_elect, locked, in_progress, need_req;
int ret, send_vote, t_ret;
u_int32_t ack, ctlflags, egen, nsites, orig_tally, priority, realpri;
u_int32_t tiebreaker;
@@ -181,8 +181,7 @@ __rep_elect(dbenv, given_nsites, nvotes,
REP_SYSTEM_UNLOCK(env);
(void)__rep_send_message(env, DB_EID_BROADCAST,
REP_MASTER_REQ, NULL, NULL, 0, 0);
- ret = __rep_wait(env, &to, &eid,
- 0, REP_F_EPHASE0);
+ ret = __rep_wait(env, &to, 0, REP_F_EPHASE0);
REP_SYSTEM_LOCK(env);
F_CLR(rep, REP_F_EPHASE0);
switch (ret) {
@@ -286,11 +285,11 @@ restart:
REP_SYSTEM_LOCK(env);
goto vote;
}
- ret = __rep_wait(env, &to, &eid, full_elect, REP_F_EPHASE1);
+ ret = __rep_wait(env, &to, full_elect, REP_F_EPHASE1);
switch (ret) {
case 0:
/* Check if election complete or phase complete. */
- if (eid != DB_EID_INVALID && !IN_ELECTION(rep)) {
+ if (!IN_ELECTION(rep)) {
RPRINT(env, DB_VERB_REP_ELECT,
(env, "Ended election phase 1"));
goto edone;
@@ -398,15 +397,12 @@ phase2:
REP_SYSTEM_LOCK(env);
goto i_won;
}
- ret = __rep_wait(env, &to, &eid, full_elect, REP_F_EPHASE2);
+ ret = __rep_wait(env, &to, full_elect, REP_F_EPHASE2);
RPRINT(env, DB_VERB_REP_ELECT,
(env, "Ended election phase 2 %d", ret));
switch (ret) {
case 0:
- if (eid != DB_EID_INVALID)
- goto edone;
- ret = DB_REP_UNAVAIL;
- break;
+ goto edone;
case DB_REP_EGENCHG:
if (to > timeout)
to = timeout;
@@ -1050,13 +1046,6 @@ __rep_elect_master(env, rep)
ENV *env;
REP *rep;
{
- /*
- * We often come through here twice, sometimes even more. We mustn't
- * let the redundant calls affect stats counting. But rep_elect relies
- * on this first part for setting eidp.
- */
- rep->master_id = rep->eid;
-
if (F_ISSET(rep, REP_F_MASTERELECT | REP_F_MASTER)) {
/* We've been through here already; avoid double counting. */
return;
@@ -1093,10 +1082,10 @@ __rep_fire_elected(env, rep, egen)
(timeout > 5000000) ? 500000 : ((timeout >= 10) ? timeout / 10 : 1);
static int
-__rep_wait(env, timeoutp, eidp, full_elect, flags)
+__rep_wait(env, timeoutp, full_elect, flags)
ENV *env;
db_timeout_t *timeoutp;
- int *eidp, full_elect;
+ int full_elect;
u_int32_t flags;
{
DB_REP *db_rep;
@@ -1174,7 +1163,6 @@ __rep_wait(env, timeoutp, eidp, full_ele
F_CLR(rep, REP_F_EGENUPDATE);
ret = DB_REP_EGENCHG;
} else if (phase_over) {
- *eidp = rep->master_id;
done = 1;
ret = 0;
}
--- a/repmgr/repmgr_net.c
+++ b/repmgr/repmgr_net.c
@@ -100,6 +100,8 @@ __repmgr_send(dbenv, control, rec, lsnp,
control, rec, &nsites_sent, &npeers_sent)) != 0)
goto out;
} else {
+ DB_ASSERT(env, IS_KNOWN_REMOTE_SITE(eid));
+
/*
* If this is a request that can be sent anywhere, then see if
* we can send it to our peer (to save load on the master), but

+ 46
- 0
libs/dtndht/Makefile View File

@ -0,0 +1,46 @@
#
# Copyright (C) 2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=dtndht
PKG_VERSION:=0.2.3
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.ibr.cs.tu-bs.de/projects/ibr-dtn/releases
PKG_MD5SUM:=37c33910ac7e760aad4db81724aeb4fb
PKG_MAINTAINER:=Johannes Morgenroth <morgenroth@ibr.cs.tu-bs.de>
PKG_LICENSE:=Apache-2.0
PKG_INSTALL:=1
PKG_FIXUP:=libtool
include $(INCLUDE_DIR)/package.mk
define Package/dtndht
SECTION:=libs
CATEGORY:=Libraries
DEPENDS:=+libopenssl
TITLE:=Library for DHT lookups for DTNs
endef
define Package/dtndht/description
A library with DHT functions for DTN name lookups.
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)
$(CP) $(PKG_INSTALL_DIR)/* $(1)/
endef
define Package/dtndht/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,dtndht))

+ 1
- 0
libs/engine_pkcs11/Makefile View File

@ -11,6 +11,7 @@ PKG_NAME:=engine_pkcs11
PKG_VERSION:=20131021
PKG_RELEASE:=1
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
PKG_LICENSE:=LGPL-2.1+
PKG_RELEASE=$(PKG_SOURCE_VERSION)


+ 3
- 3
libs/file/Makefile View File

@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=file
PKG_VERSION:=5.11
PKG_VERSION:=5.19
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=ftp://ftp.astron.com/pub/file/
PKG_MD5SUM:=16a407bd66d6c7a832f3a5c0d609c27b
PKG_MD5SUM:=e3526f59023f3f7d1ffa4d541335edab
PKG_LICENSE:=BSD-2c
PKG_LICENSE_FILES:=COPYING
@ -27,7 +27,7 @@ include $(INCLUDE_DIR)/package.mk
define Package/file/Default
TITLE:=File type determination
URL:=ftp://ftp.astron.com/pub/file/
MAINTAINER:=Luka Perkov <openwrt@lukaperkov.net>
MAINTAINER:=Luka Perkov <luka@openwrt.org>
endef
define Package/file


+ 1
- 1
libs/flac/Makefile View File

@ -18,7 +18,7 @@ PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
PKG_INSTALL:=1
PKG_LICENSE:=GFDLv1.2 GPLv2 LGPLv2.1 BSD-3c
PKG_LICENSE:=GFDL-1.2 GPL-2 LGPL-2.1 BSD-3-Clause
PKG_LICENSE_FILES:=README COPYING.FDL COPYING.GPL COPYING.LGPL COPYING.Xiph
PKG_FIXUP:=autoreconf


+ 78
- 0
libs/freetype/Makefile View File

@ -0,0 +1,78 @@
#
# Copyright (C) 2006-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=freetype
PKG_VERSION:=2.5.3
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=@SF/freetype
PKG_MD5SUM:=d6b60f06bfc046e43ab2a6cbfd171d65
PKG_LICENSE:=FTL GPL-2.0 MIT ZLIB
PKG_LICENSE_FILES:=docs/LICENSE.TXT docs/FTL.TXT docs/GPLv2.TXT src/bdf/README src/pcf/README src/gzip/zlib.h
PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
PKG_FIXUP:=autoreconf
PKG_LIBTOOL_PATHS:=builds/unix
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/package.mk
define Package/libfreetype
SECTION:=libs
CATEGORY:=Libraries
TITLE:=A free, high-quality and portable font engine
URL:=http://www.freetype.org/
DEPENDS:=+zlib +libbz2
endef
define Package/libfreetype/description
The FreeType project is a team of volunteers who develop free,
portable and high-quality software solutions for digital typography.
They specifically target embedded systems and focus on bringing small,
efficient and ubiquitous products.
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
--with-bzip2=yes \
--with-zlib=yes \
--with-png=no \
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
endef
define Build/InstallDev
$(INSTALL_DIR) $(2)/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/freetype-config $(2)/bin/
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/freetype2 $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreetype.{a,so*} $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/freetype2.pc $(1)/usr/lib/pkgconfig/
$(SED) \
's,^\(prefix\|exec_prefix\)=.*,\1="$(STAGING_DIR)/usr",g' \
$(2)/bin/freetype-config
endef
define Package/libfreetype/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreetype.so.* $(1)/usr/lib/
endef
$(eval $(call HostBuild))
$(eval $(call BuildPackage,libfreetype))

+ 1
- 1
libs/gdbm/Makefile View File

@ -15,7 +15,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@GNU/gdbm
PKG_MD5SUM:=72c832680cf0999caedbe5b265c8c1bd
PKG_LICENSE:=GPLv3
PKG_LICENSE:=GPL-3.0+
PKG_LICENSE_FILES:=COPYING
PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>


+ 2
- 2
libs/gnutls/Makefile View File

@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=gnutls
PKG_VERSION:=3.2.16
PKG_VERSION:=3.2.17
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=ftp://ftp.gnutls.org/gcrypt/gnutls/v3.2
PKG_MD5SUM:=d9a3fb49121b49bc332bfe9c3f49b005
PKG_MD5SUM:=271c6fc8c546abb8bd547eb12bfff518
PKG_MAINTAINER:=Nikos Mavrogiannopoulos <nmav@gnutls.org>
PKG_INSTALL:=1


+ 49
- 0
libs/ibrcommon/Makefile View File

@ -0,0 +1,49 @@
#
# Copyright (C) 2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=ibrcommon
PKG_VERSION:=0.12.1
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.ibr.cs.tu-bs.de/projects/ibr-dtn/releases
PKG_MD5SUM:=45681f48138bbbbd17384d25dc91454a
PKG_MAINTAINER:=Johannes Morgenroth <morgenroth@ibr.cs.tu-bs.de>
PKG_LICENSE:=Apache-2.0
PKG_INSTALL:=1
PKG_FIXUP:=libtool
include $(INCLUDE_DIR)/package.mk
define Package/ibrcommon
SECTION:=libs
CATEGORY:=Libraries
DEPENDS:=+libstdcpp +libpthread +librt +libnl +libopenssl
TITLE:=IBR Common C++ Library
endef
CONFIGURE_ARGS += \
--with-openssl
define Package/ibrcommon/description
A library with common functions for C++.
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)
$(CP) $(PKG_INSTALL_DIR)/* $(1)/
endef
define Package/ibrcommon/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,ibrcommon))

+ 50
- 0
libs/ibrdtn/Makefile View File

@ -0,0 +1,50 @@
#
# Copyright (C) 2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=ibrdtn
PKG_VERSION:=0.12.1
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.ibr.cs.tu-bs.de/projects/ibr-dtn/releases
PKG_MD5SUM:=96428dd4af541ea0c52db80776976a65
PKG_MAINTAINER:=Johannes Morgenroth <morgenroth@ibr.cs.tu-bs.de>
PKG_LICENSE:=Apache-2.0
PKG_INSTALL:=1
PKG_FIXUP:=libtool autoreconf
include $(INCLUDE_DIR)/package.mk
define Package/ibrdtn
SECTION:=libs
CATEGORY:=Libraries
DEPENDS:=+ibrcommon +zlib
TITLE:=IBR-DTN Library
endef
define Package/ibrdtn/description
Base library for IBR-DTN daemon and tools.
endef
CONFIGURE_ARGS += \
--with-compression \
--without-glib
define Build/InstallDev
$(INSTALL_DIR) $(1)
$(CP) $(PKG_INSTALL_DIR)/* $(1)/
endef
define Package/ibrdtn/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,ibrdtn))

+ 33
- 0
libs/ibrdtn/patches/100-add_configure_options.patch View File

@ -0,0 +1,33 @@
--- a/configure.ac
+++ b/configure.ac
@@ -159,12 +159,21 @@ AS_IF([test "x$enable_android" = "xyes"], [
dnl -----------------------------------------------
dnl check for glib support
dnl -----------------------------------------------
- PKG_CHECK_MODULES([GLIB], [glib-2.0], [
- AC_SUBST(GLIB_CFLAGS)
- AC_SUBST(GLIB_LIBS)
- AC_DEFINE(HAVE_GLIB, [1], ["glib library is available"])
- REQUIRES_LIBS="$REQUIRES_LIBS glib-2.0"
- ], [
+ AC_ARG_WITH([glib], [AS_HELP_STRING([--without-glib], [Disable linking to glib-2.0 library])], [with_glib=no], [with_glib=yes])
+ AS_IF([test "x$with_glib" != xno],
+ [
+ PKG_CHECK_MODULES([GLIB], [glib-2.0], [
+ AC_SUBST(GLIB_CFLAGS)
+ AC_SUBST(GLIB_LIBS)
+ AC_DEFINE(HAVE_GLIB, [1], ["glib library is available"])
+ REQUIRES_LIBS="$REQUIRES_LIBS glib-2.0"
+ ], [
+ with_glib=no
+ ])
+ ], [])
+
+ AS_IF([test "x$with_glib" = xno],
+ [
AS_IF([test "x$has_endian_h" = "xyes"],[
AC_MSG_NOTICE([use endian.h for endianess conversion])
],[
--
1.9.1

+ 58
- 0
libs/libarchive/Makefile View File

@ -0,0 +1,58 @@
#
# Copyright (C) 2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=libarchive
PKG_VERSION:=3.1.2
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.libarchive.org/downloads
PKG_MD5SUM:=efad5a503f66329bb9d2f4308b5de98a
PKG_MAINTAINER:=Johannes Morgenroth <morgenroth@ibr.cs.tu-bs.de>
PKG_LICENSE:=BSD-2-Clause
PKG_INSTALL:=1
PKG_FIXUP:=autoreconf
include $(INCLUDE_DIR)/package.mk
define Package/libarchive
SECTION:=libs
CATEGORY:=Libraries
DEPENDS:=+libopenssl +zlib
TITLE:=Multi-format archive and compression library
URL:=http://www.libarchive.org/
endef
CONFIGURE_ARGS += \
--disable-bsdcpio \
--disable-bsdtar \
--disable-acl \
--disable-xattr \
--without-bz2lib \
--without-lzma \
--without-lzmadec \
--without-lzo2 \
--without-nettle \
--without-expat \
--without-xml2
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
endef
define Package/libarchive/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libarchive))

+ 2
- 1
libs/libaudiofile/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=audiofile
PKG_VERSION:=0.3.6
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:= \
@ -40,6 +40,7 @@ endef
CONFIGURE_ARGS+= \
--enable-shared \
--enable-static \
--disable-examples \
--with-build-cc="$(HOSTCC)" \
TARGET_CFLAGS+= $(FPIC)


+ 105
- 0
libs/libdbi-drivers/Makefile View File

@ -0,0 +1,105 @@
#
# Copyright (C) 2009-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=libdbi-drivers
PKG_VERSION:=0.9.0
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/libdbi-drivers
PKG_MD5SUM:=9f47b960e225eede2cdeaabf7d22f59f
PKG_LICENSE:=LGPL-2.1
PKG_LICENSE_FILE:=COPYING
PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/libdbi-drivers/default
SECTION:=libs
CATEGORY:=Libraries
URL:=http://libdbi-drivers.sourceforge.net/
endef
define Package/libdbi-drivers
$(call Package/libdbi-drivers/default)
DEPENDS:=libdbi +libdbd-mysql +libdbd-pgsql +libdbd-sqlite3
TITLE:=Database drivers for libdbi
endef
define Package/libdbd-mysql
$(call Package/libdbi-drivers/default)
DEPENDS:=libdbi +libmysqlclient
TITLE:=MySQL database server driver for libdbi
endef
define Package/libdbd-pgsql
$(call Package/libdbi-drivers/default)
DEPENDS:=libdbi +libpq
TITLE:=PostgreSQL database server driver for libdbi
endef
define Package/libdbd-sqlite3
$(call Package/libdbi-drivers/default)
DEPENDS:=libdbi +libsqlite3
TITLE:=SQLite3 database driver for libdbi
endef
CONFIGURE_ARGS += \
--enable-shared \
--disable-static \
--disable-rpath \
--disable-docs \
--with-dbi-incdir=$(STAGING_DIR)/usr/include \
--with-dbi-libdir=$(STAGING_DIR)/usr/lib
ifneq ($(CONFIG_PACKAGE_libdbd-mysql),)
CONFIGURE_ARGS += \
--with-mysql \
--with-mysql-incdir=$(STAGING_DIR)/usr/include/mysql \
--with-mysql-libdir=$(STAGING_DIR)/usr/lib/mysql
TARGET_LDFLAGS += \
-L$(STAGING_DIR)/usr/lib/mysql/
else
CONFIGURE_ARGS += --without-mysql
endif
ifneq ($(SDK)$(CONFIG_PACKAGE_libdbd-pgsql),)
CONFIGURE_ARGS += \
--with-pgsql \
--with-pgsql-incdir=$(STAGING_DIR)/usr/include \
--with-pgsql-libdir=$(STAGING_DIR)/usr/lib
else
CONFIGURE_ARGS += --without-pgsql
endif
ifneq ($(SDK)$(CONFIG_PACKAGE_libdbd-sqlite3),)
CONFIGURE_ARGS += \
--with-sqlite3 \
--with-sqlite3-incdir=$(STAGING_DIR)/usr/include \
--with-sqlite3-libdir=$(STAGING_DIR)/usr/lib
else
CONFIGURE_ARGS += --without-sqlite3
endif
define BuildPlugin
define Package/libdbd-$(1)/install
$(INSTALL_DIR) $$(1)/usr/lib/dbd
$(CP) $(PKG_INSTALL_DIR)/usr/lib/dbd/libdbd$(1).so $$(1)/usr/lib/dbd/
endef
$$(eval $$(call BuildPackage,libdbd-$(1)))
endef
#$(eval $(call BuildPackage,libdbi-drivers))
$(eval $(call BuildPlugin,mysql))
$(eval $(call BuildPlugin,pgsql))
$(eval $(call BuildPlugin,sqlite3))

+ 11
- 0
libs/libdbi-drivers/patches/001_libsqlite3_fix.patch View File

@ -0,0 +1,11 @@
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -310,7 +310,7 @@ if test "$ac_sqlite3" = "yes"; then
AC_SEARCH_LIBS_VAR([sqlite3_exec], sqlite3, , , , SQLITE3_LIBS)
SQLITE3_LDFLAGS=""
else
- SQLITE3_LIBS=-lsqlite
+ SQLITE3_LIBS=-lsqlite3
SQLITE3_LDFLAGS=-L$ac_sqlite3_libdir
fi

+ 57
- 0
libs/libdbi/Makefile View File

@ -0,0 +1,57 @@
#
# Copyright (C) 2009-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=libdbi
PKG_VERSION:=0.9.0
PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/libdbi
PKG_MD5SUM:=05e2ceeac4bc85fbe40de8b4b22d9ab3
PKG_LICENSE:=LGPL-2.1
PKG_LICENSE_FILE:=COPYING
PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/libdbi
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Database Independent Abstraction Layer library
URL:=http://libdbi.sourceforge.net/
endef
define Package/libdbi/description
This package provides a database-independent abstraction layer library in C.
endef
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
--disable-docs
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/dbi $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdbi.{a,so*} $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/dbi.pc $(1)/usr/lib/pkgconfig/
endef
define Package/libdbi/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdbi.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libdbi))

+ 73
- 0
libs/libdmapsharing/Makefile View File

@ -0,0 +1,73 @@
#
# Copyright (C) 2009-2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# This Makefile is a skeleton
#
include $(TOPDIR)/rules.mk
PKG_NAME:=libdmapsharing
PKG_VERSION:=2.9.28
PKG_RELEASE:=1
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
PKG_LICENSE=LGPLv2.1
PKG_LICENSE_FILE=COPYING
PKG_BUILD_DIR:=$(BUILD_DIR)/libdmapsharing-$(PKG_VERSION)
PKG_SOURCE:=libdmapsharing-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.flyn.org/projects/libdmapsharing/
PKG_MD5SUM:=a530bee446040f6e6664a38212f16f60
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
TARGET_LDFLAGS+= \
-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
define Package/libdmapsharing
SECTION:=libs
CATEGORY:=Libraries
DEPENDS:=+libsoup +mdnsresponder +gstreamer1 +gst1-plugins-base +libgst1app
TITLE:=libdmapsharing
URL:=http://www.flyn.org/projects/libdmapsharing/
endef
define Package/libdmapsharing/decription
Libdmapsharing is a DMAP library implementation in C
endef
CONFIGURE_ARGS += \
--disable-introspection \
--disable-gtk-doc
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/
$(CP) \
$(PKG_INSTALL_DIR)/usr/include/libdmapsharing-3.0/ \
$(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib/
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/*.so* \
$(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
$(1)/usr/lib/pkgconfig/
endef
define Package/libdmapsharing/install
$(INSTALL_DIR) $(1)/usr/lib/
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/*.so* \
$(1)/usr/lib/
endef
$(eval $(call BuildPackage,libdmapsharing))

+ 24
- 0
libs/libdmapsharing/patches/001-diable_pixbuf.patch View File

@ -0,0 +1,24 @@
Index: libdmapsharing-2.9.15/configure.ac
===================================================================
--- libdmapsharing-2.9.15.orig/configure.ac 2012-08-14 21:02:31.861158482 +0200
+++ libdmapsharing-2.9.15/configure.ac 2012-08-14 21:03:42.448658906 +0200
@@ -112,18 +112,7 @@
AC_SUBST(GOBJECT_CFLAGS)
AC_SUBST(GOBJECT_LIBS)
-dnl Check for gdk-pixbuf, needed for DACP Now Playing Artwork
-PKG_CHECK_MODULES(GDKPIXBUF, gdk-pixbuf-2.0,
- HAVE_GDKPIXBUF=yes,
- HAVE_GDKPIXBUF=no)
-
-if test x"$HAVE_GDKPIXBUF" = "xyes"; then
- AC_DEFINE(HAVE_GDKPIXBUF, 1, [Define if gdk-pixbuf support is enabled])
-else
- AC_WARN(Gdk-pixbuf library not present, Now Playing artwork might be affected.)
-fi
-
-AM_CONDITIONAL(USE_GDKPIXBUF, test x"$HAVE_GDKPIXBUF" = "xyes")
+HAVE_GDKPIXBUF=no
AC_SUBST(GDKPIXBUF_CFLAGS)
AC_SUBST(GDKPIXBUF_LIBS)

+ 4
- 1
libs/libexif/Makefile View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2006-2010 OpenWrt.org
# Copyright (C) 2006-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@ -15,6 +15,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=@SF/libexif
PKG_MD5SUM:=27339b89850f28c8f1c237f233e05b27
PKG_LICENSE:=LGPL-2.1
PKG_LICENSE_FILES:=COPYING
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1


+ 1
- 0
libs/libftdi/Makefile View File

@ -20,6 +20,7 @@ PKG_LICENSE:=LGPL-2.0
PKG_LICENSE_FILES:=COPYING.LIB
PKG_INSTALL:=1
PKG_USE_MIPS16:=0
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk


+ 1
- 0
libs/libftdi1/Makefile View File

@ -20,6 +20,7 @@ PKG_LICENSE:=LGPL-2.0
PKG_LICENSE_FILES:=COPYING.LIB
PKG_INSTALL:=1
PKG_USE_MIPS16:=0
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk


+ 1
- 1
libs/libid3tag/Makefile View File

@ -16,7 +16,7 @@ PKG_SOURCE_URL:=@SF/mad
PKG_MD5SUM:=e5808ad997ba32c498803822078748c3
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
PKG_LICENSE:=GPLv2
PKG_LICENSE:=GPL-2
PKG_LICENSE_FILES:=COPYING
PKG_FIXUP:=autoreconf


+ 3
- 3
libs/libidn/Makefile View File

@ -8,14 +8,14 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=libidn
PKG_VERSION:=1.28
PKG_VERSION:=1.29
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@GNU/libidn
PKG_MD5SUM:=43a6f14b16559e10a492acc65c4b0acc
PKG_MD5SUM:=2b67bb507207af379f9461e1307dc84b
PKG_LICENSE:=GPLv2 GPLv3 LGPLv2.1 LGPLv3 APACHEv2
PKG_LICENSE:=GPL-2.0+ GPL-3.0+ LGPL-2.1+ LGPL-3.0+ Apache-2.0
PKG_LICENSE_FILES:=COPYING COPYINGv2 COPYINGv3 COPYING.LESSERv2 COPYING.LESSERv3 java/LICENSE-2.0.txt
PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>


+ 5
- 16
libs/libjpeg/Makefile View File

@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=jpeg
PKG_VERSION:=6b
PKG_VERSION:=9a
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)src.v$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/libjpeg
PKG_MD5SUM:=dbd5f3b47ed13132f04c685d608a7547
PKG_SOURCE_URL:=http://www.ijg.org/files
PKG_MD5SUM:=3353992aecaee1805ef4109aadd433e7
PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
PKG_LICENSE:=IJG
@ -55,26 +55,15 @@ HOST_CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
define Build/Prepare
$(call Build/Prepare/Default)
(cd $(PKG_BUILD_DIR); \
rm -f ltconfig ltmain.sh libtool; \
ln -s `which true` ltconfig; \
ln -s $(STAGING_DIR)/host/bin/libtool libtool; \
)
endef
define Build/Compile
$(INSTALL_DIR) $(PKG_INSTALL_DIR)/usr/{include,lib,bin,man/man1}
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
LIBTOOL="./libtool --tag=CC" \
prefix="$(PKG_INSTALL_DIR)/usr" \
exec_prefix="$(PKG_INSTALL_DIR)/usr" \
all
$(MAKE) -C $(PKG_BUILD_DIR) \
prefix="$(PKG_INSTALL_DIR)/usr" \
exec_prefix="$(PKG_INSTALL_DIR)/usr" \
install install-headers install-lib
DESTDIR="$(PKG_INSTALL_DIR)" \
install
endef
define Build/InstallDev


+ 0
- 11
libs/libjpeg/patches/001-allow-ccache.patch View File

@ -1,11 +0,0 @@
--- a/makefile.cfg
+++ b/makefile.cfg
@@ -168,7 +168,7 @@ libjpeg.a: @A2K_DEPS@ $(LIBOBJECTS)
# with libtool:
libjpeg.la: @A2K_DEPS@ $(LIBOBJECTS)
- $(LIBTOOL) --mode=link $(CC) -o libjpeg.la $(LIBOBJECTS) \
+ $(LIBTOOL) --mode=link "$(CC)" -o libjpeg.la $(LIBOBJECTS) \
-rpath $(libdir) -version-info $(JPEG_LIB_VERSION)
# sample programs:

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save