subtree updates
poky: 80f2b56ad8..d78650b980:
Ahmed Hossam (1):
go.bbclass: Allow adding parameters to go ldflags
Alejandro Hernandez Samaniego (1):
baremetal-image: Fix do_image dependencies
Alexander Kanavin (153):
meson: update 0.58.1 -> 0.59.1
libcap: update 2.51 -> 2.54
lua: add a recipe from meta-oe
lua: update 5.3.6 -> 5.4.3
rpm: update 4.16.1.3 -> 4.17.0
libdnf: fix the rpm sqlite-only target setup
libsolv: disable rpm bdb format support
perl: do not build berkeley db module by default
package_rpm: use zstd instead of xz
qemu: update 6.0.0 -> 6.1.0
runqemu: correct vga-virtio option to keep virgl enabled
gnupg: update 2.3.1 -> 2.3.2
pinentry: update 1.1.1 -> 1.2.0
spirv-tools: update 2021.2 -> 2021.3
glslang: update 11.5.0 -> 11.6.0
shaderc: update 2021.1 -> 2021.2
inetutils: update 2.1 -> 2.2
systemd: update 249.3 -> 249.4
lsof: update 4.91 -> 4.94.0
libpam: update 1.5.1 -> 1.5.2
rt-tests: update 2.1 -> 2.2
libgit2: update 1.1.1 -> 1.2.0
libssh2: update 1.9.0 -> 1.10.0
libhandy: update 1.2.3 -> 1.4.0
qemu: install qmp module without hardcoding the python version in oeqa scripts
lttng-tools: replace ad hoc ptest fixup with upstream fixes
rust: drop PV from include file names
rust: update 1.54.0 -> 1.55.0
librsvg: update 2.40.21 -> 2.52.0 (transition to rust!)
librsvg: do not enable nativesdk
librsvg: add backports to fix big endian targets (e.g. mips)
librsvg: use only the target architecture to determine availability of atomic primitives
librsvg: restore reproducibility
adwaita-icon-theme: update 3.34/38 -> 41.0
gstreamer1.0-plugins-bad: disable rsvg on x32
rust/cargo: exclude UNINATIVE_LOADER from task signature
rust-common.bbclass: rewrite toolchain wrappers in (native) python
rust: do not write ar into target json definitions
rust: generate target definitions from (arch, abi), not just arch
openssl: update 1.1.1l -> 3.0.0
cryptodev-tests: do not use -Werror with openssl 3
serf: add a openssl 3 compatibility fix
ruby: disable openssl extension
glib-2.0: update 2.68.4 -> 2.70.0
glib-networking: update 2.68.2 -> 2.70.0
bison: update 3.7.6 -> 3.8.1
libdnf: update 0.63.1 -> 0.64.0
libexif: update 0.6.22 -> 0.6.23
sudo: update 1.9.7p2 -> 1.9.8p1
wget: update 1.21.1 -> 1.21.2
coreutils: update 8.32 -> 9.0
itstool: update 2.0.6 -> 2.0.7
nghttp2: add recipe from meta-oe
libsoup: add a 3.x recipe
webkitgtk: trim down DEPENDS
epiphany: trim down DEPENDS
webkitgtk: update 2.32.3 -> 2.34.0
epiphany: update 40.3 -> 41.0
python3: update 3.9.7 -> 3.10.0
libjitterentropy: update 3.1.0 -> 3.3.0
kea: update 1.8.2 -> 2.0.0
ghostscript: update 9.54.0 -> 9.55.0
lighttpd: update 1.4.59 -> 1.4.60
bluez5: update 5.61 -> 5.62
ovmf: update 202105 -> 202108
systemd: update 249.4 -> 249.5
meson: update 0.59.1 -> 0.59.2
python3-pip: update 21.2.4 -> 21.3
valgrind: update 3.17.0 -> 3.18.1
librsvg: update 2.52.0 -> 2.52.2
libva: update 2.12.0 -> 2.13.0
liberation-fonts: update 2.1.4 -> 2.1.5
ca-certificates: update 20210119 -> 20211016
curl: update 7.78.0 -> 7.79.1
libgit2: update 1.2.0 -> 1.3.0
libxcrypt: upgrade 4.4.25 -> 4.4.26
bison: upgrade 3.8.1 -> 3.8.2
cmake: update 3.21.2 -> 3.21.3
git: upgrade 2.33.0 -> 2.33.1
tzdata: upgrade 2021a -> 2021d
ofono: upgrade 1.32 -> 1.33
openssh: upgrade 8.7p1 -> 8.8p1
sysvinit: upgrade 2.99 -> 3.00
btrfs-tools: upgrade 5.13.1 -> 5.14.2
ccache: upgrade 4.4 -> 4.4.2
createrepo-c: upgrade 0.17.5 -> 0.17.6
libcomps: upgrade 0.1.17 -> 0.1.18
libedit: upgrade 20210714-3.1 -> 20210910-3.1
librepo: upgrade 1.14.1 -> 1.14.2
python3-jinja2: upgrade 3.0.1 -> 3.0.2
python3-pygobject: upgrade 3.40.1 -> 3.42.0
python3-setuptools: upgrade 58.0.4 -> 58.2.0
vala: upgrade 0.52.5 -> 0.54.2
acpica: upgrade 20210730 -> 20210930
asciidoc: upgrade 9.1.0 -> 9.1.1
libarchive: upgrade 3.5.1 -> 3.5.2
msmtp: upgrade 1.8.15 -> 1.8.17
sudo: upgrade 1.9.8p1 -> 1.9.8p2
gobject-introspection: upgrade 1.68.0 -> 1.70.0
gsettings-desktop-schemas: upgrade 40.0 -> 41.0
json-glib: upgrade 1.6.4 -> 1.6.6
libdazzle: upgrade 3.40.0 -> 3.42.0
harfbuzz: upgrade 2.9.1 -> 3.0.0
pango: upgrade 1.48.9 -> 1.48.10
libinput: upgrade 1.19.0 -> 1.19.1
linux-firmware: upgrade 20210818 -> 20210919
wireless-regdb: upgrade 2021.07.14 -> 2021.08.28
mpg123: upgrade 1.28.2 -> 1.29.0
puzzles: upgrade to latest revision
libwpe: upgrade 1.10.1 -> 1.12.0
diffoscope: upgrade 182 -> 187
fribidi: upgrade 1.0.10 -> 1.0.11
iso-codes: upgrade 4.6.0 -> 4.7.0
libatomic-ops: upgrade 7.6.10 -> 7.6.12
libcap: upgrade 2.54 -> 2.59
libmd: upgrade 1.0.3 -> 1.0.4
libsoup-2.4: upgrade 2.72.0 -> 2.74.0
gnupg: update 2.3.2 -> 2.3.3
libssh2: skip one of the ptests until openssh 8.8 compatibility is fixed
systemd: disable seccomp on mips32
waffle: convert to git, website is down
u-boot: upgrade 2021.07 -> 2021.10
psplash: upgrade to latest revision
stress-ng: convert to git, website is down
json-c: correct upstream version check
createrepo-c: upgrade 0.17.6 -> 0.17.7
python3-numpy: upgrade 1.21.2 -> 1.21.3
python3-pip: upgrade 21.3 -> 21.3.1
python3-setuptools: upgrade 58.2.0 -> 58.3.0
msmtp: upgrade 1.8.17 -> 1.8.18
gi-docgen: upgrade 2021.7 -> 2021.8
piglit: upgrade to latest revision
libinput: upgrade 1.19.1 -> 1.19.2
mpg123: upgrade 1.29.0 -> 1.29.2
puzzles: upgrade to latest revision
webkitgtk: upgrade 2.34.0 -> 2.34.1
wpebackend-fdo: upgrade 1.10.0 -> 1.12.0
diffoscope: upgrade 187 -> 188
libcap: upgrade 2.59 -> 2.60
vte: upgrade 0.64.2 -> 0.66.0
ncurses: update 6.2 -> 6.3
tzdata: update 2021d -> 2021e
asciidoc: update 9.1.1 -> 10.0.0
waffle: update 1.6.1 -> 1.7.0
virgl: skip headless test on specific older distros and fail otherwise
gptfdisk: address ncurses 6.3 compatibility
powertop: address ncurses 6.3 compatibility
systemtap: address ncurses 6.3 compatibility
igt-gpu-tools: address meson 0.60 compatibility
python3-pygobject: do not supply unknown g-i options
gstreamer1.0-python: do not supply unknown g-i options
webkitgtk: drop unnecessary SSE disabling patch
cups: exclude beta/rc versions from version check
Alexandre Belloni (5):
inetutils: drop CVE-2021-40491 patch
oeqa/selftest/sstatetests: fix typo ware -> were
maintainers.inc: fix up rust-cross entry
libevent,btrfs-tools: fix Upstream-Status tag
ruby: fix Upstream-Status
Andreas Müller (1):
webkitgtk: add gperf-native to DEPENDS to fix build
Andrei Gherzan (1):
qemu: Define libnfs PACKAGECONFIG
Andrej Valek (3):
busybox: 1.34.0 -> 1.34.1
featimage: refactor style
kernel-fitimage: use correct kernel image
Andres Beltran (1):
buildhistory: Fix package output files for SDKs
Bruce Ashfield (15):
linux-yocto/5.14: scripts/gcc-plugins: consistently use HOSTCC
linux-yocto/5.14: update to v5.14.8
linux-yocto/5.14: bsp/qemuarm*-gfx: use virtio graphics
linux-yocto/5.10: update to v5.10.69
linux-yocto/5.10: update to v5.10.70
linux-yocto/5.14: update to v5.14.9
kernel-yocto: don't apply config metadata patches twice
linux-yocto/5.14: revert: scripts/gcc-plugins: consistently use HOSTCC
linux-yocto/5.10: update to v5.10.73
linux-yocto/5.14: update to v5.14.12
linux-yocto/5.14: update to v5.14.13
linux-yocto/5.10: update to v5.10.74
linux-yocto/5.14: common-pc: enable CONFIG_ATA_PIIX as built-in
linux-yocto/5.14: update to v5.14.14
linux-yocto/5.10: update to v5.10.75
Caner Altinbasak (2):
bitbake: npmsw: Avoid race condition with multiple npm fetchers
bitbake: fetch2: Do not attempt to verify donestamp if download is not complete
Changhyeok Bae (2):
iproute2: update to 5.14.0
ethtool: update to 5.14
Changqing Li (1):
lttng-ust: fix do_compile failure for arm32 with DEBUG_BUILD enabled
Daiane Angolini (2):
machine/qemuarm*: Fix UBOOT_MACHINE value
ref-manual: Update how to set a useradd password
Daniel McGregor (3):
bison: prevent checking for textstyle.
bitbake.conf: Add gpg-agent as a host tool
sstate: Allow validation of sstate singatures against list of keys
David Joyner (1):
rust: add support for big endian 64-bit PowerPC
Denys Dmytriyenko (2):
wayland-protocols: upgrade 1.21 -> 1.22
wayland-protocols: upgrade 1.22 -> 1.23
Fred Liu (1):
glibc: Drop libcidn package
Henry Kleynhans (1):
sstate: Switch to ZStandard compressor support
Hsia-Jun(Randy) Li (1):
meson: install native file in sdk
Ian Ray (1):
archiver: Configurable tarball compression
Jon Mason (10):
oeqa/manual: Fix no longer valid URLs
bitbake: bitbake:toaster:test: Update SSTATE URL
yocto-bsp/poky: replace http with https for URLs
bitbake: bitbake: replace http with https for URLs
documentation: update sources mirror URL
documentation: replace http with https for URLs
documentation: use YOCTO_DL_URL
dev-manual: remove errant /
runqemu: add DEPLOY_DIR_IMAGE replacement in QB_OPT_APPEND
bitbake: bitbake-user-manual: update sources mirror URL
Jose Quaresma (15):
gstreamer1.0: 1.18.4 -> 1.18.5
gstreamer1.0-plugins-base: 1.18.4 -> 1.18.5
gstreamer1.0-plugins-good: 1.18.4 -> 1.18.5
gstreamer1.0-plugins-bad: 1.18.4 -> 1.18.5
gstreamer1.0-plugins-ugly: 1.18.4 -> 1.18.5
gstreamer1.0-rtsp-server: 1.18.4 -> 1.18.5
gstreamer1.0-libav: 1.18.4 -> 1.18.5
gstreamer1.0-vaapi: 1.18.4 -> 1.18.5
gstreamer1.0-omx: 1.18.4 -> 1.18.5
gstreamer1.0-python: 1.18.4 -> 1.18.5
gst-devtools: 1.18.4 -> 1.18.5
gst-examples: 1.18.4 -> 1.18.5
patch.bbclass: when the patch fails show more info on the fatal error
sstate.bbclass: count the files on mirrors using the pre local files
sstate: fix touching files inside pseudo
Joshua Watt (4):
bitbake: async: Close sync client event loop
bitbake: hashserv: Add tests for diverging reports
bitbake: hashserv: Fix diverging report race condition
classes/populate_sdk_base: Add setscene tasks
Kai Kang (1):
sudo: update multilib patch for sudo.conf
Khem Raj (11):
pkgconfig: Update to latest
libseccomp: Upgrade to 2.5.2 and beyond
openssl: Drop riscv32 upstreamed patches
opensbi-payloads.inc: Use strings for fallback
mesa: Enable svga for x86 only
qemu: Add knob for enabling PMDK pmem support
opensbi-payloads: Add dependency on kernel if fdt is set
librsvg: Fix vendored libc to work on riscv and musl
librsvg: Bump to 2.52.0 -> 2.52.2
rust: Upgrade to 1.56.0
librsvg: Disable 64bit atomics in crossbeam for rv32
Kiran Surendran (1):
ffmpeg: fix CVE-2021-38114
Konrad Weihmann (1):
libical: fix append in DEPENDS
Lukasz Majewski (1):
glibc: Extract common code to build tests to glibc-tests.inc
Marek Vasut (1):
piglit: upgrade to latest revision
Martin Jansa (2):
webkitgtk: add PACKAGECONFIG for opengl-or-es
boost: allow searching for python310
Maximilian Blenk (1):
mount-copybind: add rootcontext mountoption for overlayfs
Michael Halstead (2):
scripts/autobuilder-worker-prereq-tests: jinja2 check
releases: update to include 3.4 honister
Michael Opdenacker (18):
manuals: font fixes
ref-manual: document DEBUG_PREFIX_MAP
manuals: replace "apt-get" by "apt"
Makefile: allow epub and latexpdf outputs to use diagrams from SVG sources
conf.py: use PNG first in EPUB output
overview-manual: SVG diagram for the git workflow
docs: add "make all" to build old types of docs (html, epub, pdf) at once
manuals: introduce 'yocto_sstate' extlink
overview-manual: simplify expression
dev-manual: correct NO_GENERIC_LICENSE section title
dev-manual: warn about license compliance issues when static libraries are used
devpyshell: rename to pydevshell
ref-manual: document TOOLCHAIN_HOST_TASK_ESDK
manuals: rename "devpyshell" to "pydevshell"
ref-manual: document SOURCE_DATE_EPOCH
ref-manual: fix description of SOURCE_DATE_EPOCH
releases.rst: fix release number for 3.3.3
docs: poky.yaml: updates for 3.4
Mike Crowe (2):
lib/oe/qa,insane: Move extra error handling functions to library
insane,license,license_image: Allow treating license problems as errors
Mingli Yu (1):
packagedata.py: silence a DeprecationWarning
Oleh Matiusha (1):
findutils: add ptest
Oleksandr Kravchuk (15):
python3: update to 3.9.7
python3-git: update to 3.1.24
python3-dbusmock: update to 0.24.0
python3-setuptools: update to 58.0.4
python3-setuptools: minor cleanup
xf86-input-libinput: update to 1.2.0
libinput: update to 1.19.0
libxi: update to 1.8
xorgproto: update to 2021.5
xkeyboard-config: update to 2.34
libxkbcommon: update to 1.3.1
mirrors.bbclass: remove dead infozip mirrors
man-pages: update to 5.13
python3-smmap: update to 5.0.0
python3-pyparsing: update to 3.0.0
Pablo Saavedra Rodi?o (1):
mesa: upgrade 21.2.1 -> 21.2.4
Paul Barker (1):
bitbake: doc: bitbake-user-manual: Document BB_GIT_SHALLOW and friends
Paul Eggleton (7):
migration-3.4: tweak overrides change section
ref-manual: remove meta class
poky.yaml: add lz4 and zstd to essential host packages
migration-3.4: add additional migration info
migration: tweak introduction section
poky.yaml: fix lz4 package name for older Ubuntu versions
migration-3.4: add some extra packaging notes
Pavel Zhukov (1):
weston: wrapper for weston modules argument
Peter Hoyes (2):
u-boot: Convert ${UBOOT_ENV}.cmd into ${UBOOT_ENV}.scr
u-boot: Fix syntax error in ${UBOOT_ENV}.scr compilation
Peter Kjellerstedt (2):
meson.bblcass: Remove empty egg-info directories before running meson
qemu.inc: Remove empty egg-info directories before running meson
Petr Vorel (1):
ltp: Update to 20210927
Pgowda (2):
Fix rust-native build issue when debug is enabled
rust-cross: Fix directory not deleted for race glibc vs. musl
Ralph Siemsen (1):
tar: filter CVEs using vendor name
Randy Li (1):
meson: move lang args to the right section
Richard Purdie (54):
sstatesig: Only apply group/other permissions to pseudo files
rpm: Deterministically set vendor macro entry
abi_version/sstate: Bump to fix rpm corruption issues
multilib: Avoid sysroot race issues when multilib enabled
bitbake: knotty/uihelper: Show setscene task progress in summary output
bitbake: bitbake-worker: Handle pseudo shutdown in Ctrl+C case
poky.conf: Update tested distros list with recent changes
bitbake: hashserv: Improve behaviour for better determinism/sstate reuse
poky.conf: Bump version for 3.4 honister release
build-appliance-image: Update to honister head revision
bitbake: bitbake: Bump to version 1.52.0
build-appliance-image: Update to honister head revision
layer.conf: Extend recipes not to install without explict dependencies
libxml2: Use python3targetconfig to fix reproducibility issue
libnewt: Use python3targetconfig to fix reproducibility issue
bootchart2: Don't compile python modules
linux-yocto-dev: Ensure DEPENDS matches recent 5.14 kernel changes
base/insane: Import oe.qa by default
base: Clean up unneeded len() calls
base: Use repr() for printing exceptions
bitbake.conf: Add BB_CURRENTTASK to BB_HASHEXCLUDE
reproducible_build: Drop obsolete sstate workaround
python: Update now reproducibile builds are the default
bitbake: bitbake-worker: Set BB_CURRENTTASK earlier
bitbake: compress: Allow to operate on file descriptor
bitbake: siggen: Change file format of siginfo files to use zstd compressed json
sstate: Fixes for eSDK generation after zstd switch
patch: Use repr() with exceptions instead of str()
reproducible_build: Drop now unneeded compiler warning
reproducible: Move class function code into library
reproducible: Move variable definitions to bitbake.conf
reproducible: Merge code into base.bbclass
kernel: Add KERNEL_DEBUG_TIMESTAMPS variable
reproducible: Drop BUILD_REPRODUCIBLE_BINARIES variable
kernel: Rework kernel make flag to variable mappings
oeqa: Update cleanup code to wait for hashserv exit
poky: Reproducible builds are now the default
bitbake: tests/runqueue: Ensure hashserv exits before deleting files
bitbake: bitbake-worker: Add debug when unpickle fails
bitbake: siggen: Fix type conversion issues
bitbake: test/fetch: Update urls to match upstream branch name changes
libtool: Update patchset to match those submitted upstream
staging: Fix autoconf-native rebuild failure
patch: Fix exception reporting with repr()
bitbake: fetch2/perforce: Fix typo
bitbake: bitbake: Bump to post release verion 1.53.0
poky.conf: Post release version bump
gcc: Merge three related patches together
gcc: Drop sdt (dtrace) header patch
gcc: Drop broken/unneeded patch
bitbake: tests/runqueue: Drop python version test decorators
gcc: Update patches submitted/merged upstream
gcc: Drop testsuite failure fix patch
gcc: Add missing patch Upstream-Status
Ross Burton (21):
bitbake: tests/utils: mark a regex as a raw string
bitbake: tests/fetch: prefix the FetcherTest temporary directory
bitbake: fetch2: clarify the command-no-found error message
bitbake: fetch2/gitsm: remove the 'nugget' SRCREV caching
linux-yocto: add libmpc-native to DEPENDS
bitbake: fetch2: document checkstatus API
curl: fix CVE-2021-22945 through -22947
oe/license: implement ast.NodeVisitor.visit_Constant
license.bbclass: implement ast.NodeVisitor.visit_Constant
bitbake: codegen: implement ast.NodeVisitor.visit_Constant
testimage: fix unclosed testdata file
oe/utils: log exceptions in ThreadedWorker functions
sstate: don't silently handle all exceptions in sstate_checkhashes
gawk: replace AR patch with upstreamed patch
gawk: reduce strictness of the time test
strace: remove obsolete patch
strace: remove TOOLCHAIN assignment
oeqa/runtime: load modules using importlib
oeqa/runtime: search sys.path explicitly for modules
testimage: remove target_modules_path
strace: show test suite log on failure
Sakib Sajal (1):
go: upgrade 1.16.7 -> 1.16.8
Saul Wold (3):
spdx.py: Add annotation to relationship
create-spdx: add create_annotation function
create-spdx: cross recipes are native also
Stefan Herbrechtsmeier (17):
bitbake: fetch2: npm: Support npm archives with missing search directory mode
bitbake: fetch2: npm: Create config npmrc in environment instantiation
bitbake: fetch2: npmsw: Add support for local tarball and link sources
npm: Add support for EXTRA_OENPM arguments
recipetool: Move license md5sums into CSV files
recipetool: Skip common source files in guess_license
recipetool: Change default paramter fallback_licenses of function split_pkg_licenses from None to []
recipetool: ignore empty license files
recipetool: Add logger info for missing license entries
recipetool: Add support for linenumbers to licenses.csv
recipetool: npm: Do not add package.json files to LIC_FILES_CHKSUM
recipetool: npm: Use README as license fallback
npm: Add variable NPM_NODEDIR with default value
npm: Use configs for npm environment and args for npm run command
recipetool: Rework crunch_license to recognize more variants
recipetool: Simplify common source files skip in guess_license
npm: Remove unnecessary configs argument from npm run command
Teoh Jay Shen (1):
oeqa/runtime/parselogs: modified drm error in common errors list
Thomas Perrot (1):
image_types: allow the creation of block devices on top of UBI volumes
Tim Orling (17):
ptest-runner: install -collect-system-data script
python3-hypothesis: upgrade 6.15.0 -> 6.23.2
python3-importlib-metadata: upgrade 4.6.4 -> 4.8.1
python3-more-itertools: upgrade 8.9.0 -> 8.10.0
python3-zipp: upgrade 3.5.0 -> 3.6.0
libconvert-asn1-perl: upgrade 0.31 -> 0.33
python3-pytest: upgrade 6.2.4 -> 6.2.5
at-spi2-core: upgrade 2.40.3 -> 2.42.0
python3-packaging: DEPENDS on python3-setuptools-native
python3-packaging: BBCLASSEXTEND nativesdk
python3-tomli: add recipe for 1.2.1
python3-setuptools-scm: upgrade 6.0.1 -> 6.3.2
python3-setuptools: _distutils/sysconfig fix
python3-pyyaml: upgrade 5.4.1 -> 6.0
python3-manifest: -pprint RDEPENDS on -profile
python3-hypothesis: upgrade 6.23.2 -> 6.24.0
python3-tomli: upgrade 1.2.1 -> 1.2.2
Tobias Kaufmann (1):
mount-copybind: add SELinux support
Yureka (1):
systemd: add missing include for musl
Zoltán Böszörményi (1):
libpam: Fix build with DISTRO_FEATURES usrmerge
hongxu (1):
libcap: fix nativesdk-libcap relocate failure
wangmy (20):
diffoscope: upgrade 181 -> 182
cmake: upgrade 3.21.1 -> 3.21.2
gzip: upgrade 1.10 -> 1.11
harfbuzz: upgrade 2.9.0 -> 2.9.1
vulkan-headers: upgrade 1.2.182 -> 1.2.191
vulkan-loader: upgrade 1.2.182 -> 1.2.191
vulkan-tools: upgrade 1.2.182 -> 1.2.191
help2man: upgrade 1.48.4 -> 1.48.5
python3-more-itertools: upgrade 8.8.0 -> 8.9.0
acpid: upgrade 2.0.32 -> 2.0.33
bind: upgrade 9.16.20 -> 9.16.21
createrepo-c: upgrade 0.17.4 -> 0.17.5
dnf: upgrade 4.8.0 -> 4.9.0
ell: upgrade 0.43 -> 0.44
libical: upgrade 3.0.10 -> 3.0.11
dhcpcd: upgrade 9.4.0 -> 9.4.1
dnf: upgrade 4.9.0 -> 4.10.0
file: upgrade 5.40 -> 5.41
libdnf: upgrade 0.64.0 -> 0.65.0
lttng-tools: upgrade 2.13.0 -> 2.13.1
zhengruoqin (2):
libsolv: upgrade 0.7.19 -> 0.7.20
python3-pycryptodome: upgrade 3.10.1 -> 3.11.0
meta-security: a85fbe980e..e81c15f851:
Armin Kuster (1):
python3-fail2ban: fix build failure and cleanup
Kai Kang (1):
sssd: re-package to fix QA issues
Kristian Klausen (1):
swtpm: update to 0.6.1
Liwei Song (1):
recipes-security/chipsec: platform security assessment framework
meta-openembedded: 23dc4f060f..2f6797d8d6:
Alexander Kanavin (23):
python3-yappi: add python 3.10 fix
python3-gmpy2: update 2.0.8 -> 2.1.0rc1
python3-m2crypto: address build failure with openssl 3.x
lua: remove recipe as it is now in oe-core
nghttp2: remove recipe as it is now in oe-core
kronosnet: update 1.20 -> 1.22
polkit: update 0.116 -> 0.119
openflow: disable openssl PACKAGECONFIG
openipmi: add a python 3.10 compatibility patch
strongswan: disable openssl PACKAGECONFIG
pkcs11-helper: backport a openssl 3.x patch
nodejs: use -fpermissive
nodejs: add a python 3.10 compatibility patch
php: disable openssl PACKAGECONFIG
libsigrokdecode: add a python 3.10 compatibility patch
freerdp: backport openssl 3.x patches
opensc: do not use -Werror
cfengine: blacklist due to openssl 3.x incompatibility
netplan: do not use -Werror
boinc-client: blacklist due to openssl 3.x incompatibility
ldns: blacklist due to openssl 3.x incompatibility
surf: add a webkit 2.34 compatibility patch
mozjs: update 60.9.0 -> 91.1.0
Alexander Thoma (1):
keyutils: fix install path
Armin Kuster (1):
Apache: Several CVE fixes
Chen Qi (1):
ntfs-3g-ntfsprogs: upgrade to 2021.8.22
Gianfranco (2):
vboxguestdrivers: upgrade 6.1.26 -> 6.1.28
vboxguestdrivers: Fix build failure due to the last update.
Ivan Maidanski (1):
bdwgc: upgrade 8.0.4 -> 8.0.6
Jeremy Kerr (1):
mctp: Add MCTP control utilities
Joshua Watt (2):
colord-native: Inherit pkgconfig
mutter: Move gsettings to a separate package
Justin Bronder (2):
python3-mccabe: fix LICENSE and RDEPENDS
python3-pyflakes: fix LICENSE, HOMEPAGE and RDEPENDS
Khem Raj (44):
packagegroup-meta-oe: Add lv-drivers and lvgl
python3-pystache: Remove need for python2x
python3-behave: Switch to using github src_uri
python3-simpleeval: Remove use_2to3
python3-parse-type: Do not ask for 2to3
python3-anyjson: Do not enable 2to3
python3-pybluez: Do not set 2to3
packagegroup-meta-networking: Remove nghttp2
packagegroup-meta-oe: Remove lua
gjs: Inherit pkgconfig
luaposix: Use lua 5.4
devilspie2: Switch to using github repo
devilspie2: Add missing dependency on libxinerama
kronosnet: Correct path to poll.h
luaposix: Upgrade to 35.1
xfce.bbclass: Mark string as raw in a regexp
nodejs: add -fpermissive BUILD_CXXFLAGS
pcimem: Add riscv64 into COMPATIBLE_HOST
luaposix: Depend on libxcrypt-native
libcrypt-openssl-rsa-perl: Upgrade to 0.32
xrdp: Upgrade to 0.9.17
yelp,yelp-xsl,yelp-tools: Upgrade to 41 release
mozjs: Disable JIT on mips
libcrypt-openssl-rsa-perl: Fix build with openssl3+
nodejs: Upgrade to 14.18.1
librest: Use master with libsoup3 support
gnome-online-accounts: Upgrade to 3.43.1
iwd: Fix build with musl
xrdp: Exclude from builds
xorgxrdp: Add to exclusion list for now
bluepy: Set PV and correct syntax for RDEPENDS
python3-kivy: Use new override syntax in RDEPENDS
bluepy: Fix permissions on tarball
nodejs: Upgrade to 16.11.1
mozjs: Fix build on mips/musl
mozjs: Fix musl miscompiles with HAVE_THREAD_TLS_KEYWORD
luaposix: Use virtual/crypt instread of hardcoding libxcrypt
packagegroup-meta-oe: Add libjs-jquery-globalize and libjs-jquery-cookie
mozjs: Add riscv32 support
driverctl: Rename to have PV in recipe name
tbb: Link with libatomic when using clang compiler on rv32
gimp: Disable vector icons on mips/rv32 using clang
mozjs: Update to 91.2.0
mozjs: Fix build for 32bit systems disabling JIT
Kurt Kiefer (2):
mozjs: move large static library into staticdev package
gyp: fix for compatibility with Python 3.10
Leon Anavi (6):
python3-aiohue: Upgrade 2.6.1 -> 2.6.3
python3-paho-mqtt: Upgrade 1.5.1 -> 1.6.1
python3-thrift: Upgrade 0.13.0 -> 0.15.0
python3-prompt-toolkit: Upgrade 3.0.19 -> 3.0.21
python3-traitlets: Upgrade 5.1.0 -> 5.1.1
python3-prettytable: Upgrade 2.1.0 -> 2.2.1
LiweiSong (1):
Revert "chipsec: platform security assessment framework"
Marco Cavallini (1):
bluepy_git.bb: Added recipe for BluePy Python interface to Bluetooth LE on Linux (v2)
Marek Vasut (3):
apitrace: Upgrade to latest version
apitrace: Conditionally enable X11 support
yavta: Upgrade to latest version and drop downstream patch
Martin Jansa (4):
protobuf: import a patch from meta-webosose to fix building protobuf-c with gold linker
grpc: revert GRPCPP_ABSEIL_SYNC change from 1.40.0 to fix undefined references to absl::lts_20210324::Mutex::~Mutex()
luaposix: depend on target libxcrypt instead of native
lv-lib-png: add wayland to REQUIRED_DISTRO_FEATURES
Matthias Klein (1):
gpsd: Install also the generated parts of the Python library
Matthias Schiffer (1):
byacc: switch to official HTTPS mirror
Mingli Yu (1):
opencv: remove setup_vars_opencv4.sh
Oleksandr Kravchuk (72):
iwd: update to 1.18
nano: update to 5.9
ostree: update to 2021.5
pegtl: update to 3.2.1
pmdk: update to 1.11.1
protobuf-c: update to 1.4.0
thingsboard-gateway: update to 2.8
libbpf: fix PV
libcdio-paranoia: update to 10.2+2.0.1
ttf-abyssinica: update to 2.100
ttf-dejavu: add UPSTREAM_CHECK_URI
ttf-vlgothic: update to 20200720
networkmanager: update to 1.32.12
nng: update to 1.4.0
opensaf: update to 5.21.09
python3-absl: update 0.14.1
python3-alembic: update to 1.7.4
python3-astroid: update to 2.8.2
python3-cantools: update to 36.4.0
python3-certifi: update to 2021.10.8
python3-cffi: update to 1.15.0
python3-colorlog: update to 6.5.0
python3-coverage: update to 6.0.2
python3-cryptography-vectors: update to 35.0.0
python3-dateparser: update to 1.1.0
python3-elementpath: update to 2.3.2
python3-eventlet: update to 0.32.0
python3-google-api-core: update to 2.1.1
python3-google-api-python-client: update to 2.26.1
python3-google-auth: update to 2.3.0
python3-grpcio-tools: update to 1.41.0
python3-grpcio: update to 1.41.0
python3-h2: update to 4.1.0
python3-haversine: update to 2.5.1
python3-httplib2: update to 0.20.1
python3-idna: update to 3.3
python3-iso3166: update to 2.0.2
python3-joblib: update to 1.1.0
python3-jsonrpcserver: update to 5.0.3
python3-paramiko: update to 2.8.0
python3-portion: update to 2.2.0
python3-protobuf: update to 3.18.1
python3-pulsectl: update to 21.10.4
python3-pycodestyle: update to 2.8.0
python3-pyephem: update to 4.1
python3-pyflakes: update to 2.4.0
python3-pyjwt: update to 2.2.0
python3-pykickstart: update to 3.34
python3-pyopenssl: update to 21.0.0
python3-pyperf: update to 2.3.0
python3-pytest-timeout: update 2.0.1
python3-pytz: update to 2021.3
python3-regex: update to 2021.10.8
python3-sentry-sdk: update to 1.4.3
python3-sympy: udpate to 1.9
python3-twitter: update to 4.1.0
python3-uritemplate: update to 4.1.1
python3-websockets: update to 10.0
python3-wrapt: update to 1.13.2
python3-xlsxwriter: update to 3.0.1
python3-xmlschema: update to 1.8.0
python3-yarl: update to 1.7.0
python3-typeguard: update to 2.13.0
python3-pyatspi: update to 2.38.1
python3-h5py: update to 3.5.0
python3-pybind11-json: update to 0.2.11
python3-pychromecast: update to 9.3.1
python3-tzlocal: update to 4.0.1
python3-zeroconf: update to 0.36.9
leptonica: update to 1.82.0
redis-plus-plus: update to 1.3.2
hiredis: update to 1.0.2
Peter Bergin (3):
pipewire: remove manpages class
pipewire: also handle pipewire-media-session in systemd class
pipewire: rework PACKAGECONFIG for systemd service files
Philippe Coval (5):
lvgl: Add recipe for Lightweight Graphics Library
lv-drivers: Add recipe for lvgl lib
lv-lib-png: Add recipe for LVGL for handling PNG format
lvgl: Add lv_lib_png to packagegroup
lvgl: Lint recipe
Roland Hieber (1):
rapidjson: override hard-coded lib install dir
Shiping Ji (1):
Add recipe for driverctl
Tim Orling (6):
unicode-ucd: upgrade 12.1.0 -> 14.0.0
gnome-screenshot: add recipe for 40.0
libgweather: upgrade 3.36.2 -> 40.0
colord: inherit pkgconfig
gfbgraph: patch to build with latest rest
gnome-calendar: upgrade 3.38.1 -> 41.0
Trevor Gamblin (3):
python3-posix-ipc: Add recipe for version 1.0.5
python3-pyinotify: Add fcntl, logging to RDEPENDS
python3-cvxopt: upgrade 1.2.6 -> 1.2.7
Vyacheslav Yurkov (3):
grpc: fix cross-compilation of grpc applications
grpc: fix cross-compilation of grpc applications
grpc: upgrade 1.38.1 -> 1.41.0
Wang Mingyu (1):
poppler: upgrade 21.09.0 -> 21.10.0
Yi Zhao (3):
samba: upgrade 4.14.7 -> 4.14.8
audit: upgrade 3.0.5 -> 3.0.6
strongswan: upgrade 5.9.3 -> 5.9.4
Zoltán Böszörményi (1):
python3-jsmin: Upgrade to version 3.0.0
wangmy (11):
openvpn: upgrade 2.5.3 -> 2.5.4
redis: upgrade 6.2.5 -> 6.2.6
span-lite: upgrade 0.10.1 -> 0.10.3
bdwgc: upgrade 8.0.6 -> 8.2.0
icewm: upgrade 2.7.0 -> 2.8.0
ifenslave: upgrade 2.12 -> 2.13
asio: upgrade 1.18.1.bb -> 1.20.0
libgusb: upgrade 0.3.7 -> 0.3.8
libxmlb: upgrade 0.3.2 -> 0.3.3
xdebug: upgrade 2.9.5 -> 3.1.1
cryptsetup: upgrade 2.3.6 -> 2.4.1
zangrc (25):
python3-ipython: upgrade 7.27.0 -> 7.28.0
python3-jdatetime: upgrade 3.6.2 -> 3.6.4
python3-multidict: upgrade 5.1.0 -> 5.2.0
python3-openpyxl: upgrade 3.0.8 -> 3.0.9
python3-pyscaffold: upgrade 4.0.2 -> 4.1
python3-transitions: upgrade 0.8.9 -> 0.8.10
networkmanager-openvpn: upgrade 1.8.14 -> 1.8.16
ser2net: upgrade 4.3.3 -> 4.3.4
python3-humanize: upgrade 3.11.0 -> 3.12.0
python3-nmap: upgrade 1.5.0 -> 1.5.1
libjs-jquery-cookie: Add recipe
libjs-jquery-globalize: Add recipe
python3-cachetools: upgrade 4.2.2 -> 4.2.4
python3-cbor2: upgrade 5.4.1 -> 5.4.2
python3-click: upgrade 8.0.1 -> 8.0.3
python3-configargparse : upgrade 1.5.2 -> 1.5.3
python3-flask: upgrade 2.0.1 -> 2.0.2
python3-pyscaffold: upgrade 4.1 -> 4.1.1
python3-werkzeug: upgrade 2.0.1 -> 2.0.2
python3-absl: upgrade 0.14.1 -> 0.15.0
python3-pandas: upgrade 1.3.3 -> 1.3.4
python3-pulsectl: upgrade 21.10.4 -> 21.10.5
python3-pyjwt: upgrade 2.2.0 -> 2.3.0
python3-pytest-asyncio: upgrade 0.15.1 -> 0.16.0
python3-robotframework: upgrade 4.1.1 -> 4.1.2
zhengruoqin (15):
python3-ujson: upgrade 4.1.0 -> 4.2.0
python3-urllib3: upgrade 1.26.6 -> 1.26.7
python3-watchdog: upgrade 2.1.5 -> 2.1.6
gensio: upgrade 2.2.9 -> 2.3.1
nlohmann-json: upgrade 3.10.2 -> 3.10.4
libencode-perl: upgrade 3.12 -> 3.16
python3-socketio: upgrade 5.4.0 -> 5.4.1
python3-sqlalchemy: upgrade 1.4.23 -> 1.4.26
python3-stevedore: upgrade 3.4.0 -> 3.5.0
autofs: upgrade 5.1.7 -> 5.1.8
links: upgrade 2.22 -> 2.25
atftp: upgrade 0.7.4 -> 0.7.5
python3-gmqtt: upgrade 0.6.10 -> 0.6.11
python3-google-api-python-client: upgrade 2.26.1 -> 2.27.0
python3-greenlet: upgrade 1.1.1 -> 1.1.2
meta-raspberrypi: 9eb4879cf4..90b3ac6fb3:
Zygmunt Krynicki (1):
rpi-config: warn on config.txt lines exceeding 80 bytes
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I9e75d5bd606a913fbe69e6735c9ecafc436441ba
diff --git a/meta-openembedded/meta-gnome/recipes-gnome/rest/files/0001-Use-GUri-instead-of-SoupURI.patch b/meta-openembedded/meta-gnome/recipes-gnome/rest/files/0001-Use-GUri-instead-of-SoupURI.patch
new file mode 100644
index 0000000..37ba0a0
--- /dev/null
+++ b/meta-openembedded/meta-gnome/recipes-gnome/rest/files/0001-Use-GUri-instead-of-SoupURI.patch
@@ -0,0 +1,181 @@
+From d39fd6d5f4c0a63cc048b84b0f989cb83f31e5fe Mon Sep 17 00:00:00 2001
+From: Carlos Garcia Campos <cgarcia@igalia.com>
+Date: Tue, 8 Jun 2021 10:57:06 +0200
+Subject: [PATCH 1/2] Use GUri instead of SoupURI
+
+Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/librest/-/merge_requests/6]
+---
+ configure.ac | 2 +-
+ rest-extras/flickr-proxy.c | 19 ++++++++++++++-----
+ rest/oauth-proxy-call.c | 19 ++++++++++++++-----
+ rest/oauth2-proxy.c | 22 +++++++++++-----------
+ 4 files changed, 40 insertions(+), 22 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index d15e592..d586e69 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -40,7 +40,7 @@ AM_PROG_CC_C_O
+ LT_PREREQ([2.2.6])
+ LT_INIT([disable-static])
+
+-PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.44)
++PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.67.4)
+ PKG_CHECK_MODULES(SOUP, libsoup-2.4 >= 2.42)
+ PKG_CHECK_MODULES(XML, libxml-2.0)
+ PKG_CHECK_MODULES(GTHREAD, gthread-2.0)
+diff --git a/rest-extras/flickr-proxy.c b/rest-extras/flickr-proxy.c
+index 3342a4d..7726359 100644
+--- a/rest-extras/flickr-proxy.c
++++ b/rest-extras/flickr-proxy.c
+@@ -304,13 +304,13 @@ flickr_proxy_build_login_url (FlickrProxy *proxy,
+ const char *frob,
+ const char *perms)
+ {
+- SoupURI *uri;
++ GUri *uri;
+ GHashTable *params;
+ char *sig, *s;
++ char *query;
+
+ g_return_val_if_fail (FLICKR_IS_PROXY (proxy), NULL);
+
+- uri = soup_uri_new ("http://flickr.com/services/auth/");
+ params = g_hash_table_new (g_str_hash, g_str_equal);
+
+ g_hash_table_insert (params, "api_key", proxy->priv->api_key);
+@@ -321,14 +321,23 @@ flickr_proxy_build_login_url (FlickrProxy *proxy,
+
+ sig = flickr_proxy_sign (proxy, params);
+ g_hash_table_insert (params, "api_sig", sig);
++ query = soup_form_encode_hash (params);
+
+- soup_uri_set_query_from_form (uri, params);
++ uri = g_uri_build (G_URI_FLAGS_ENCODED,
++ "http",
++ NULL,
++ "flickr.com",
++ -1,
++ "services/auth/",
++ query,
++ NULL);
+
+- s = soup_uri_to_string (uri, FALSE);
++ s = g_uri_to_string (uri);
+
++ g_free (query);
+ g_free (sig);
+ g_hash_table_destroy (params);
+- soup_uri_free (uri);
++ g_uri_unref (uri);
+
+ return s;
+ }
+diff --git a/rest/oauth-proxy-call.c b/rest/oauth-proxy-call.c
+index c90c69d..e238c3c 100644
+--- a/rest/oauth-proxy-call.c
++++ b/rest/oauth-proxy-call.c
+@@ -30,7 +30,7 @@
+
+ G_DEFINE_TYPE (OAuthProxyCall, oauth_proxy_call, REST_TYPE_PROXY_CALL)
+
+-#define OAUTH_ENCODE_STRING(x_) (x_ ? soup_uri_encode( (x_), "!$&'()*+,;=@") : g_strdup (""))
++#define OAUTH_ENCODE_STRING(x_) (x_ ? g_uri_escape_string( (x_), NULL, TRUE) : g_strdup (""))
+
+ static char *
+ sign_plaintext (OAuthProxyPrivate *priv)
+@@ -136,15 +136,24 @@ sign_hmac (OAuthProxy *proxy, RestProxyCall *call, GHashTable *oauth_params)
+ if (priv->oauth_echo) {
+ g_string_append_uri_escaped (text, priv->service_url, NULL, FALSE);
+ } else if (priv->signature_host != NULL) {
+- SoupURI *url = soup_uri_new (url_str);
++ GUri *url = g_uri_parse (url_str, G_URI_FLAGS_ENCODED, NULL);
++ GUri *new_url;
+ gchar *signing_url;
+
+- soup_uri_set_host (url, priv->signature_host);
+- signing_url = soup_uri_to_string (url, FALSE);
++ new_url = g_uri_build (g_uri_get_flags (url),
++ g_uri_get_scheme (url),
++ g_uri_get_userinfo (url),
++ priv->signature_host,
++ g_uri_get_port (url),
++ g_uri_get_path (url),
++ g_uri_get_query (url),
++ g_uri_get_fragment (url));
++ signing_url = g_uri_to_string (new_url);
+
+ g_string_append_uri_escaped (text, signing_url, NULL, FALSE);
+
+- soup_uri_free (url);
++ g_uri_unref (new_url);
++ g_uri_unref (url);
+ g_free (signing_url);
+ } else {
+ g_string_append_uri_escaped (text, url_str, NULL, FALSE);
+diff --git a/rest/oauth2-proxy.c b/rest/oauth2-proxy.c
+index 24e5da0..3382f8b 100644
+--- a/rest/oauth2-proxy.c
++++ b/rest/oauth2-proxy.c
+@@ -37,8 +37,6 @@ oauth2_proxy_error_quark (void)
+ return g_quark_from_static_string ("rest-oauth2-proxy");
+ }
+
+-#define EXTRA_CHARS_ENCODE "!$&'()*+,;=@"
+-
+ enum {
+ PROP_0,
+ PROP_CLIENT_ID,
+@@ -242,8 +240,8 @@ append_query_param (gpointer key, gpointer value, gpointer user_data)
+ char *encoded_val, *encoded_key;
+ char *param;
+
+- encoded_val = soup_uri_encode (value, EXTRA_CHARS_ENCODE);
+- encoded_key = soup_uri_encode (key, EXTRA_CHARS_ENCODE);
++ encoded_val = g_uri_escape_string (value, NULL, TRUE);
++ encoded_key = g_uri_escape_string (key, NULL, TRUE);
+
+ param = g_strdup_printf ("%s=%s", encoded_key, encoded_val);
+ g_free (encoded_key);
+@@ -295,8 +293,8 @@ oauth2_proxy_build_login_url_full (OAuth2Proxy *proxy,
+ g_hash_table_foreach (extra_params, append_query_param, params);
+ }
+
+- encoded_uri = soup_uri_encode (redirect_uri, EXTRA_CHARS_ENCODE);
+- encoded_id = soup_uri_encode (proxy->priv->client_id, EXTRA_CHARS_ENCODE);
++ encoded_uri = g_uri_escape_string (redirect_uri, NULL, TRUE);
++ encoded_id = g_uri_escape_string (proxy->priv->client_id, NULL, TRUE);
+
+ url = g_strdup_printf ("%s?client_id=%s&redirect_uri=%s&type=user_agent",
+ proxy->priv->auth_endpoint, encoded_id,
+@@ -378,20 +376,22 @@ oauth2_proxy_extract_access_token (const char *url)
+ {
+ GHashTable *params;
+ char *token = NULL;
+- SoupURI *soupuri = soup_uri_new (url);
++ const char *fragment;
++ GUri *uri = g_uri_parse (url, G_URI_FLAGS_ENCODED, NULL);
+
+- if (soupuri->fragment != NULL) {
+- params = soup_form_decode (soupuri->fragment);
++ fragment = g_uri_get_fragment (uri);
++ if (fragment != NULL) {
++ params = soup_form_decode (fragment);
+
+ if (params) {
+ char *encoded = g_hash_table_lookup (params, "access_token");
+ if (encoded)
+- token = soup_uri_decode (encoded);
++ token = g_uri_unescape_string (encoded, NULL);
+
+ g_hash_table_destroy (params);
+ }
+ }
+- soup_uri_free (soupuri);
++ g_uri_unref (uri);
+
+ return token;
+ }
+--
+2.33.1
+
diff --git a/meta-openembedded/meta-gnome/recipes-gnome/rest/files/0002-Port-to-libsoup3.patch b/meta-openembedded/meta-gnome/recipes-gnome/rest/files/0002-Port-to-libsoup3.patch
new file mode 100644
index 0000000..eed522f
--- /dev/null
+++ b/meta-openembedded/meta-gnome/recipes-gnome/rest/files/0002-Port-to-libsoup3.patch
@@ -0,0 +1,1696 @@
+From 3dc630ae5b9dc6cda1ba318de2cd654aaba7b4a2 Mon Sep 17 00:00:00 2001
+From: Carlos Garcia Campos <cgarcia@igalia.com>
+Date: Tue, 8 Jun 2021 17:44:04 +0200
+Subject: [PATCH 2/2] Port to libsoup3
+
+Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/librest/-/merge_requests/6]
+---
+ configure.ac | 39 ++++-
+ rest-extras.pc.in | 2 +-
+ rest-extras/youtube-proxy.c | 110 +++++++++++---
+ rest.pc.in | 2 +-
+ rest/rest-private.h | 22 ++-
+ rest/rest-proxy-auth.c | 16 ++
+ rest/rest-proxy-call.c | 296 +++++++++++++++++++++++++++++-------
+ rest/rest-proxy.c | 209 ++++++++++++++++++++++---
+ tests/custom-serialize.c | 18 +++
+ tests/proxy-continuous.c | 37 ++++-
+ tests/proxy.c | 63 +++++++-
+ tests/threaded.c | 17 +++
+ 12 files changed, 719 insertions(+), 112 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index d586e69..75c02fe 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -20,12 +20,6 @@ AM_INIT_AUTOMAKE([1.11 foreign -Wno-portability no-define dist-xz])
+
+ AM_SILENT_RULES([yes])
+
+-API_MAJOR=1
+-API_MINOR=0
+-AC_SUBST([API_VERSION],[$API_MAJOR.$API_MINOR])
+-AC_SUBST([API_VERSION_AM],[$API_MAJOR\_$API_MINOR])
+-AC_DEFINE_UNQUOTED(API_VERSION, [$API_VERSION], [API version])
+-
+ AC_CANONICAL_HOST
+
+ AC_PROG_CC
+@@ -41,7 +35,6 @@ LT_PREREQ([2.2.6])
+ LT_INIT([disable-static])
+
+ PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.67.4)
+-PKG_CHECK_MODULES(SOUP, libsoup-2.4 >= 2.42)
+ PKG_CHECK_MODULES(XML, libxml-2.0)
+ PKG_CHECK_MODULES(GTHREAD, gthread-2.0)
+
+@@ -58,6 +51,37 @@ AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums])
+ localedir=${datadir}/locale
+ AC_SUBST(localedir)
+
++AC_MSG_CHECKING([for libsoup version to use])
++AC_ARG_WITH(soup,
++ [AC_HELP_STRING([--soup=2|3],
++ [version of libsoup library to use (default: 2)])],
++ [case "$withval" in
++ 2|3) ;;
++ *) AC_MSG_ERROR([invalid argument "$withval" for --with-soup]) ;;
++ esac],
++ [with_soup=2])
++AC_MSG_RESULT([$with_soup])
++
++API_MAJOR=1
++
++if test "$with_soup" = "2"; then
++ PKG_CHECK_MODULES(SOUP, libsoup-2.4 >= 2.42)
++ SOUP_API_VERSION=2.4
++ API_MINOR=0
++ AC_DEFINE([WITH_SOUP_2],[1],[Define if libsoup version used is 2])
++else
++ PKG_CHECK_MODULES(SOUP, libsoup-3.0 >= 2.99.8)
++ SOUP_API_VERSION=3.0
++ API_MINOR=1
++fi
++
++AM_CONDITIONAL([WITH_SOUP_2],[test "$with_soup" = "2"])
++AC_SUBST(SOUP_API_VERSION)
++
++AC_SUBST([API_VERSION],[$API_MAJOR.$API_MINOR])
++AC_SUBST([API_VERSION_AM],[$API_MAJOR\_$API_MINOR])
++AC_DEFINE_UNQUOTED(API_VERSION, [$API_VERSION], [API version])
++
+ dnl === Coverage report =======================================================
+ AC_PATH_PROG([GCOV], [lcov], [enable_gcov=no])
+
+@@ -130,6 +154,7 @@ echo " LibRest $VERSION"
+ echo " ================"
+ echo ""
+ echo " prefix: ${prefix}"
++echo " libsoup version: ${with_soup}"
+ echo ""
+ echo " Documentation: ${enable_gtk_doc}"
+ echo " Introspection data: ${enable_introspection}"
+diff --git a/rest-extras.pc.in b/rest-extras.pc.in
+index 39f21bf..3723d6d 100644
+--- a/rest-extras.pc.in
++++ b/rest-extras.pc.in
+@@ -9,4 +9,4 @@ Description: RESTful web api query library
+ Version: @VERSION@
+ Libs: -L${libdir} -lrest-extras-${apiversion}
+ Cflags: -I${includedir}/rest-${apiversion}
+-Requires: glib-2.0 libsoup-2.4 libxml-2.0
++Requires: glib-2.0 libsoup-@SOUP_API_VERSION@ libxml-2.0
+diff --git a/rest-extras/youtube-proxy.c b/rest-extras/youtube-proxy.c
+index be0cf08..cd598f4 100644
+--- a/rest-extras/youtube-proxy.c
++++ b/rest-extras/youtube-proxy.c
+@@ -246,6 +246,9 @@ typedef struct {
+ GObject *weak_object;
+ gpointer user_data;
+ gsize uploaded;
++#ifndef WITH_SOUP_2
++ GCancellable *cancellable;
++#endif
+ } YoutubeProxyUploadClosure;
+
+ static void
+@@ -255,7 +258,11 @@ _upload_async_weak_notify_cb (gpointer *data,
+ YoutubeProxyUploadClosure *closure =
+ (YoutubeProxyUploadClosure *) data;
+
++#ifdef WITH_SOUP_2
+ _rest_proxy_cancel_message (REST_PROXY (closure->proxy), closure->message);
++#else
++ g_cancellable_cancel (closure->cancellable);
++#endif
+ }
+
+ static void
+@@ -267,6 +274,9 @@ _upload_async_closure_free (YoutubeProxyUploadClosure *closure)
+ closure);
+
+ g_object_unref (closure->proxy);
++#ifndef WITH_SOUP_2
++ g_object_unref (closure->cancellable);
++#endif
+
+ g_slice_free (YoutubeProxyUploadClosure, closure);
+ }
+@@ -286,6 +296,9 @@ _upload_async_closure_new (YoutubeProxy *self,
+ closure->message = message;
+ closure->weak_object = weak_object;
+ closure->user_data = user_data;
++#ifndef WITH_SOUP_2
++ closure->cancellable = g_cancellable_new ();
++#endif
+
+ if (weak_object != NULL)
+ g_object_weak_ref (weak_object,
+@@ -295,41 +308,67 @@ _upload_async_closure_new (YoutubeProxy *self,
+ }
+
+ static void
+-_upload_completed_cb (SoupSession *session,
+- SoupMessage *message,
++_upload_completed_cb (SoupMessage *message,
++ GBytes *payload,
++ GError *error,
+ gpointer user_data)
+ {
+ YoutubeProxyUploadClosure *closure =
+ (YoutubeProxyUploadClosure *) user_data;
+- GError *error = NULL;
++ gsize length;
++ gconstpointer data;
++ guint status_code;
++ const char *reason_phrase;
+
+ if (closure->callback == NULL)
+ return;
+
+- if (message->status_code < 200 || message->status_code >= 300)
+- error = g_error_new_literal (REST_PROXY_ERROR,
+- message->status_code,
+- message->reason_phrase);
+-
+- closure->callback (closure->proxy, message->response_body->data,
+- message->request_body->length,
+- message->request_body->length,
++#ifdef WITH_SOUP_2
++ status_code = message->status_code;
++ reason_phrase = message->reason_phrase;
++#else
++ status_code = soup_message_get_status (message);
++ reason_phrase = soup_message_get_reason_phrase (message);
++#endif
++
++ if (status_code < 200 || status_code >= 300)
++ {
++ g_clear_error (&error);
++ error = g_error_new_literal (REST_PROXY_ERROR,
++ status_code,
++ reason_phrase);
++ }
++
++ data = g_bytes_get_data (payload, &length);
++ closure->callback (closure->proxy, data, length, length,
+ error, closure->weak_object, closure->user_data);
++ g_bytes_unref (payload);
+
+ _upload_async_closure_free (closure);
+ }
+
+ static void
+ _message_wrote_data_cb (SoupMessage *msg,
++#ifdef WITH_SOUP_2
+ SoupBuffer *chunk,
++#else
++ gsize chunk_size,
++#endif
+ YoutubeProxyUploadClosure *closure)
+ {
+- closure->uploaded = closure->uploaded + chunk->length;
++#ifdef WITH_SOUP_2
++ gsize chunk_size = chunk->length;
++ goffset content_length = msg->request_body->length;
++#else
++ goffset content_length = soup_message_headers_get_content_length (soup_message_get_request_headers (msg));
++#endif
++
++ closure->uploaded = closure->uploaded + chunk_size;
+
+- if (closure->uploaded < msg->request_body->length)
++ if (closure->uploaded < content_length)
+ closure->callback (closure->proxy,
+ NULL,
+- msg->request_body->length,
++ content_length,
+ closure->uploaded,
+ NULL,
+ closure->weak_object,
+@@ -364,7 +403,12 @@ youtube_proxy_upload_async (YoutubeProxy *self,
+ SoupMultipart *mp;
+ SoupMessage *message;
+ SoupMessageHeaders *part_headers;
++ SoupMessageHeaders *request_headers;
++#ifdef WITH_SOUP_2
+ SoupBuffer *sb;
++#else
++ GBytes *sb;
++#endif
+ gchar *content_type;
+ gchar *atom_xml;
+ GMappedFile *map;
+@@ -380,10 +424,17 @@ youtube_proxy_upload_async (YoutubeProxy *self,
+
+ atom_xml = _construct_upload_atom_xml (fields, incomplete);
+
++#ifdef WITH_SOUP_2
+ sb = soup_buffer_new_with_owner (atom_xml,
+ strlen(atom_xml),
+ atom_xml,
+ (GDestroyNotify) g_free);
++#else
++ sb = g_bytes_new_with_free_func (atom_xml,
++ strlen (atom_xml),
++ (GDestroyNotify) g_free,
++ atom_xml);
++#endif
+
+ part_headers = soup_message_headers_new (SOUP_MESSAGE_HEADERS_MULTIPART);
+
+@@ -393,7 +444,11 @@ youtube_proxy_upload_async (YoutubeProxy *self,
+
+ soup_multipart_append_part (mp, part_headers, sb);
+
++#ifdef WITH_SOUP_2
+ soup_buffer_free (sb);
++#else
++ g_bytes_unref (sb);
++#endif
+
+ content_type = g_content_type_guess (
+ filename,
+@@ -401,24 +456,37 @@ youtube_proxy_upload_async (YoutubeProxy *self,
+ g_mapped_file_get_length (map),
+ NULL);
+
++#ifdef WITH_SOUP_2
+ sb = soup_buffer_new_with_owner (g_mapped_file_get_contents (map),
+ g_mapped_file_get_length (map),
+ map,
+ (GDestroyNotify) g_mapped_file_unref);
++#else
++ sb = g_bytes_new_with_free_func (g_mapped_file_get_contents (map),
++ g_mapped_file_get_length (map),
++ (GDestroyNotify) g_mapped_file_unref,
++ map);
++#endif
+
+ soup_message_headers_replace (part_headers, "Content-Type", content_type);
+
+ soup_multipart_append_part (mp, part_headers, sb);
+
++#ifdef WITH_SOUP_2
+ soup_buffer_free (sb);
+-
+ soup_message_headers_free (part_headers);
+-
+ message = soup_form_request_new_from_multipart (UPLOAD_URL, mp);
++ request_headers = message->request_headers;
++#else
++ g_bytes_unref (sb);
++ soup_message_headers_unref (part_headers);
++ message = soup_message_new_from_multipart (UPLOAD_URL, mp);
++ request_headers = soup_message_get_request_headers (message);
++#endif
+
+ soup_multipart_free (mp);
+
+- _set_upload_headers (self, message->request_headers, filename);
++ _set_upload_headers (self, request_headers, filename);
+
+ closure = _upload_async_closure_new (self, callback, message, weak_object,
+ user_data);
+@@ -429,7 +497,13 @@ youtube_proxy_upload_async (YoutubeProxy *self,
+ closure);
+
+
+- _rest_proxy_queue_message (REST_PROXY (self), message, _upload_completed_cb,
++ _rest_proxy_queue_message (REST_PROXY (self), message,
++#ifdef WITH_SOUP_2
++ NULL,
++#else
++ closure->cancellable,
++#endif
++ _upload_completed_cb,
+ closure);
+
+ return TRUE;
+diff --git a/rest.pc.in b/rest.pc.in
+index 94c384b..e6bae3e 100644
+--- a/rest.pc.in
++++ b/rest.pc.in
+@@ -9,4 +9,4 @@ Description: RESTful web api query library
+ Version: @VERSION@
+ Libs: -L${libdir} -lrest-${apiversion}
+ Cflags: -I${includedir}/rest-${apiversion}
+-Requires: glib-2.0 libsoup-2.4 libxml-2.0
++Requires: glib-2.0 libsoup-@SOUP_API_VERSION@ libxml-2.0
+diff --git a/rest/rest-private.h b/rest/rest-private.h
+index 9e91fa0..6e71322 100644
+--- a/rest/rest-private.h
++++ b/rest/rest-private.h
+@@ -31,6 +31,11 @@
+
+ G_BEGIN_DECLS
+
++typedef void (*RestMessageFinishedCallback) (SoupMessage *msg,
++ GBytes *body,
++ GError *error,
++ gpointer user_data);
++
+ typedef enum
+ {
+ REST_DEBUG_XML_PARSER = 1 << 0,
+@@ -53,12 +58,23 @@ gboolean _rest_proxy_get_binding_required (RestProxy *proxy);
+ const gchar *_rest_proxy_get_bound_url (RestProxy *proxy);
+ void _rest_proxy_queue_message (RestProxy *proxy,
+ SoupMessage *message,
+- SoupSessionCallback callback,
++ GCancellable *cancellable,
++ RestMessageFinishedCallback callback,
+ gpointer user_data);
+ void _rest_proxy_cancel_message (RestProxy *proxy,
+ SoupMessage *message);
+-guint _rest_proxy_send_message (RestProxy *proxy,
+- SoupMessage *message);
++GBytes *_rest_proxy_send_message (RestProxy *proxy,
++ SoupMessage *message,
++ GCancellable *cancellable,
++ GError **error);
++void _rest_proxy_send_message_async (RestProxy *proxy,
++ SoupMessage *message,
++ GCancellable *cancellable,
++ GAsyncReadyCallback callback,
++ gpointer user_data);
++GInputStream *_rest_proxy_send_message_finish (RestProxy *proxy,
++ GAsyncResult *result,
++ GError **error);
+
+ RestXmlNode *_rest_xml_node_new (void);
+ void _rest_xml_node_reverse_children_siblings (RestXmlNode *node);
+diff --git a/rest/rest-proxy-auth.c b/rest/rest-proxy-auth.c
+index b96e443..0b2ec9f 100644
+--- a/rest/rest-proxy-auth.c
++++ b/rest/rest-proxy-auth.c
+@@ -29,7 +29,9 @@
+ struct _RestProxyAuthPrivate {
+ /* used to hold state during async authentication */
+ RestProxy *proxy;
++#ifdef WITH_SOUP_2
+ SoupSession *session;
++#endif
+ SoupMessage *message;
+ SoupAuth *auth;
+ gboolean paused;
+@@ -43,7 +45,9 @@ rest_proxy_auth_dispose (GObject *object)
+ RestProxyAuthPrivate *priv = ((RestProxyAuth*)object)->priv;
+
+ g_clear_object (&priv->proxy);
++#ifdef WITH_SOUP_2
+ g_clear_object (&priv->session);
++#endif
+ g_clear_object (&priv->message);
+ g_clear_object (&priv->auth);
+
+@@ -73,13 +77,17 @@ rest_proxy_auth_new (RestProxy *proxy,
+ RestProxyAuth *rest_auth;
+
+ g_return_val_if_fail (REST_IS_PROXY (proxy), NULL);
++#ifdef WITH_SOUP_2
+ g_return_val_if_fail (SOUP_IS_SESSION (session), NULL);
++#endif
+ g_return_val_if_fail (SOUP_IS_MESSAGE (message), NULL);
+ g_return_val_if_fail (SOUP_IS_AUTH (soup_auth), NULL);
+
+ rest_auth = REST_PROXY_AUTH (g_object_new (REST_TYPE_PROXY_AUTH, NULL));
+ rest_auth->priv->proxy = g_object_ref(proxy);
++#ifdef WITH_SOUP_2
+ rest_auth->priv->session = g_object_ref(session);
++#endif
+ rest_auth->priv->message = g_object_ref(message);
+ rest_auth->priv->auth = g_object_ref(soup_auth);
+
+@@ -104,7 +112,9 @@ rest_proxy_auth_pause (RestProxyAuth *auth)
+ return;
+
+ auth->priv->paused = TRUE;
++#ifdef WITH_SOUP_2
+ soup_session_pause_message (auth->priv->session, auth->priv->message);
++#endif
+ }
+
+ /**
+@@ -128,7 +138,9 @@ rest_proxy_auth_unpause (RestProxyAuth *auth)
+ soup_auth_authenticate (auth->priv->auth, username, password);
+ g_free (username);
+ g_free (password);
++#ifdef WITH_SOUP_2
+ soup_session_unpause_message (auth->priv->session, auth->priv->message);
++#endif
+ auth->priv->paused = FALSE;
+ }
+
+@@ -146,7 +158,11 @@ rest_proxy_auth_cancel (RestProxyAuth *auth)
+ {
+ g_return_if_fail (REST_IS_PROXY_AUTH (auth));
+
++#ifdef WITH_SOUP_2
+ soup_session_cancel_message (auth->priv->session, auth->priv->message, SOUP_STATUS_CANCELLED);
++#else
++ soup_auth_cancel (auth->priv->auth);
++#endif
+ }
+
+ G_GNUC_INTERNAL gboolean rest_proxy_auth_is_paused (RestProxyAuth *auth)
+diff --git a/rest/rest-proxy-call.c b/rest/rest-proxy-call.c
+index 2ab722f..62b00da 100644
+--- a/rest/rest-proxy-call.c
++++ b/rest/rest-proxy-call.c
+@@ -20,12 +20,14 @@
+ *
+ */
+
++#include <config.h>
+ #include <rest/rest-proxy.h>
+ #include <rest/rest-proxy-call.h>
+ #include <rest/rest-params.h>
+ #include <libsoup/soup.h>
+
+ #include "rest-private.h"
++#include "rest-proxy-auth-private.h"
+ #include "rest-proxy-call-private.h"
+
+
+@@ -38,12 +40,15 @@ struct _RestProxyCallAsyncClosure {
+ };
+ typedef struct _RestProxyCallAsyncClosure RestProxyCallAsyncClosure;
+
++#define READ_BUFFER_SIZE 8192
++
+ struct _RestProxyCallContinuousClosure {
+ RestProxyCall *call;
+ RestProxyCallContinuousCallback callback;
+ GObject *weak_object;
+ gpointer userdata;
+ SoupMessage *message;
++ guchar buffer[READ_BUFFER_SIZE];
+ };
+ typedef struct _RestProxyCallContinuousClosure RestProxyCallContinuousClosure;
+
+@@ -70,8 +75,7 @@ struct _RestProxyCallPrivate {
+ gchar *url;
+
+ GHashTable *response_headers;
+- goffset length;
+- gchar *payload;
++ GBytes *payload;
+ guint status_code;
+ gchar *status_message;
+
+@@ -160,7 +164,7 @@ rest_proxy_call_finalize (GObject *object)
+ g_free (priv->method);
+ g_free (priv->function);
+
+- g_free (priv->payload);
++ g_clear_pointer (&priv->payload, g_bytes_unref);
+ g_free (priv->status_message);
+
+ g_free (priv->url);
+@@ -546,14 +550,23 @@ _populate_headers_hash_table (const gchar *name,
+ g_hash_table_insert (headers, g_strdup (name), g_strdup (value));
+ }
+
++#ifdef WITH_SOUP_2
+ /* I apologise for this macro, but it saves typing ;-) */
+ #define error_helper(x) g_set_error_literal(error, REST_PROXY_ERROR, x, message->reason_phrase)
++#endif
+ static gboolean
+ _handle_error_from_message (SoupMessage *message, GError **error)
+ {
+- if (message->status_code < 100)
++ guint status_code;
++ const char *reason_phrase;
++
++#ifdef WITH_SOUP_2
++ status_code = message->status_code;
++
++ if (status_code < 100)
+ {
+- switch (message->status_code)
++ g_clear_error (error);
++ switch (status_code)
+ {
+ case SOUP_STATUS_CANCELLED:
+ error_helper (REST_PROXY_ERROR_CANCELLED);
+@@ -580,61 +593,84 @@ _handle_error_from_message (SoupMessage *message, GError **error)
+ }
+ return FALSE;
+ }
++ reason_phrase = message->reason_phrase;
++#else
++ status_code = soup_message_get_status (message);
++ reason_phrase = soup_message_get_reason_phrase (message);
++#endif
+
+- if (message->status_code >= 200 && message->status_code < 300)
++ if (status_code >= 200 && status_code < 300)
+ {
+ return TRUE;
+ }
+
++ if (*error != NULL)
++ return FALSE;
++
+ /* If we are here we must be in some kind of HTTP error, lets try */
+ g_set_error_literal (error,
+ REST_PROXY_ERROR,
+- message->status_code,
+- message->reason_phrase);
++ status_code,
++ reason_phrase);
+ return FALSE;
+ }
+
+ static gboolean
+-finish_call (RestProxyCall *call, SoupMessage *message, GError **error)
++finish_call (RestProxyCall *call, SoupMessage *message, GBytes *payload, GError **error)
+ {
+ RestProxyCallPrivate *priv = GET_PRIVATE (call);
++ SoupMessageHeaders *response_headers;
+
+ g_assert (call);
+ g_assert (message);
++ g_assert (payload);
++
++#ifdef WITH_SOUP_2
++ response_headers = message->response_headers;
++#else
++ response_headers = soup_message_get_response_headers (message);
++#endif
+
+ /* Convert the soup headers in to hash */
+ /* FIXME: Eeek..are you allowed duplicate headers? ... */
+ g_hash_table_remove_all (priv->response_headers);
+- soup_message_headers_foreach (message->response_headers,
++ soup_message_headers_foreach (response_headers,
+ (SoupMessageHeadersForeachFunc)_populate_headers_hash_table,
+ priv->response_headers);
+
+- priv->payload = g_memdup (message->response_body->data,
+- message->response_body->length + 1);
+- priv->length = message->response_body->length;
++ priv->payload = payload;
+
++#ifdef WITH_SOUP_2
+ priv->status_code = message->status_code;
+ priv->status_message = g_strdup (message->reason_phrase);
++#else
++ priv->status_code = soup_message_get_status (message);
++ priv->status_message = g_strdup (soup_message_get_reason_phrase (message));
++#endif
+
+ return _handle_error_from_message (message, error);
+ }
+
+ static void
+-_continuous_call_message_completed_cb (SoupSession *session,
+- SoupMessage *message,
+- gpointer userdata)
++_continuous_call_message_completed (SoupMessage *message,
++ GError *error,
++ gpointer userdata)
+ {
+ RestProxyCallContinuousClosure *closure;
+ RestProxyCall *call;
+ RestProxyCallPrivate *priv;
+- GError *error = NULL;
+
+ closure = (RestProxyCallContinuousClosure *)userdata;
+ call = closure->call;
+ priv = GET_PRIVATE (call);
+
++#ifdef WITH_SOUP_2
+ priv->status_code = message->status_code;
+ priv->status_message = g_strdup (message->reason_phrase);
++#else
++ priv->status_code = soup_message_get_status (message);
++ priv->status_message = g_strdup (soup_message_get_reason_phrase (message));
++#endif
+
+ _handle_error_from_message (message, &error);
+
+@@ -657,6 +693,7 @@ _continuous_call_message_completed_cb (SoupSession *session,
+
+ priv->cur_call_closure = NULL;
+ g_object_unref (closure->call);
++ g_object_unref (message);
+ g_slice_free (RestProxyCallContinuousClosure, closure);
+ }
+
+@@ -715,6 +752,49 @@ set_url (RestProxyCall *call)
+ return TRUE;
+ }
+
++#ifndef WITH_SOUP_2
++static gboolean
++authenticate (RestProxyCall *call,
++ SoupAuth *soup_auth,
++ gboolean retrying,
++ SoupMessage *message)
++{
++ RestProxyCallPrivate *priv = GET_PRIVATE (call);
++ RestProxyAuth *rest_auth;
++ gboolean try_auth;
++
++ rest_auth = rest_proxy_auth_new (priv->proxy, NULL, message, soup_auth);
++ g_signal_emit_by_name (priv->proxy, "authenticate", rest_auth, retrying, &try_auth);
++ if (try_auth && !rest_proxy_auth_is_paused (rest_auth)) {
++ char *username, *password;
++
++ g_object_get (priv->proxy, "username", &username, "password", &password, NULL);
++ soup_auth_authenticate (soup_auth, username, password);
++ g_free (username);
++ g_free (password);
++ }
++ g_object_unref (rest_auth);
++
++ return try_auth;
++}
++
++static gboolean
++accept_certificate (RestProxyCall *call,
++ GTlsCertificate *tls_certificate,
++ GTlsCertificateFlags *tls_errors,
++ SoupMessage *message)
++{
++ RestProxyCallPrivate *priv = GET_PRIVATE (call);
++ gboolean ssl_strict;
++
++ if (tls_errors == 0)
++ return TRUE;
++
++ g_object_get (priv->proxy, "ssl-strict", &ssl_strict, NULL);
++ return !ssl_strict;
++}
++#endif
++
+ static SoupMessage *
+ prepare_message (RestProxyCall *call, GError **error_out)
+ {
+@@ -722,6 +802,7 @@ prepare_message (RestProxyCall *call, GError **error_out)
+ RestProxyCallClass *call_class;
+ const gchar *user_agent;
+ SoupMessage *message;
++ SoupMessageHeaders *request_headers;
+ GError *error = NULL;
+
+ call_class = REST_PROXY_CALL_GET_CLASS (call);
+@@ -748,6 +829,9 @@ prepare_message (RestProxyCall *call, GError **error_out)
+ gchar *content;
+ gchar *content_type;
+ gsize content_len;
++#ifndef WITH_SOUP_2
++ GBytes *body;
++#endif
+
+ if (!call_class->serialize_params (call, &content_type,
+ &content, &content_len, &error))
+@@ -780,8 +864,14 @@ prepare_message (RestProxyCall *call, GError **error_out)
+ "Could not parse URI");
+ return NULL;
+ }
++#ifdef WITH_SOUP_2
+ soup_message_set_request (message, content_type,
+ SOUP_MEMORY_TAKE, content, content_len);
++#else
++ body = g_bytes_new_take (content, content_len);
++ soup_message_set_request_body_from_bytes (message, content_type, body);
++ g_bytes_unref (body);
++#endif
+
+ g_free (content_type);
+ } else if (rest_params_are_strings (priv->params)) {
+@@ -798,9 +888,15 @@ prepare_message (RestProxyCall *call, GError **error_out)
+
+ hash = rest_params_as_string_hash_table (priv->params);
+
++#ifdef WITH_SOUP_2
+ message = soup_form_request_new_from_hash (priv->method,
+ priv->url,
+ hash);
++#else
++ message = soup_message_new_from_encoded_form (priv->method,
++ priv->url,
++ soup_form_encode_hash (hash));
++#endif
+
+ g_hash_table_unref (hash);
+
+@@ -827,19 +923,28 @@ prepare_message (RestProxyCall *call, GError **error_out)
+ if (rest_param_is_string (param)) {
+ soup_multipart_append_form_string (mp, name, rest_param_get_content (param));
+ } else {
+- SoupBuffer *sb;
+-
+- sb = soup_buffer_new_with_owner (rest_param_get_content (param),
+- rest_param_get_content_length (param),
+- rest_param_ref (param),
+- (GDestroyNotify)rest_param_unref);
++#ifdef WITH_SOUP_2
++ SoupBuffer *sb = soup_buffer_new_with_owner (rest_param_get_content (param),
++ rest_param_get_content_length (param),
++ rest_param_ref (param),
++ (GDestroyNotify)rest_param_unref);
++#else
++ GBytes *sb = g_bytes_new_with_free_func (rest_param_get_content (param),
++ rest_param_get_content_length (param),
++ (GDestroyNotify)rest_param_unref,
++ rest_param_ref (param));
++#endif
+
+ soup_multipart_append_form_file (mp, name,
+ rest_param_get_file_name (param),
+ rest_param_get_content_type (param),
+ sb);
+
++#ifdef WITH_SOUP_2
+ soup_buffer_free (sb);
++#else
++ g_bytes_unref (sb);
++#endif
+ }
+ }
+
+@@ -853,19 +958,36 @@ prepare_message (RestProxyCall *call, GError **error_out)
+ return NULL;
+ }
+
++#ifdef WITH_SOUP_2
+ message = soup_form_request_new_from_multipart (priv->url, mp);
++#else
++ message = soup_message_new_from_multipart (priv->url, mp);
++#endif
+
+ soup_multipart_free (mp);
+ }
+
++#ifdef WITH_SOUP_2
++ request_headers = message->request_headers;
++#else
++ request_headers = soup_message_get_request_headers (message);
++ g_signal_connect_swapped (message, "authenticate",
++ G_CALLBACK (authenticate),
++ call);
++ g_signal_connect_swapped (message, "accept-certificate",
++ G_CALLBACK (accept_certificate),
++ call);
++#endif
++
++
+ /* Set the user agent, if one was set in the proxy */
+ user_agent = rest_proxy_get_user_agent (priv->proxy);
+ if (user_agent) {
+- soup_message_headers_append (message->request_headers, "User-Agent", user_agent);
++ soup_message_headers_append (request_headers, "User-Agent", user_agent);
+ }
+
+ /* Set the headers */
+- g_hash_table_foreach (priv->headers, set_header, message->request_headers);
++ g_hash_table_foreach (priv->headers, set_header, request_headers);
+
+ return message;
+ }
+@@ -878,17 +1000,17 @@ _call_message_call_cancelled_cb (GCancellable *cancellable,
+ }
+
+ static void
+-_call_message_call_completed_cb (SoupSession *session,
+- SoupMessage *message,
++_call_message_call_completed_cb (SoupMessage *message,
++ GBytes *payload,
++ GError *error,
+ gpointer user_data)
+ {
+ GTask *task = user_data;
+ RestProxyCall *call;
+- GError *error = NULL;
+
+ call = REST_PROXY_CALL (g_task_get_source_object (task));
+
+- finish_call (call, message, &error);
++ finish_call (call, message, payload, &error);
+
+ if (error != NULL)
+ g_task_return_error (task, error);
+@@ -938,6 +1060,7 @@ rest_proxy_call_invoke_async (RestProxyCall *call,
+
+ _rest_proxy_queue_message (priv->proxy,
+ message,
++ priv->cancellable,
+ _call_message_call_completed_cb,
+ task);
+ }
+@@ -962,16 +1085,55 @@ rest_proxy_call_invoke_finish (RestProxyCall *call,
+ }
+
+ static void
+-_continuous_call_message_got_chunk_cb (SoupMessage *msg,
+- SoupBuffer *chunk,
+- RestProxyCallContinuousClosure *closure)
++_continuous_call_read_cb (GObject *source,
++ GAsyncResult *result,
++ gpointer user_data)
+ {
++ GInputStream *stream = G_INPUT_STREAM (source);
++ RestProxyCallContinuousClosure *closure = user_data;
++ RestProxyCallPrivate *priv = GET_PRIVATE (closure->call);
++ gssize bytes_read;
++ GError *error = NULL;
++
++ bytes_read = g_input_stream_read_finish (stream, result, &error);
++ if (bytes_read <= 0)
++ {
++ _continuous_call_message_completed (closure->message, error, user_data);
++ return;
++ }
++
+ closure->callback (closure->call,
+- chunk->data,
+- chunk->length,
++ (gconstpointer)closure->buffer,
++ bytes_read,
+ NULL,
+ closure->weak_object,
+ closure->userdata);
++
++ g_input_stream_read_async (stream, closure->buffer, READ_BUFFER_SIZE, G_PRIORITY_DEFAULT,
++ priv->cancellable, _continuous_call_read_cb, closure);
++}
++
++static void
++_continuous_call_message_sent_cb (GObject *source,
++ GAsyncResult *result,
++ gpointer user_data)
++{
++ RestProxy *proxy = REST_PROXY (source);
++ RestProxyCallContinuousClosure *closure = user_data;
++ RestProxyCallPrivate *priv = GET_PRIVATE (closure->call);
++ GInputStream *stream;
++ GError *error = NULL;
++
++ stream = _rest_proxy_send_message_finish (proxy, result, &error);
++ if (!stream)
++ {
++ _continuous_call_message_completed (closure->message, error, user_data);
++ return;
++ }
++
++ g_input_stream_read_async (stream, closure->buffer, READ_BUFFER_SIZE, G_PRIORITY_DEFAULT,
++ priv->cancellable, _continuous_call_read_cb, closure);
++ g_object_unref (stream);
+ }
+
+
+@@ -1021,9 +1183,6 @@ rest_proxy_call_continuous (RestProxyCall *call,
+ if (message == NULL)
+ return FALSE;
+
+- /* Must turn off accumulation */
+- soup_message_body_set_accumulate (message->response_body, FALSE);
+-
+ closure = g_slice_new0 (RestProxyCallContinuousClosure);
+ closure->call = g_object_ref (call);
+ closure->callback = callback;
+@@ -1041,33 +1200,29 @@ rest_proxy_call_continuous (RestProxyCall *call,
+ closure);
+ }
+
+- g_signal_connect (message,
+- "got-chunk",
+- (GCallback)_continuous_call_message_got_chunk_cb,
+- closure);
+-
+- _rest_proxy_queue_message (priv->proxy,
+- message,
+- _continuous_call_message_completed_cb,
+- closure);
++ _rest_proxy_send_message_async (priv->proxy,
++ message,
++ priv->cancellable,
++ _continuous_call_message_sent_cb,
++ closure);
+ return TRUE;
+ }
+
+ static void
+-_upload_call_message_completed_cb (SoupSession *session,
+- SoupMessage *message,
++_upload_call_message_completed_cb (SoupMessage *message,
++ GBytes *payload,
++ GError *error,
+ gpointer user_data)
+ {
+ RestProxyCall *call;
+ RestProxyCallPrivate *priv;
+- GError *error = NULL;
+ RestProxyCallUploadClosure *closure;
+
+ closure = (RestProxyCallUploadClosure *) user_data;
+ call = closure->call;
+ priv = GET_PRIVATE (call);
+
+- finish_call (call, message, &error);
++ finish_call (call, message, payload, &error);
+
+ closure->callback (closure->call,
+ closure->uploaded,
+@@ -1093,14 +1248,25 @@ _upload_call_message_completed_cb (SoupSession *session,
+
+ static void
+ _upload_call_message_wrote_data_cb (SoupMessage *msg,
++#ifdef WITH_SOUP_2
+ SoupBuffer *chunk,
++#else
++ gsize chunk_size,
++#endif
+ RestProxyCallUploadClosure *closure)
+ {
+- closure->uploaded = closure->uploaded + chunk->length;
++#ifdef WITH_SOUP_2
++ gsize chunk_size = chunk->length;
++ goffset content_length = msg->request_body->length;
++#else
++ goffset content_length = soup_message_headers_get_content_length (soup_message_get_request_headers (msg));
++#endif
+
+- if (closure->uploaded < msg->request_body->length)
++ closure->uploaded = closure->uploaded + chunk_size;
++
++ if (closure->uploaded < content_length)
+ closure->callback (closure->call,
+- msg->request_body->length,
++ content_length,
+ closure->uploaded,
+ NULL,
+ closure->weak_object,
+@@ -1178,6 +1344,7 @@ rest_proxy_call_upload (RestProxyCall *call,
+
+ _rest_proxy_queue_message (priv->proxy,
+ message,
++ priv->cancellable,
+ _upload_call_message_completed_cb,
+ closure);
+ return TRUE;
+@@ -1206,6 +1373,10 @@ rest_proxy_call_cancel (RestProxyCall *call)
+ if (priv->cancellable)
+ {
+ g_signal_handler_disconnect (priv->cancellable, priv->cancel_sig);
++#ifndef WITH_SOUP_2
++ if (!g_cancellable_is_cancelled (priv->cancellable))
++ g_cancellable_cancel (priv->cancellable);
++#endif
+ g_clear_object (&priv->cancellable);
+ }
+
+@@ -1240,6 +1411,7 @@ rest_proxy_call_sync (RestProxyCall *call,
+ RestProxyCallPrivate *priv = GET_PRIVATE (call);
+ SoupMessage *message;
+ gboolean ret;
++ GBytes *payload;
+
+ g_return_val_if_fail (REST_IS_PROXY_CALL (call), FALSE);
+
+@@ -1247,9 +1419,9 @@ rest_proxy_call_sync (RestProxyCall *call,
+ if (!message)
+ return FALSE;
+
+- _rest_proxy_send_message (priv->proxy, message);
++ payload = _rest_proxy_send_message (priv->proxy, message, priv->cancellable, error_out);
+
+- ret = finish_call (call, message, error_out);
++ ret = finish_call (call, message, payload, error_out);
+
+ g_object_unref (message);
+
+@@ -1314,9 +1486,16 @@ rest_proxy_call_get_response_headers (RestProxyCall *call)
+ goffset
+ rest_proxy_call_get_payload_length (RestProxyCall *call)
+ {
++ GBytes *payload;
++
+ g_return_val_if_fail (REST_IS_PROXY_CALL (call), 0);
+
+- return GET_PRIVATE (call)->length;
++ payload = GET_PRIVATE (call)->payload;
++#ifdef WITH_SOUP_2
++ return payload ? g_bytes_get_size (payload) - 1 : 0;
++#else
++ return payload ? g_bytes_get_size (payload) : 0;
++#endif
+ }
+
+ /**
+@@ -1331,9 +1510,12 @@ rest_proxy_call_get_payload_length (RestProxyCall *call)
+ const gchar *
+ rest_proxy_call_get_payload (RestProxyCall *call)
+ {
++ GBytes *payload;
++
+ g_return_val_if_fail (REST_IS_PROXY_CALL (call), NULL);
+
+- return GET_PRIVATE (call)->payload;
++ payload = GET_PRIVATE (call)->payload;
++ return payload ? g_bytes_get_data (payload, NULL) : NULL;
+ }
+
+ /**
+diff --git a/rest/rest-proxy.c b/rest/rest-proxy.c
+index 80972a3..171f6cb 100644
+--- a/rest/rest-proxy.c
++++ b/rest/rest-proxy.c
+@@ -45,6 +45,9 @@ struct _RestProxyPrivate {
+ SoupSession *session;
+ gboolean disable_cookies;
+ char *ssl_ca_file;
++#ifndef WITH_SOUP_2
++ gboolean ssl_strict;
++#endif
+ };
+
+
+@@ -116,11 +119,15 @@ rest_proxy_get_property (GObject *object,
+ g_value_set_string (value, priv->password);
+ break;
+ case PROP_SSL_STRICT: {
++#ifdef WITH_SOUP_2
+ gboolean ssl_strict;
+ g_object_get (G_OBJECT(priv->session),
+ "ssl-strict", &ssl_strict,
+ NULL);
+ g_value_set_boolean (value, ssl_strict);
++#else
++ g_value_set_boolean (value, priv->ssl_strict);
++#endif
+ break;
+ }
+ case PROP_SSL_CA_FILE:
+@@ -172,9 +179,13 @@ rest_proxy_set_property (GObject *object,
+ priv->password = g_value_dup_string (value);
+ break;
+ case PROP_SSL_STRICT:
++#ifdef WITH_SOUP_2
+ g_object_set (G_OBJECT(priv->session),
+ "ssl-strict", g_value_get_boolean (value),
+ NULL);
++#else
++ priv->ssl_strict = g_value_get_boolean (value);
++#endif
+ break;
+ case PROP_SSL_CA_FILE:
+ g_free(priv->ssl_ca_file);
+@@ -207,6 +218,7 @@ default_authenticate_cb (RestProxy *self,
+ return !retrying;
+ }
+
++#ifdef WITH_SOUP_2
+ static void
+ authenticate (RestProxy *self,
+ SoupMessage *msg,
+@@ -224,6 +236,7 @@ authenticate (RestProxy *self,
+ soup_auth_authenticate (soup_auth, priv->username, priv->password);
+ g_object_unref (G_OBJECT (rest_auth));
+ }
++#endif
+
+ static void
+ rest_proxy_constructed (GObject *object)
+@@ -238,14 +251,20 @@ rest_proxy_constructed (GObject *object)
+ }
+
+ if (REST_DEBUG_ENABLED(PROXY)) {
++#ifdef WITH_SOUP_2
+ SoupSessionFeature *logger = (SoupSessionFeature*)soup_logger_new (SOUP_LOGGER_LOG_BODY, 0);
++#else
++ SoupSessionFeature *logger = (SoupSessionFeature*)soup_logger_new (SOUP_LOGGER_LOG_HEADERS);
++#endif
+ soup_session_add_feature (priv->session, logger);
+ g_object_unref (logger);
+ }
+
++#ifdef WITH_SOUP_2
+ /* session lifetime is same as self, no need to keep signalid */
+ g_signal_connect_swapped (priv->session, "authenticate",
+ G_CALLBACK(authenticate), object);
++#endif
+ }
+
+ static void
+@@ -391,23 +410,62 @@ rest_proxy_class_init (RestProxyClass *klass)
+ proxy_class->authenticate = default_authenticate_cb;
+ }
+
++static gboolean
++transform_ssl_ca_file_to_tls_database (GBinding *binding,
++ const GValue *from_value,
++ GValue *to_value,
++ gpointer user_data)
++{
++ g_value_take_object (to_value,
++ g_tls_file_database_new (g_value_get_string (from_value), NULL));
++ return TRUE;
++}
++
++static gboolean
++transform_tls_database_to_ssl_ca_file (GBinding *binding,
++ const GValue *from_value,
++ GValue *to_value,
++ gpointer user_data)
++{
++ GTlsDatabase *tls_database;
++ char *path = NULL;
++
++ tls_database = g_value_get_object (from_value);
++ if (tls_database)
++ g_object_get (tls_database, "anchors", &path, NULL);
++ g_value_take_string (to_value, path);
++ return TRUE;
++}
++
+ static void
+ rest_proxy_init (RestProxy *self)
+ {
+ RestProxyPrivate *priv = GET_PRIVATE (self);
++ GTlsDatabase *tls_database;
++
++#ifndef WITH_SOUP_2
++ priv->ssl_strict = TRUE;
++#endif
+
+ priv->session = soup_session_new ();
+
+ #ifdef REST_SYSTEM_CA_FILE
+ /* with ssl-strict (defaults TRUE) setting ssl-ca-file forces all
+ * certificates to be trusted */
+- g_object_set (priv->session,
+- "ssl-ca-file", REST_SYSTEM_CA_FILE,
+- NULL);
++ tls_database = g_tls_file_database_new (REST_SYSTEM_CA_FILE, NULL);
++ if (tls_database) {
++ g_object_set (priv->session,
++ "tls-database", tls_database,
++ NULL);
++ g_object_unref (tls_database);
++ }
+ #endif
+- g_object_bind_property (self, "ssl-ca-file",
+- priv->session, "ssl-ca-file",
+- G_BINDING_BIDIRECTIONAL);
++ g_object_bind_property_full (self, "ssl-ca-file",
++ priv->session, "tls-database",
++ G_BINDING_BIDIRECTIONAL,
++ transform_ssl_ca_file_to_tls_database,
++ transform_tls_database_to_ssl_ca_file,
++ NULL, NULL);
+ }
+
+ /**
+@@ -689,27 +747,127 @@ rest_proxy_simple_run (RestProxy *proxy,
+ return ret;
+ }
+
++typedef struct {
++ RestMessageFinishedCallback callback;
++ gpointer user_data;
++} RestMessageQueueData;
++
++#ifdef WITH_SOUP_2
++static void
++message_finished_cb (SoupSession *session,
++ SoupMessage *message,
++ gpointer user_data)
++{
++ RestMessageQueueData *data = user_data;
++ GBytes *body;
++ GError *error = NULL;
++
++ body = g_bytes_new (message->response_body->data,
++ message->response_body->length + 1);
++ data->callback (message, body, error, data->user_data);
++ g_free (data);
++}
++#else
++static void
++message_send_and_read_ready_cb (GObject *source,
++ GAsyncResult *result,
++ gpointer user_data)
++{
++ SoupSession *session = SOUP_SESSION (source);
++ RestMessageQueueData *data = user_data;
++ GBytes *body;
++ GError *error = NULL;
++
++ body = soup_session_send_and_read_finish (session, result, &error);
++ data->callback (soup_session_get_async_result_message (session, result), body, error, data->user_data);
++ g_free (data);
++}
++#endif
++
+ void
+-_rest_proxy_queue_message (RestProxy *proxy,
+- SoupMessage *message,
+- SoupSessionCallback callback,
+- gpointer user_data)
++_rest_proxy_queue_message (RestProxy *proxy,
++ SoupMessage *message,
++ GCancellable *cancellable,
++ RestMessageFinishedCallback callback,
++ gpointer user_data)
+ {
+ RestProxyPrivate *priv = GET_PRIVATE (proxy);
++ RestMessageQueueData *data;
+
+ g_return_if_fail (REST_IS_PROXY (proxy));
+ g_return_if_fail (SOUP_IS_MESSAGE (message));
+
++ data = g_new0 (RestMessageQueueData, 1);
++ data->callback = callback;
++ data->user_data = user_data;
++
++#ifdef WITH_SOUP_2
+ soup_session_queue_message (priv->session,
+ message,
+- callback,
+- user_data);
++ message_finished_cb,
++ data);
++#else
++ soup_session_send_and_read_async (priv->session,
++ message,
++ G_PRIORITY_DEFAULT,
++ cancellable,
++ message_send_and_read_ready_cb,
++ data);
++#endif
++}
++
++static void
++message_send_ready_cb (GObject *source,
++ GAsyncResult *result,
++ gpointer user_data)
++{
++ SoupSession *session = SOUP_SESSION (source);
++ GTask *task = user_data;
++ GInputStream *stream;
++ GError *error = NULL;
++
++ stream = soup_session_send_finish (session, result, &error);
++ if (stream)
++ g_task_return_pointer (task, stream, g_object_unref);
++ else
++ g_task_return_error (task, error);
++ g_object_unref (task);
++}
++
++void
++_rest_proxy_send_message_async (RestProxy *proxy,
++ SoupMessage *message,
++ GCancellable *cancellable,
++ GAsyncReadyCallback callback,
++ gpointer user_data)
++{
++ RestProxyPrivate *priv = GET_PRIVATE (proxy);
++ GTask *task;
++
++ task = g_task_new (proxy, cancellable, callback, user_data);
++ soup_session_send_async (priv->session,
++ message,
++#ifndef WITH_SOUP_2
++ G_PRIORITY_DEFAULT,
++#endif
++ cancellable,
++ message_send_ready_cb,
++ task);
++}
++
++GInputStream *
++_rest_proxy_send_message_finish (RestProxy *proxy,
++ GAsyncResult *result,
++ GError **error)
++{
++ return g_task_propagate_pointer (G_TASK (result), error);
+ }
+
+ void
+ _rest_proxy_cancel_message (RestProxy *proxy,
+ SoupMessage *message)
+ {
++#ifdef WITH_SOUP_2
+ RestProxyPrivate *priv = GET_PRIVATE (proxy);
+
+ g_return_if_fail (REST_IS_PROXY (proxy));
+@@ -718,16 +876,31 @@ _rest_proxy_cancel_message (RestProxy *proxy,
+ soup_session_cancel_message (priv->session,
+ message,
+ SOUP_STATUS_CANCELLED);
++#endif
+ }
+
+-guint
+-_rest_proxy_send_message (RestProxy *proxy,
+- SoupMessage *message)
++GBytes *
++_rest_proxy_send_message (RestProxy *proxy,
++ SoupMessage *message,
++ GCancellable *cancellable,
++ GError **error)
+ {
+ RestProxyPrivate *priv = GET_PRIVATE (proxy);
++ GBytes *body;
+
+- g_return_val_if_fail (REST_IS_PROXY (proxy), 0);
+- g_return_val_if_fail (SOUP_IS_MESSAGE (message), 0);
++ g_return_val_if_fail (REST_IS_PROXY (proxy), NULL);
++ g_return_val_if_fail (SOUP_IS_MESSAGE (message), NULL);
++
++#ifdef WITH_SOUP_2
++ soup_session_send_message (priv->session, message);
++ body = g_bytes_new (message->response_body->data,
++ message->response_body->length + 1);
++#else
++ body = soup_session_send_and_read (priv->session,
++ message,
++ cancellable,
++ error);
++#endif
+
+- return soup_session_send_message (priv->session, message);
++ return body;
+ }
+diff --git a/tests/custom-serialize.c b/tests/custom-serialize.c
+index c3fde93..01b3a56 100644
+--- a/tests/custom-serialize.c
++++ b/tests/custom-serialize.c
+@@ -88,22 +88,40 @@ custom_proxy_call_init (CustomProxyCall *self)
+ }
+
+ static void
++#ifdef WITH_SOUP_2
+ server_callback (SoupServer *server, SoupMessage *msg,
+ const char *path, GHashTable *query,
+ SoupClientContext *client, gpointer user_data)
++#else
++server_callback (SoupServer *server, SoupServerMessage *msg,
++ const char *path, GHashTable *query, gpointer user_data)
++#endif
+ {
+ if (g_str_equal (path, "/ping")) {
+ const char *content_type = NULL;
++#ifdef WITH_SOUP_2
+ SoupMessageHeaders *headers = msg->request_headers;
+ SoupMessageBody *body = msg->request_body;
++#else
++ SoupMessageHeaders *headers = soup_server_message_get_request_headers (msg);
++ SoupMessageBody *body = soup_server_message_get_request_body (msg);
++#endif
+ content_type = soup_message_headers_get_content_type (headers, NULL);
+ g_assert_cmpstr (content_type, ==, "application/json");
+
+ g_assert_cmpstr (body->data, ==, "{}");
+
++#ifdef WITH_SOUP_2
+ soup_message_set_status (msg, SOUP_STATUS_OK);
++#else
++ soup_server_message_set_status (msg, SOUP_STATUS_OK, NULL);
++#endif
+ } else {
++#ifdef WITH_SOUP_2
+ soup_message_set_status (msg, SOUP_STATUS_NOT_IMPLEMENTED);
++#else
++ soup_server_message_set_status (msg, SOUP_STATUS_NOT_IMPLEMENTED, NULL);
++#endif
+ }
+ }
+
+diff --git a/tests/proxy-continuous.c b/tests/proxy-continuous.c
+index 8f4b7a8..7967bbd 100644
+--- a/tests/proxy-continuous.c
++++ b/tests/proxy-continuous.c
+@@ -39,9 +39,15 @@ static SoupServer *server;
+ static gboolean
+ send_chunks (gpointer user_data)
+ {
+- SoupMessage *msg = SOUP_MESSAGE (user_data);
+ guint i;
+ guint8 data[SIZE_CHUNK];
++#ifdef WITH_SOUP_2
++ SoupMessage *msg = SOUP_MESSAGE (user_data);
++ SoupMessageBody *response_body = msg->response_body;
++#else
++ SoupServerMessage *msg = SOUP_SERVER_MESSAGE (user_data);
++ SoupMessageBody *response_body = soup_server_message_get_response_body (msg);
++#endif
+
+ for (i = 0; i < SIZE_CHUNK; i++)
+ {
+@@ -49,12 +55,12 @@ send_chunks (gpointer user_data)
+ server_count++;
+ }
+
+- soup_message_body_append (msg->response_body, SOUP_MEMORY_COPY, data, SIZE_CHUNK);
++ soup_message_body_append (response_body, SOUP_MEMORY_COPY, data, SIZE_CHUNK);
+ soup_server_unpause_message (server, msg);
+
+ if (server_count == NUM_CHUNKS * SIZE_CHUNK)
+ {
+- soup_message_body_complete (msg->response_body);
++ soup_message_body_complete (response_body);
+ return FALSE;
+ } else {
+ return TRUE;
+@@ -62,13 +68,28 @@ send_chunks (gpointer user_data)
+ }
+
+ static void
++#ifdef WITH_SOUP_2
+ server_callback (SoupServer *server, SoupMessage *msg,
+ const char *path, GHashTable *query,
+ SoupClientContext *client, gpointer user_data)
++#else
++server_callback (SoupServer *server, SoupServerMessage *msg,
++ const char *path, GHashTable *query, gpointer user_data)
++#endif
+ {
++#ifdef WITH_SOUP_2
++ SoupMessageHeaders *response_headers = msg->response_headers;
++#else
++ SoupMessageHeaders *response_headers = soup_server_message_get_response_headers (msg);
++#endif
++
+ g_assert_cmpstr (path, ==, "/stream");
++#ifdef WITH_SOUP_2
+ soup_message_set_status (msg, SOUP_STATUS_OK);
+- soup_message_headers_set_encoding (msg->response_headers,
++#else
++ soup_server_message_set_status (msg, SOUP_STATUS_OK, NULL);
++#endif
++ soup_message_headers_set_encoding (response_headers,
+ SOUP_ENCODING_CHUNKED);
+ soup_server_pause_message (server, msg);
+
+@@ -142,13 +163,21 @@ continuous ()
+ uris = soup_server_get_uris (server);
+ g_assert (g_slist_length (uris) > 0);
+
++#ifdef WITH_SOUP_2
+ url = soup_uri_to_string (uris->data, FALSE);
++#else
++ url = g_uri_to_string (uris->data);
++#endif
+
+ loop = g_main_loop_new (NULL, FALSE);
+
+ proxy = rest_proxy_new (url, FALSE);
+ stream_test (proxy);
++#ifdef WITH_SOUP_2
+ g_slist_free_full (uris, (GDestroyNotify)soup_uri_free);
++#else
++ g_slist_free_full (uris, (GDestroyNotify)g_uri_unref);
++#endif
+
+ g_main_loop_run (loop);
+ g_free (url);
+diff --git a/tests/proxy.c b/tests/proxy.c
+index 89a9325..652c600 100644
+--- a/tests/proxy.c
++++ b/tests/proxy.c
+@@ -49,20 +49,35 @@ SoupServer *server;
+ GMainLoop *server_loop;
+
+ static void
++#ifdef WITH_SOUP_2
+ server_callback (SoupServer *server, SoupMessage *msg,
+ const char *path, GHashTable *query,
+ SoupClientContext *client, gpointer user_data)
++#else
++server_callback (SoupServer *server, SoupServerMessage *msg,
++ const char *path, GHashTable *query, gpointer user_data)
++#endif
+ {
+ if (g_str_equal (path, "/ping")) {
++#ifdef WITH_SOUP_2
+ soup_message_set_status (msg, SOUP_STATUS_OK);
++#else
++ soup_server_message_set_status (msg, SOUP_STATUS_OK, NULL);
++#endif
+ }
+ else if (g_str_equal (path, "/echo")) {
+ const char *value;
+
+ value = g_hash_table_lookup (query, "value");
++#ifdef WITH_SOUP_2
+ soup_message_set_response (msg, "text/plain", SOUP_MEMORY_COPY,
+ value, strlen (value));
+ soup_message_set_status (msg, SOUP_STATUS_OK);
++#else
++ soup_server_message_set_response (msg, "text/plain", SOUP_MEMORY_COPY,
++ value, strlen (value));
++ soup_server_message_set_status (msg, SOUP_STATUS_OK, NULL);
++#endif
+ }
+ else if (g_str_equal (path, "/reverse")) {
+ char *value;
+@@ -70,9 +85,15 @@ server_callback (SoupServer *server, SoupMessage *msg,
+ value = g_strdup (g_hash_table_lookup (query, "value"));
+ g_strreverse (value);
+
++#ifdef WITH_SOUP_2
+ soup_message_set_response (msg, "text/plain", SOUP_MEMORY_TAKE,
+ value, strlen (value));
+ soup_message_set_status (msg, SOUP_STATUS_OK);
++#else
++ soup_server_message_set_response (msg, "text/plain", SOUP_MEMORY_TAKE,
++ value, strlen (value));
++ soup_server_message_set_status (msg, SOUP_STATUS_OK, NULL);
++#endif
+ }
+ else if (g_str_equal (path, "/status")) {
+ const char *value;
+@@ -81,25 +102,61 @@ server_callback (SoupServer *server, SoupMessage *msg,
+ value = g_hash_table_lookup (query, "status");
+ if (value) {
+ status = atoi (value);
++#ifdef WITH_SOUP_2
+ soup_message_set_status (msg, status ?: SOUP_STATUS_INTERNAL_SERVER_ERROR);
++#else
++ soup_server_message_set_status (msg, status ?: SOUP_STATUS_INTERNAL_SERVER_ERROR, NULL);
++#endif
+ } else {
++#ifdef WITH_SOUP_2
+ soup_message_set_status (msg, SOUP_STATUS_INTERNAL_SERVER_ERROR);
++#else
++ soup_server_message_set_status (msg, SOUP_STATUS_INTERNAL_SERVER_ERROR, NULL);
++#endif
+ }
+ }
+ else if (g_str_equal (path, "/useragent/none")) {
+- if (soup_message_headers_get (msg->request_headers, "User-Agent") == NULL) {
++#ifdef WITH_SOUP_2
++ SoupMessageHeaders *request_headers = msg->request_headers;
++#else
++ SoupMessageHeaders *request_headers = soup_server_message_get_request_headers (msg);
++#endif
++
++ if (soup_message_headers_get (request_headers, "User-Agent") == NULL) {
++#ifdef WITH_SOUP_2
+ soup_message_set_status (msg, SOUP_STATUS_OK);
++#else
++ soup_server_message_set_status (msg, SOUP_STATUS_OK, NULL);
++#endif
+ } else {
++#ifdef WITH_SOUP_2
+ soup_message_set_status (msg, SOUP_STATUS_EXPECTATION_FAILED);
++#else
++ soup_server_message_set_status (msg, SOUP_STATUS_EXPECTATION_FAILED, NULL);
++#endif
+ }
+ }
+ else if (g_str_equal (path, "/useragent/testsuite")) {
++#ifdef WITH_SOUP_2
++ SoupMessageHeaders *request_headers = msg->request_headers;
++#else
++ SoupMessageHeaders *request_headers = soup_server_message_get_request_headers (msg);
++#endif
+ const char *value;
+- value = soup_message_headers_get (msg->request_headers, "User-Agent");
++ value = soup_message_headers_get (request_headers, "User-Agent");
+ if (g_strcmp0 (value, "TestSuite-1.0") == 0) {
++#ifdef WITH_SOUP_2
+ soup_message_set_status (msg, SOUP_STATUS_OK);
++#else
++ soup_server_message_set_status (msg, SOUP_STATUS_OK, NULL);
++#endif
+ } else {
++#ifdef WITH_SOUP_2
+ soup_message_set_status (msg, SOUP_STATUS_EXPECTATION_FAILED);
++#else
++ soup_server_message_set_status (msg, SOUP_STATUS_EXPECTATION_FAILED, NULL);
++#endif
++
+ }
+ }
+ }
+@@ -325,7 +382,7 @@ main (int argc, char **argv)
+ char *url;
+ RestProxy *proxy;
+
+- server = soup_server_new ("", NULL);
++ server = soup_server_new (NULL);
+ g_thread_new ("Server Thread", server_thread_func, NULL);
+
+ url = g_strdup_printf ("http://127.0.0.1:%d/", PORT);
+diff --git a/tests/threaded.c b/tests/threaded.c
+index a251900..411361c 100644
+--- a/tests/threaded.c
++++ b/tests/threaded.c
+@@ -36,13 +36,22 @@ GMainLoop *main_loop;
+ SoupServer *server;
+
+ static void
++#ifdef WITH_SOUP_2
+ server_callback (SoupServer *server, SoupMessage *msg,
+ const char *path, GHashTable *query,
+ SoupClientContext *client, gpointer user_data)
++#else
++server_callback (SoupServer *server, SoupServerMessage *msg,
++ const char *path, GHashTable *query, gpointer user_data)
++#endif
+ {
+ g_assert_cmpstr (path, ==, "/ping");
+
++#ifdef WITH_SOUP_2
+ soup_message_set_status (msg, SOUP_STATUS_OK);
++#else
++ soup_server_message_set_status (msg, SOUP_STATUS_OK, NULL);
++#endif
+ g_atomic_int_add (&threads_done, 1);
+
+ if (threads_done == N_THREADS) {
+@@ -96,7 +105,11 @@ static void ping ()
+ uris = soup_server_get_uris (server);
+ g_assert (g_slist_length (uris) > 0);
+
++#ifdef WITH_SOUP_2
+ url = soup_uri_to_string (uris->data, FALSE);
++#else
++ url = g_uri_to_string (uris->data);
++#endif
+
+ main_loop = g_main_loop_new (NULL, TRUE);
+
+@@ -109,7 +122,11 @@ static void ping ()
+ g_main_loop_run (main_loop);
+
+ g_free (url);
++#ifdef WITH_SOUP_2
+ g_slist_free_full (uris, (GDestroyNotify)soup_uri_free);
++#else
++ g_slist_free_full (uris, (GDestroyNotify)g_uri_unref);
++#endif
+ g_object_unref (server);
+ g_main_loop_unref (main_loop);
+ }
+--
+2.33.1
+
diff --git a/meta-openembedded/meta-gnome/recipes-gnome/rest/rest_0.8.1.bb b/meta-openembedded/meta-gnome/recipes-gnome/rest/rest_0.8.1.bb
index 47e3f8d..545224a 100644
--- a/meta-openembedded/meta-gnome/recipes-gnome/rest/rest_0.8.1.bb
+++ b/meta-openembedded/meta-gnome/recipes-gnome/rest/rest_0.8.1.bb
@@ -14,13 +14,13 @@
inherit gnomebase gobject-introspection gtk-doc vala
-SRC_URI[archive.md5sum] = "ece4547298a81105f307369d73c21b9d"
-SRC_URI[archive.sha256sum] = "0513aad38e5d3cedd4ae3c551634e3be1b9baaa79775e53b2dba9456f15b01c9"
-
-# * gnome environment requires libsoup build with in gnome PACKAGECONFIG
-# * libsoup-gnome support was removed upstream three years ago [1]
-# [1] https://gitlab.gnome.org/GNOME/librest/commit/8f904a8e2bb38a7bf72245cdf2f1ecad17e9a720
-EXTRA_OECONF = "--without-gnome"
+PV .= "+git${SRCPV}"
+SRCREV = "7b46065dea860ef09861f4d70124728b8270c8b7"
+SRC_URI = "git://gitlab.gnome.org/GNOME/librest;protocol=https;branch=master \
+ file://0001-Use-GUri-instead-of-SoupURI.patch \
+ file://0002-Port-to-libsoup3.patch \
+"
+S = "${WORKDIR}/git"
do_configure:prepend() {
# rest expects introspection.m4 at custom location (see aclocal.m4).