Skip to contentSkip to conversation

package/monkey: bump to latest git commit

PATCH New Fabrice Fontaine 3 participants 3 messages Apr 26, 2021 – May 8, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/monkey: bump to latest git commit

This will fix a build failure with gcc 10

- Update indentation in hash file (two spaces)
- Drop INSTALL_SYSCONFDIR, INSTALL_WEBROOTDIR and WITH_SYSTEM_MALLOC (not available since
https://github.com/monkey/monkey/commit/df145932e33fca0d4a1dcd9d7675f996c8e6a73b)
- Set WITHOUT_HEADERS to ON because headers are not needed and to avoid the following build failure:

CMake Error at include/cmake_install.cmake:46 (file):
file INSTALL cannot find "/home/fabrice/buildroot/output/build/monkey-f54856ce250c4e25735434dc75717a4b7fbfc45b/include/mk_core.h":
No such file or directory.
Call Stack (most recent call first):
cmake_install.cmake:69 (include)

Upstream is aware than the lack of release is an issue but no comments since 2018: https://github.com/monkey/monkey/issues/276

Fixes:
- http://autobuild.buildroot.org/results/0b723937ca048228082d040100f6e6324ac8300b

---
 package/monkey/monkey.hash |  7 +++----
 package/monkey/monkey.mk   | 18 ++++++++----------
 2 files changed, 11 insertions(+), 14 deletions(-)
package/monkey/monkey.hash +3 -4
index 83fc0def60..27ff806442 100644
@@ -1,4 +1,3 @@
-# md5 from http://monkey-project.com/releases/1.6/monkey-1.6.9.tar.gz.md5, sha256 locally computed:
-md5    c401734985a936ee07dbff5eca7d176a 				monkey-1.6.9.tar.gz
-sha256 f1122e89cda627123286542b0a18fcaa131cbe9d4f5dd897d9455157289148fb	monkey-1.6.9.tar.gz
-sha256 0d542e0c8804e39aa7f37eb00da5a762149dc682d7829451287e11b938e94594	LICENSE
+# Locally computed:
+sha256  c988d9f4f577a789aa244e5a0f99ebfd46ebddc328656f319acf64edc9fd5199  monkey-f54856ce250c4e25735434dc75717a4b7fbfc45b.tar.gz
+sha256  0d542e0c8804e39aa7f37eb00da5a762149dc682d7829451287e11b938e94594  LICENSE
package/monkey/monkey.mk +8 -10
index 5264713120..2cb1a5f298 100644
@@ -4,31 +4,29 @@
 #
 ################################################################################
 
-MONKEY_VERSION_MAJOR = 1.6
-MONKEY_VERSION = $(MONKEY_VERSION_MAJOR).9
-MONKEY_SITE = http://monkey-project.com/releases/$(MONKEY_VERSION_MAJOR)
+MONKEY_VERSION = f54856ce250c4e25735434dc75717a4b7fbfc45b
+MONKEY_SITE = $(call github,monkey,monkey,$(MONKEY_VERSION))
 MONKEY_LICENSE = Apache-2.0
 MONKEY_LICENSE_FILES = LICENSE
 
 MONKEY_CONF_OPTS = \
-	-DINSTALL_SYSCONFDIR=/etc/monkey \
-	-DINSTALL_WEBROOTDIR=/var/www \
-	-DWITH_SYSTEM_MALLOC=1
+	-DMK_PATH_WWW=/var/www \
+	-DWITHOUT_HEADERS=ON
 
 ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
-MONKEY_CONF_OPTS += -DWITH_UCLIB=1 -DWITH_BACKTRACE=0
+MONKEY_CONF_OPTS += -DMK_UCLIB=ON -DMK_BACKTRACE=OFF
 endif
 
 ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
-MONKEY_CONF_OPTS += -DWITH_MUSL=1 -DWITH_BACKTRACE=0
+MONKEY_CONF_OPTS += -DMK_MUSL=ON -DMK_BACKTRACE=OFF
 endif
 
 ifeq ($(BR2_ENABLE_DEBUG),y)
-MONKEY_CONF_OPTS += -DWITH_DEBUG=1
+MONKEY_CONF_OPTS += -DMK_DEBUG=ON
 endif
 
 ifeq ($(BR2_PACKAGE_MONKEY_SSL),y)
-MONKEY_CONF_OPTS += -DWITH_PLUGINS=tls -DWITH_MBEDTLS_SHARED=1
+MONKEY_CONF_OPTS += -DMK_PLUGIN_TLS=ON -DMK_MBEDTLS_SHARED=ON
 MONKEY_DEPENDENCIES += mbedtls
 endif
 
Signature · 1 line
2.30.2
#1 lore raw

PATCH 1/1 package/monkey: bump to latest git commit

Quoted 9 lines · Fabrice Fontaine

This will fix a build failure with gcc 10

- Update indentation in hash file (two spaces)
- Drop INSTALL_SYSCONFDIR, INSTALL_WEBROOTDIR and WITH_SYSTEM_MALLOC (not available since
https://github.com/monkey/monkey/commit/df145932e33fca0d4a1dcd9d7675f996c8e6a73b)
- Set WITHOUT_HEADERS to ON because headers are not needed and to avoid the following build failure:

Quoted 6 lines

CMake Error at include/cmake_install.cmake:46 (file):
file INSTALL cannot find "/home/fabrice/buildroot/output/build/monkey-f54856ce250c4e25735434dc75717a4b7fbfc45b/include/mk_core.h":
No such file or directory.
Call Stack (most recent call first):
cmake_install.cmake:69 (include)

Has this problem been reported upstream?

Quoted 41 lines

Upstream is aware than the lack of release is an issue but no comments since 2018: https://github.com/monkey/monkey/issues/276

Fixes:
- http://autobuild.buildroot.org/results/0b723937ca048228082d040100f6e6324ac8300b

---
 package/monkey/monkey.hash |  7 +++----
 package/monkey/monkey.mk   | 18 ++++++++----------
 2 files changed, 11 insertions(+), 14 deletions(-)
package/monkey/monkey.hash +3 -4
index 83fc0def60..27ff806442 100644
@@ -1,4 +1,3 @@
-# md5 from http://monkey-project.com/releases/1.6/monkey-1.6.9.tar.gz.md5, sha256 locally computed:
-md5    c401734985a936ee07dbff5eca7d176a 				monkey-1.6.9.tar.gz
-sha256 f1122e89cda627123286542b0a18fcaa131cbe9d4f5dd897d9455157289148fb	monkey-1.6.9.tar.gz
-sha256 0d542e0c8804e39aa7f37eb00da5a762149dc682d7829451287e11b938e94594	LICENSE
+# Locally computed:
+sha256  c988d9f4f577a789aa244e5a0f99ebfd46ebddc328656f319acf64edc9fd5199  monkey-f54856ce250c4e25735434dc75717a4b7fbfc45b.tar.gz
+sha256  0d542e0c8804e39aa7f37eb00da5a762149dc682d7829451287e11b938e94594  LICENSE
package/monkey/monkey.mk +2 -3
index 5264713120..2cb1a5f298 100644
@@ -4,31 +4,29 @@
 #
 ################################################################################
 
-MONKEY_VERSION_MAJOR = 1.6
-MONKEY_VERSION = $(MONKEY_VERSION_MAJOR).9
-MONKEY_SITE = http://monkey-project.com/releases/$(MONKEY_VERSION_MAJOR)
+MONKEY_VERSION = f54856ce250c4e25735434dc75717a4b7fbfc45b
+MONKEY_SITE = $(call github,monkey,monkey,$(MONKEY_VERSION))
 MONKEY_LICENSE = Apache-2.0
 MONKEY_LICENSE_FILES = LICENSE
 

package/monkey/monkey.mk line 17

Quoted 10 lines
package/monkey/monkey.mk +3 -4
 MONKEY_CONF_OPTS = \
-	-DINSTALL_SYSCONFDIR=/etc/monkey \
-	-DINSTALL_WEBROOTDIR=/var/www \
-	-DWITH_SYSTEM_MALLOC=1
+	-DMK_PATH_WWW=/var/www \
+	-DWITHOUT_HEADERS=ON
 
 ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
-MONKEY_CONF_OPTS += -DWITH_UCLIB=1 -DWITH_BACKTRACE=0
+MONKEY_CONF_OPTS += -DMK_UCLIB=ON -DMK_BACKTRACE=OFF

MK_BACKTRACE seems to be unused. It's a user option that defaults to ON and is
set to OFF if execinfo.h is not found, but it has no effect by itself. Instead, execinfo.h is used if available, independent of this option.

MK_UCLIB also doesn't seem to have much effect - it defines MK_HAVE_UCLIB but
that macro is not used anywhere.

package/monkey/monkey.mk line 21

Quoted 5 lines
package/monkey/monkey.mk +1 -1
 endif
 
 ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
-MONKEY_CONF_OPTS += -DWITH_MUSL=1 -DWITH_BACKTRACE=0
+MONKEY_CONF_OPTS += -DMK_MUSL=ON -DMK_BACKTRACE=OFF

Same same.

package/monkey/monkey.mk line 25

Quoted 5 lines
package/monkey/monkey.mk +1 -1
 endif
 
 ifeq ($(BR2_ENABLE_DEBUG),y)
-MONKEY_CONF_OPTS += -DWITH_DEBUG=1
+MONKEY_CONF_OPTS += -DMK_DEBUG=ON

The only thing this does is set CMAKE_BUILD_TYPE to Debug - which we do anyway.
So I'd drop this.

package/monkey/monkey.mk line 31

Quoted 7 lines
package/monkey/monkey.mk +1 -1
 endif
 
 ifeq ($(BR2_PACKAGE_MONKEY_SSL),y)
-MONKEY_CONF_OPTS += -DWITH_PLUGINS=tls -DWITH_MBEDTLS_SHARED=1
+MONKEY_CONF_OPTS += -DMK_PLUGIN_TLS=ON -DMK_MBEDTLS_SHARED=ON
 MONKEY_DEPENDENCIES += mbedtls
 endif

There are a bunch of options in monkey:

MK_ACCEPT:BOOL=OFF
MK_ACCEPT4:BOOL=ON
MK_BACKTRACE:BOOL=ON
MK_DEBUG:BOOL=OFF
MK_FUZZ_MODE:BOOL=OFF
MK_HTTP2:BOOL=OFF
MK_LINUX_KQUEUE:BOOL=OFF
MK_LINUX_TRACE:BOOL=OFF
MK_MBEDTLS_SHARED:BOOL=OFF
MK_MUSL:BOOL=OFF
MK_PLUGIN_AUTH:BOOL=OFF
MK_PLUGIN_CGI:BOOL=OFF
MK_PLUGIN_CHEETAH:BOOL=OFF
MK_PLUGIN_DIRLISTING:BOOL=ON
MK_PLUGIN_FASTCGI:BOOL=OFF
MK_PLUGIN_LIANA:BOOL=ON
MK_PLUGIN_LOGGER:BOOL=OFF
MK_PLUGIN_MANDRIL:BOOL=ON
MK_PLUGIN_TLS:BOOL=OFF
MK_PTHREAD_TLS:BOOL=OFF
MK_STATIC_LIB_MODE:BOOL=OFF
MK_TRACE:BOOL=OFF
MK_UCLIB:BOOL=OFF
MK_VALGRIND:BOOL=OFF
MK_WITHOUT_BIN:BOOL=OFF
MK_WITHOUT_CONF:BOOL=OFF

For most of those, I guess it's OK to keep them to default. MK_TRACE however enables lttng support, so that's possibly useful. Would be nice to investigate.

I've anyway applied to master. The cleanups I mention can be applied later.

Regards,
Arnout

#2 lore raw

PATCH 1/1 package/monkey: bump to latest git commit

In reply to Fabrice Fontaine
Quoted 17 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

This will fix a build failure with gcc 10
- Update indentation in hash file (two spaces)
- Drop INSTALL_SYSCONFDIR, INSTALL_WEBROOTDIR and WITH_SYSTEM_MALLOC (not available since
https://github.com/monkey/monkey/commit/df145932e33fca0d4a1dcd9d7675f996c8e6a73b)
- Set WITHOUT_HEADERS to ON because headers are not needed and to avoid the following build failure:

CMake Error at include/cmake_install.cmake:46 (file):
file INSTALL cannot find "/home/fabrice/buildroot/output/build/monkey-f54856ce250c4e25735434dc75717a4b7fbfc45b/include/mk_core.h":
No such file or directory.
Call Stack (most recent call first):
cmake_install.cmake:69 (include)

Quoted 2 lines

Upstream is aware than the lack of release is an issue but no comments since 2018: https://github.com/monkey/monkey/issues/276

:/

I was hessitating what to do for 2021.02.x, but given how old 1.6.9 is (and there are apparently pretty serious sounding post-1.6.9 fixes in the 1.6 branch from 2017), I decided to commit this to 2021.02.x as well.

But I wouldn't recommend anyone using monkey.

Signature · 1 line
Bye, Peter Korsgaard