Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180380 - www-apache/mod_fcgid-2.1-r1 fails during installation
Summary: www-apache/mod_fcgid-2.1-r1 fails during installation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-30 18:57 UTC by Bolek Tekielski
Modified: 2007-07-30 18:26 UTC (History)
6 users (show)

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


Attachments
Patch for mod_fcgid 2.1-r1 ebuild (fcgid.patch,2.03 KB, patch)
2007-07-11 13:09 UTC, Gustavo Barrón
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bolek Tekielski 2007-05-30 18:57:13 UTC
mod_fcgid-2.1-r1 compiles fine, but when it comes to installation it spits following error:
>>> Source compiled.
>>> Test phase [not enabled]: www-apache/mod_fcgid-2.1-r1

>>> Install mod_fcgid-2.1-r1 into /var/tmp/portage/www-apache/mod_fcgid-2.1-r1/image/ category www-apache
make[1]: Entering directory `/var/tmp/portage/www-apache/mod_fcgid-2.1-r1/work/mod_fcgid.2.1'
/bin/sh: /var/tmp/portage/net-www/apache-2.0.58-r2/work/httpd-2.0.58/build/mkdir.sh: No such file or directory
make[1]: *** [install-modules] Error 127
make[1]: Leaving directory `/var/tmp/portage/www-apache/mod_fcgid-2.1-r1/work/mod_fcgid.2.1'
make: *** [install-recursive] Error 1

Reproducible: Always

Steps to Reproduce:
1.emerge =www-apache/mod_fcgid-2.1-r1
2.
3.

Actual Results:  
Well, failure :D


I'm running stable apache 2.0.58-r2, and mod_fcgid-2.1 (no longer in portage) works fine.
Comment 1 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2007-05-30 20:13:26 UTC
This is a dup of the last two problems on bug 179597
Comment 2 Anton Kuzmin 2007-06-06 11:58:42 UTC
This is what I get:

>>> Install mod_fcgid-2.1-r1 into /var/tmp/portage/www-apache/mod_fcgid-2.1-r1/image/ category www-apache
make[1]: Entering directory `/var/tmp/portage/www-apache/mod_fcgid-2.1-r1/work/mod_fcgid.2.1'
mkdir /var/tmp/portage/www-apache/mod_fcgid-2.1-r1/image/usr
mkdir /var/tmp/portage/www-apache/mod_fcgid-2.1-r1/image/usr/lib64
mkdir /var/tmp/portage/www-apache/mod_fcgid-2.1-r1/image/usr/lib64/apache2
mkdir /var/tmp/portage/www-apache/mod_fcgid-2.1-r1/image/usr/lib64/apache2/modules
/bin/sh /usr/lib64/apache2/build/libtool --silent --mode=install cp mod_fcgid.la /var/tmp/portage/www-apache/mod_fcgid-2.1-r1/image//usr/lib64/apache2/modules/
/bin/sh: /usr/lib64/apache2/build/libtool: No such file or directory
make[1]: *** [install-modules] Error 127
make[1]: Leaving directory `/var/tmp/portage/www-apache/mod_fcgid-2.1-r1/work/mod_fcgid.2.1'
make: *** [install-recursive] Error 1

!!! ERROR: www-apache/mod_fcgid-2.1-r1 failed.
Call stack:
  ebuild.sh, line 1621:   Called dyn_install
  ebuild.sh, line 1067:   Called qa_call 'src_install'
  ebuild.sh, line 44:   Called src_install
  mod_fcgid-2.1-r1.ebuild, line 44:   Called die
Comment 3 andy 2007-06-26 07:29:17 UTC
I was finally able to work around install issues of mod_fcgid-2.1-r1 with a quick'n'dirty solution:

to create the missing /var/tmp/portage/net-www/apache-2.0.58-r2/work/httpd-2.0.58/build/mkdir.sh, it's ok to unpack the apache sources: ebuild /usr/portage/net-www/apache/apache-2.0.58-r2.ebuild unpack

to create the missing /usr/lib64/apache2/build/libtool, it can be linked to /usr/bin/libtool: ln -s /usr/bin/libtool /usr/lib64/apache2/build/libtool.

It's just a workaround. At least I can run mod_fcgid 2.1 now.
Comment 4 Brandon Low 2007-06-28 16:03:07 UTC
This problem is not in the mod_fcgid build, it's because the config_vars.mk file installed by the apache ebuild contains pointers to the wrong build tools.  The apache ebuild should correct that file so that modules can trust it.
Comment 5 Christian Heim (RETIRED) gentoo-dev 2007-06-29 15:09:25 UTC
(In reply to comment #4)
> This problem is not in the mod_fcgid build, it's because the config_vars.mk
> file installed by the apache ebuild contains pointers to the wrong build tools.
>  The apache ebuild should correct that file so that modules can trust it.

Care to enlighten me to what brokenness you're referring to ?
Comment 6 Brandon Low 2007-06-29 15:14:08 UTC
it refers to a non-existant libtool in /usr/share/apache/build (or some similar)

the other problem is a harder one, because it refers to the source path of the apache build, which seems to assume that anyone who wants to install apache modules from source also has a full copy of the apache source code sitting around.  this one I essentially hacked to point to the path containing mkdir.sh (apr-o something something) which worked, but I'm not sure it would work for all modules or on all systems
Comment 7 Gustavo Barrón 2007-07-11 13:09:25 UTC
Created attachment 124555 [details, diff]
Patch for mod_fcgid 2.1-r1 ebuild

This patch will correct the wrong path on the ebuild, that makes the install phase impossible.
Comment 8 Benedikt Böhm (RETIRED) gentoo-dev 2007-07-30 18:26:35 UTC
mod_fcgid-2.1-r2 does not use the makefile, but only apxs. should be fixed.