All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: buildroot@buildroot.org
Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Subject: Re: [Buildroot] [PATCH] package/hiredis: do not install nuget packaging file
Date: Sat, 27 Jan 2024 17:44:40 +0100	[thread overview]
Message-ID: <ZbUy-BhrFN161cf5@landeda> (raw)
In-Reply-To: <20240120132840.3274187-1-yann.morin.1998@free.fr>

All,

On 2024-01-20 14:28 +0100, Yann E. MORIN spake thusly:
> The NuGet packaging description file is installed as:
>     $(DEST_DIR)/build/native/hiredis.targets
> 
> This is a sprurious file that has nothing to do on a Linux system,
> whether that be in host/, staging/, or target/.
> 
> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
> Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  ...ption-to-not-install-NuGet-packaging.patch | 51 +++++++++++++++++++
>  package/hiredis/hiredis.mk                    |  4 +-
>  2 files changed, 53 insertions(+), 2 deletions(-)
>  create mode 100644 package/hiredis/0001-CMakeList-add-option-to-not-install-NuGet-packaging.patch
> 
> diff --git a/package/hiredis/0001-CMakeList-add-option-to-not-install-NuGet-packaging.patch b/package/hiredis/0001-CMakeList-add-option-to-not-install-NuGet-packaging.patch
> new file mode 100644
> index 0000000000..3997e78a07
> --- /dev/null
> +++ b/package/hiredis/0001-CMakeList-add-option-to-not-install-NuGet-packaging.patch
> @@ -0,0 +1,51 @@
> +From 3b7956ef4140df78cb65e253744782587e3b66e4 Mon Sep 17 00:00:00 2001
> +From: "Yann E. MORIN" <yann.morin.1998@free.fr>
> +Date: Sat, 20 Jan 2024 13:53:39 +0100
> +Subject: [PATCH] CMakeList: add option to not install NuGet packaging
> +
> +The NuGet hiredis.target packaging description file is of no use on
> +systems that are not using NuGet, like Linux systems, and the spurious
> +presence of that file is not "clean".
> +
> +Add a cmake option to allow users to disable installation of that file.
> +As some people may have relied on that file to be installed, continue to
> +install it by default.
> +
> +Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
> +Upstream: https://github.com/redis/hiredis/pull/1246

The patch was accepted upstream, so: applied to master, thanks.

Regards,
Yann E. MORIN.

> +---
> + CMakeLists.txt | 11 ++++++++---
> + 1 file changed, 8 insertions(+), 3 deletions(-)
> +
> +diff --git a/CMakeLists.txt b/CMakeLists.txt
> +index b7d6ee8..0fcf29b 100644
> +--- a/CMakeLists.txt
> ++++ b/CMakeLists.txt
> +@@ -6,6 +6,9 @@ OPTION(DISABLE_TESTS "If tests should be compiled or not" OFF)
> + OPTION(ENABLE_SSL_TESTS "Should we test SSL connections" OFF)
> + OPTION(ENABLE_EXAMPLES "Enable building hiredis examples" OFF)
> + OPTION(ENABLE_ASYNC_TESTS "Should we run all asynchronous API tests" OFF)
> ++# Historically, the NuGet file was always install; default
> ++# to ON for those who rely on that historical behaviour.
> ++OPTION(ENABLE_NUGET "Install NuGET packaging details" ON)
> +
> + MACRO(getVersionBit name)
> +   SET(VERSION_REGEX "^#define ${name} (.+)$")
> +@@ -105,9 +108,11 @@ if (MSVC AND BUILD_SHARED_LIBS)
> +         CONFIGURATIONS Debug RelWithDebInfo)
> + endif()
> +
> +-# For NuGet packages
> +-INSTALL(FILES hiredis.targets
> +-    DESTINATION build/native)
> ++if (ENABLE_NUGET)
> ++    # For NuGet packages
> ++    INSTALL(FILES hiredis.targets
> ++        DESTINATION build/native)
> ++endif()
> +
> + INSTALL(FILES hiredis.h read.h sds.h async.h alloc.h sockcompat.h
> +     DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/hiredis)
> +--
> +2.43.0
> +
> diff --git a/package/hiredis/hiredis.mk b/package/hiredis/hiredis.mk
> index a7a6d639e6..476b079336 100644
> --- a/package/hiredis/hiredis.mk
> +++ b/package/hiredis/hiredis.mk
> @@ -12,8 +12,8 @@ HIREDIS_LICENSE_FILES = COPYING
>  HIREDIS_CPE_ID_VENDOR = redislabs
>  HIREDIS_INSTALL_STAGING = YES
>  
> -HIREDIS_CONF_OPTS = -DDISABLE_TESTS=ON
> -HOST_HIREDIS_CONF_OPTS = -DDISABLE_TESTS=ON -DENABLE_SSL=OFF
> +HIREDIS_CONF_OPTS = -DENABLE_NUGET=OFF -DDISABLE_TESTS=ON
> +HOST_HIREDIS_CONF_OPTS = -DENABLE_NUGET=OFF -DDISABLE_TESTS=ON -DENABLE_SSL=OFF
>  
>  # Set CMAKE_BUILD_TYPE to Release or the libraries will be suffixed with "d"
>  # resulting in build failures when linking.
> -- 
> 2.43.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/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.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2024-01-27 16:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-20 13:28 [Buildroot] [PATCH] package/hiredis: do not install nuget packaging file Yann E. MORIN
2024-01-27 16:44 ` Yann E. MORIN [this message]
2024-02-28 16:29 ` Peter Korsgaard

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=ZbUy-BhrFN161cf5@landeda \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@buildroot.org \
    --cc=fontaine.fabrice@gmail.com \
    /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 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.