Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]Wie bekomme ich ruby-gd ohne X ?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
m.b.j.
Guru
Guru


Joined: 12 Sep 2003
Posts: 407
Location: Germany (Essen)

PostPosted: Fri Oct 14, 2005 9:49 am    Post subject: [solved]Wie bekomme ich ruby-gd ohne X ? Reply with quote

Ich möchte ruby-gd auf meinem test Server installieren, um eine Gallery damit zu entwickeln. Allerdings weigere ich mich da es X11 als dependency benötigt...

Code:
server ~ # emerge -pv ruby-gd

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] x11-misc/ttmkfdir-3.0.9-r3  19 kB
[ebuild  N    ] x11-base/xorg-x11-6.8.2-r4  -3dfx -3dnow -bitmap-fonts -cjk -debug +dlloader -dmx -doc -font-server -insecure-drivers -ipv6 -minimal -mmx +nls -nocxx -opengl +pam -sdk -sse -static -truetype-fonts -type1-fonts (-uclibc) -xprint -xv 45,110 kB
[ebuild  N    ] dev-ruby/ruby-gd-0.7.4  +jpeg -truetype 37 kB
[ebuild  N    ] app-arch/rpm2targz-9.0-r3  2 kB
[ebuild  N    ] sys-apps/utempter-0.5.5.6  20 kB
[ebuild  N    ] x11-terms/xterm-204  -Xaw3d -toolbar -truetype -unicode 698 kB

Total size of downloads: 45,889 kB


Code:
server ~ # emerge info
Portage 2.0.51.22-r2 (hardened/x86/2.6, gcc-3.3.6, glibc-2.3.5-r1, 2.6.11-hardened-r15 i686)
=================================================================
System uname: 2.6.11-hardened-r15 i686 VIA Samuel 2
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/mnt/daten/shared/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apache2 berkdb crypt dlloader gd gdbm hardened hardened-php jpeg libwww md5sum mpm-worker ncurses nls ntpl ntplony pam perl pic png postgres python quotas readline ruby samba ssl threads udev userlocales x86 xml xml2 zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY


Allerdings lässt sich das Verhalten des ruby-gd Packetes nicht durch die Useflags steuern...

Ist es überhaupt möglich ruby-gd ohne X zu installieren?

Wenn nein welche ruby Alternativen habe ich? (außer Konsohlenprogramme aus dem laufenden ruby prozess zu verwenden?)
_________________
root@mbj # echo "sys-pizza/calzone -tunfish" >> /etc/paludis/use.conf
root@mbj # paludis -i calzone --dl-blocks discard


Last edited by m.b.j. on Fri Oct 14, 2005 5:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Fri Oct 14, 2005 1:40 pm    Post subject: Re: Wie bekomme ich ruby-gd ohne X ? Reply with quote

m.b.j. wrote:
Ist es überhaupt möglich ruby-gd ohne X zu installieren?

Zumindest das Ebuild listet X als zwingende Abhängigkeit, während diese bei media-libs/gd optional ist. Pack das Ebuild in Dein Overlay und probier es aus! Wenn's ohne geht, wäre ein dementsprechender Bug Report sehr schön.
_________________
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Back to top
View user's profile Send private message
m.b.j.
Guru
Guru


Joined: 12 Sep 2003
Posts: 407
Location: Germany (Essen)

PostPosted: Fri Oct 14, 2005 2:31 pm    Post subject: Reply with quote

(bin dran)
_________________
root@mbj # echo "sys-pizza/calzone -tunfish" >> /etc/paludis/use.conf
root@mbj # paludis -i calzone --dl-blocks discard


Last edited by m.b.j. on Wed Nov 09, 2005 4:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
m.b.j.
Guru
Guru


Joined: 12 Sep 2003
Posts: 407
Location: Germany (Essen)

PostPosted: Fri Oct 14, 2005 4:33 pm    Post subject: Reply with quote

Ok, ich hab das ebuild umgeschrieben, da ich werder die Ebuild Anleitung gelesen habe, aber äber rudimentäre bash kenntnisse besitze, mich aber nicht blamieren will poste ich es hier bevor ich einen Bug-Report erstelle.

Falls die Modifikationen korrekt sind, erstelle ich dann einen Bug Report, oder sollte ich mich an den Maintainer des Ebuilds weden, um andere von der gravierenden "Neuerung" profitieren zu lassen ;) ?

Code:
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-gd/ruby-gd-0.7.4.ebuild,v 1.5 2004/12/18 09:47:24 corsair Exp $

inherit ruby
USE_RUBY="ruby16 ruby18 ruby19"

MY_P="${P/gd/GD}"
S="${WORKDIR}/${MY_P}"

DESCRIPTION="ruby-gd: an interface to Boutell GD library"
HOMEPAGE="http://tam.0xfa.com/ruby-gd/"
SRC_URI="http://tam.0xfa.com/ruby-gd/${MY_P}-1.tar.gz"

LICENSE="Ruby"
SLOT="0"
KEYWORDS="~x86 ppc64"
IUSE="jpeg truetype X"

DEPEND="virtual/ruby
        >=media-libs/gd-2.0
        jpeg? ( media-libs/jpeg )
        truetype? ( media-libs/freetype )
        X? ( virtual/x11 )"

src_compile() {
        local myconf=""
        myconf="${myconf} --enable-gd2_0"

        if use X; then
                myconf="${myconf} --with-xpm"
        fi

        if use jpeg; then
                myconf="${myconf} --with-jpeg"
        fi

        if use truetype; then
                myconf="${myconf} --with-ttf --with-freetype"
        fi

        ruby extconf.rb ${myconf} || die
        emake || die
}

src_install() {
        einstall || die
        dodoc Changes TODO readme.* doc/manual.rd doc/INSTALL.*
        dohtml doc/manual.html doc/manual_index.html
        insinto /usr/share/doc/${PF}/sample
        doins sample/*
}


Funktioniert bei mir ganz gut... Hab die samples durchgespielt und keine Probleme bemerkt...
_________________
root@mbj # echo "sys-pizza/calzone -tunfish" >> /etc/paludis/use.conf
root@mbj # paludis -i calzone --dl-blocks discard
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Fri Oct 14, 2005 5:25 pm    Post subject: Reply with quote

Der Hinweis, daß X optional ist, reicht vollkommen.
_________________
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Back to top
View user's profile Send private message
m.b.j.
Guru
Guru


Joined: 12 Sep 2003
Posts: 407
Location: Germany (Essen)

PostPosted: Fri Oct 14, 2005 5:47 pm    Post subject: Reply with quote

Mein englich ist schlecht, aber es wird schon jemand verstehen.... https://bugs.gentoo.org/show_bug.cgi?id=109289

Mein erster Bug ;)
_________________
root@mbj # echo "sys-pizza/calzone -tunfish" >> /etc/paludis/use.conf
root@mbj # paludis -i calzone --dl-blocks discard
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum