#1 Use GCC with Objective C support from EPEL on RHEL 8+ (#1981947)
Merged 2 years ago by robert. Opened 2 years ago by robert.
Unknown source epel8-gobjc  into  rawhide

@@ -0,0 +1,31 @@

+ From 8aed502984426e008710bab2b44249489b549a22 Mon Sep 17 00:00:00 2001

+ From: Robert Scheck <robert@fedoraproject.org>

+ Date: Mon, 27 Sep 2021 23:15:48 +0200

+ Subject: [PATCH] Check for gobjc availability on CentOS/RHEL/Rocky 8 (and

+  later) (fixes #79)

+ 

+ Red Hat decided to remove the support for the Objective C language for Red

+ Hat Enterprise Linux 8 (and later) from the GCC packages. Unfortunately GCC

+ is not really modular, so /usr/bin/gcc keeps telling "Objective-C compiler

+ not installed on this system" until the alternative GCC /usr/bin/gobjc from

+ the gcc-objc RPM package from Fedora EPEL 8 is being used.

+ ---

+  configure.ac | 4 ++--

+  1 file changed, 2 insertions(+), 2 deletions(-)

+ 

+ diff --git a/configure.ac b/configure.ac

+ index bcc0be5..8f2c8d8 100644

+ --- a/configure.ac

+ +++ b/configure.ac

+ @@ -6,9 +6,9 @@ AC_CONFIG_HEADERS(config.h)

+  AC_CANONICAL_SYSTEM

+  

+  # Compiler

+ -AC_PROG_CC(clang gcc)

+ +AC_PROG_CC(clang gobjc gcc)

+  AC_PROG_CC_C99

+ -AC_PROG_OBJC(clang gcc)

+ +AC_PROG_OBJC(clang gobjc gcc)

+  TR_WERROR

+  AC_CACHE_SAVE

+  

file modified
+7 -1
@@ -1,7 +1,7 @@

  Summary: OpenVPN plugin for LDAP authentication

  Name: openvpn-auth-ldap

  Version: 2.0.4

- Release: 5%{?dist}

+ Release: 6%{?dist}

  License: BSD

  URL: https://github.com/threerings/openvpn-auth-ldap

  Source0: https://github.com/threerings/openvpn-auth-ldap/archive/auth-ldap-%{version}.tar.gz
@@ -9,6 +9,8 @@

  Patch2: auth-ldap-tools-CFLAGS.patch

  # Patch from upstream issue n°4, to fix tap bridging.

  Patch4: auth-ldap-remoteAddress.patch

+ # Use GCC with Objective C support from EPEL on CentOS/RHEL 8+

+ Patch5: https://github.com/threerings/openvpn-auth-ldap/commit/8aed502984426e008710bab2b44249489b549a22.patch#/auth-ldap-epel-gcc-objc.patch

  # This is a plugin not linked against a lib, so hardcode the requirement

  # since we require the parent configuration and plugin directories

  Requires: openvpn >= 2.0
@@ -32,6 +34,7 @@

  %setup -q -n %{name}-auth-ldap-%{version}

  %patch2 -p1 -b .tools-CFLAGS

  %patch4 -p1 -b .remoteAddress

+ %patch5 -p1 -b .epel-gcc-objc

  # Fix plugin from the instructions in the included README

  sed -i 's|^plugin .*| plugin %{_libdir}/openvpn/plugins/openvpn-auth-ldap.so "/etc/openvpn/auth/ldap.conf"|g' README.md

  autoconf
@@ -74,6 +77,9 @@

  

  

  %changelog

+ * Mon Sep 27 2021 Robert Scheck <robert@fedoraproject.org> - 2.0.4-6

+ - Use GCC with Objective C support from EPEL on RHEL 8+ (#1981947)

+ 

  * Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-5

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

  

no initial comment

Pull-Request has been merged by robert

2 years ago