Changes in packaging:
- Switch from fetching source via git checkout to downloading release
tarballs (preferred by packaging guidelines).
- opentracker 2.x no longer uses libowfat: drop dependency as well as
related patch for Makefile
- Drop -DWANT_NO_AUTO_FREE, define no longer exists in the source.
- The random number source is now arc4random(). glibc provides it
since 2.36; musl does not, the source then includes <bsd/stdlib.h>.
Depend on and link against libbsd when building against musl.
- The upstream Makefile now appends its own hardening flags (stack
protector, PIE, _FORTIFY_SOURCE=2, RELRO) after CFLAGS and strips
the binary during the build. Clear HARDENING, HARDENING_LD and STRIP
so the OpenWrt toolchain settings apply.
- opentracker (now) uses 64-bit C11 atomics. On targets without native
64-bit atomics, depend on libatomic via $(ATOMIC64_DEPENDS) and link
against it.
- Skip the opentracker.debug build - which is on by default - as it
ignores passed CFLAGS and hence build might fail for certain archs.
Also, we simply don't need it.
- Log stderr of the service via procd.
Signed-off-by: Mirko Vogt <mirko-openwrt@nanl.de>
1c7fac4 Reduce chance of collisions
ec74b83 Fix connection ids. They were broken for the last 14 years and never
used more than the remote ip as seed. Thanks to Tracy Rogers
https://erdgeist.org/gitweb/opentracker/
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
b20b0b8 Do not ignore return value of iob_init_autofree
123e8aa Silence warning about using a pointer after realloc, take offset of match before
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
With the recent move to using ZSTD as the default compression format
for packaging git repo clones we must refresh all of the hashes for
the packages feed as well.
Signed-off-by: Robert Marko <robimarko@gmail.com>
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Goes through firewalls easier.
Switched to xz tarball, which is both implicit and smaller.
Rearranged some stuff for consistency between packages.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This removes lines that set PKG_BUILD_DIR when the set value is no
different from the default value.
Specifically, the line is removed if the assigned value is:
* $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
The default PKG_BUILD_DIR was updated[1] to incorporate BUILD_VARIANT
if it is set, so now this is identical to the default value.
* $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_SOURCE_SUBDIR)
if PKG_SOURCE_SUBDIR is set to $(PKG_NAME)-$(PKG_VERSION), making it
the same as the previous case
* $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
This is the same as the default PKG_BUILD_DIR when there is no
BUILD_VARIANT.
* $(BUILD_DIR)/[name]-$(PKG_VERSION)
where [name] is a string that is identical to PKG_NAME
[1]: https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=e545fac8d968864a965edb9e50c6f90940b0a6c9
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
support for opentracker was suggested in ticket #7023
it's much tighter than cbtt and got only 20% of cbtt binary size
Signed-off-by: Daniel Golle <daniel@makrotopia.org>