GithubHelp home page GithubHelp logo

Fix building on sle12 about mysql-packaging HOT 7 CLOSED

opensuse avatar opensuse commented on August 27, 2024
Fix building on sle12

from mysql-packaging.

Comments (7)

scarabeusiv avatar scarabeusiv commented on August 27, 2024

This should break it on leap which has readline5-devel no?

from mysql-packaging.

darix avatar darix commented on August 27, 2024

On 2015-11-17 11:00:35 -0800, Tomáš Chvátal wrote:

This should break it on leap which has readline5-devel no?

it actually succeeds but it will use libedit. I needed builds for sle12
to get the exec fix fir mysql_start().

darix

       openSUSE - SUSE Linux is my linux
           openSUSE is good for you
               www.opensuse.org

from mysql-packaging.

darix avatar darix commented on August 27, 2024

from mysql-packaging.

darix avatar darix commented on August 27, 2024

tbh i would be interested in a matrix for "which readline library do you want to use on which target"

from mysql-packaging.

darix avatar darix commented on August 27, 2024

This should even work on sle11

Index: mariadb-101.spec
===================================================================
--- mariadb-101.spec    (revision 43)
+++ mariadb-101.spec    (working copy)
@@ -128,8 +128,12 @@
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %{?systemd_requires}
 # On mariadb we want readline5 and on mysql we use libedit from system
-%if "%{name}" == "mariadb" && (0%{?suse_version} != 1315)
+%if ("%{name}" == "mariadb" ) && ! (( 0%{?suse_version} == 1315 ) && ( ! 0%{?is_opensuse} ))
+%if 0%{?suse_version} >= 1310
 BuildRequires:  readline5-devel
+%else
+BuildRequires:  readline-devel
+%endif
 %else
 BuildRequires:  libedit-devel
 %endif

from mysql-packaging.

kstreitova avatar kstreitova commented on August 27, 2024

It should be like that (for mysql-packaging git)

Product Library
SLE12 libedit
13.1 readline5
13.2 readline5
Factory readline5
Leap readline5

As we are not interested in SLE11 here I would simplify the condition to:

 %{?systemd_requires}
 # On mariadb we want readline5 and on mysql we use libedit from system
-%if "%{name}" == "mariadb" && (0%{?suse_version} != 1315)
+%if ("%{name}" == "mariadb" ) && ! (( 0%{?suse_version} == 1315 ) && ( ! 0%{?is_opensuse} ))
 BuildRequires:  readline5-devel
 %else
 BuildRequires:  libedit-devel
 %endif

from mysql-packaging.

kstreitova avatar kstreitova commented on August 27, 2024

Submitted by cc5b28e

Closing.

from mysql-packaging.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.