Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] coin3: fix cmake support for crossbuild
@ 2021-04-28 20:22 yopito
  2021-04-28 21:08 ` ericonr
  2021-04-28 21:08 ` [PR PATCH] [Merged]: " ericonr
  0 siblings, 2 replies; 3+ messages in thread
From: yopito @ 2021-04-28 20:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1976 bytes --]

There is a new pull request by yopito against master on the void-packages repository

https://github.com/yopito/void-packages coin3.cmake.crossbuild
https://github.com/void-linux/void-packages/pull/30564

coin3: fix cmake support for crossbuild
CMAKE_INSTALL_INCLUDEDIR must be a relative path. This way, generated
coin-export.cmake will compute include path at runtime against installed path,
that is fine for crossbuild.
If full path is provided, generated coin-export.cmake use directly this full
path, that is wrong with of crossbuild usage.

Fine to crossbuild python3-pivy 0.6.6 (PR to come)

<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/30564.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-coin3.cmake.crossbuild-30564.patch --]
[-- Type: text/x-diff, Size: 1192 bytes --]

From d785f9fa783f869bf9ca5fb369d385c616aec994 Mon Sep 17 00:00:00 2001
From: yopito <pierre.bourgin@free.fr>
Date: Wed, 28 Apr 2021 22:01:38 +0200
Subject: [PATCH] coin3: fix cmake support for crossbuild

CMAKE_INSTALL_INCLUDEDIR must be a relative path. This way, generated
coin-export.cmake will compute include path at runtime against installed path,
that is fine for crossbuild.
If full path is provided, generated coin-export.cmake use directly this full
path, that is wrong with of crossbuild usage.

Fine to crossbuild python3-pivy 0.6.6
---
 srcpkgs/coin3/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/coin3/template b/srcpkgs/coin3/template
index 8f7218c2e8c3..2130c0b8b263 100644
--- a/srcpkgs/coin3/template
+++ b/srcpkgs/coin3/template
@@ -1,10 +1,10 @@
 # Template file for 'coin3'
 pkgname=coin3
 version=4.0.0
-revision=1
+revision=2
 wrksrc="coin-Coin-${version}"
 build_style=cmake
-configure_args="-DCMAKE_INSTALL_INCLUDEDIR=/usr/include/Coin3
+configure_args="-DCMAKE_INSTALL_INCLUDEDIR=include/Coin3
  -DCOIN_BUILD_TESTS=OFF -DCOIN_BUILD_DOCUMENTATION=ON"
 hostmakedepends="doxygen graphviz"
 makedepends="boost-devel glu-devel"

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

* Re: coin3: fix cmake support for crossbuild
  2021-04-28 20:22 [PR PATCH] coin3: fix cmake support for crossbuild yopito
@ 2021-04-28 21:08 ` ericonr
  2021-04-28 21:08 ` [PR PATCH] [Merged]: " ericonr
  1 sibling, 0 replies; 3+ messages in thread
From: ericonr @ 2021-04-28 21:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 231 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/30564#issuecomment-828781612

Comment:
Next time, you can put both commits together in the same PR, makes reviewing a bit easier.

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

* Re: [PR PATCH] [Merged]: coin3: fix cmake support for crossbuild
  2021-04-28 20:22 [PR PATCH] coin3: fix cmake support for crossbuild yopito
  2021-04-28 21:08 ` ericonr
@ 2021-04-28 21:08 ` ericonr
  1 sibling, 0 replies; 3+ messages in thread
From: ericonr @ 2021-04-28 21:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1812 bytes --]

There's a merged pull request on the void-packages repository

coin3: fix cmake support for crossbuild
https://github.com/void-linux/void-packages/pull/30564

Description:
CMAKE_INSTALL_INCLUDEDIR must be a relative path. This way, generated
coin-export.cmake will compute include path at runtime against installed path,
that is fine for crossbuild.
If full path is provided, generated coin-export.cmake use directly this full
path, that is wrong with of crossbuild usage.

Fine to crossbuild python3-pivy 0.6.6 (PR to come)

<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

end of thread, other threads:[~2021-04-28 21:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-28 20:22 [PR PATCH] coin3: fix cmake support for crossbuild yopito
2021-04-28 21:08 ` ericonr
2021-04-28 21:08 ` [PR PATCH] [Merged]: " ericonr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).