Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yum provides gettext needs gettext-devel as well #74

Closed
binarybana opened this issue Aug 11, 2014 · 6 comments
Closed

Yum provides gettext needs gettext-devel as well #74

binarybana opened this issue Aug 11, 2014 · 6 comments

Comments

@binarybana
Copy link
Contributor

At this line in the build deps script, gettext also needs gettext-devel. I had the following error today because of it, and after installing gettext-devel by hand, it fixed the cairo build.

julia> Pkg.build("Cairo")
INFO: Building Cairo
Installing dependency gettext via `sudo yum install gettext`:
Loaded plugins: langpacks, refresh-packagekit
Package gettext-0.18.3.2-1.fc20.x86_64 already installed and latest version
Nothing to do
=================================================================================================[ ERROR: Cairo ]==================================================================================================

Provider PackageManager failed to satisfy dependency gettext
while loading /home/jason/.julia/Cairo/deps/build.jl, in expression starting on line 129

===================================================================================================================================================================================================================

=================================================================================================[ BUILD ERRORS ]==================================================================================================

WARNING: Cairo had build errors.

 - packages with build errors remain installed in /home/jason/.julia
 - build a package and all its dependencies with `Pkg.build(pkg)`
 - build a single package by running its `deps/build.jl` script

===================================================================================================================================================================================================================
@staticfloat
Copy link
Contributor

@binarybana Can you try changing the "gettext" to "gettext-devel", uninstall gettext-devel, and then run Pkg.build("Cairo") to see if it automatically reinstalls it? It looks like gettext-devel requires gettext, so that should solve your problems. To be explicit, change that line to look like:

# TODO: check whether these are accurate
provides(Yum,
    {"cairo" => cairo,
     "fontconfig" => fontconfig,
     "pango" => [pango,pangocairo],
     "glib2" => gobject,
     "libpng" => libpng,
     "gettext-devel" => gettext})

As you can probably see from the comment, we don't have many developers that use yum-based systems very often. ;)

binarybana added a commit to binarybana/Cairo.jl that referenced this issue Aug 11, 2014
staticfloat added a commit that referenced this issue Aug 11, 2014
Fix for Yum (#74): gettext => gettext-devel
@staticfloat
Copy link
Contributor

Closed via #75

@nolta
Copy link
Member

nolta commented Sep 14, 2014

I don't think this is correct. I'm on fedora, gettext-devel isn't installed, and Cairo works fine.

@nolta nolta reopened this Sep 14, 2014
@staticfloat
Copy link
Contributor

@binarybana what OS were you on when you submitted #75?

nolta added a commit that referenced this issue Sep 14, 2014
Cairo works fine w/o gettext-devel installed.
@nolta
Copy link
Member

nolta commented Sep 14, 2014

I think 0448f94 is a better fix, at least on fedora.

Although we can probably just remove the gettext rpm requirement. It's really only needed for source builds?

@binarybana
Copy link
Contributor Author

@staticfloat, I was running Fedora 20. Sorry for the delay in response. @nolta's fix also works after testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants