Gentoo Archives: gentoo-user

From: nate <nate@×××××××.us>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] custom ebuild questions
Date: Wed, 27 Sep 2006 20:32:01
Message-Id: 6605D2D8-58D2-4AD6-9B23-8337932F8CE2@short-b.us
In Reply to: Re: [gentoo-user] custom ebuild questions by nate
1 I've resolved the libphp5.so problem, it was putting it into /usr/lib/
2 apache2/modules while apache was looking in /usr/lib/apache/modules.
3 A quick copy and that fixed the issue. Also had to modify the php
4 ebuild to put it there.
5
6 Now when compiling php-5.1.6-r4 pear and pecl don't compile. Here's
7 a copy of my post from the following url: http://forums.gentoo.org/
8 viewtopic-t-502331.html
9
10 I'm having some issues when building php with a custom ebuild and
11 eclass. There are some things that I need to have built into php in
12 order for my application to work. While I have php compiled and built
13 as a module for apache the modules load, pear and pecl are not
14 compiled so I cannot add my pear and pecl modules.
15
16 Here's what I've done so far:
17
18 Code:
19
20 mkdir -p /usr/local/portage/dev-lang/php/files
21 cp -r /usr/portage/dev-lang/php /usr/local/portage/dev-lang/php
22 cp /usr/portage/eclass/php5_1-sapi.eclass /usr/portage/eclass/php5_1-
23 sapi.eclass-old
24
25
26 I copied the eclass over as I wanted to have an original after
27 modifying it with the ./configure line required from our old
28 slackware build, it reads as this now:
29
30 Code:
31
32 e-path=/etc/apache --enable-safe-mode --with-openssl --with-mhash --
33 enable-bcmath --with-bz2 --with-pic --enable-calendar --enable-ctype
34 --with-gdbm --enable-dbase --enable-ftp --with-exif --with-gd --
35 enable-gd-native-ttf --with-jpeg-dir=/usr --with-png --with-gmp --
36 enable-mbstring --without-curl --with-gettext=shared,/usr --with-
37 expat-dir=/usr --with-xml --enable-wddx --with-mm=/usr --enable-
38 trans-sid --enable-shmop --enable-sockets --with-regex=php --enable-
39 sysvsem --enable-sysvshm --enable-yp --enable-memory-limit --with-
40 tsrm-pthreads --without-iconv --enable-shared --disable-debug --
41 enable-sqlite-utf8 --enable-soap --with-mysqli=shared,/usr/bin/
42 mysql_config --with-mysql=shared,/usr/bin --disable-ipv6 --with-pear
43 --enable-pear --with-zlib=/usr --with-apxs2=/usr/sbin/apxs2
44
45
46 What would be causing pear and pecl not to compile with that?
47
48 Here's what emerge -pv php outputs:
49
50 Code:
51
52 emerge -pv php
53
54 These are the packages that I would merge, in order:
55
56 Calculating dependencies ...done!
57 [ebuild U ] dev-lang/php-5.1.6-r4 [5.0.5-r5] -adabas -apache
58 +apache2* +bcmath* +berkdb -birdstep +bzip2 +calendar* -cdb -cgi -cjk
59 +cli -concurrentmodphp +crypt +ctype* +curl +curlwrappers* -db2 -
60 dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob
61 +exif* -fastbuild -fdftk -filepro -firebird -flatfile -force-cgi-
62 redirect -frontbase -ftp +gd* -gd-external +gdbm +gmp* -hardenedphp -
63 hash -hyperwave-api +iconv* -imap -informix -inifile -interbase -
64 iodbc +ipv6 -java-external -kerberos -ldap -libedit -mcve -memlimit
65 +mhash -ming -msql -mssql +mysql +mysqli* +ncurses +nls -oci8 -oci8-
66 instant-client -odbc +pcntl* +pcre -pdo +pdo-external* -pic +posix* -
67 postgres -qdbm +readline -recode +reflection -sapdb -sasl +session -
68 sharedext -sharedmem -simplexml +snmp* +soap* +sockets* -solid +spell
69 +spl +sqlite* +ssl -sybase -sybase-ct -sysvipc -threads -tidy -
70 tokenizer +truetype +unicode* -vm-goto -vm-switch -wddx +xml -
71 xmlreader -xmlrpc -xmlwriter -xpm +xsl* -yaz -zip +zlib 0 kB [1]
72
73 Total size of downloads: 0 kB
74 Portage overlays:
75 [1] /usr/local/portage
76
77
78 Also in /etc/portage/package.use is the following:
79
80 Code:
81
82 dev-lang/php apache2 sockets mysql mysqli cli xml xsl pcre pdo-
83 external session sqlite curl gd iconv jpeg pcntl pear png posix soap
84 snmp ssl zlib bzip2 bcmath ctype calendar curlwrappers gdbm exif dbm
85 unicode
86
87 I have taken the custom configure line out and it appears that the /
88 etc/portage/package.use is compiling in all the modules I need. Yet
89 pear and pecl still won't compile in with the package.
90
91 I'm completely lost on this one, anyone?
92
93 On Sep 26, 2006, at 4:01 PM, nate wrote:
94
95 > Another thing to add to this, pear does not appear to compile with
96 > the apache build.
97 >
98 > I have this in my /etc/portage/package.use: dev-lang/php apache2
99 > sockets mysql mysqli cli xml xsl pcre pdo-external session sqlite
100 > curl gd iconv jpeg pcntl pear png posix soap snmp ssl zlib bzip2
101 > bcmath ctype calendar curlwrappers gdbm exif dbm unicode
102 >
103 > According to this url: http://gentoo-wiki.com/HOWTO_PHP_5_with_PEAR
104 > all that pear needs in order to compile are the following USE
105 > flags: cli pcre xml zlib. Maybe I'm a little out of it, but if you
106 > use the ebuild command does it use /etc/portage/package.use or is
107 > that only for emerge?
108 >
109 >
110 > On Sep 26, 2006, at 3:31 PM, nate wrote:
111 >
112 >> I'm not sure if this is the proper list, if it is not I apologize
113 >> and if someone could tell me which I should use it would be
114 >> appreciated.
115 >>
116 >> I'm having a few issues, and I'm not exactly sure where these are
117 >> exactly.
118 >>
119 >> First off I built a custom apache-2.0.58 ebuild from the one in
120 >> the portage tree. It seems to have compiled just fine, and reads
121 >> all of our previous apache configs, it even loads up php just fine
122 >> and dandy. The reason for this custom build was we needed a
123 >> specific layout that we have created, which was used during the
124 >> compiling of apache.
125 >>
126 >> Next onto php. Since our application relies heavily on php for
127 >> the back end we have several patches that we have created, as well
128 >> as needing very specific things done in the ./configure portion of
129 >> compiling. The patches applied just fine, I looked for the lines
130 >> that were changed in the source code while it was compiling and
131 >> they did change. The ./configure that I put inside /usr/portage/
132 >> eclass/depend.apache also ran with no problems.
133 >>
134 >> My php.ini location was specified in two locations, first with --
135 >> with-config-file-path=/etc/apache as well as modifying
136 >> PHP_INI_DIR="/etc/apache/" in /usr/portage/eclass/php5_1-
137 >> sapi.eclass, though a php -i still shows the default location for
138 >> the gentoo build at /etc/php/apache2-php5/php.ini. I know it's
139 >> silly to require our php.ini to be in /etc/apache, but currently
140 >> that's where a *lot* of code looks for that file, symbolic links
141 >> cause issues so the file must reside there.
142 >>
143 >> Finally libphp5.so does not seem to compile *at all.* This is
144 >> troublesome considering I am compiling with the apache support
145 >> enabled. Without that I won't be able to use php scripts through
146 >> apache, any idea why that doesn't exist?
147 >> --
148 >> gentoo-user@g.o mailing list
149 >
150 >
151 > --
152 > gentoo-user@g.o mailing list
153
154
155
156 -------
157 I don't think it's fair. We send them Jeff Mills. They send Tiesto.
158 Fuck Europe.
159
160 We were all worried because we thought she had narcolepsy. But it
161 turns out she's just a heroin addict.