After update to 3.5.x builds with pkgconfig(SDL2) no longer work

REPRODUCIBILITY (% or how often): 100%
BUILD ID = OS VERSION (Settings > About product): 3.4
HARDWARE (XA2, X10, X10 II, …): volla phone
UI LANGUAGE:en_US
REGRESSION: (compared to previous public release: Yes, No, ?): unclear

DESCRIPTION:

In the hopes of fixing a build/debug issue, I did an upgrade to 3.5. This resulted in a project I could build this morning producing this output:

sfdk: [I] Options from environment: -c target=SailfishOS-3.4.0.24-armv7hl
error: Failed build dependencies:
	pkgconfig(SDL2_mixer) is needed by harbour-simplesynth-0.1-1.armv7hl
	pkgconfig(sdl2) is needed by harbour-simplesynth-0.1-1.armv7hl

great.

PRECONDITIONS:

Use 3.4 SDK to build a project (subdirs style) with a dependency on SDL2 (presumably) and upgrade to 3.5.

STEPS TO REPRODUCE:

  1. build a project with pkgconfig(SDL2_mixer), pkgconfig(SDL2) (in this case, in spec and .pro)
  2. compile with 3.4
  3. upgrade to 3.5 sdk
  4. attempt to compile.

EXPECTED RESULT:

Ah, compilation of the binary and deployment as in 3.4

ACTUAL RESULT:

Errors.

Can I downgrade. This really sucks.

ADDITIONAL INFORMATION:

(Please ALWAYS attach relevant data such as logs, screenshots, etc…)

include <SDL2/SDL.h> is no longer found. WTFruitcake is going on here!?

Hmmmm. After several attempts at building, the SDK did something ‘magical’ (after I removed the pkgconfig directives, failed build and added them back in).

'pkgconfig(sdl2)' not found in package names. Trying capabilities.
'pkgconfig(SDL2_mixer)' not found in package names. Trying capabilities.
Resolving package dependencies...

The following 4 NEW packages are going to be installed:
  SDL2 SDL2-devel SDL2_mixer SDL2_mixer-devel

4 new packages to install.
Overall download size: 572.1 KiB. Already cached: 0 B. After the operation, additional 2.9 MiB will be used.
Continue? [y/n/...? shows all options] (y): y
Retrieving package SDL2-2.0.12+git1-1.5.1.jolla.armv7hl (1/4), 268.1 KiB (  1.2 MiB unpacked)
Retrieving: SDL2-2.0.12+git1-1.5.1.jolla.armv7hl.rpm [done]
Retrieving package SDL2_mixer-2.0.4+git2-1.5.1.jolla.armv7hl (2/4),  56.4 KiB ( 94.5 KiB unpacked)
Retrieving: SDL2_mixer-2.0.4+git2-1.5.1.jolla.armv7hl.rpm [done]
Retrieving package SDL2-devel-2.0.12+git1-1.5.1.jolla.armv7hl (3/4), 226.7 KiB (  1.6 MiB unpacked)
Retrieving: SDL2-devel-2.0.12+git1-1.5.1.jolla.armv7hl.rpm [.done (66.7 KiB/s)]
Retrieving package SDL2_mixer-devel-2.0.4+git2-1.5.1.jolla.armv7hl (4/4),  20.8 KiB ( 40.5 KiB unpacked)
Retrieving: SDL2_mixer-devel-2.0.4+git2-1.5.1.jolla.armv7hl.rpm [done]
Checking for file conflicts: [....done]
(1/4) Installing: SDL2-2.0.12+git1-1.5.1.jolla.armv7hl [............done]
Additional rpm output:
warning: /home/.zypp-cache/packages/jolla/mw/armv7hl/SDL2-2.0.12+git1-1.5.1.jolla.armv7hl.rpm: Header V3 DSA/SHA1 Signature, key ID f2633ee0: NOKEY


(2/4) Installing: SDL2_mixer-2.0.4+git2-1.5.1.jolla.armv7hl [.......done]
Additional rpm output:
warning: /home/.zypp-cache/packages/jolla/mw/armv7hl/SDL2_mixer-2.0.4+git2-1.5.1.jolla.armv7hl.rpm: Header V3 DSA/SHA1 Signature, key ID f2633ee0: NOKEY


(3/4) Installing: SDL2-devel-2.0.12+git1-1.5.1.jolla.armv7hl [............done]
Additional rpm output:
warning: /home/.zypp-cache/packages/jolla/mw/armv7hl/SDL2-devel-2.0.12+git1-1.5.1.jolla.armv7hl.rpm: Header V3 DSA/SHA1 Signature, key ID f2633ee0: NOKEY


(4/4) Installing: SDL2_mixer-devel-2.0.4+git2-1.5.1.jolla.armv7hl [.....done]
Additional rpm output:
warning: /home/.zypp-cache/packages/jolla/mw/armv7hl/SDL2_mixer-devel-2.0.4+git2-1.5.1.jolla.armv7hl.rpm: Header V3 DSA/SHA1 Signature, key ID f2633ee0: NOKEY


Synchronising target to host...
Sync completed
Building target platforms: armv7hl-meego-linux
Building for target armv7hl-meego-linux
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.pdnj0W