mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <mol@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Lucas Stach <l.stach@pengutronix.de>
Subject: Re: [ptxdist] [APPLIED] fbgrab: remove from staging
Date: Thu, 09 Apr 2020 18:54:25 +0200	[thread overview]
Message-ID: <E1jMaRd-0005Wy-GA@dude02.lab.pengutronix.de> (raw)
In-Reply-To: <20200408193002.18077-4-l.stach@pengutronix.de>

Thanks, applied as 998885ca0aebcca14a8e2dcdce4e3663aa46df3a.

Michael

[sent from post-receive hook]

On Thu, 09 Apr 2020 18:54:25 +0200, Lucas Stach <l.stach@pengutronix.de> wrote:
> WPE launcher and webapp container.
> 
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> Message-Id: <20200408193002.18077-4-l.stach@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/patches/cog-0.6.0/0001-cmake-Fix-passing-DWAYLAND_PROTOCOLS-on-command-line.patch b/patches/cog-0.6.0/0001-cmake-Fix-passing-DWAYLAND_PROTOCOLS-on-command-line.patch
> new file mode 100644
> index 000000000000..b4686bd629d6
> --- /dev/null
> +++ b/patches/cog-0.6.0/0001-cmake-Fix-passing-DWAYLAND_PROTOCOLS-on-command-line.patch
> @@ -0,0 +1,103 @@
> +From: Joshua Watt <Joshua.Watt@garmin.com>
> +Date: Mon, 30 Mar 2020 14:50:46 -0500
> +Subject: [PATCH] cmake: Fix passing -DWAYLAND_PROTOCOLS= on command line
> +
> +The optimization to check if WAYLAND_PROTOCOLS was set on the cmake
> +comamnd line was skipping the function implementations, making cmake
> +fail if it was used. The simple fix is to define the functions, then
> +bail of out WAYLAND_PROTOCOLS is already defined.
> +
> +Signed-off-by: Joshua Watt <Joshua.Watt@garmin.com>
> +---
> + cmake/FindWaylandProtocols.cmake | 74 ++++++++++++++++++++--------------------
> + 1 file changed, 37 insertions(+), 37 deletions(-)
> +
> +diff --git a/cmake/FindWaylandProtocols.cmake b/cmake/FindWaylandProtocols.cmake
> +index 49a3cd50f91b..31f429cb2732 100644
> +--- a/cmake/FindWaylandProtocols.cmake
> ++++ b/cmake/FindWaylandProtocols.cmake
> +@@ -34,43 +34,6 @@ find_package(WaylandScanner)
> + 
> + set(WAYLAND_PROTOCOLS "" CACHE FILEPATH "Path to the wayland-protocols data directory")
> + 
> +-# Already detected included and directory found?
> +-if (WAYLAND_PROTOCOLS AND IS_DIRECTORY "${WAYLAND_PROTOCOLS}")
> +-    return ()
> +-endif ()
> +-
> +-#
> +-# Method 1: If -DWAYLAND_PROTOCOLS=... was passed in the command line,
> +-#           check whether the "stable" and "unstable" subdirectories
> +-#           exist.
> +-#
> +-if (WAYLAND_PROTOCOLS)
> +-    get_filename_component(WAYLAND_PROTOCOLS "${WAYLAND_PROTOCOLS}" REALPATH)
> +-    if (NOT IS_DIRECTORY "${WAYLAND_PROTOCOLS}/stable")
> +-        set(WAYLAND_PROTOCOLS "")
> +-    endif ()
> +-    if (NOT IS_DIRECTORY "${WAYLAND_PROTOCOLS}/unstable")
> +-        set(WAYLAND_PROTOCOLS "")
> +-    endif ()
> +-endif ()
> +-
> +-#
> +-# Method 2: Try to find the directory using pkg-config.
> +-#
> +-if (NOT DEFINED WAYLAND_PROTOCOLS OR NOT WAYLAND_PROTOCOLS)
> +-    find_package(PkgConfig)
> +-    pkg_check_modules(WAYLAND_PROTOCOLS_PC wayland-protocols)
> +-    if (WAYLAND_PROTOCOLS_PC_FOUND)
> +-        pkg_get_variable(WAYLAND_PROTOCOLS_PC_DATADIR wayland-protocols pkgdatadir)
> +-        if (WAYLAND_PROTOCOLS_PC_DATADIR)
> +-            set(WAYLAND_PROTOCOLS "${WAYLAND_PROTOCOLS_PC_DATADIR}")
> +-        endif ()
> +-    endif ()
> +-    unset(WAYLAND_PROTOCOLS_PC)
> +-    unset(WAYLAND_PROTOCOLS_PC_DATADIR)
> +-endif ()
> +-
> +-
> + include(FindPackageHandleStandardArgs)
> + FIND_PACKAGE_HANDLE_STANDARD_ARGS(
> +     WAYLAND_PROTOCOLS
> +@@ -206,3 +169,40 @@ function(add_wayland_protocol _target _kind _protocol)
> +         target_sources(${_target} PRIVATE "${proto_server}")
> +     endif ()
> + endfunction()
> ++
> ++# Already detected included and directory found?
> ++if (WAYLAND_PROTOCOLS AND IS_DIRECTORY "${WAYLAND_PROTOCOLS}")
> ++    return ()
> ++endif ()
> ++
> ++#
> ++# Method 1: If -DWAYLAND_PROTOCOLS=... was passed in the command line,
> ++#           check whether the "stable" and "unstable" subdirectories
> ++#           exist.
> ++#
> ++if (WAYLAND_PROTOCOLS)
> ++    get_filename_component(WAYLAND_PROTOCOLS "${WAYLAND_PROTOCOLS}" REALPATH)
> ++    if (NOT IS_DIRECTORY "${WAYLAND_PROTOCOLS}/stable")
> ++        set(WAYLAND_PROTOCOLS "")
> ++    endif ()
> ++    if (NOT IS_DIRECTORY "${WAYLAND_PROTOCOLS}/unstable")
> ++        set(WAYLAND_PROTOCOLS "")
> ++    endif ()
> ++endif ()
> ++
> ++#
> ++# Method 2: Try to find the directory using pkg-config.
> ++#
> ++if (NOT DEFINED WAYLAND_PROTOCOLS OR NOT WAYLAND_PROTOCOLS)
> ++    find_package(PkgConfig)
> ++    pkg_check_modules(WAYLAND_PROTOCOLS_PC wayland-protocols)
> ++    if (WAYLAND_PROTOCOLS_PC_FOUND)
> ++        pkg_get_variable(WAYLAND_PROTOCOLS_PC_DATADIR wayland-protocols pkgdatadir)
> ++        if (WAYLAND_PROTOCOLS_PC_DATADIR)
> ++            set(WAYLAND_PROTOCOLS "${WAYLAND_PROTOCOLS_PC_DATADIR}")
> ++        endif ()
> ++    endif ()
> ++    unset(WAYLAND_PROTOCOLS_PC)
> ++    unset(WAYLAND_PROTOCOLS_PC_DATADIR)
> ++endif ()
> ++
> diff --git a/patches/cog-0.6.0/series b/patches/cog-0.6.0/series
> new file mode 100644
> index 000000000000..3c5f3e8d5e13
> --- /dev/null
> +++ b/patches/cog-0.6.0/series
> @@ -0,0 +1,4 @@
> +# generated by git-ptx-patches
> +#tag:base --start-number 1
> +0001-cmake-Fix-passing-DWAYLAND_PROTOCOLS-on-command-line.patch
> +# fe47d1ea6f9b17c63023088fd025091b  - git-ptx-patches magic
> diff --git a/rules/cog.in b/rules/cog.in
> new file mode 100644
> index 000000000000..23b9de3cd931
> --- /dev/null
> +++ b/rules/cog.in
> @@ -0,0 +1,12 @@
> +## SECTION=applications
> +
> +config COG
> +	tristate
> +	prompt "cog"
> +	select HOST_CMAKE
> +	select HOST_NINJA
> +	select WAYLAND_PROTOCOLS
> +	select WPEWEBKIT
> +	select WPEBACKEND_FDO
> +	help
> +	  Cog launcher and webapp container.
> diff --git a/rules/cog.make b/rules/cog.make
> new file mode 100644
> index 000000000000..19a70b941d6f
> --- /dev/null
> +++ b/rules/cog.make
> @@ -0,0 +1,71 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2019 by Philippe Normand <philn@igalia.com>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_COG) += cog
> +
> +#
> +# Paths and names
> +#
> +COG_VERSION		:= 0.6.0
> +COG_MD5			:= a97df4f0e2d25f4da7cd9bb55294d30e
> +COG			:= cog-$(COG_VERSION)
> +COG_SUFFIX		:= tar.xz
> +COG_URL			:= https://wpewebkit.org/releases/$(COG).$(COG_SUFFIX)
> +COG_SOURCE		:= $(SRCDIR)/$(COG).$(COG_SUFFIX)
> +COG_DIR			:= $(BUILDDIR)/$(COG)
> +COG_LICENSE		:= MIT
> +COG_LICENSE_FILES	:= file://COPYING;md5=bf1229cd7425b302d60cdb641b0ce5fb
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +#
> +# cmake
> +#
> +COG_CONF_TOOL	:= cmake
> +COG_CONF_OPT	:= \
> +	$(CROSS_CMAKE_USR) \
> +	-G Ninja \
> +	-DCOG_APPID= \
> +	-DCOG_BUILD_PROGRAMS=ON \
> +	-DCOG_DBUS_OWN_USER= \
> +	-DCOG_DBUS_SYSTEM_BUS=OFF \
> +	-DCOG_HOME_URI=https://ptxdist.org/ \
> +	-DCOG_PLATFORM_DRM=OFF \
> +	-DCOG_PLATFORM_FDO=ON \
> +	-DCOG_USE_WEBKITGTK=OFF \
> +	-DCOG_WESTON_DIRECT_DISPLAY=OFF \
> +	-DINSTALL_MAN_PAGES=OFF \
> +	-DWAYLAND_PROTOCOLS=$(PTXDIST_SYSROOT_TARGET)/usr/share/wayland-protocols
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# -----------------------------------------------------------------------------
> +
> +$(STATEDIR)/cog.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, cog)
> +	@$(call install_fixup, cog,PRIORITY,optional)
> +	@$(call install_fixup, cog,SECTION,base)
> +	@$(call install_fixup, cog,AUTHOR,"Philippe Normand <philn@igalia.com>")
> +	@$(call install_fixup, cog,DESCRIPTION,"WPE launcher and webapp container")
> +
> +	@$(call install_copy, cog, 0, 0, 0755, -, /usr/bin/cog)
> +	@$(call install_lib, cog, 0, 0, 644, libcogplatform-fdo)
> +	@$(call install_lib, cog, 0, 0, 644, libcogcore)
> +
> +	@$(call install_finish, cog)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2020-04-09 16:54 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-08 19:29 [ptxdist] [PATCH 1/4] libwpe: new package Lucas Stach
2020-04-08 19:30 ` [ptxdist] [PATCH 2/4] wpebackend-fdo: " Lucas Stach
2020-04-09 16:54   ` [ptxdist] [APPLIED] fbgrab: remove from staging Michael Olbrich
2020-04-08 19:30 ` [ptxdist] [PATCH 3/4] wpewebkit: new package Lucas Stach
2020-04-09 16:54   ` [ptxdist] [APPLIED] fbgrab: remove from staging Michael Olbrich
2020-04-08 19:30 ` [ptxdist] [PATCH 4/4] cog: new package Lucas Stach
2020-04-09 16:54   ` Michael Olbrich [this message]
2020-04-09 17:25     ` [ptxdist] [APPLIED] fbgrab: remove from staging Michael Olbrich
2020-04-09 12:55 ` [ptxdist] [PATCH 1/4] libwpe: new package Roland Hieber
2020-04-09 16:54 ` [ptxdist] [APPLIED] fbgrab: remove from staging Michael Olbrich
  -- strict thread matches above, loose matches on Subject: below --
2020-04-09  9:11 [ptxdist] [PATCH v2 2/2] fbgrab: version bump 1.0 -> 1.3.1 Roland Hieber
2020-04-09 16:54 ` [ptxdist] [APPLIED] fbgrab: remove from staging Michael Olbrich
2020-04-09  9:11 [ptxdist] [PATCH v2 1/2] " Roland Hieber
2020-04-09 16:54 ` [ptxdist] [APPLIED] " Michael Olbrich
2020-04-08 12:47 [ptxdist] [PATCH] xorg-lib-x11: version bump 1.6.8 -> 1.6.9 Lucas Stach
2020-04-09 16:54 ` [ptxdist] [APPLIED] fbgrab: remove from staging Michael Olbrich
2020-04-08 12:32 [ptxdist] [PATCH v3] syslogng: update to 3.25.1 Matthias Schiffer
2020-04-09 16:54 ` [ptxdist] [APPLIED] fbgrab: remove from staging Michael Olbrich
2020-04-03 17:30 [ptxdist] [PATCH] dropbear: enable/disable sha1 include key exchange algorithms Bruno Thomsen
2020-04-09 16:54 ` [ptxdist] [APPLIED] fbgrab: remove from staging Michael Olbrich

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=E1jMaRd-0005Wy-GA@dude02.lab.pengutronix.de \
    --to=mol@pengutronix.de \
    --cc=l.stach@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /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