Browse Source

Initial attempt at updating lsp-plugins

Signed-off-by: falkTX <falktx@falktx.com>
master
falkTX 1 year ago
parent
commit
27de7d9236
5 changed files with 21 additions and 33 deletions
  1. +6
    -0
      sources/plugins/lsp-plugins/debian/changelog
  2. +13
    -0
      sources/plugins/lsp-plugins/debian/patches/01_fix-build.patch
  3. +0
    -20
      sources/plugins/lsp-plugins/debian/patches/01_use-distro-flags.patch
  4. +1
    -1
      sources/plugins/lsp-plugins/debian/patches/series
  5. +1
    -12
      sources/plugins/lsp-plugins/debian/rules

+ 6
- 0
sources/plugins/lsp-plugins/debian/changelog View File

@@ -1,3 +1,9 @@
lsp-plugins (6:1.2.3-1kxstudio2) focal; urgency=medium

* Update

-- falkTX <falktx@falktx.com> Fri, 16 Sep 2022 12:51:49 +0100

lsp-plugins (6:1.2.2-1kxstudio2) focal; urgency=medium

* Update


+ 13
- 0
sources/plugins/lsp-plugins/debian/patches/01_fix-build.patch View File

@@ -0,0 +1,13 @@
--- lsp-plugins-1.2.3.orig/make/tools.mk
+++ lsp-plugins-1.2.3/make/tools.mk
@@ -150,8 +150,8 @@ CXXDEFS += -DLSP_INSTALL_PREF
INCLUDE :=
LDFLAGS := $(LDFLAGS_EXT) -r
-EXE_FLAGS := $(EXE_FLAGS_EXT) $(FLAG_RELRO) -Wl,--gc-sections
-SO_FLAGS := $(SO_FLAGS_EXT) $(FLAG_RELRO) -Wl,--gc-sections -shared $(FLAG_STDLIB) -fPIC
+EXE_FLAGS += $(EXE_FLAGS_EXT) $(FLAG_RELRO) -Wl,--gc-sections
+SO_FLAGS += $(SO_FLAGS_EXT) $(FLAG_RELRO) -Wl,--gc-sections -shared $(FLAG_STDLIB) -fPIC
# Define flags for host build
HOST_CFLAGS := $(CFLAGS)

+ 0
- 20
sources/plugins/lsp-plugins/debian/patches/01_use-distro-flags.patch View File

@@ -1,20 +0,0 @@
--- lsp-plugins-1.2.2.orig/make/tools.mk
+++ lsp-plugins-1.2.2/make/tools.mk
@@ -110,7 +110,7 @@ else
endif
# Define flags for (cross) build
-CFLAGS ?= \
+CFLAGS += \
$(CFLAGS_EXT) \
-fdata-sections \
-ffunction-sections \
@@ -120,7 +120,7 @@ CFLAGS ?= \
CDEFS += -DLSP_INSTALL_PREFIX=\\\"$(PREFIX)\\\"
-CXXFLAGS ?= \
+CXXFLAGS += \
$(CXXFLAGS_EXT) \
-std=c++98 \
-fno-exceptions \

+ 1
- 1
sources/plugins/lsp-plugins/debian/patches/series View File

@@ -1 +1 @@
01_use-distro-flags.patch
01_fix-build.patch

+ 1
- 12
sources/plugins/lsp-plugins/debian/rules View File

@@ -16,17 +16,11 @@ endif
export EXE_FLAGS = $(LDFLAGS)
export SO_FLAGS = $(LDFLAGS)

# FIXME a lib is causing leaks
export VALGRIND_EXTRA_ARGS = --leak-check=no

%:
dh $@

override_dh_auto_configure:
$(MAKE) config ARCHITECTURE=$(ARCHITECTURE) FEATURES='ladspa lv2 vst2 jack' PREFIX=/usr
# make it read our custom flags too
sed -i 's/^EXE_FLAGS=/EXE_FLAGS+=/' .config.mk
sed -i 's/^SO_FLAGS=/SO_FLAGS+=/' .config.mk

override_dh_auto_install:
dh_auto_install
@@ -39,11 +33,6 @@ override_dh_auto_install:
rm debian/tmp/usr/lib/*.so
rm -r debian/tmp/usr/lib/pkgconfig

# Make lv2 validators happy
sed -i -z 's|\tfoaf:mbox <mailto:lsp.plugin@gmail.com> ;\n\tfoaf:homepage <http://lsp-plug.in/#v_sadovnikov>|\tfoaf:mbox <mailto:lsp.plugin+sadko@gmail.com> ;\n\tfoaf:homepage <http://lsp-plug.in/#v_sadovnikov>|g' debian/tmp/usr/lib/lv2/lsp-plugins.lv2/*.ttl

override_dh_install:
dh_install
# FIXME Fails due to memory issues
# TODO report issue on http://lsp-plug.in/plugins/lv2/mb_expander_lr
# $(call kxstudio_audio_plugin_test)
$(call kxstudio_audio_plugin_test)

Loading…
Cancel
Save