Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49625 - Apache2 init.d PostgreSQL dependancy
Summary: Apache2 init.d PostgreSQL dependancy
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All All
: High normal
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-01 10:39 UTC by Roy Marples (RETIRED)
Modified: 2007-09-22 23:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Apache 2.0.49-r1 Modified ebuild (apache-2.0.49-r1.ebuild,11.55 KB, text/plain)
2004-05-02 00:48 UTC, Chris White (RETIRED)
Details
Postgres apache2 init.d fix (2.0.49-postgres-init.d.patch,258 bytes, patch)
2004-05-02 00:49 UTC, Chris White (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Roy Marples (RETIRED) gentoo-dev 2004-05-01 10:39:45 UTC
The Apache2 init.d script has a dependancy on mysql to force mysql to load before Apache so web applications that use MySQL as a backend work straight away instead of having to wait until MySQL loads.

It should have a dependancy on PostgreSQL as well.

Current line in depend()
use mysql dns logger netmount

Proposed line
use postgresql mysql dns logger netmount
Comment 1 Chris White (RETIRED) gentoo-dev 2004-05-01 10:46:17 UTC
Please post the output of emerge --info
Comment 2 Roy Marples (RETIRED) gentoo-dev 2004-05-01 12:45:28 UTC
Portage 2.0.50-r6 (hardened-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5)
=================================================================
System uname: 2.6.5 i686 VIA Nehemiah
Gentoo Base System version 1.4.9
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=i686 -pipe -mmmx -msse -mfpmath=sse -fprefetch-loop-arrays -f
omit-frame-pointer -fstack-protector"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/
config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -pipe -mmmx -msse -mfpmath=sse -fprefetch-loop-arrays
-fomit-frame-pointer -fstack-protector -finline-functions"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/
        http://www.ibiblio.org/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X509 acl apache2 berkdb chroot crypt cups fam gd-external gif imap ipv6 jpe
g libwww maildir mcal mmx nls nogcj nptl pam perl php pic png pnp postgres pytho
n readline samba sasl spell sse ssl tcpd threads tiff truetype usb x86 xml zlib"
Comment 3 Roy Marples (RETIRED) gentoo-dev 2004-05-01 12:49:50 UTC
Sorry, I should have been more clear.

I mean the depend() function in /etc/init.d/apache2 and NOT any dependency in the ebuild.
Comment 4 Chris White (RETIRED) gentoo-dev 2004-05-01 22:02:30 UTC
hmmm.. apparently apache2 doesn't have a postgres useflag... I sense more patches than I had anticipated comming...
Comment 5 Chris White (RETIRED) gentoo-dev 2004-05-02 00:05:01 UTC
Ok, I read that wrong.  Apache isn't supposed to have mysql/postgres deps, I think my focus came back to where it needs to be :).  I'm currently trying to put out a patch to fix your issue.  I'm testing it right now to make sure the patch is being applied.  I'll also have a modified ebuild up for that too.
Comment 6 Chris White (RETIRED) gentoo-dev 2004-05-02 00:48:07 UTC
Created attachment 30498 [details]
Apache 2.0.49-r1 Modified ebuild
Comment 7 Chris White (RETIRED) gentoo-dev 2004-05-02 00:49:06 UTC
Created attachment 30499 [details, diff]
Postgres apache2 init.d fix
Comment 8 Chris White (RETIRED) gentoo-dev 2004-05-02 00:51:45 UTC
This is what I have for now.  The patch does get the job done, but I would have prefered something cleaner.  I was going to do something alot cleaner but ran out of time so I posted what did work.  I still would prefer an apache dev to look it over and maybe suggest a better place for the patch to be applied at, or could patch in the source itself with all the other patches ( a much cleaner method I think ).  I will be gone until tommorow evening ( GMT -8 PST time ), so I won't be as prompt about the fix as I normally am :).

Apache 2.0.49-r1 ebuild should go in:

/usr/portage/net-www/apache

Postgres apache2 init.d fix should go in:

/usr/portage/net-www/apache/files
Comment 9 Roy Marples (RETIRED) gentoo-dev 2004-05-02 03:46:30 UTC
Nice :)

Hope to see it in Portage soon!
Comment 10 Chuck Short (RETIRED) gentoo-dev 2004-05-02 05:13:10 UTC
What changes did you make to the apache ebuild?

If you did make any changes please submit a patch.

Thanks
Comment 11 Chuck Short (RETIRED) gentoo-dev 2004-05-03 05:49:55 UTC
I have added postgres to the init scripts

- chuck
Comment 12 Chuck Short (RETIRED) gentoo-dev 2004-05-03 05:51:50 UTC
Im not going to add your patch since I have already added it to the initscripts.