perl: perlmod.mk: use flock when hostpkg/perl used
Avoid parallel relinking and usage of the host perl binary by wrapping
its usage around flock calls.
Sometimes, two packages will try to relink the static host perl binary
at the same time. Neither of them will have the other's module linked
in, and one of them will unavoidably clobber the other one's binary.
This will lead to errors when a package will not be able to find a
module that was supposed to be installed.
To fix that, an exclusive flock is used when relinking, with a 900
seconds timeout to avoid locking up the build process forever.
This is not enough because the binary may be concurrently used to build
another module package; perl is used in Configure, Compile, and Install
procedures. If timing is right, a package will fail with a "permission
denied" error.
So a shared flock call is added in Configure, Compile, and Install
definitions for host and target, with a shorter, 300 seconds timeout.
Stijn Tintel [Thu, 5 Aug 2021 19:26:20 +0000 (22:26 +0300)]
kea: add kea-uci package with basic init script
This init script allows to start the Kea Control Agent, the DHCPv4
server, the DHCPv6 server, and the DHCP-DDNS server. It expects the
config files to be where the packages install them.
As this is a single init script that can start 4 different binaries that
are each in their own package, these files cannot be included in any of
these other package, so create a dedicated package for it.
Daniel Golle [Sun, 15 Aug 2021 03:59:56 +0000 (04:59 +0100)]
uvol: update to version 0.4
Create UCI fstab mount sections for existing volumes on firstboot.
Introduce special handling for volumes with non-[:alnum:] prefix:
- do not create UCI sections for these 'hidden' volumes
- create UCI section for '.uxc' special volume with target
/var/state/uxc to be used for uxc config.
Dirk Brenken [Sun, 15 Aug 2021 12:11:27 +0000 (14:11 +0200)]
travelmate: update to 2.0.5-3
* simplify the scan logic, to get rid of nifty IFS tricks
* limit the nearby scan results to process only the strongest uplinks, set 'trm_maxscan' accordingly (default '10')
* update the readme
Stijn Tintel [Sat, 14 Aug 2021 23:32:51 +0000 (02:32 +0300)]
rtl_433: disable SoapySDR
When building on a host with SoapySDR installed, the package fails to
build as CMake picks up the host SoapySDR CMake module. As SoapySDR is
not available in OpenWrt, simply disable SoapySDR to fix build.
Daniel Golle [Fri, 13 Aug 2021 15:07:32 +0000 (16:07 +0100)]
auc: improve branch selection logic
Make sure '-rcX' suffix is recognized as being a lower version than
the release.
Detect per-branch snapshot version by matching the version name string.
Clean up here and there.
Daniel Golle [Wed, 11 Aug 2021 23:04:13 +0000 (00:04 +0100)]
auc: update to version 0.1.9
Follow the @aparcar's withlist:
- [x] Print URL of used server when searching for an update
- [x] Implement `-y` option which automatically accepts changes
- [x] Implement `-r` option which doesn't check for package upgrades but only new releases
- [x] Print link or created image to be downloadable by the user from a browser/curl.
Also allow selecting branch and version manually.
Fixes: #16324 Signed-off-by: Daniel Golle <redacted>
Daniel Golle [Tue, 10 Aug 2021 23:48:15 +0000 (00:48 +0100)]
postgresql: improve init script
Use newly introduced procd_add_restart_mount_trigger to make sure
postmaster gets started only once PGDATA becomes available.
Relocate socket directory to /var/lib/postgresql to make it possible
to run postgresql inside a ujail.
Use signal for shutdown, so it works nicely with jail.
Allow multiple script in UCI 'config postgres-db' to be a list and
run them in order listed.
User more silent methods to check for db or role existence and make
it easy to create several databases owned by the same user by passing
the same credentials multiple times.
Remove disfunctional reload handler.
This release reinstates best effort Python 2 support, adds Python 3.9 and
Python 3.10 alpha support and implements support for several libcurl options.
Official Windows builds are currently not being produced.
If TOPDIR starts with /usr, then the configure script will use the
staging tree hierarchy instead of using plain /usr/lib. For example, if
TOPDIR=/usr/src/openwrt, then the files will not be available under
$(PKG_INSTALL_DIR)/usr/lib/lua/5.1/, as expected, but under
$(PKG_INSTALL_DIR)/usr/src/openwrt/staging_dir/hostpkg/lib/lua/5.1/.
Set the correct path when calling 'make'. As a bonus, the hardcoded
version number in the Makefile can be dropped.
unixodbc: use 'install' when copying host binaries
'cp' fails with a text file busy error if it tries to overwrite an
executable file that is running. 'install' unlinks the file first, so
it will not cause the problem.
When installing a host perl module, the host perl binary in the staging
dir is replaced by using 'cp'. However, if the binary is running in a
parallel job, cp will fail with a text file busy error. Use
$(INSTALL_BIN), which unliks the file first to avoid the error.
This fixes build problem introduced in commit 9a1bb4baf55f ("stress-ng: bump to version 0.13.00"):
Package stress-ng is missing dependencies for the following libraries:
libkmod.so.2
Fixes: 9a1bb4baf55f ("stress-ng: bump to version 0.13.00") Signed-off-by: Alexander Egorenkov <redacted>
Dirk Brenken [Wed, 11 Aug 2021 17:14:56 +0000 (19:14 +0200)]
travelmate: update to 2.0.5
* support the new travelmate option 'macaddr' to use a pre-defined MAC address (per uplink)
* vpn connections are now handled separately for each uplink
* The autoadd-feature for adding open uplinks will now be limited by the 'trm_maxautoadd' option. The default is '5', '0' disables this limitation.
* more code cleanups und optimizations to reduce the repetitive connection handling workload
* bugfixes regarding multiple radio support
* refine cp detection (no longer write and parse an error file)
Petr Štetiar [Tue, 10 Aug 2021 07:15:06 +0000 (09:15 +0200)]
c-ares: update to version 1.17.2
Missing input validation of host names returned by Domain Name Servers
in the c-ares library can lead to output of wrong hostnames (leading to
Domain Hijacking).
The Common Vulnerabilities and Exposures (CVE) project has assigned the
name CVE-2021-3672 to this issue.
References: https://c-ares.haxx.se/adv_20210810.html Signed-off-by: Petr Štetiar <redacted>