[opensuse-buildservice] BuildRequires: libmysqlclient-devel on Fedora?
All, My simple open2300 project is now building for OpenSUSE. Couple questions: 1) I have a "BuildRequires: libmysqlclient-devel" directive in the spec file. If I try to add the fedora repository, it tells me that package does not exist. All I need is the mysql.h file. Is there a set of cross references that tell what package I need for fedora? Is there a more distro neutral way to say I need the package that provides mysql.h? If not, how do I have different BuildRequires statements for different distros? 2) I tried to add the xUbuntu_8.10 repository. I'm getting a status of "excluded". So far that is the only Ubuntu repository I've tried. Does it take something special to make a Ubuntu package not be "excluded"? Thanks Greg -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99 Days Litigation White Paper - http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf The Norcross Group The Intersection of Evidence & Technology http://www.norcrossgroup.com -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi
Dne Mon, 6 Apr 2009 09:46:03 -0400
Greg Freemyer
My simple open2300 project is now building for OpenSUSE.
Couple questions:
1) I have a "BuildRequires: libmysqlclient-devel" directive in the spec file.
If I try to add the fedora repository, it tells me that package does not exist. All I need is the mysql.h file.
Fedora has mysql-devel.
Is there a set of cross references that tell what package I need for fedora?
Is there a more distro neutral way to say I need the package that provides mysql.h?
If not, how do I have different BuildRequires statements for different distros?
I ended up with evil set of if statements: http://viewsvn.cihar.com/viewvc.cgi/gammu/trunk/gammu.spec?view=markup -- Michal Čihař | http://cihar.com | http://blog.cihar.com
On Mon, Apr 6, 2009 at 9:49 AM, Michal Čihař
Hi
Dne Mon, 6 Apr 2009 09:46:03 -0400 Greg Freemyer
napsal(a): My simple open2300 project is now building for OpenSUSE.
Couple questions:
1) I have a "BuildRequires: libmysqlclient-devel" directive in the spec file.
If I try to add the fedora repository, it tells me that package does not exist. All I need is the mysql.h file.
Fedora has mysql-devel.
Is there a set of cross references that tell what package I need for fedora?
Is there a more distro neutral way to say I need the package that provides mysql.h?
If not, how do I have different BuildRequires statements for different distros?
I ended up with evil set of if statements: http://viewsvn.cihar.com/viewvc.cgi/gammu/trunk/gammu.spec?view=markup
Thanks, that helps a lot, but I'm still confused. It now works for 32-bit Fedora 9 and 10, but fails for a 64bit compile. I reviewed your spec file as well as https://build.opensuse.org/package/view_file?file=gammu.spec&package=gammu&project=home%3ANijel Nijel's project in particular shows it successfully builds for 64-bit. I don't see either of those spec files treating Fedora 32-bit and 64-bit differently. For the 64-bit compile I get: gcc -Wall -O3 -DVERSION=\"1.11\" -o mysql2300 mysql2300.c rw2300.c linux2300.c -lm -I/usr/include/mysql -L/usr/lib/mysql -lmysqlclient /usr/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status make: *** [mysql2300] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.75188 (%build) For both Fedora 9 and 10 with the 64-bit build. So I have the mysql.h file, but I don't have the actual library. == Separately, I added a Debian repository and both Debian and Ubuntu are giving "excluded" as my status. I suspect I need to add something to the specfile to get them to try and build, but I'm not sure what. Greg -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99 Days Litigation White Paper - http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf The Norcross Group The Intersection of Evidence & Technology http://www.norcrossgroup.com -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi
Dne Mon, 6 Apr 2009 12:39:31 -0400
Greg Freemyer
Thanks, that helps a lot, but I'm still confused. It now works for 32-bit Fedora 9 and 10, but fails for a 64bit compile.
I reviewed your spec file as well as https://build.opensuse.org/package/view_file?file=gammu.spec&package=gammu&project=home%3ANijel
Nijel's project in particular shows it successfully builds for 64-bit.
Well Nijel is me ;-).
I don't see either of those spec files treating Fedora 32-bit and 64-bit differently.
For the 64-bit compile I get: gcc -Wall -O3 -DVERSION=\"1.11\" -o mysql2300 mysql2300.c rw2300.c linux2300.c -lm -I/usr/include/mysql -L/usr/lib/mysql -lmysqlclient /usr/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status make: *** [mysql2300] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.75188 (%build)
You have wrong path to -L, it should contain lib64... -- Michal Čihař | http://cihar.com | http://blog.cihar.com
If I try to add the fedora repository, it tells me that package does not exist. All I need is the mysql.h file.
Fedora has mysql-devel.
I think It should be added to the Substitutes instead if-then clauses. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Matwey V. Kornilov napsal(a):
If I try to add the fedora repository, it tells me that package does not exist. All I need is the mysql.h file. Fedora has mysql-devel.
I think It should be added to the Substitutes instead if-then clauses.
Or just use mysql-devel everywhere, the openSUSE package has Provides: mysql-devel. Michal -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Michal / Michal
Using mysql-devel everywhere worked for me and is clearly the most
elegant solution for this specific issue.
Thanks
Greg
On Tue, Apr 7, 2009 at 4:39 AM, Michal Marek
Matwey V. Kornilov napsal(a):
If I try to add the fedora repository, it tells me that package does not exist. All I need is the mysql.h file. Fedora has mysql-devel.
I think It should be added to the Substitutes instead if-then clauses.
Or just use mysql-devel everywhere, the openSUSE package has Provides: mysql-devel.
Michal -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
-- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99 Days Litigation White Paper - http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf The Norcross Group The Intersection of Evidence & Technology http://www.norcrossgroup.com -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi
Dne Tue, 7 Apr 2009 10:11:44 -0400
Greg Freemyer
Using mysql-devel everywhere worked for me and is clearly the most elegant solution for this specific issue.
Thanks for good tip! Is there some wiki page with such univeral names, which work on all distros? -- Michal Čihař | http://cihar.com | http://blog.cihar.com
participants (4)
-
Greg Freemyer
-
Matwey V. Kornilov
-
Michal Marek
-
Michal Čihař