From: Jo-Philipp Wich Date: Thu, 27 Jan 2011 22:41:46 +0000 (+0000) Subject: [packages] mysql: fix /bin/hostname invocation in table install script, openwrt does... X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=d75913c1b71af887c70e161382460abc815186f6;ds=sidebyside [packages] mysql: fix /bin/hostname invocation in table install script, openwrt does not have this command SVN-Revision: 25182 --- diff --git a/libs/mysql/Makefile b/libs/mysql/Makefile index 9f0d392504..dba90cbad6 100644 --- a/libs/mysql/Makefile +++ b/libs/mysql/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mysql PKG_VERSION:=5.1.53 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=\ diff --git a/libs/mysql/patches/502-fix-hostname.patch b/libs/mysql/patches/502-fix-hostname.patch new file mode 100644 index 0000000000..632cb98551 --- /dev/null +++ b/libs/mysql/patches/502-fix-hostname.patch @@ -0,0 +1,11 @@ +--- a/scripts/mysql_install_db.sh ++++ b/scripts/mysql_install_db.sh +@@ -317,7 +317,7 @@ then + fi + + # Try to determine the hostname +-hostname=`@HOSTNAME@` ++hostname=`cat /proc/net/hostname` + + # Check if hostname is valid + if test "$cross_bootstrap" -eq 0 -a "$in_rpm" -eq 0 -a "$force" -eq 0