Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bringing Gentoo to the Enterprise
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Thu May 08, 2003 3:17 pm    Post subject: Bringing Gentoo to the Enterprise Reply with quote

I have been using Gentoo for different business purposes. We have it running as a firewall, web server, backup server, and soon an SMB/NFS server. One thing I've noticed is a rather light support for enterprise level tools that are not also useful on a smaller level. I thought I'd bring it up here (please move if needed). The tool that I'd most like to see at the moment is Request Tracker (RT). It is a GPL tool for tracking tickets.

Best Practical Solutions, LLC wrote:
RT is an industrial-grade ticketing system. It lets a group of people intelligently and efficiently manage tasks, issues, and requests submitted by a community of users.


From what I've been told, the install on Debian is as easy as apt-get requesttracker. We do have one other tool called issuetrackerproduct, but it's masked and is ZOPE based. It looks nice, but RT seems to be more standard for this and is more fully featured. I'd build an ebuild for it, but it looks potentially more complicated than I could handle. I did install from source. You can read my blog entries on May 6 & 7 at http://josiah.ritchietribe.net/blog/archives/ concerning what it took.

I'm interested in what other programs people would like to see included for the business side of things and to see what could be done to make it happen. I think Gentoo has potential of filling in a lot places. It can install in a very small space and doing a very focused task excellently. I'd even think that embeded solutions would take some interest in Gentoo.

Anyway, what progs do we need to get in portage to take Gentoo there?
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20484

PostPosted: Thu May 08, 2003 9:15 pm    Post subject: Reply with quote

I think I just saw something about RT in an old issue of Linux Journal. Do you use the product? If so, you might be able to help get the ebuild made. The "Docs" page has some info on making ebuilds.

On the more general topic, EVMS is is in portage.


Moved from Portage & Programming.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Fri May 09, 2003 12:47 pm    Post subject: Reply with quote

pjp wrote:
I think I just saw something about RT in an old issue of Linux Journal. Do you use the product? If so, you might be able to help get the ebuild made. The "Docs" page has some info on making ebuilds.

I'm testing RT for our purposes. We are currently using Exchange Public Folders and I'm trying to get us away from Exchange/NT as much as possible besides it is horrible at this job. If I had an experienced ebuilder to work with I'd be glad to put my hand in finding out information. I can dig up data well enough. I only program the shell script and am poor at that, so I'd definately need some guidance at the very least. It might also include a couple of perl module additions or upgrades as well. Anyone up for working with me on it?
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
ebrostig
Bodhisattva
Bodhisattva


Joined: 20 Jul 2002
Posts: 3152
Location: Orlando, Fl

PostPosted: Fri May 09, 2003 11:14 pm    Post subject: Reply with quote

For most enterprise use, the main thing is summarized in one word: STABILITY.

Take a look at RedHat's Advanced Server products (They are renamed a bit right now, can't rememebr their names), but they are built to be solid and remain unchanged for a longer periode of time, ate least 12-18 months. That is were we (Oracle) certify our products and were we offer support. The same goes for the new UnitedLinux Enterprise server.

If people are going to use Linux in a high-availability production environment, the most needed feature is stability. Not having to update the kernel too often, not having the bleeding edge of all versions like I have on my desktop.

In addition, clustering and the ability to use HUGE amount of disk and RAM is important. We have databases using close to 64GB of ram and tens of terrabytes of disk.

Backup is another important area. Fast and reliable backup systems.

Raid, hardware of course, is important.

NUMA features would be even nicer and linux do have this ability right now. Taking a CPU out of the pool and re-allocating it to a different task is nice.

Hot-swapping of component cards would be nice. No need to bring down the server just to swap a defect disk controller or memory board.

Best advise would be to look at what is offered for propriatery enterprise systems and include that in Linux.

Erik
_________________
'Yes, Firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Sat May 10, 2003 11:39 pm    Post subject: Re: Bringing Gentoo to the Enterprise Reply with quote

flickerfly wrote:
I'd build an ebuild for it, but it looks potentially more complicated than I could handle.


i saw yesterday your post and took today the time to try to write a ebuild for it. this small package is hell for configuration! it took me some time to get it working (the install) on my system, but i would not say that it is 100% rock-solid. anyway... maybe you want to try it and together we can finish this ebuild?
Code:
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# net-www/rt-3.0.1.ebuild, SteveB (tp22a@softhome.net)
#
# Revisions: 10.05.2003: net-www/rt-3.0.1.ebuild
#              - initial ebuild

IUSE="apache2 mysql innodb postgres"

MY_PV=${PV//./-}
S=${WORKDIR}/${PN}-${MY_PV}

DESCRIPTION="RT is an industrial-grade ticketing system"
HOMEPAGE="http://www.bestpractical.com/rt/"
SRC_URI="http://www.fsck.com/pub/${PN}/release/${PN}-${MY_PV}.tar.gz
   ftp://ftp.eu.uu.net/pub/unix/ticketing/${PN}/release/${PN}-${MY_PV}.tar.gz
   ftp://rhinst.ece.cmu.edu/${PN}/release/${PN}-${MY_PV}.tar.gz"

KEYWORDS="x86 sparc ppc alpha hppa"

HTTPD_ROOT="`grep '^DocumentRoot' /etc/apache/conf/apache.conf | cut -d\  -f2`"
HTTPD_USER="`grep '^User' /etc/apache/conf/commonapache.conf | cut -d \  -f2`"
HTTPD_GROUP="`grep '^Group' /etc/apache/conf/commonapache.conf | cut -d \  -f2`"
[ -z "${HTTPD_ROOT}" ] && HTTPD_ROOT="/home/httpd/htdocs"
[ -z "${HTTPD_USER}" ] && HTTPD_USER="apache"
[ -z "${HTTPD_GROUP}" ] && HTTPD_GROUP="apache"

DEPEND="dev-perl/Apache-Session
   dev-perl/Attribute-Handlers
   dev-perl/Cache-Cache
   dev-perl/Class-Container
   dev-perl/Class-Data-Inheritable
   dev-perl/DBI
   dev-perl/Devel-StackTrace
   dev-perl/Digest-SHA1
   dev-perl/Exception-Class
   dev-perl/FreezeThaw
   dev-perl/HTML-Mason
   dev-perl/Inline
   dev-perl/IPC-ShareLite
   dev-perl/MLDBM
   dev-perl/mod_perl
   dev-perl/Params-Validate
   dev-perl/Scalar-List-Utils
   dev-perl/Test-Inline
   postgres? ( >=dev-db/postgresql-7.2 )
   mysql? ( >=dev-db/mysql-3.23.46 )
   || ( apache2? ( >=net-www/apache-2 )
      >=net-www/apache-1.3
      )"
LICENSE="GPL-2"
SLOT="0"

pkg_setup() {
   if ! grep -q ^rt: /etc/group ; then
      groupadd rt || die "problem adding group rt"
   fi
}

src_compile() {
   local myconf

   cd "${S}"

   myconf="${myconf} \
      --prefix=/opt/rt3 \
      --exec-prefix=/usr \
      --with-rt-group=rt \
      --with-bin-owner=root \
      --with-libs-owner=root \
      --with-libs-group=root \
      --with-db-host=localhost \
      --with-db-dba=root \
      --with-db-database=rt3 \
      --with-db-rt-user=rt_user \
      --with-db-rt-pass=rt_pass \
      --with-web-user=${HTTPD_USER} \
      --with-web-group=${HTTPD_GROUP}"

   # Setup database to be used. Use MySQL if possible.   
   if [ "`use mysql`" ]
   then
      if has_version '>=dev-db/mysql-4.0.9' >& /dev/null
      then
         # use MySQL >= 4.0.9 as database
         myconf="${myconf} --with-db-type=mysql"
      elif has_version '>=dev-db/mysql-3.23.46' >& /dev/null
      then
         if [ "`use innodb`" ]
         then
            # use MySQL >= 3.23.46 with support for InnoDB as database
            myconf="${myconf} --with-db-type=mysql"
         elif  [ "`use postgres`" ]
         then
            # MySQL >= 3.23.46 installed, but without support for InnoDB.
            # Use instead PostgreSQL, since it is activated in the USE flags.
            myconf="${myconf} --with-db-type=Pg"
         else
            ewarn
            ewarn "****************************************************************"
            ewarn " Database dependency failed. You need one of the following:"
            ewarn "  - MySql 4.0.9 or newer"
            ewarn "  - MySql 3.23.46 or newer with support for InnoDB"
            ewarn "  - Postgres 7.2 or later"
            ewarn "****************************************************************"
            ewarn
            die "Database dependency failed."
         fi
      elif  [ "`use postgres`" ]
      then
         # MySQL >= 3.23.46 with InnoDB not installed and MySQL >= 4.0.9 not installed.
         # Use instead PostgreSQL, since it is activated in the USE flags.
         myconf="${myconf} --with-db-type=Pg"
      else
         ewarn
         ewarn "****************************************************************"
         ewarn " Database dependency failed. You need one of the following:"
         ewarn "  - MySql 4.0.9 or newer"
         ewarn "  - MySql 3.23.46 or newer with support for InnoDB"
         ewarn "  - Postgres 7.2 or later"
         ewarn "****************************************************************"
         ewarn
         die "Database dependency failed."
      fi
   elif [ "`use postgres`" ]
   then
      myconf="${myconf} --with-db-type=Pg"
   else
      ewarn
      ewarn "****************************************************************"
      ewarn " Database dependency failed. You need one of the following:"
      ewarn "  - MySql 4.0.9 or newer"
      ewarn "  - MySql 3.23.46 or newer with support for InnoDB"
      ewarn "  - Postgres 7.2 or later"
      ewarn "****************************************************************"
      ewarn
      die "Database dependency failed."
   fi

   econf ${myconf} || die "configure failed (myconf=${myconf})"

   if (emake testdeps | grep -iq "MISSING")
   then
      if [ $(ls -l /usr/lib/perl*/*/CPAN/Config.pm | tail -n 1 | awk '{ print $5 }' ) -le 20 ]
      then
         eerror "****************************************************************"
         eerror
         eerror "You need to configure the perl CPAN module! Execute \"perl -MCPAN -e shell\""
         eerror "to configure CPAN, then exit CPAN and then reemerge again"
         eerror "${CATEGORY}/${PN}"
         eerror
         eerror "****************************************************************"
         die "Perl CPAN not configured"
      else
         einfo "****************************************************************"
         einfo " Trying to auto-install required Perl CPAN modules. If this does"
         einfo " not work, then you need to resolve manually the dependencies."
         einfo "****************************************************************"
         make fixdeps || emake testdeps && die "Perl modules dependency failed."
      fi

      if (emake testdeps | grep -iq "MISSING")
      then
         emake testdeps
         die "Perl modules dependency failed."
      fi
   fi
}

src_install() {
   local myconf

   cd "${S}"

   myconf="${myconf} \
      DESTDIR=${D}"

   einstall ${myconf} || die "install failed (myconf=${myconf})"
}

pkg_postinst() {
   einfo
   einfo "****************************************************************"
   einfo " You must now configure RT by editing /opt/rt3/etc/RT_SiteConfig.pm."
   einfo
   einfo " (You will definitely need to set RT's database password before"
   einfo " continuing. Not doing so could be very dangerous)"
   einfo
   einfo " After that, you need to initialize RT's database by running"
   einfo " perl /usr/sbin/rt-setup-database --action init --dba root \ "
   einfo "  --prompt-for-dba-password"
   einfo
   einfo " For more info about ${PN} visit the following URL:"
   einfo " ${HOMEPAGE}"
   einfo "****************************************************************"
   einfo
}



the above ebuild only handles new installation. according the documentation, there is a update possibility, wich i did not take care of.

cheers

SteveB
Back to top
View user's profile Send private message
panserg
Apprentice
Apprentice


Joined: 16 Apr 2003
Posts: 188

PostPosted: Sun May 11, 2003 1:34 am    Post subject: Reply with quote

What's wrong if it's based on Zope? It's oppositely stronger and more flexible as it's based on Zope. Byt the way, I recommend to check net-zope/cmfcollectorng - very robbust issue tracking system, well integrated into Plone, and very extensible.

P.S. I see a very big inconsistency that Gentoo community, paying so strong love to Portage, which is Python-based, doesn't pay enough of attention on Zope, which is also Python-based.

Leave Perl obscurity with RPM inconsistency in yesterday. Tomorrow is a day of Python!
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20484

PostPosted: Sun May 11, 2003 6:46 pm    Post subject: Reply with quote

panserg wrote:
P.S. I see a very big inconsistency that Gentoo community, paying so strong love to Portage, which is Python-based, doesn't pay enough of attention on Zope, which is also Python-based.
Perhaps its just me, but I'm guessing most people like the functionality of portage and not necessarily that it is written in python.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
panserg
Apprentice
Apprentice


Joined: 16 Apr 2003
Posts: 188

PostPosted: Sun May 11, 2003 7:54 pm    Post subject: Reply with quote

pjp wrote:
Perhaps its just me, but I'm guessing most people like the functionality of portage and not necessarily that it is written in python.


I am guessing that such functionality would not be possibly achieved with those man-hours as it's spend for Portage, if it would be written on obscured Perl, unsafe C or heavy Java.

Personally, Python was one of 3 reasons I am here. Gentoo community and the functionality of Portage was another two.

I didn't want a flame, but knowing very well both Bugzilla and CMFCollectorNG I can tell: Bugzilla, being written on Perl, was never designed to work out of Mozilla team. People, who tried to create theri own reports for Bugzilla or to integrate it with other databases on DB backend can confirm what I've said here. There is a very strong vacuum for such functionality and the time when Bugzilla first moved out of Mozilla there was no really good and open-source issue tracking projects. That's why you can see now Bugzilla on several big open-source projects. However, the situationi is changing and alternative issue trackers are coming.

But I've started my tiny flame because I saw that one such issue tracker was rejected just b/c it's based on Zope. And that is insane for me to see. Especially in the community who should thank Python for such exclent product as Portage is.
Back to top
View user's profile Send private message
charlieg
Advocate
Advocate


Joined: 30 Jul 2002
Posts: 2149
Location: Manchester UK

PostPosted: Sun May 11, 2003 8:42 pm    Post subject: Reply with quote

What about the Open Ticket Request System as an alternative?

Although it's not in portage either. :(
_________________
Want Free games?
Free Gamer - open source games list & commentary

Open source web-enabled rich UI platform: Vexi
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Mon May 12, 2003 12:05 pm    Post subject: Reply with quote

panserg wrote:
What's wrong if it's based on Zope? It's oppositely stronger and more flexible as it's based on Zope. Byt the way, I recommend to check net-zope/cmfcollectorng - very robbust issue tracking system, well integrated into Plone, and very extensible.


I'm not familiar withZope and I don't know many using this issue tracking system based on it. It was not simply that it was based on Zope. It also doesn't have the amount of functionality and flexibility that RT appears to have. It remains on my list to try if a couple others don't hit the spot, but it's not on the top.
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Mon May 12, 2003 2:11 pm    Post subject: Re: Bringing Gentoo to the Enterprise Reply with quote

steveb wrote:
i saw yesterday your post and took today the time to try to write a ebuild for it. this small package is hell for configuration! it took me some time to get it working (the install) on my system, but i would not say that it is 100% rock-solid. anyway... maybe you want to try it and together we can finish this ebuild?


Thanks steveb, I gave it a shot. I put it in my home directory and ran "emerge ~/rt.ebuild", but I got the following error:

Code:
Calculating dependencies \Traceback (most recent call last):
  File "/usr/bin/emerge", line 1837, in ?
    retval,favorites=mydepgraph.select_files(myfiles)
  File "/usr/bin/emerge", line 637, in select_files
    if not self.create(["ebuild",portage.root,mykey],None,"--onlydeps" not in myopts):
  File "/usr/bin/emerge", line 588, in create
    edepend[x]=string.join(portage.portdb.aux_get(mykey,[x]), " ")
  File "/usr/lib/python2.2/site-packages/portage.py", line 3046, in aux_get
    myebuild=self.findname(mycpv)
  File "/usr/lib/python2.2/site-packages/portage.py", line 3032, in findname
    return self.root+"/"+mysplit[0]+"/"+psplit[0]+"/"+mysplit[1]+".ebuild"
TypeError: unsubscriptable object


Did something get messed up in the ebuild when I copied it? I didn't seen anything obvious. I emerged the latest gentoolkit with no problem right after this error. Do I need to put it someplace special?
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Mon May 12, 2003 2:14 pm    Post subject: Reply with quote

charlieg wrote:
What about the Open Ticket Request System as an alternative?

Although it's not in portage either. :(


That looks good also.
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Mon May 12, 2003 2:18 pm    Post subject: Reply with quote

panserg wrote:
I recommend to check net-zope/cmfcollectorng - very robbust issue tracking system, well integrated into Plone, and very extensible.


I'm emerging that right now to take a look at. I wonder why I didn't find that one before, anyway... we'll see.
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Mon May 12, 2003 5:49 pm    Post subject: Re: Bringing Gentoo to the Enterprise Reply with quote

flickerfly wrote:
steveb wrote:
i saw yesterday your post and took today the time to try to write a ebuild for it. this small package is hell for configuration! it took me some time to get it working (the install) on my system, but i would not say that it is 100% rock-solid. anyway... maybe you want to try it and together we can finish this ebuild?


Thanks steveb, I gave it a shot. I put it in my home directory and ran "emerge ~/rt.ebuild", but I got the following error:

Code:
Calculating dependencies \Traceback (most recent call last):
  File "/usr/bin/emerge", line 1837, in ?
    retval,favorites=mydepgraph.select_files(myfiles)
  File "/usr/bin/emerge", line 637, in select_files
    if not self.create(["ebuild",portage.root,mykey],None,"--onlydeps" not in myopts):
  File "/usr/bin/emerge", line 588, in create
    edepend[x]=string.join(portage.portdb.aux_get(mykey,[x]), " ")
  File "/usr/lib/python2.2/site-packages/portage.py", line 3046, in aux_get
    myebuild=self.findname(mycpv)
  File "/usr/lib/python2.2/site-packages/portage.py", line 3032, in findname
    return self.root+"/"+mysplit[0]+"/"+psplit[0]+"/"+mysplit[1]+".ebuild"
TypeError: unsubscriptable object


Did something get messed up in the ebuild when I copied it? I didn't seen anything obvious. I emerged the latest gentoolkit with no problem right after this error. Do I need to put it someplace special?



please do the following:
Code:
mkdir -p /usr/local/portage/net-www/rt
nano -w /usr/local/portage/net-www/rt/rt-3.0.1.ebuild
now add the script from my post to the new created file.

after that enable PORTDIR_OVERLAY in your /etc/make.conf. should look like this:
Code:
PORTDIR_OVERLAY=/usr/local/portage


after that, you need to create the digest file:
Code:
ebuild /usr/local/portage/net-www/rt/rt-3.0.1.ebuild digest


and now you can just emerge rt by executing the following command:
Code:
emerge -pv rt
emerge -v rt


cheers

SteveB
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Mon May 12, 2003 7:39 pm    Post subject: Reply with quote

Now that it's added, I was able to get much closer...

Code:
*******************************************************
 *  Database dependency failed. You need one of the following:
 *   - MySql 4.0.9 or newer
 *   - MySql 3.23.46 or newer with support for InnoDB
 *   - Postgres 7.2 or later
 * *****************************************************

!!! ERROR: net-www/rt-3.0.1 failed.
!!! Function src_compile, Line 107, Exitcode 0
!!! Database dependency failed.

BUT
Code:
>> /etc/init.d/mysql restart
 * Stopping mysqld...                                                                                        [ ok ]
 * Starting mysqld...                                                                                        [ ok ]

AND
Code:
> emerge -p mysql

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

Calculating dependencies ...done!
[ebuild   R  ] dev-db/mysql-3.23.56 


Should I emerge the mysql version 4 or can I find out if MySQL was installed with Innodb options and how?

Thanks
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Mon May 12, 2003 8:13 pm    Post subject: Reply with quote

flickerfly wrote:
Now that it's added, I was able to get much closer...

Code:
*******************************************************
 *  Database dependency failed. You need one of the following:
 *   - MySql 4.0.9 or newer
 *   - MySql 3.23.46 or newer with support for InnoDB
 *   - Postgres 7.2 or later
 * *****************************************************

!!! ERROR: net-www/rt-3.0.1 failed.
!!! Function src_compile, Line 107, Exitcode 0
!!! Database dependency failed.

BUT
Code:
>> /etc/init.d/mysql restart
 * Stopping mysqld...                                                                                        [ ok ]
 * Starting mysqld...                                                                                        [ ok ]

AND
Code:
> emerge -p mysql

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

Calculating dependencies ...done!
[ebuild   R  ] dev-db/mysql-3.23.56 


Should I emerge the mysql version 4 or can I find out if MySQL was installed with Innodb options and how?

Thanks


you can look at /var/db/pkg/dev-db/mysql-3.23.56/USE to see what use flags you used.

or just execute the following:
Code:
if (grep -iq "innodb" /var/db/pkg/dev-db/mysql-3.23.56/USE);then echo "MySQL with InnoDB"; else echo "MySQL without InnoDB";fi


if you get "MySQL with InnoDB" then something is wrong with my ebuild. if you get "MySQL without InnoDB" then you need the remerge mysql and add innodb support to it.

cheers

SteveB
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Mon May 12, 2003 8:39 pm    Post subject: Reply with quote

steveb wrote:
or just execute the following:
Code:
if (grep -iq "innodb" /var/db/pkg/dev-db/mysql-3.23.56/USE);then echo "MySQL with InnoDB"; else echo "MySQL without InnoDB";fi


if you get "MySQL with InnoDB" then something is wrong with my ebuild. if you get "MySQL without InnoDB" then you need the remerge mysql and add innodb support to it.


That worked, it wasn't you. I'm remerging now. Thanks for the tip on where to find those USE settings.
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
Yarrick
Bodhisattva
Bodhisattva


Joined: 05 Jun 2002
Posts: 304
Location: Malmö, Sweden

PostPosted: Mon May 12, 2003 10:15 pm    Post subject: Reply with quote

ah, seeing the thread topic wanted me to talk about starships, but... :)
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Mon May 12, 2003 10:15 pm    Post subject: Reply with quote

flickerfly wrote:
steveb wrote:
or just execute the following:
Code:
if (grep -iq "innodb" /var/db/pkg/dev-db/mysql-3.23.56/USE);then echo "MySQL with InnoDB"; else echo "MySQL without InnoDB";fi


if you get "MySQL with InnoDB" then something is wrong with my ebuild. if you get "MySQL without InnoDB" then you need the remerge mysql and add innodb support to it.


That worked, it wasn't you. I'm remerging now. Thanks for the tip on where to find those USE settings.


cool :)

keep us informed about your progress.

cheers

SteveB
Back to top
View user's profile Send private message
splooge
l33t
l33t


Joined: 30 Aug 2002
Posts: 636

PostPosted: Tue May 13, 2003 1:15 am    Post subject: Reply with quote

I've been interested in something like this for awhile. So, I go and try to emerge it, but end up with the following issue:

Code:
MYSQL dependencies:
        DBD::mysql 2.1018...MISSING
                DBD::mysql version 2.1018 required--this is only version 2.1013 at (eval 74) line 2.

!!! ERROR: net-www/rt-3.0.1 failed.
!!! Function src_compile, Line 159, Exitcode 0
!!! Perl modules dependency failed.


Now typically I would know how to solve this if it was masked in package.mask or arch'd out in the keywords section of the ebuild... but there is NO ebuild for DBD::mysql 2.1018 in the portage tree (only 2.1013). What is the simplest way to solve this issue? Minimize the requirements in the ebuild? Or possibly use CPAN to upgrade this module? (I haven't really done this ebfore so if this is the case I'd need some help in the form of command syntax =) crazy perl! )

Thanks

Edit: Nevermind, I was able to get the perl module by renaming an existing ebuild. This still didn't however resolve the other (100 almost omg) dependencies that are in the ebuild that wouldn't have been taken care of hadn't I done the g-cpan.sh thingy listed above. Compiling on, will letcha know =)
_________________
http://get.a.clue.de
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Tue May 13, 2003 1:56 am    Post subject: Reply with quote

splooge wrote:
I've been interested in something like this for awhile. So, I go and try to emerge it, but end up with the following issue:

Code:
MYSQL dependencies:
        DBD::mysql 2.1018...MISSING
                DBD::mysql version 2.1018 required--this is only version 2.1013 at (eval 74) line 2.

!!! ERROR: net-www/rt-3.0.1 failed.
!!! Function src_compile, Line 159, Exitcode 0
!!! Perl modules dependency failed.


Now typically I would know how to solve this if it was masked in package.mask or arch'd out in the keywords section of the ebuild... but there is NO ebuild for DBD::mysql 2.1018 in the portage tree (only 2.1013). What is the simplest way to solve this issue? Minimize the requirements in the ebuild? Or possibly use CPAN to upgrade this module? (I haven't really done this ebfore so if this is the case I'd need some help in the form of command syntax =) crazy perl! )

Thanks


simplest way? it depends... for some ppl using CPAN is simple, for others modifying a existing ebuild is simple.

if you want to modify the ebuild, do the following:
Code:
mkdir -p /usr/local/portage/dev-perl/DBD-mysql
grep -iv "cp Makefile\|patch -p0" /usr/portage/dev-perl/DBD-mysql/DBD-mysql-2.1013-r1.ebuild>/usr/local/portage/dev-perl/DBD-mysql/DBD-mysql-2.1026.ebuild
ebuild /usr/local/portage/dev-perl/DBD-mysql/DBD-mysql-2.1026.ebuild digest
emerge DBD-mysql
in this ebuild you do not need the old patch for 2.1013 (so this is the reason we strip it away with grep).

if you want to use CPAN:
Code:
perl -MCPAN -e'force install DBD::mysql'


cheers

SteveB
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Tue May 13, 2003 1:34 pm    Post subject: Reply with quote

splooge wrote:
I've been interested in something like this for awhile. So, I go and try to emerge it, but end up with the following issue:

[code]MYSQL dependencies:
DBD::mysql 2.1018...MISSING
DBD::mysql version 2.1018 required--this is only version 2.1013 at (eval 74) line 2.


There's a package in portage for this: dev-perl/DBD-mysql and for a bunch of the others. You will get a lot of those taken care of with dev-perl/HTML-Mason as that is one of the core dependencies.
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A


Last edited by flickerfly on Tue May 13, 2003 1:50 pm; edited 1 time in total
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Tue May 13, 2003 1:40 pm    Post subject: Reply with quote

flickerfly wrote:
splooge wrote:
I've been interested in something like this for awhile. So, I go and try to emerge it, but end up with the following issue:

[code]MYSQL dependencies:
DBD::mysql 2.1018...MISSING
DBD::mysql version 2.1018 required--this is only version 2.1013 at (eval 74) line 2.


There's a package in portage for this: dev-perl/DBD-mysql


but only an old version :(
read the posts above

cheers

SteveB
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Tue May 13, 2003 1:55 pm    Post subject: Reply with quote

steveb wrote:
flickerfly wrote:

There's a package in portage for this: dev-perl/DBD-mysql

but only an old version :(
read the posts above


Oh, that's right see https://bugs.gentoo.org/show_bug.cgi?id=20637. I just renamed and submitted it. Very simple update for me who knows nothing about this.

Moving along...
Code:
Calculating dependencies ...done!
>>> emerge (1 of 1) net-www/rt-3.0.1 to /
>>> md5 ;-) rt-3-0-1.tar.gz
>>> Unpacking source...
>>> Unpacking rt-3-0-1.tar.gz to /var/tmp/portage/rt-3.0.1/work
>>> Source unpacked.
 
 * *********************************************
 *  Database dependency failed. You need one of the following:
 *   - MySql 4.0.9 or newer
 *   - MySql 3.23.46 or newer with support for InnoDB
 *   - Postgres 7.2 or later
 * *********************************************

!!! ERROR: net-www/rt-3.0.1 failed.
!!! Function src_compile, Line 107, Exitcode 0
!!! Database dependency failed.


I installed with innoDB support...
Code:
$ if (grep -iq "innodb" /var/db/pkg/dev-db/mysql-3.23.56/USE);then et InnoDB";fiith InnoDB"; else echo "MySQL without
MySQL with InnoDB

and I'm running version mysql-3.23.56
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Tue May 13, 2003 2:16 pm    Post subject: Reply with quote

please do it the following way:
Code:
USE='mysql innodb' emerge -v rt
or add mysql and innodb to your USE flags in /etc/make.conf.

cheers

SteveB
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
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