Revert "remove unnecessary cairo soname patch"
This reverts commit 3500c44bcc
.
Reason for revert: At least for Linux --without-system-cairo builds, this causes
workdir/UnpackedTarball/cairo/src/.libs/libcairo.so (which is the lib that other
libs like Library_drawinglayer and Library_vcl will link against) to have an
SONAME of libcairo.so.2 (instead of libcairo-lo.so.2), so at runtime libs like
instdir/program/libdrawinglayerlo.so and instdir/program/libvcllo.so will have a
NEEDED of libcairo.so.2 (instead of libcairo-lo.so.2), so will pick up whatever
system libcairo.so.2 (/usr/lib64/libcairo.so.2 from cairo-1.18.2-2.fc41.x86_64,
in my case) instead of instdir/program/libcairo-lo.so.2, which caused e.g.
CppunitTest_vcl_bitmap_render_test
CPPUNIT_TEST_NAME=BitmapRenderTest::testTdf113918 to happen to fail for me with
> [_RUN_____] BitmapRenderTest::testTdf113918
> warn:vcl.gdi:2234659:2234659:vcl/headless/CairoCommon.cxx:1619: unsupported SvpSalGraphics::drawAlphaBitmap case
> vcl/qa/cppunit/bitmaprender/BitmapRenderTest.cxx💯BitmapRenderTest::testTdf113918
> equality assertion failed
> - Expected: rgba[ffffffff]
> - Actual : rgba[008000ff]
Change-Id: I9a2a64197185b7c057352c3fb7f3e3f6dbcf70db
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180884
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
2
external/cairo/ExternalPackage_cairo.mk
vendored
2
external/cairo/ExternalPackage_cairo.mk
vendored
@@ -12,7 +12,7 @@ $(eval $(call gb_ExternalPackage_ExternalPackage,cairo,cairo))
|
||||
$(eval $(call gb_ExternalPackage_use_external_project,cairo,cairo))
|
||||
|
||||
ifneq ($(DISABLE_DYNLOADING),TRUE)
|
||||
$(eval $(call gb_ExternalPackage_add_file,cairo,$(LIBO_LIB_FOLDER)/libcairo-lo.so.2,src/.libs/libcairo.so.2.1170$(CAIRO_VERSION_MICRO).0))
|
||||
$(eval $(call gb_ExternalPackage_add_file,cairo,$(LIBO_LIB_FOLDER)/libcairo-lo.so.2,src/.libs/libcairo-lo.so.2.1170$(CAIRO_VERSION_MICRO).0))
|
||||
endif
|
||||
|
||||
# vim: set noet sw=4 ts=4:
|
||||
|
1
external/cairo/UnpackedTarball_cairo.mk
vendored
1
external/cairo/UnpackedTarball_cairo.mk
vendored
@@ -28,6 +28,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,cairo,\
|
||||
external/cairo/cairo/cairo.ofz46165.patch.1 \
|
||||
external/cairo/cairo/cairo.ofz50805.patch.1 \
|
||||
external/cairo/cairo/0025-libtool-pass-use-ld.patch \
|
||||
external/cairo/cairo/libcairo-bundled-soname.patch.0 \
|
||||
external/cairo/cairo/cairo-fd-hack.patch.0 \
|
||||
external/cairo/cairo/cairo.ofz57493-Timeout.patch.1 \
|
||||
))
|
||||
|
12
external/cairo/cairo/libcairo-bundled-soname.patch.0
vendored
Normal file
12
external/cairo/cairo/libcairo-bundled-soname.patch.0
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
# -*- Mode: Diff -*-
|
||||
--- src/Makefile.in
|
||||
+++ src/Makefile.in
|
||||
@@ -2075,7 +2075,7 @@
|
||||
$(enabled_cairo_sources) \
|
||||
$(NULL)
|
||||
|
||||
-libcairo_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(CAIRO_LIBTOOL_VERSION_INFO) -no-undefined $(export_symbols)
|
||||
+libcairo_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(CAIRO_LIBTOOL_VERSION_INFO) -no-undefined $(export_symbols) -release lo -Wl,-soname -Wl,libcairo-lo.so.2
|
||||
libcairo_la_LIBADD = $(CAIRO_LIBS)
|
||||
libcairo_la_DEPENDENCIES = $(cairo_def_dependency)
|
||||
|
Reference in New Issue
Block a user