[OpenWrt-Devel] SHA256 hashes for packages
Hello Hannu, why should a variable be called MD5 if it holds an SHA256 hash? That does not make any sense. Could you, please, point me to the thread on the openwrt or lede list that discussed this weird idea. Abusing the MD5 variable with SHA256 hashes will break compatibility with older openwrt releases. If you want an SHA256 hash, please, use an SHA256 variable. This was already pointed out in https://bugs.lede-project.org/index.php?do=details_id=326=id=asc=summary=desc Anyway it is safer to use multiple hashes. Best regards Heinrich Schuchardt On 01/05/2017 11:05 PM, Hannu Nyman wrote: > Could you please update the PR a bit and replace the MD5 hash with a > SHA256 hash. > > (Leave the variable name as it is now, but replace the hash itself with > the longer SHA256 hash.) > > Same goes for other packages that you maintaining. MD5 is being phased > out, so please use SHA256 when issuing updates as PRs. > ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [RFC] Use CONFIG_USE_STRIP=y as default
Currently the default for stripping when building Lede/OpenWRT is CONFIG_USE_SSTRIP=y. This has the following impacts: Linking with GCC against libraries on the OpenWRT device is impossible. Python packages like pyusb that dynamically link against C libraries cannot be used. Debugging with gdb is not possible. Cf. the comments in https://dev.openwrt.org/browser/trunk/tools/sstrip/src/sstrip.c The size difference between libraries stripped with SSTRIP and STRIP is very small: libusb-1.0.so.0.1.0 STRIP: 47720 bytes SSTRIP: 46412 bytes In the example above the size increase is less then 3 %. I suggest to change the default to CONFIG_USE_STRIP=y. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [BUG] package/devel/valgrind: cannot build for sunxi
Debian has the following patch in http://http.debian.net/debian/pool/main/v/valgrind/valgrind_3.11.0-1.debian.tar.xz Description: Fix FTBFS on armhf by correctly detecting the architecture Origin: vendor Bug-Debian: http://bugs.debian.org/730844 Author: Alessandro GhediniLast-Update: 2013-11-30 --- a/configure.ac +++ b/configure.ac @@ -234,7 +234,7 @@ ARCH_MAX="s390x" ;; - armv7*) + arm*) AC_MSG_RESULT([ok (${host_cpu})]) ARCH_MAX="arm" ;; ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [BUG] package/devel/valgrind: cannot build for sunxi
Sunxi Lamobo R1 is a subarchitecture of arm_v7. So valgrind should build out of the box. Unfortunately it is disabled, because host_cpu = arm and not arm_v7. A messy workaround is to patch configure.ac adding arm*) AC_MSG_RESULT([ok (${host_cpu})]) ARCH_MAX="arm" ;; I guess host_cpu should be set to arm_v7 for sunxi and i.mx6 targets. Best regards Heinrich Schuchardt ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/1] uhttpd.init: generate 2048 bit RSA key
RSA keys should be generated with sufficient length. Using 1024 bits is considered unsafe. In other packages the used key length is 2048 bits. Signed-off-by: Heinrich Schuchardt <xypron.g...@gmx.de> --- package/network/services/uhttpd/files/uhttpd.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/network/services/uhttpd/files/uhttpd.init b/package/network/services/uhttpd/files/uhttpd.init index add0924..4ca6c8d 100755 --- a/package/network/services/uhttpd/files/uhttpd.init +++ b/package/network/services/uhttpd/files/uhttpd.init @@ -45,7 +45,7 @@ generate_keys() { [ -x "$PX5G_BIN" ] && { $PX5G_BIN selfsigned -der \ - -days ${days:-730} -newkey rsa:${bits:-1024} -keyout "${UHTTPD_KEY}.new" -out "${UHTTPD_CERT}.new" \ + -days ${days:-730} -newkey rsa:${bits:-2048} -keyout "${UHTTPD_KEY}.new" -out "${UHTTPD_CERT}.new" \ -subj /C="${country:-DE}"/ST="${state:-Saxony}"/L="${location:-Leipzig}"/CN="${commonname:-OpenWrt}" sync mv "${UHTTPD_KEY}.new" "${UHTTPD_KEY}" -- 2.1.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/1 v2] package/uhttpd: generate 2048 bit RSA key
RSA keys should be generated with sufficient length. Using 1024 bits is considered unsafe. In other packages the used key length is 2048 bits. Signed-off-by: Heinrich Schuchardt <xypron.g...@gmx.de> --- package/network/services/uhttpd/files/uhttpd.config | 2 +- package/network/services/uhttpd/files/uhttpd.init | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/services/uhttpd/files/uhttpd.config b/package/network/services/uhttpd/files/uhttpd.config index 61f8a49..41f930b 100644 --- a/package/network/services/uhttpd/files/uhttpd.config +++ b/package/network/services/uhttpd/files/uhttpd.config @@ -111,7 +111,7 @@ config cert px5g option days 730 # RSA key size - option bits 1024 + option bits 2048 # Location option country ZZ diff --git a/package/network/services/uhttpd/files/uhttpd.init b/package/network/services/uhttpd/files/uhttpd.init index add0924..4ca6c8d 100755 --- a/package/network/services/uhttpd/files/uhttpd.init +++ b/package/network/services/uhttpd/files/uhttpd.init @@ -45,7 +45,7 @@ generate_keys() { [ -x "$PX5G_BIN" ] && { $PX5G_BIN selfsigned -der \ - -days ${days:-730} -newkey rsa:${bits:-1024} -keyout "${UHTTPD_KEY}.new" -out "${UHTTPD_CERT}.new" \ + -days ${days:-730} -newkey rsa:${bits:-2048} -keyout "${UHTTPD_KEY}.new" -out "${UHTTPD_CERT}.new" \ -subj /C="${country:-DE}"/ST="${state:-Saxony}"/L="${location:-Leipzig}"/CN="${commonname:-OpenWrt}" sync mv "${UHTTPD_KEY}.new" "${UHTTPD_KEY}" -- 2.1.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/1] package/libs/libiconv: function names
Currently libiconv-stub and libiconv-full use different names for functions iconv, iconv_open, and iconv_close. This may lead to failures when building modules, e.g. with apr-util when NLS is not activated. The two modules libiconv-stub and libiconv-full should be interchangeable, so we need the same function names. cf. http://git.savannah.gnu.org/cgit/libiconv.git/tree/include/iconv.h.in After applying this patch execute make distclean Signed-off-by: Heinrich Schuchardt <xypron.g...@gmx.de> --- package/libs/libiconv/src/include/iconv.h | 4 1 file changed, 4 insertions(+) diff --git a/package/libs/libiconv/src/include/iconv.h b/package/libs/libiconv/src/include/iconv.h index dfab27f..64acb6f 100644 --- a/package/libs/libiconv/src/include/iconv.h +++ b/package/libs/libiconv/src/include/iconv.h @@ -13,6 +13,10 @@ extern int _libiconv_version; /* Likewise */ typedef long iconv_t; +#define iconv_open libiconv_open +#define iconv libiconv +#define iconv_close libiconv_close + extern iconv_t iconv_open(const char *tocode, const char *fromcode); -- 2.1.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] Add @APACHE download facility
I would like to package subversion. The patch below is a prerequisite. Best regards Heinrich Schuchardt On 01/06/2016 09:30 PM, Heinrich Schuchardt wrote: > The Apache Software Foundation offers diverse download mirros. > > For packaging Apache software a new alias @APACHE is defined. > > Signed-off-by: Heinrich Schuchardt <xypron.g...@gmx.de> > --- > include/download.mk | 2 +- > scripts/download.pl | 6 ++ > 2 files changed, 7 insertions(+), 1 deletion(-) > > diff --git a/include/download.mk b/include/download.mk > index c551647..7b7aa4a 100644 > --- a/include/download.mk > +++ b/include/download.mk > @@ -11,7 +11,7 @@ DOWNLOAD_RDEP=$(STAMP_PREPARED) $(HOST_STAMP_PREPARED) > define dl_method > $(strip \ >$(if $(2),$(2), \ > -$(if $(filter @GNOME/% @GNU/% @KERNEL/% @SF/% @SAVANNAH/% ftp://% > http://% https://% file://%,$(1)),default, \ > +$(if $(filter @APACHE/% @GNOME/% @GNU/% @KERNEL/% @SF/% @SAVANNAH/% > ftp://% http://% https://% file://%,$(1)),default, \ >$(if $(filter git://%,$(1)),git, \ > $(if $(filter svn://%,$(1)),svn, \ >$(if $(filter cvs://%,$(1)),cvs, \ > diff --git a/scripts/download.pl b/scripts/download.pl > index 6f28237..09d492c 100755 > --- a/scripts/download.pl > +++ b/scripts/download.pl > @@ -158,6 +158,12 @@ foreach my $mirror (@ARGV) { > for (1 .. 5) { > push @mirrors, "http://downloads.sourceforge.net/$1;; > } > + } elsif ($mirror =~ /^\@APACHE\/(.+)$/) { > + push @mirrors, "http://ftp.tudelft.nl/apache/$1;; > + push @mirrors, "http://apache.openmirror.de/$1;; > + push @mirrors, "http://mirrors.ocf.berkeley.edu/apache/$1;; > + push @mirrors, > "http://mirror.cc.columbia.edu/pub/software/apache/$1;; > + push @mirrors, "http://ftp.jaist.ac.jp/pub/apache/$1;; > } elsif ($mirror =~ /^\@GNU\/(.+)$/) { > push @mirrors, "http://ftpmirror.gnu.org/$1;; > push @mirrors, "http://ftp.gnu.org/pub/gnu/$1;; > ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/1] include/autotools.mk: rename libtool to libltdl
Fixes #21567 Since commit e49896f232ed2ed76f6a67cfb6c4f9bc3ac01af package/libs/libtool: rename to libltdl we see warnings like "WARNING: No feed for package 'libtool' found, maybe it's already part of the standard packages?" for packages with PKG_FIXUP:=libtool. Build dependencies for libtool are generated in autotools.mk. These have to be renamed to libltdl. CC: Daniel Dickinson <open...@daniel.thecshore.com> CC: Felix Fietkau <n...@openwrt.org> Signed-off-by: Heinrich Schuchardt <xypron.g...@gmx.de> --- include/autotools.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/autotools.mk b/include/autotools.mk index 3316998..4d25c85 100644 --- a/include/autotools.mk +++ b/include/autotools.mk @@ -105,14 +105,14 @@ ifneq ($(filter patch-libtool,$(PKG_FIXUP)),) endif ifneq ($(filter libtool,$(PKG_FIXUP)),) - PKG_BUILD_DEPENDS += libtool libintl libiconv + PKG_BUILD_DEPENDS += libltdl libintl libiconv ifeq ($(filter no-autoreconf,$(PKG_FIXUP)),) Hooks/Configure/Pre += autoreconf_target endif endif ifneq ($(filter libtool-ucxx,$(PKG_FIXUP)),) - PKG_BUILD_DEPENDS += libtool libintl libiconv + PKG_BUILD_DEPENDS += libltdl libintl libiconv ifeq ($(filter no-autoreconf,$(PKG_FIXUP)),) Hooks/Configure/Pre += autoreconf_target endif -- 2.1.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/1] package/libs/zlib: new package zlib-dev
The patch adds a new package zlib-dev. It contains all files needed for compiling a program using the zlib library: /usr/include/zconf.h /usr/include/zlib.h /usr/lib/libz.a /usr/lib/pkgconfig/zlib.pc Signed-off-by: Heinrich Schuchardt <xypron.g...@gmx.de> --- package/libs/zlib/Makefile | 32 1 file changed, 32 insertions(+) diff --git a/package/libs/zlib/Makefile b/package/libs/zlib/Makefile index 1d7b7b1..5993cbc 100644 --- a/package/libs/zlib/Makefile +++ b/package/libs/zlib/Makefile @@ -27,6 +27,24 @@ define Package/zlib URL:=http://www.zlib.net/ endef +define Package/zlib-dev + SECTION:=devel + CATEGORY:=Development + SUBMENU:=Libraries + DEPENDS:=zlib + TITLE:=Development files for the zlib library +endef + +define Package/zlib/description + zlib is a lossless data-compression library. + This package includes the shared library. +endef + +define Package/zlib-dev/description + zlib is a lossless data-compression library. + This package includes the development support files. +endef + define Build/Configure (cd $(PKG_BUILD_DIR); \ $(TARGET_CONFIGURE_OPTS) \ @@ -69,4 +87,18 @@ define Package/zlib/install $(CP) $(PKG_INSTALL_DIR)/usr/lib/libz.so.* $(1)/usr/lib/ endef +define Package/zlib-dev/install + $(INSTALL_DIR) $(1)/usr/include + $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/zconf.h \ + $(1)/usr/include/ + $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/zlib.h \ + $(1)/usr/include/ + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libz.a $(1)/usr/lib/ + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig + $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/zlib.pc \ + $(1)/usr/lib/pkgconfig/ +endef + $(eval $(call BuildPackage,zlib)) +$(eval $(call BuildPackage,zlib-dev)) -- 2.1.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/1] KernelPackage/usb-net-sr9700: new package
Add support for CoreChip-sz SR9700 based USB 1.1 10/100 ethernet devices Signed-off-by: Heinrich Schuchardt <xypron.g...@gmx.de> --- package/kernel/linux/modules/usb.mk | 15 +++ 1 file changed, 15 insertions(+) diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk index a238572..1fdf746 100644 --- a/package/kernel/linux/modules/usb.mk +++ b/package/kernel/linux/modules/usb.mk @@ -1315,6 +1315,21 @@ endef $(eval $(call KernelPackage,usb-net-rtl8152)) +define KernelPackage/usb-net-sr9700 + TITLE:=Support for CoreChip SR9700 ethernet devices + KCONFIG:=CONFIG_USB_NET_SR9700 + FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/sr9700.ko + AUTOLOAD:=$(call AutoProbe,sr9700) + $(call AddDepends/usb-net) +endef + +define KernelPackage/usb-net-sr9700/description + Kernel module for CoreChip-sz SR9700 based USB 1.1 10/100 ethernet devices +endef + +$(eval $(call KernelPackage,usb-net-sr9700)) + + define KernelPackage/usb-net-rndis TITLE:=Support for RNDIS connections KCONFIG:=CONFIG_USB_NET_RNDIS_HOST -- 2.1.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] Add @APACHE download facility
The Apache Software Foundation offers diverse download mirros. For packaging Apache software a new alias @APACHE is defined. Signed-off-by: Heinrich Schuchardt <xypron.g...@gmx.de> --- include/download.mk | 2 +- scripts/download.pl | 6 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/include/download.mk b/include/download.mk index c551647..7b7aa4a 100644 --- a/include/download.mk +++ b/include/download.mk @@ -11,7 +11,7 @@ DOWNLOAD_RDEP=$(STAMP_PREPARED) $(HOST_STAMP_PREPARED) define dl_method $(strip \ $(if $(2),$(2), \ -$(if $(filter @GNOME/% @GNU/% @KERNEL/% @SF/% @SAVANNAH/% ftp://% http://% https://% file://%,$(1)),default, \ +$(if $(filter @APACHE/% @GNOME/% @GNU/% @KERNEL/% @SF/% @SAVANNAH/% ftp://% http://% https://% file://%,$(1)),default, \ $(if $(filter git://%,$(1)),git, \ $(if $(filter svn://%,$(1)),svn, \ $(if $(filter cvs://%,$(1)),cvs, \ diff --git a/scripts/download.pl b/scripts/download.pl index 6f28237..09d492c 100755 --- a/scripts/download.pl +++ b/scripts/download.pl @@ -158,6 +158,12 @@ foreach my $mirror (@ARGV) { for (1 .. 5) { push @mirrors, "http://downloads.sourceforge.net/$1;; } + } elsif ($mirror =~ /^\@APACHE\/(.+)$/) { + push @mirrors, "http://ftp.tudelft.nl/apache/$1;; + push @mirrors, "http://apache.openmirror.de/$1;; + push @mirrors, "http://mirrors.ocf.berkeley.edu/apache/$1;; + push @mirrors, "http://mirror.cc.columbia.edu/pub/software/apache/$1;; + push @mirrors, "http://ftp.jaist.ac.jp/pub/apache/$1;; } elsif ($mirror =~ /^\@GNU\/(.+)$/) { push @mirrors, "http://ftpmirror.gnu.org/$1;; push @mirrors, "http://ftp.gnu.org/pub/gnu/$1;; -- 2.1.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/1 v4] package/libs/libtool: rename to libltdl
Source package libtool is used to package libltdl. Unfortunately binary libtoolize is missing. Packaging libtoolize would depend on package file which is in the packages feed. Felix Fietkau suggested to rename source libtool to libltdl and to create a new package libtool in packages. This patch contains the renaming. CC: Felix Fietkau <n...@openwrt.org> Signed-off-by: Heinrich Schuchardt <xypron.g...@gmx.de> --- package/libs/libltdl/Makefile | 53 ++ .../libs/libltdl/patches/160-passthrough-ssp.patch | 11 + package/libs/libtool/Makefile | 52 - .../libs/libtool/patches/160-passthrough-ssp.patch | 11 - 4 files changed, 64 insertions(+), 63 deletions(-) create mode 100644 package/libs/libltdl/Makefile create mode 100644 package/libs/libltdl/patches/160-passthrough-ssp.patch delete mode 100644 package/libs/libtool/Makefile delete mode 100644 package/libs/libtool/patches/160-passthrough-ssp.patch diff --git a/package/libs/libltdl/Makefile b/package/libs/libltdl/Makefile new file mode 100644 index 000..d515be8 --- /dev/null +++ b/package/libs/libltdl/Makefile @@ -0,0 +1,53 @@ +# +# Copyright (C) 2006 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:=libtool +PKG_VERSION:=2.4 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/libltdl/$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=@GNU/libtool +PKG_MD5SUM:=b32b04148ecdd7344abc6fe8bd1bb021 + +PKG_LICENSE:=GPL-2.0+ +PKG_LICENSE_FILES:=COPYING + +PKG_BUILD_PARALLEL:=0 + +include $(INCLUDE_DIR)/package.mk + +CONFIGURE_PREFIX=$(STAGING_DIR)/host +export GLOBAL_LIBDIR=$(STAGING_DIR)/usr/lib + +define Package/libltdl + SECTION:=libs + CATEGORY:=Libraries + TITLE:=A generic dynamic object loading library + URL:=http://www.gnu.org/software/libtool/ +endef + +define Build/InstallDev + $(MAKE) -C $(PKG_BUILD_DIR) \ + bindir="$(2)/bin" \ + datadir="$(2)/share" \ + prefix="$(2)" \ + exec_prefix="$(2)" \ + install + $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include + mv $(2)/lib/* $(1)/usr/lib/ + mv $(2)/include/* $(1)/usr/include/ +endef + +define Package/libltdl/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_BUILD_DIR)/libltdl/.libs/libltdl.so.* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,libltdl)) diff --git a/package/libs/libltdl/patches/160-passthrough-ssp.patch b/package/libs/libltdl/patches/160-passthrough-ssp.patch new file mode 100644 index 000..6fcbe68 --- /dev/null +++ b/package/libs/libltdl/patches/160-passthrough-ssp.patch @@ -0,0 +1,11 @@ +--- a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh +@@ -5051,7 +5051,7 @@ func_mode_link () + # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ +- -O*|-flto*|-fwhopr*|-fuse-linker-plugin) ++ -O*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*) + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + func_append compile_command " $arg" diff --git a/package/libs/libtool/Makefile b/package/libs/libtool/Makefile deleted file mode 100644 index 8091081..000 --- a/package/libs/libtool/Makefile +++ /dev/null @@ -1,52 +0,0 @@ -# -# Copyright (C) 2006 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:=libtool -PKG_VERSION:=2.4 -PKG_RELEASE:=1 - -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=@GNU/libtool -PKG_MD5SUM:=b32b04148ecdd7344abc6fe8bd1bb021 - -PKG_LICENSE:=GPL-2.0+ -PKG_LICENSE_FILES:=COPYING - -PKG_BUILD_PARALLEL:=0 - -include $(INCLUDE_DIR)/package.mk - -CONFIGURE_PREFIX=$(STAGING_DIR)/host -export GLOBAL_LIBDIR=$(STAGING_DIR)/usr/lib - -define Package/libltdl - SECTION:=libs - CATEGORY:=Libraries - TITLE:=A generic dynamic object loading library - URL:=http://www.gnu.org/software/libtool/ -endef - -define Build/InstallDev - $(MAKE) -C $(PKG_BUILD_DIR) \ - bindir="$(2)/bin" \ - datadir="$(2)/share" \ - prefix="$(2)" \ - exec_prefix="$(2)" \ - install - $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include - mv $(2)/lib/* $(1)/usr/lib/ - mv $(2)/include/* $(1)/usr/include/ -endef - -define Package/libltdl/install - $(INSTALL_DIR) $(1)/usr/lib - $(CP) $(PKG_BUILD_DIR)/libltdl/.libs/libltdl.so.* $(1)/usr/lib/ -endef - -$(eval $(call
[OpenWrt-Devel] [PATCH 1/1 v3] package/libs/libtool: rename to libltdl
Source package libtool is used to package libltdl. Unfortunately binary libtoolize is missing. Packaging libtoolize would depend on package file which is in the packages feed. Felix Fietkau suggested to rename source libtool to libltdl and to create a new package libtool in packages. This patch contains the renaming. version 3 In Makefile change PKG_BUILD_DIR only, thx Felix. version 2 Renaming must occur inside Makefile too. CC: Felix Fietkau <n...@openwrt.org> Signed-off-by: Heinrich Schuchardt <xypron.g...@gmx.de> --- package/libs/libltdl/Makefile | 53 ++ .../libs/libltdl/patches/160-passthrough-ssp.patch | 11 + package/libs/libtool/Makefile | 52 - .../libs/libtool/patches/160-passthrough-ssp.patch | 11 - 4 files changed, 64 insertions(+), 63 deletions(-) create mode 100644 package/libs/libltdl/Makefile create mode 100644 package/libs/libltdl/patches/160-passthrough-ssp.patch delete mode 100644 package/libs/libtool/Makefile delete mode 100644 package/libs/libtool/patches/160-passthrough-ssp.patch diff --git a/package/libs/libltdl/Makefile b/package/libs/libltdl/Makefile new file mode 100644 index 000..d515be8 --- /dev/null +++ b/package/libs/libltdl/Makefile @@ -0,0 +1,53 @@ +# +# Copyright (C) 2006 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:=libtool +PKG_VERSION:=2.4 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/libltdl/$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=@GNU/libtool +PKG_MD5SUM:=b32b04148ecdd7344abc6fe8bd1bb021 + +PKG_LICENSE:=GPL-2.0+ +PKG_LICENSE_FILES:=COPYING + +PKG_BUILD_PARALLEL:=0 + +include $(INCLUDE_DIR)/package.mk + +CONFIGURE_PREFIX=$(STAGING_DIR)/host +export GLOBAL_LIBDIR=$(STAGING_DIR)/usr/lib + +define Package/libltdl + SECTION:=libs + CATEGORY:=Libraries + TITLE:=A generic dynamic object loading library + URL:=http://www.gnu.org/software/libtool/ +endef + +define Build/InstallDev + $(MAKE) -C $(PKG_BUILD_DIR) \ + bindir="$(2)/bin" \ + datadir="$(2)/share" \ + prefix="$(2)" \ + exec_prefix="$(2)" \ + install + $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include + mv $(2)/lib/* $(1)/usr/lib/ + mv $(2)/include/* $(1)/usr/include/ +endef + +define Package/libltdl/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_BUILD_DIR)/libltdl/.libs/libltdl.so.* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,libltdl)) diff --git a/package/libs/libltdl/patches/160-passthrough-ssp.patch b/package/libs/libltdl/patches/160-passthrough-ssp.patch new file mode 100644 index 000..6fcbe68 --- /dev/null +++ b/package/libs/libltdl/patches/160-passthrough-ssp.patch @@ -0,0 +1,11 @@ +--- a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh +@@ -5051,7 +5051,7 @@ func_mode_link () + # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ +- -O*|-flto*|-fwhopr*|-fuse-linker-plugin) ++ -O*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*) + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + func_append compile_command " $arg" diff --git a/package/libs/libtool/Makefile b/package/libs/libtool/Makefile deleted file mode 100644 index 8091081..000 --- a/package/libs/libtool/Makefile +++ /dev/null @@ -1,52 +0,0 @@ -# -# Copyright (C) 2006 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:=libtool -PKG_VERSION:=2.4 -PKG_RELEASE:=1 - -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=@GNU/libtool -PKG_MD5SUM:=b32b04148ecdd7344abc6fe8bd1bb021 - -PKG_LICENSE:=GPL-2.0+ -PKG_LICENSE_FILES:=COPYING - -PKG_BUILD_PARALLEL:=0 - -include $(INCLUDE_DIR)/package.mk - -CONFIGURE_PREFIX=$(STAGING_DIR)/host -export GLOBAL_LIBDIR=$(STAGING_DIR)/usr/lib - -define Package/libltdl - SECTION:=libs - CATEGORY:=Libraries - TITLE:=A generic dynamic object loading library - URL:=http://www.gnu.org/software/libtool/ -endef - -define Build/InstallDev - $(MAKE) -C $(PKG_BUILD_DIR) \ - bindir="$(2)/bin" \ - datadir="$(2)/share" \ - prefix="$(2)" \ - exec_prefix="$(2)" \ - install - $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include - mv $(2)/lib/* $(1)/usr/lib/ - mv $(2)/include/* $(1)/usr/include/ -endef - -define Package/libltdl/install -
[OpenWrt-Devel] [PATCH 1/1] package/libs/libtool: rename to libltdl
Source package libtool is used to package libltdl. Unfortunately binary libtoolize is missing. Packaging libtoolize would depend on package file which is in the packages feed. Felix Fietkau suggested to rename source libtool to libltdl and to create a new package libtool in packages. This patch contains the renaming. Signed-off-by: Heinrich Schuchardt <xypron.g...@gmx.de> --- package/libs/libltdl/Makefile | 52 ++ .../libs/libltdl/patches/160-passthrough-ssp.patch | 11 + package/libs/libtool/Makefile | 52 -- .../libs/libtool/patches/160-passthrough-ssp.patch | 11 - 4 files changed, 63 insertions(+), 63 deletions(-) create mode 100644 package/libs/libltdl/Makefile create mode 100644 package/libs/libltdl/patches/160-passthrough-ssp.patch delete mode 100644 package/libs/libtool/Makefile delete mode 100644 package/libs/libtool/patches/160-passthrough-ssp.patch diff --git a/package/libs/libltdl/Makefile b/package/libs/libltdl/Makefile new file mode 100644 index 000..8091081 --- /dev/null +++ b/package/libs/libltdl/Makefile @@ -0,0 +1,52 @@ +# +# Copyright (C) 2006 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:=libtool +PKG_VERSION:=2.4 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=@GNU/libtool +PKG_MD5SUM:=b32b04148ecdd7344abc6fe8bd1bb021 + +PKG_LICENSE:=GPL-2.0+ +PKG_LICENSE_FILES:=COPYING + +PKG_BUILD_PARALLEL:=0 + +include $(INCLUDE_DIR)/package.mk + +CONFIGURE_PREFIX=$(STAGING_DIR)/host +export GLOBAL_LIBDIR=$(STAGING_DIR)/usr/lib + +define Package/libltdl + SECTION:=libs + CATEGORY:=Libraries + TITLE:=A generic dynamic object loading library + URL:=http://www.gnu.org/software/libtool/ +endef + +define Build/InstallDev + $(MAKE) -C $(PKG_BUILD_DIR) \ + bindir="$(2)/bin" \ + datadir="$(2)/share" \ + prefix="$(2)" \ + exec_prefix="$(2)" \ + install + $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include + mv $(2)/lib/* $(1)/usr/lib/ + mv $(2)/include/* $(1)/usr/include/ +endef + +define Package/libltdl/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_BUILD_DIR)/libltdl/.libs/libltdl.so.* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,libltdl)) diff --git a/package/libs/libltdl/patches/160-passthrough-ssp.patch b/package/libs/libltdl/patches/160-passthrough-ssp.patch new file mode 100644 index 000..6fcbe68 --- /dev/null +++ b/package/libs/libltdl/patches/160-passthrough-ssp.patch @@ -0,0 +1,11 @@ +--- a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh +@@ -5051,7 +5051,7 @@ func_mode_link () + # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ +- -O*|-flto*|-fwhopr*|-fuse-linker-plugin) ++ -O*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*) + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + func_append compile_command " $arg" diff --git a/package/libs/libtool/Makefile b/package/libs/libtool/Makefile deleted file mode 100644 index 8091081..000 --- a/package/libs/libtool/Makefile +++ /dev/null @@ -1,52 +0,0 @@ -# -# Copyright (C) 2006 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:=libtool -PKG_VERSION:=2.4 -PKG_RELEASE:=1 - -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=@GNU/libtool -PKG_MD5SUM:=b32b04148ecdd7344abc6fe8bd1bb021 - -PKG_LICENSE:=GPL-2.0+ -PKG_LICENSE_FILES:=COPYING - -PKG_BUILD_PARALLEL:=0 - -include $(INCLUDE_DIR)/package.mk - -CONFIGURE_PREFIX=$(STAGING_DIR)/host -export GLOBAL_LIBDIR=$(STAGING_DIR)/usr/lib - -define Package/libltdl - SECTION:=libs - CATEGORY:=Libraries - TITLE:=A generic dynamic object loading library - URL:=http://www.gnu.org/software/libtool/ -endef - -define Build/InstallDev - $(MAKE) -C $(PKG_BUILD_DIR) \ - bindir="$(2)/bin" \ - datadir="$(2)/share" \ - prefix="$(2)" \ - exec_prefix="$(2)" \ - install - $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include - mv $(2)/lib/* $(1)/usr/lib/ - mv $(2)/include/* $(1)/usr/include/ -endef - -define Package/libltdl/install - $(INSTALL_DIR) $(1)/usr/lib - $(CP) $(PKG_BUILD_DIR)/libltdl/.libs/libltdl.so.* $(1)/usr/lib/ -endef - -$(eval $(call BuildPackage,libltdl)) diff --git a/package/libs/libtool/patches/160-passthrough-ssp.patch b/package/libs/
Re: [OpenWrt-Devel] [PATCH 1/1 v2] package/libs/libtool: rename to libltdl
On 04.01.2016 01:43, Felix Fietkau wrote: > On 2016-01-04 01:34, Heinrich Schuchardt wrote: >> Source package libtool is used to package libltdl. >> Unfortunately binary libtoolize is missing. >> Packaging libtoolize would depend on package file which is in the >> packages feed. >> Felix Fietkau suggested to rename source libtool to libltdl >> and to create a new package libtool in packages. >> >> This patch contains the renaming. >> >> version 2 >> Renaming must occur inside Makefile too. > That Build/Prepare code is rather weird. How about leaving PKG_NAME > alone, removing Build/Prepare and just setting: > PKG_BUILD_DIR:=$(BUILD_DIR)/libltdl/$(PKG_NAME)-$(PKG_VERSION) > > - Felix > Does variable PKG_NAME have no significance outside? Doesn't it have to match the directory name? What I want to avoid is that if I create devel/libtool/Makefile with PKG_NAME=libtool in feed packages I get any interference. Unfortunately wiki.openwrt.org does not really explain this. It seems that something like you propose has already be done in package/kernel/lantiq/ltq-adsl-fw/Makefile Best regards Heinrich ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/1 v2] package/libs/libtool: rename to libltdl
Source package libtool is used to package libltdl. Unfortunately binary libtoolize is missing. Packaging libtoolize would depend on package file which is in the packages feed. Felix Fietkau suggested to rename source libtool to libltdl and to create a new package libtool in packages. This patch contains the renaming. version 2 Renaming must occur inside Makefile too. Signed-off-by: Heinrich Schuchardt <xypron.g...@gmx.de> --- package/libs/libltdl/Makefile | 60 ++ .../libs/libltdl/patches/160-passthrough-ssp.patch | 11 package/libs/libtool/Makefile | 52 --- .../libs/libtool/patches/160-passthrough-ssp.patch | 11 4 files changed, 71 insertions(+), 63 deletions(-) create mode 100644 package/libs/libltdl/Makefile create mode 100644 package/libs/libltdl/patches/160-passthrough-ssp.patch delete mode 100644 package/libs/libtool/Makefile delete mode 100644 package/libs/libtool/patches/160-passthrough-ssp.patch diff --git a/package/libs/libltdl/Makefile b/package/libs/libltdl/Makefile new file mode 100644 index 000..3401caa --- /dev/null +++ b/package/libs/libltdl/Makefile @@ -0,0 +1,60 @@ +# +# Copyright (C) 2006 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:=libltdl +PKG_VERSION:=2.4 +PKG_RELEASE:=1 + +PKG_SOURCE:=libtool-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=@GNU/libtool +PKG_MD5SUM:=b32b04148ecdd7344abc6fe8bd1bb021 + +PKG_LICENSE:=GPL-2.0+ +PKG_LICENSE_FILES:=COPYING + +PKG_BUILD_PARALLEL:=0 + +include $(INCLUDE_DIR)/package.mk + +CONFIGURE_PREFIX=$(STAGING_DIR)/host +export GLOBAL_LIBDIR=$(STAGING_DIR)/usr/lib + +define Package/libltdl + SECTION:=libs + CATEGORY:=Libraries + TITLE:=A generic dynamic object loading library + URL:=http://www.gnu.org/software/libtool/ +endef + +define Build/Prepare + rm -rf $(PKG_BUILD_DIR) + mkdir -p $(PKG_BUILD_DIR) + $(TAR) -C $(PKG_BUILD_DIR) \ + -xzf $(DL_DIR)/libtool-$(PKG_VERSION).tar.gz --strip 1 + $(Build/Patch) +endef + +define Build/InstallDev + $(MAKE) -C $(PKG_BUILD_DIR) \ + bindir="$(2)/bin" \ + datadir="$(2)/share" \ + prefix="$(2)" \ + exec_prefix="$(2)" \ + install + $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include + mv $(2)/lib/* $(1)/usr/lib/ + mv $(2)/include/* $(1)/usr/include/ +endef + +define Package/libltdl/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_BUILD_DIR)/libltdl/.libs/libltdl.so.* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,libltdl)) diff --git a/package/libs/libltdl/patches/160-passthrough-ssp.patch b/package/libs/libltdl/patches/160-passthrough-ssp.patch new file mode 100644 index 000..6fcbe68 --- /dev/null +++ b/package/libs/libltdl/patches/160-passthrough-ssp.patch @@ -0,0 +1,11 @@ +--- a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh +@@ -5051,7 +5051,7 @@ func_mode_link () + # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ +- -O*|-flto*|-fwhopr*|-fuse-linker-plugin) ++ -O*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*) + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + func_append compile_command " $arg" diff --git a/package/libs/libtool/Makefile b/package/libs/libtool/Makefile deleted file mode 100644 index 8091081..000 --- a/package/libs/libtool/Makefile +++ /dev/null @@ -1,52 +0,0 @@ -# -# Copyright (C) 2006 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:=libtool -PKG_VERSION:=2.4 -PKG_RELEASE:=1 - -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=@GNU/libtool -PKG_MD5SUM:=b32b04148ecdd7344abc6fe8bd1bb021 - -PKG_LICENSE:=GPL-2.0+ -PKG_LICENSE_FILES:=COPYING - -PKG_BUILD_PARALLEL:=0 - -include $(INCLUDE_DIR)/package.mk - -CONFIGURE_PREFIX=$(STAGING_DIR)/host -export GLOBAL_LIBDIR=$(STAGING_DIR)/usr/lib - -define Package/libltdl - SECTION:=libs - CATEGORY:=Libraries - TITLE:=A generic dynamic object loading library - URL:=http://www.gnu.org/software/libtool/ -endef - -define Build/InstallDev - $(MAKE) -C $(PKG_BUILD_DIR) \ - bindir="$(2)/bin" \ - datadir="$(2)/share" \ - prefix="$(2)" \ - exec_prefix="$(2)" \ - install - $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include - mv $(2)/lib/* $(1)/usr/lib/ - mv $(2)/include/* $(1)/usr/include/ -ende
[OpenWrt-Devel] [PATCH 1/1] package/libs/libtool: package libtool
Up to now only package libtldl is created form source package GNU libtool. A new package libtool containing libtoolize is provided. Signed-off-by: Heinrich Schuchardt <xypron.g...@gmx.de> --- package/libs/libtool/Makefile | 39 +++ 1 file changed, 39 insertions(+) diff --git a/package/libs/libtool/Makefile b/package/libs/libtool/Makefile index 8091081..da92de1 100644 --- a/package/libs/libtool/Makefile +++ b/package/libs/libtool/Makefile @@ -32,6 +32,19 @@ define Package/libltdl URL:=http://www.gnu.org/software/libtool/ endef +define Package/libtool + SECTION:=devel + CATEGORY:=Development + TITLE:=GNU libtool + URL:=http://www.gnu.org/software/libtool/ + DEPENDS:=+gcc +file +endef + +define Package/libtool/description +GNU libtool is a generic library support script. Libtool hides the complexity +of using shared libraries behind a consistent, portable interface. +endef + define Build/InstallDev $(MAKE) -C $(PKG_BUILD_DIR) \ bindir="$(2)/bin" \ @@ -49,4 +62,30 @@ define Package/libltdl/install $(CP) $(PKG_BUILD_DIR)/libltdl/.libs/libltdl.so.* $(1)/usr/lib/ endef +define Package/libtool/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/libtoolize $(1)/usr/bin + $(SED) 's|$$(STAGING_DIR_HOST)|/usr|g' \ + $(1)/usr/bin/libtoolize + $(SED) 's|$$(CONFIGURE_PREFIX)|/usr|g' \ + $(1)/usr/bin/libtoolize + $(SED) 's|/usr/bin/sed|/bin/sed|g' \ + $(1)/usr/bin/libtoolize + $(INSTALL_DIR) $(1)/usr/share/aclocal + for file in argz.m4 ltversion.m4 lt~obsolete.m4 libtool.m4 \ + ltoptions.m4 ltsugar.m4; do \ + $(INSTALL_DATA) $(PKG_BUILD_DIR)/libltdl/m4/file \ + $(1)/usr/share/aclocal/; \ + done + $(INSTALL_DIR) $(1)/usr/share/libtool/config + for file in (cd $(PKG_BUILD_DIR)/libltdl/config && \ + find . -maxdepth 1 -type f); do \ + $(INSTALL_DATA) $(PKG_BUILD_DIR)/libltdl/config/file \ + $(1)/usr/share/libtool/config/; \ + $(SED) 's|$$(STAGING_DIR_HOST)|/usr|g' \ + $(1)/usr/share/libtool/config/file; \ + done +endef + $(eval $(call BuildPackage,libltdl)) +$(eval $(call BuildPackage,libtool)) -- 2.1.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] base-files utils/busybox: Make requiring login in console default for easily accessed devices
On 12/23/2015 08:54 AM, Daniel Dickinson wrote: > On 23/12/15 02:44 AM, Heinrich Schuchardt wrote: >> Hello Daniel, >> >> my TP-LINK MR3020 (AR71XX, OpenWrt 15.05) uses /dev/ttyATH0 as serial >> console . >> >> I could not find this device in the getty commands of the inittab that >> you create in the patch below. > > For that patch for ar71xx it is somewhat tricky because different boards > have different serial devices so it is necessary to use an uci-default > scriptlet that modifies inittab based on the actual console device > (which on ar71xx is on kernel commandline). > > However, I don't particularly like that solution and am investigating > alternative measures that allow to embed a working inittab in the > squashfs (basically I'm hoping I'm reading agetty docs right and I can > 'cheat' and sidestep the question of the name of the console device; but > will test; fortunately I have ar71xx since that's the hardest one, > although ramips I couldn't find what the serial console was either, so > it may actually need this even more). > >> >> I would feel more comfortable having a password verification on my >> router. Shouldn't this be default on all targets? > > Not my call. If the core devs want to do that once I get this resolved > that is up to them. Dear core devs, A case that has to be opened does not provide any real security at all. A password for console access is a necessity. Every non-free router has a console password, why not OpenWrt? > > Besides having passwordless serial console on a typical router is not a > significant issue because you have to hack the hardware to get a serial > attached (at least opening the case being required is the norm). The > reason I create this patch was more for situations like running OpenWrt > on generic PC's or Raspberry Pi/Pi2 where it's trivial to get hardware > console access (even for someone with basically no skills or specialized > equipment). A Raspberry typically is also in a case which has to be opened to get access to the serial port: https://www.raspberrypi.org/blog/raspberry-pi-official-case/ Regards Heinrich Schuchardt ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 1/1] [package] GNU Make
On 22.12.2015 02:50, Yousong Zhou wrote: > On 22 December 2015 at 06:08, Heinrich Schuchardt <xypron.g...@gmx.de> wrote: >> OpenWRT provides gcc but lacks make. So building foreign software is >> difficult. >> > > GCC is provided as part of the OpenWrt packages feeds > (https://github.com/openwrt/packages), so maybe this should also go > there. > Thank you for the hint. I have created a pull request now: https://github.com/openwrt/packages/pull/2165 >> This patch provides GNU Make 4.1. >> >> Built on Debian Jessie amd64. >> Tested on TP-Link MR3020 (ar71xx/generic). >> >> Signed-off-by: Heinrich Schuchardt <xypron.g...@gmx.de> >> --- >> package/devel/make/Makefile | 52 >> + >> 1 file changed, 52 insertions(+) >> create mode 100644 package/devel/make/Makefile >> >> diff --git a/package/devel/make/Makefile b/package/devel/make/Makefile >> new file mode 100644 >> index 000..7c938bd >> --- /dev/null >> +++ b/package/devel/make/Makefile >> @@ -0,0 +1,52 @@ >> +# >> +# Copyright (C) 2015 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:=make >> +PKG_VERSION:=4.1 >> +PKG_RELEASE:=1 >> + >> +PKG_SOURCE_URL:=@GNU/make >> +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz >> +PKG_VERSION:=$(PKG_VERSION) > > This line should not be necessary. > >> +PKG_MD5SUM:=654f9117957e6fa6a1c49a8f08270ec9 >> +PKG_MAINTAINER:=Heinrich Schuchardt <xypron.g...@gmx.de> >> +PKG_LICENSE:=GPL-3.0+ >> + >> +PKG_INSTALL:=1 >> + >> +include $(INCLUDE_DIR)/package.mk >> + >> +define Package/make >> + SECTION:=devel >> + CATEGORY:=Development >> + TITLE:=make >> + DEPENDS:= >> + URL:=https://www.gnu.org/software/make/ >> +endef >> + >> +define Package/make/description >> + The Make package contains a tool to create executables from source files. >> +endef >> + >> +TARGET_CFLAGS += $(FPIC) -Wno-unused-value >> + >> +CONFIGURE_ARGS += \ >> + --host=$(REAL_GNU_TARGET_NAME) \ >> + --target=$(REAL_GNU_TARGET_NAME) \ >> + --prefix=/usr > > Could this package be built and run without these statements? > >> + >> +define Package/make/install >> + $(INSTALL_DIR) $(1)/usr/bin >> + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/make $(1)/usr/bin/ >> + $(INSTALL_DIR) $(1)/usr/include >> + $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ >> +endef >> + >> +$(eval $(call BuildPackage,make)) >> -- >> 2.1.4 >> ___ >> openwrt-devel mailing list >> openwrt-devel@lists.openwrt.org >> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel > ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] base-files utils/busybox: Make requiring login in console default for easily accessed devices
Hello Daniel, my TP-LINK MR3020 (AR71XX, OpenWrt 15.05) uses /dev/ttyATH0 as serial console . I could not find this device in the getty commands of the inittab that you create in the patch below. I would feel more comfortable having a password verification on my router. Shouldn't this be default on all targets? Best regards Heinrich Schuchardt On 23.12.2015 07:58, Daniel Dickinson wrote: > I am reworking this (requiring console login) as couple of packages for > the packages feed, although it may require an image.mk or packages > Makefile hook in order to embed an appropriate inittab into the image > (since the inittab will need to be modified and we need to guarantee the > correct order of actions; and inittab comes from base-files which is > last thing done in the packages Makefile). > > Regards, > > Daniel > > On 16/12/15 09:59 AM, open...@daniel.thecshore.com wrote: >> From: Daniel Dickinson <open...@daniel.thecshore.com> >> >> Some devices like generic PC's and Raspberry Pi/Pi2 are much more >> trivial to >> get hardware console access than a typical router scenario and >> therefore really >> ought to require login even on hardware console rather than a hardware >> console >> granting passwordless root access. >> >> Since we're at it, we also make requiring login on hardware console an >> easily configured build-time option. >> >> Signed-off-by: Daniel Dickinson <open...@daniel.thecshore.com> >> --- >> config/Config-build.in | 17 >> >> package/base-files/Makefile| 23 >> +- >> package/utils/busybox/Config-defaults.in | 3 +++ >> .../linux/adm5120/base-files-console/etc/inittab | 5 + >> .../base-files-console/etc/uci-defaults/inittab| 6 ++ >> .../linux/brcm2708/base-files-console/etc/inittab | 4 >> .../linux/ipq806x/base-files-console/etc/inittab | 4 >> target/linux/lantiq/base-files-console/etc/inittab | 3 +++ >> target/linux/malta/base-files-console/etc/inittab | 7 +++ >> .../linux/mediatek/base-files-console/etc/inittab | 3 +++ >> target/linux/mxs/base-files-console/etc/inittab| 3 +++ >> target/linux/omap/base-files-console/etc/inittab | 5 + >> .../linux/omap24xx/base-files-console/etc/inittab | 5 + >> target/linux/ppc44x/base-files-console/etc/inittab | 4 >> .../linux/realview/base-files-console/etc/inittab | 5 + >> target/linux/sunxi/base-files-console/etc/inittab | 5 + >> target/linux/x86/base-files-console/etc/inittab| 4 >> 17 files changed, 105 insertions(+), 1 deletion(-) >> create mode 100644 target/linux/adm5120/base-files-console/etc/inittab >> create mode 100644 >> target/linux/ar71xx/base-files-console/etc/uci-defaults/inittab >> create mode 100644 target/linux/brcm2708/base-files-console/etc/inittab >> create mode 100644 target/linux/ipq806x/base-files-console/etc/inittab >> create mode 100644 target/linux/lantiq/base-files-console/etc/inittab >> create mode 100644 target/linux/malta/base-files-console/etc/inittab >> create mode 100644 target/linux/mediatek/base-files-console/etc/inittab >> create mode 100644 target/linux/mxs/base-files-console/etc/inittab >> create mode 100644 target/linux/omap/base-files-console/etc/inittab >> create mode 100644 target/linux/omap24xx/base-files-console/etc/inittab >> create mode 100644 target/linux/ppc44x/base-files-console/etc/inittab >> create mode 100644 target/linux/realview/base-files-console/etc/inittab >> create mode 100644 target/linux/sunxi/base-files-console/etc/inittab >> create mode 100644 target/linux/x86/base-files-console/etc/inittab >> >> diff --git a/config/Config-build.in b/config/Config-build.in >> index 1a35c5d..f975d45 100644 >> --- a/config/Config-build.in >> +++ b/config/Config-build.in >> @@ -75,6 +75,23 @@ menu "Global build settings" >> encrypted and unencrypted flavours, even when the >> encryption library >> is a 'heavier' one such as OpenSSL. >> >> +config CONSOLE_LOGIN >> +bool >> +prompt "Require login even on hardware/serial console" >> +default y if (TARGET_x86_generic || TARGET_x86_64 || >> TARGET_brcm2708) >> +default n >> +help >> + Enables Busybox applets getty and login and uses them >> instead of default >> + respawn of ash on hardware/serial consoles. This is made >> the de
[OpenWrt-Devel] [PATCH 1/1] [package] GNU Make
OpenWRT provides gcc but lacks make. So building foreign software is difficult. This patch provides GNU Make 4.1. Built on Debian Jessie amd64. Tested on TP-Link MR3020 (ar71xx/generic). Signed-off-by: Heinrich Schuchardt <xypron.g...@gmx.de> --- package/devel/make/Makefile | 52 + 1 file changed, 52 insertions(+) create mode 100644 package/devel/make/Makefile diff --git a/package/devel/make/Makefile b/package/devel/make/Makefile new file mode 100644 index 000..7c938bd --- /dev/null +++ b/package/devel/make/Makefile @@ -0,0 +1,52 @@ +# +# Copyright (C) 2015 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:=make +PKG_VERSION:=4.1 +PKG_RELEASE:=1 + +PKG_SOURCE_URL:=@GNU/make +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_VERSION:=$(PKG_VERSION) +PKG_MD5SUM:=654f9117957e6fa6a1c49a8f08270ec9 +PKG_MAINTAINER:=Heinrich Schuchardt <xypron.g...@gmx.de> +PKG_LICENSE:=GPL-3.0+ + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/make + SECTION:=devel + CATEGORY:=Development + TITLE:=make + DEPENDS:= + URL:=https://www.gnu.org/software/make/ +endef + +define Package/make/description + The Make package contains a tool to create executables from source files. +endef + +TARGET_CFLAGS += $(FPIC) -Wno-unused-value + +CONFIGURE_ARGS += \ + --host=$(REAL_GNU_TARGET_NAME) \ + --target=$(REAL_GNU_TARGET_NAME) \ + --prefix=/usr + +define Package/make/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/make $(1)/usr/bin/ + $(INSTALL_DIR) $(1)/usr/include + $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ +endef + +$(eval $(call BuildPackage,make)) -- 2.1.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] tar: write: Broken pi
OpenWRT ChaosCalmer uses busybox 1.23.2. For many tar.gz files I receive errors like: user@MR3020:~/src$ wget http://tukaani.org/xz/xz-5.2.2.tar.gz user@MR3020:~/src$ tar -xzf xz-5.2.2.tar.gz tar: invalid tar magic user@MR3020:~/src$ tar: write: Broken pipe GNU tar on Debian Jessie amd64 has no problem with the same file. Best regards Heinrich Schuchardt ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel