List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:August 3 2007 4:52pm
Subject:Re: problem installing mysql++ devel with RPMs on CentOS 5
View as plain text  
Brandon Gauthier wrote:
> 
> Isn't the convention a '-' there? I don't have mysql++=2.3.2-1 I have
> mysql++-2.3.2-1 I'm pretty sure its just a typo when the rpm was made,
> the - and = are right next to each other on the keyboard.

Well yes, the bug is in the spec file, but no, that's not it.  The 
syntax for that line is just wrong.  The BuildRequires line above it has 
a related problem, too.  It's kind of surprising that it's lasted this 
long.  It makes me wonder who's been downloading all those RPMs and then 
not using them, because they are in fact unusable.

I don't know that I will make another 2.x release, so while waiting for 
v3, the simplest thing would be to fix it yourself:

	$ patch -p0 < spec-requires.patch
	$ ./bootstrap [any configure script options here]
	$ su -c 'make rpm'

Index: mysql++.spec.in
===================================================================
--- mysql++.spec.in	(revision 1727)
+++ mysql++.spec.in	(working copy)
@@ -7,7 +7,7 @@
 URL:        http://tangentsoft.net/mysql++/
 Source0:    http://tangentsoft.net/mysql++/releases/mysql++-%{version}.tar.gz
 BuildRoot:  %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
-BuildRequires: MySQL-shared mysql-devel
+BuildRequires: MySQL-shared, mysql-devel
 
 %description
 MySQL++ makes working with MySQL server queries as easy as working
@@ -18,7 +18,7 @@
 %package devel
 Summary:   MySQL++ developer files (headers, examples, etc.)
 Group:     Development/Libraries
-Requires:  mysql++-%{version}-%{release} mysql-devel
+Requires:  mysql++ = %{version}-%{release}, mysql-devel
 
 %description devel
 These are the files needed to compile MySQL++ based programs, plus

Thread
problem installing mysql++ devel with RPMs on CentOS 5Brandon Gauthier2 Aug
  • Re: problem installing mysql++ devel with RPMs on CentOS 5Warren Young3 Aug
    • Re: problem installing mysql++ devel with RPMs on CentOS 5Brandon Gauthier3 Aug
      • Re: problem installing mysql++ devel with RPMs on CentOS 5Warren Young3 Aug