All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] Revert "package/libsoxr: add avutil to soxr.pc"
@ 2019-02-22  1:07 Jörg Krause
  2019-02-22  1:07 ` [Buildroot] [PATCH 2/2] package/libsoxr: add patch to add Libs.private in soxr.pc Jörg Krause
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jörg Krause @ 2019-02-22  1:07 UTC (permalink / raw)
  To: buildroot

This reverts commit d81870ae8129389a62df80c9c8c9165d334b6921.

The patch attempts to fix static linking with libsoxr when it build with
avutils. The `Libs.private` field should not contain the full absolute path to
the static library, but only the link flags for private libraries, e.g
`-lm`.

Buildroots pkg-config prepends the sysroot to the value found in `Libs.private`
resulting in a malformed linker flag if libavutil is found:

```
-L/home/test/autobuild/run/instance-3/output/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib -lsoxr
/home/test/autobuild/run/instance-3/output/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/home/test/autobuild/run/instance-3/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libavutil.a
```

.. or if libavutils is not found:

```
-L/home/test/autobuild/run/instance-1/output/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib -lsoxr AVUTIL_LIBRARIES-NOTFOUND
```

Revert this commit and replace the patch by a follow-up patch which only
adds `-lavutil` to `Libs.private` in case it is found and used by
libsoxr.

Fixes:
http://autobuild.buildroot.net/results/6eb4e2c9bd3884ab0152ddf873c20e62f0941181/
http://autobuild.buildroot.net/results/07207b0a58a08bf7c2cb78345a58244b5e6aab0e/

Signed-off-by: J?rg Krause <joerg.krause@embedded.rocks>
---
 ...0001-soxr.pc.in-add-avutil-libraries.patch | 33 -------------------
 1 file changed, 33 deletions(-)
 delete mode 100644 package/libsoxr/0001-soxr.pc.in-add-avutil-libraries.patch

diff --git a/package/libsoxr/0001-soxr.pc.in-add-avutil-libraries.patch b/package/libsoxr/0001-soxr.pc.in-add-avutil-libraries.patch
deleted file mode 100644
index c36988a77e..0000000000
--- a/package/libsoxr/0001-soxr.pc.in-add-avutil-libraries.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From 8c1edfc22f8b714062b149e3d80ab4357a1a4e49 Mon Sep 17 00:00:00 2001
-From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
-Date: Thu, 22 Nov 2018 19:10:03 +0100
-Subject: [PATCH] soxr.pc.in: add avutil libraries
-
-Add ${AVUTIL_LIBRARIES} to soxr.pc.in so applications such as
-shairport-sync will know that they must link with -lavutil when
-building statically
-
-Fixes:
- - http://autobuild.buildroot.org/results/839c0ce6475accc1de7e8a180d4358edb6750c64
-
-Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
-[Upstream status: https://sourceforge.net/p/soxr/code/merge-requests/2]
-[Thomas: move to Libs.private.]
-Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
----
- src/soxr.pc.in | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/src/soxr.pc.in b/src/soxr.pc.in
-index 69d225b..ed212a8 100644
---- a/src/soxr.pc.in
-+++ b/src/soxr.pc.in
-@@ -2,4 +2,5 @@ Name: ${PROJECT_NAME}
- Description: ${DESCRIPTION_SUMMARY}
- Version: ${PROJECT_VERSION}
- Libs: -L${LIB_INSTALL_DIR} -l${PROJECT_NAME}
-+Libs.private: ${AVUTIL_LIBRARIES}
- Cflags: -I${INCLUDE_INSTALL_DIR}
--- 
-2.19.1
-
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [Buildroot] [PATCH 2/2] package/libsoxr: add patch to add Libs.private in soxr.pc
  2019-02-22  1:07 [Buildroot] [PATCH 1/2] Revert "package/libsoxr: add avutil to soxr.pc" Jörg Krause
@ 2019-02-22  1:07 ` Jörg Krause
  2019-03-04 21:36   ` Peter Korsgaard
  2019-03-17 22:16   ` Peter Korsgaard
  2019-03-04 21:36 ` [Buildroot] [PATCH 1/2] Revert "package/libsoxr: add avutil to soxr.pc" Peter Korsgaard
  2019-03-17 22:16 ` Peter Korsgaard
  2 siblings, 2 replies; 6+ messages in thread
From: Jörg Krause @ 2019-02-22  1:07 UTC (permalink / raw)
  To: buildroot

If libsoxr is build statically against libavutil other applications
needs to know that they must link with `-lavutil` when building in a
static context.

Signed-off-by: J?rg Krause <joerg.krause@embedded.rocks>
---
 ...-Add-Libs.private-for-static-linking.patch | 43 +++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 package/libsoxr/0001-Add-Libs.private-for-static-linking.patch

diff --git a/package/libsoxr/0001-Add-Libs.private-for-static-linking.patch b/package/libsoxr/0001-Add-Libs.private-for-static-linking.patch
new file mode 100644
index 0000000000..7ed2af31c5
--- /dev/null
+++ b/package/libsoxr/0001-Add-Libs.private-for-static-linking.patch
@@ -0,0 +1,43 @@
+From 7d2d1039f303b6322ecb72eebae39b699fd28d19 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks>
+Date: Fri, 22 Feb 2019 01:31:11 +0100
+Subject: [PATCH] Add Libs.private in soxr.pc.in for static linking
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+If libsoxr is build statically against libavutil other applications
+needs to know that they must link with `-lavutil` when building in a
+static context.
+
+Signed-off-by: J?rg Krause <joerg.krause@embedded.rocks>
+---
+ CMakeLists.txt | 1 +
+ src/soxr.pc.in | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index ee48f6c..714bd4d 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -139,6 +139,7 @@ if (WITH_AVFFT OR (CMAKE_SYSTEM_PROCESSOR MATCHES "^arm" AND SIMD32_FOUND AND WI
+   if (AVUTIL_FOUND)
+     include_directories (${AVUTIL_INCLUDE_DIRS})
+     set (LIBS ${LIBS} ${AVUTIL_LIBRARIES})
++    set (PKGCONF_LIBS_PRIV ${PKGCONF_LIBS_PRIV} -lavutil)
+   endif ()
+ endif ()
+ 
+diff --git a/src/soxr.pc.in b/src/soxr.pc.in
+index 69d225b..6c530a6 100644
+--- a/src/soxr.pc.in
++++ b/src/soxr.pc.in
+@@ -2,4 +2,5 @@ Name: ${PROJECT_NAME}
+ Description: ${DESCRIPTION_SUMMARY}
+ Version: ${PROJECT_VERSION}
+ Libs: -L${LIB_INSTALL_DIR} -l${PROJECT_NAME}
++Libs.private: ${PKGCONF_LIBS_PRIV}
+ Cflags: -I${INCLUDE_INSTALL_DIR}
+-- 
+2.20.1
+
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [Buildroot] [PATCH 1/2] Revert "package/libsoxr: add avutil to soxr.pc"
  2019-02-22  1:07 [Buildroot] [PATCH 1/2] Revert "package/libsoxr: add avutil to soxr.pc" Jörg Krause
  2019-02-22  1:07 ` [Buildroot] [PATCH 2/2] package/libsoxr: add patch to add Libs.private in soxr.pc Jörg Krause
@ 2019-03-04 21:36 ` Peter Korsgaard
  2019-03-17 22:16 ` Peter Korsgaard
  2 siblings, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2019-03-04 21:36 UTC (permalink / raw)
  To: buildroot

>>>>> "J?rg" == J?rg Krause <joerg.krause@embedded.rocks> writes:

 > This reverts commit d81870ae8129389a62df80c9c8c9165d334b6921.
 > The patch attempts to fix static linking with libsoxr when it build with
 > avutils. The `Libs.private` field should not contain the full absolute path to
 > the static library, but only the link flags for private libraries, e.g
 > `-lm`.

 > Buildroots pkg-config prepends the sysroot to the value found in `Libs.private`
 > resulting in a malformed linker flag if libavutil is found:

 > ```
 > -L/home/test/autobuild/run/instance-3/output/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib
 > -lsoxr
 > /home/test/autobuild/run/instance-3/output/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/home/test/autobuild/run/instance-3/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libavutil.a
 > ```

 > .. or if libavutils is not found:

 > ```
 > -L/home/test/autobuild/run/instance-1/output/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib
 > -lsoxr AVUTIL_LIBRARIES-NOTFOUND
 > ```

 > Revert this commit and replace the patch by a follow-up patch which only
 > adds `-lavutil` to `Libs.private` in case it is found and used by
 > libsoxr.

 > Fixes:
 > http://autobuild.buildroot.net/results/6eb4e2c9bd3884ab0152ddf873c20e62f0941181/
 > http://autobuild.buildroot.net/results/07207b0a58a08bf7c2cb78345a58244b5e6aab0e/

 > Signed-off-by: J?rg Krause <joerg.krause@embedded.rocks>

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] [PATCH 2/2] package/libsoxr: add patch to add Libs.private in soxr.pc
  2019-02-22  1:07 ` [Buildroot] [PATCH 2/2] package/libsoxr: add patch to add Libs.private in soxr.pc Jörg Krause
@ 2019-03-04 21:36   ` Peter Korsgaard
  2019-03-17 22:16   ` Peter Korsgaard
  1 sibling, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2019-03-04 21:36 UTC (permalink / raw)
  To: buildroot

>>>>> "J?rg" == J?rg Krause <joerg.krause@embedded.rocks> writes:

 > If libsoxr is build statically against libavutil other applications
 > needs to know that they must link with `-lavutil` when building in a
 > static context.

 > Signed-off-by: J?rg Krause <joerg.krause@embedded.rocks>

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] [PATCH 1/2] Revert "package/libsoxr: add avutil to soxr.pc"
  2019-02-22  1:07 [Buildroot] [PATCH 1/2] Revert "package/libsoxr: add avutil to soxr.pc" Jörg Krause
  2019-02-22  1:07 ` [Buildroot] [PATCH 2/2] package/libsoxr: add patch to add Libs.private in soxr.pc Jörg Krause
  2019-03-04 21:36 ` [Buildroot] [PATCH 1/2] Revert "package/libsoxr: add avutil to soxr.pc" Peter Korsgaard
@ 2019-03-17 22:16 ` Peter Korsgaard
  2 siblings, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2019-03-17 22:16 UTC (permalink / raw)
  To: buildroot

>>>>> "J?rg" == J?rg Krause <joerg.krause@embedded.rocks> writes:

 > This reverts commit d81870ae8129389a62df80c9c8c9165d334b6921.
 > The patch attempts to fix static linking with libsoxr when it build with
 > avutils. The `Libs.private` field should not contain the full absolute path to
 > the static library, but only the link flags for private libraries, e.g
 > `-lm`.

 > Buildroots pkg-config prepends the sysroot to the value found in `Libs.private`
 > resulting in a malformed linker flag if libavutil is found:

 > ```
 > -L/home/test/autobuild/run/instance-3/output/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib
 > -lsoxr
 > /home/test/autobuild/run/instance-3/output/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/home/test/autobuild/run/instance-3/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libavutil.a
 > ```

 > .. or if libavutils is not found:

 > ```
 > -L/home/test/autobuild/run/instance-1/output/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib
 > -lsoxr AVUTIL_LIBRARIES-NOTFOUND
 > ```

 > Revert this commit and replace the patch by a follow-up patch which only
 > adds `-lavutil` to `Libs.private` in case it is found and used by
 > libsoxr.

 > Fixes:
 > http://autobuild.buildroot.net/results/6eb4e2c9bd3884ab0152ddf873c20e62f0941181/
 > http://autobuild.buildroot.net/results/07207b0a58a08bf7c2cb78345a58244b5e6aab0e/

 > Signed-off-by: J?rg Krause <joerg.krause@embedded.rocks>

Committed to 2018.11.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] [PATCH 2/2] package/libsoxr: add patch to add Libs.private in soxr.pc
  2019-02-22  1:07 ` [Buildroot] [PATCH 2/2] package/libsoxr: add patch to add Libs.private in soxr.pc Jörg Krause
  2019-03-04 21:36   ` Peter Korsgaard
@ 2019-03-17 22:16   ` Peter Korsgaard
  1 sibling, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2019-03-17 22:16 UTC (permalink / raw)
  To: buildroot

>>>>> "J?rg" == J?rg Krause <joerg.krause@embedded.rocks> writes:

 > If libsoxr is build statically against libavutil other applications
 > needs to know that they must link with `-lavutil` when building in a
 > static context.

 > Signed-off-by: J?rg Krause <joerg.krause@embedded.rocks>

Committed to 2018.11.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-03-17 22:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-22  1:07 [Buildroot] [PATCH 1/2] Revert "package/libsoxr: add avutil to soxr.pc" Jörg Krause
2019-02-22  1:07 ` [Buildroot] [PATCH 2/2] package/libsoxr: add patch to add Libs.private in soxr.pc Jörg Krause
2019-03-04 21:36   ` Peter Korsgaard
2019-03-17 22:16   ` Peter Korsgaard
2019-03-04 21:36 ` [Buildroot] [PATCH 1/2] Revert "package/libsoxr: add avutil to soxr.pc" Peter Korsgaard
2019-03-17 22:16 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.