Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 2/3] package/mesa3d-headers: fix install of dri.pc
Date: Sun, 26 Apr 2020 11:21:31 +0200	[thread overview]
Message-ID: <20200426092131.GV5035@scaer> (raw)
In-Reply-To: <20191023062220.5646-2-bernd.kuhls@t-online.de>

Bernd, All,

On 2019-10-23 08:22 +0200, Bernd Kuhls spake thusly:
> Due to the switch of mesa3d to the meson build system the upstream
> tarball does not include dri.pc.in anymore, it is created during the
> build now:
> https://cgit.freedesktop.org/mesa/mesa/tree/src/mesa/drivers/dri/meson.build?h=19.2#n93
> 
> In order to provide dri.pc we need to add a version taken from a dri-
> based mesa3d build to our source repository, by doing so we can reduce
> the number of sed commands.
> 
> Without this patch the build of xserver_xorg-server, switched to virtual
> opengl provider, will fail:
> 
> checking for XSERVERCFLAGS... no
> configure: error: Package requirements (fixesproto >= 5.0 damageproto
>  >= 1.1 xcmiscproto >= 1.2.0 xtrans >= 1.3.5 bigreqsproto >= 1.1.0
>  xproto >= 7.0.31 randrproto >= 1.6.0 renderproto >= 0.11 xextproto
>  >= 7.2.99.901 inputproto >= 2.3 kbproto >= 1.0.3 fontsproto >= 2.1.3
>  pixman-1 >= 0.27.2 videoproto recordproto >= 1.13.99.1 resourceproto
>  >= 1.2.0 xf86driproto >= 2.1.0 glproto >= 1.4.17 dri >= 7.8.0 dri3proto
>  presentproto >= 1.1 xineramaproto xkbfile  pixman-1 >= 0.27.2 xfont2
>  >= 2.0.0 xau xshmfence >= 1.1 xdmcp) were not met:
> 
> Package 'dri', required by 'virtual:world', not found
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>

I have entirely reworked the commit log to be more explicit about the
meson buildsystem referecne that is confusing.

Applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
> v2: no changes, included in new series switching xserver_xorg-server
>     to virtual opengl provider
> 
>  package/mesa3d-headers/dri.pc            | 10 ++++++++++
>  package/mesa3d-headers/mesa3d-headers.mk |  9 ++-------
>  2 files changed, 12 insertions(+), 7 deletions(-)
>  create mode 100644 package/mesa3d-headers/dri.pc
> 
> diff --git a/package/mesa3d-headers/dri.pc b/package/mesa3d-headers/dri.pc
> new file mode 100644
> index 0000000000..bd9a33b6c6
> --- /dev/null
> +++ b/package/mesa3d-headers/dri.pc
> @@ -0,0 +1,10 @@
> +prefix=/usr
> +libdir=${prefix}/lib
> +includedir=${prefix}/include
> +
> +dridriverdir=/usr/lib/dri
> +
> +Name: dri
> +Description: Direct Rendering Infrastructure
> +Version: @VERSION@
> +Cflags: -I${includedir}
> diff --git a/package/mesa3d-headers/mesa3d-headers.mk b/package/mesa3d-headers/mesa3d-headers.mk
> index 8670184742..99d6e52498 100644
> --- a/package/mesa3d-headers/mesa3d-headers.mk
> +++ b/package/mesa3d-headers/mesa3d-headers.mk
> @@ -34,13 +34,8 @@ ifeq ($(BR2_PACKAGE_XORG7),y)
>  # Not using $(SED) because we do not want to work in-place, and $(SED)
>  # contains -i.
>  define MESA3D_HEADERS_BUILD_DRI_PC
> -	sed -e 's:@\(exec_\)\?prefix@:/usr:' \
> -	    -e 's:@libdir@:$${exec_prefix}/lib:' \
> -	    -e 's:@includedir@:$${prefix}/include:' \
> -	    -e 's:@DRI_DRIVER_INSTALL_DIR@:$${libdir}/dri:' \
> -	    -e 's:@VERSION@:$(MESA3D_HEADERS_VERSION):' \
> -	    -e 's:@DRI_PC_REQ_PRIV@::' \
> -	    $(@D)/src/mesa/drivers/dri/dri.pc.in \
> +	sed -e 's:@VERSION@:$(MESA3D_HEADERS_VERSION):' \
> +	    package/mesa3d-headers/dri.pc \
>  	    >$(@D)/src/mesa/drivers/dri/dri.pc
>  endef
>  
> -- 
> 2.20.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

  parent reply	other threads:[~2020-04-26  9:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-23  6:22 [Buildroot] [PATCH 1/3] package/x11r7/xserver_xorg-server: fix optional glx dependency Bernd Kuhls
2019-10-23  6:22 ` [Buildroot] [PATCH v2 2/3] package/mesa3d-headers: fix install of dri.pc Bernd Kuhls
2020-02-18 13:44   ` Vincent Fazio
2020-04-25 20:58   ` Thomas Petazzoni
2020-04-25 21:15     ` Bernd Kuhls
2020-04-25 21:26     ` Yann E. MORIN
2020-04-26  9:21   ` Yann E. MORIN [this message]
2020-05-08 14:42     ` Peter Korsgaard
2019-10-23  6:22 ` [Buildroot] [PATCH 3/3] package/x11r7/xserver_xorg-server: switch to virtual opengl provider Bernd Kuhls
2019-10-25 18:10   ` Thomas Petazzoni
2019-10-25 20:26     ` Bernd Kuhls
2019-10-25 18:10 ` [Buildroot] [PATCH 1/3] package/x11r7/xserver_xorg-server: fix optional glx dependency Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200426092131.GV5035@scaer \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox