* [gentoo-user] Why does wordpress require xterm?
@ 2006-02-22 21:40 Lance Jacobs
2006-02-22 23:00 ` Iain Buchanan
2006-02-22 23:15 ` Richard Fish
0 siblings, 2 replies; 9+ messages in thread
From: Lance Jacobs @ 2006-02-22 21:40 UTC (permalink / raw
To: gentoo-user
I am trying to install wordpress on a machine that will become a server
in a rack in a datacenter, so it does not need (nor do I want) X11 on
it. Right now, emerge is happy:
[gromit ~ #] emerge -uDptv world
These are the packages that I would merge, in reverse order:
Calculating world dependencies ...done!
Total size of downloads: 0 kB
If I try to install wordpress, it wants to bring xterm, and therefore
X11, with it:
[gromit ~ #] emerge -uDptv wordpress
These are the packages that I would merge, in reverse order:
Calculating dependencies ...done!
[ebuild N ] www-apps/wordpress-2.0.1 +vhosts 0 kB
[ebuild N ] x11-terms/xterm-207 -Xaw3d -doc -toolbar +truetype -unicode 0 kB
[ebuild N ] sys-apps/utempter-0.5.5.6 0 kB
[ebuild N ] virtual/x11-6.8 0 kB
[ebuild N ] x11-base/xorg-x11-6.8.2-r6 -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 0 kB
Total size of downloads: 0 kB
If I install wordpress without the -D option, any subsequent emerge with
the -D option then wants to pull in xterm and all of that other stuff.
Looking at the wordpress ebuild file, I do not see any reason for it to
have a dependency on xterm. I'm probably missing something simple, but
I just don't see it. Any suggestions would be appreciated.
Regards,
Lance Jacobs
lance@ljacobs.net
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Why does wordpress require xterm?
2006-02-22 21:40 [gentoo-user] Why does wordpress require xterm? Lance Jacobs
@ 2006-02-22 23:00 ` Iain Buchanan
2006-02-22 23:15 ` Richard Fish
1 sibling, 0 replies; 9+ messages in thread
From: Iain Buchanan @ 2006-02-22 23:00 UTC (permalink / raw
To: gentoo-user
On Wed, 2006-02-22 at 16:40 -0500, Lance Jacobs wrote:
> I am trying to install wordpress on a machine that will become a server
> in a rack in a datacenter, so it does not need (nor do I want) X11 on
> it. Right now, emerge is happy:
[snip]
> If I try to install wordpress, it wants to bring xterm, and therefore
> X11, with it:
>
> [gromit ~ #] emerge -uDptv wordpress
hang on, that's "upgrading" wordpress, not installing it. Try either
$ emerge -pvt wordpress
or
$ emerge -uDptv world
without wordpress, to see just where the xterm dep is coming in...
> These are the packages that I would merge, in reverse order:
> Calculating dependencies ...done!
> [ebuild N ] www-apps/wordpress-2.0.1 +vhosts 0 kB
> [ebuild N ] x11-terms/xterm-207 -Xaw3d -doc -toolbar +truetype -unicode 0 kB
It appears xterm isn't a dep of wordpress, but emerge is just trying to
install it anyway.
If you're building a server, try setting your use flags to "-X -gnome
-kde -qt -gtk" etc, and try again.
> If I install wordpress without the -D option, any subsequent emerge with
> the -D option then wants to pull in xterm and all of that other stuff.
absolutely. Leaving out -D isn't a fix, just a workaround...
> Looking at the wordpress ebuild file, I do not see any reason for it to
> have a dependency on xterm. I'm probably missing something simple, but
> I just don't see it. Any suggestions would be appreciated.
I didn't see it either.
HTH,
--
Iain Buchanan <iain at netspace dot net dot au>
Some people say a front-engine car handles best. Some people say a
rear-engine car handles best. I say a rented car handles best.
-- P.J. O'Rourke
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Why does wordpress require xterm?
2006-02-22 21:40 [gentoo-user] Why does wordpress require xterm? Lance Jacobs
2006-02-22 23:00 ` Iain Buchanan
@ 2006-02-22 23:15 ` Richard Fish
2006-02-22 23:47 ` Lance Jacobs
1 sibling, 1 reply; 9+ messages in thread
From: Richard Fish @ 2006-02-22 23:15 UTC (permalink / raw
To: gentoo-user
On 2/22/06, Lance Jacobs <lance@ljacobs.net> wrote:
> Looking at the wordpress ebuild file, I do not see any reason for it to
> have a dependency on xterm. I'm probably missing something simple, but
> I just don't see it. Any suggestions would be appreciated.
wordpress depends on virtual/httpd-php, which for the current x86
profile defaults to dev-lang/php, which inherits the php5_0-sapi
eclass (or php5_1-sapi if you accept ~x86), which contains:
xpm? ( || ( x11-libs/libXpm virtual/x11 ) )
So if you have USE=xpm, this drags in either x11-libs/libXpm or
virtual/x11, but libXpm is still hard masked. So you end up depending
on virtual/x11, which is satisfied currently by xorg-x11-6.8, which
requires xterm. Simple enough?? ;->
Try with USE=-xpm.
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Why does wordpress require xterm?
2006-02-22 23:15 ` Richard Fish
@ 2006-02-22 23:47 ` Lance Jacobs
2006-02-23 3:08 ` Greg Bur
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Lance Jacobs @ 2006-02-22 23:47 UTC (permalink / raw
To: gentoo-user
On Wed, 22 Feb 2006, Richard Fish wrote:
> On 2/22/06, Lance Jacobs <lance@ljacobs.net> wrote:
>> Looking at the wordpress ebuild file, I do not see any reason for it to
>> have a dependency on xterm. I'm probably missing something simple, but
>> I just don't see it. Any suggestions would be appreciated.
>
> wordpress depends on virtual/httpd-php, which for the current x86
> profile defaults to dev-lang/php, which inherits the php5_0-sapi
> eclass (or php5_1-sapi if you accept ~x86), which contains:
>
> xpm? ( || ( x11-libs/libXpm virtual/x11 ) )
>
> So if you have USE=xpm, this drags in either x11-libs/libXpm or
> virtual/x11, but libXpm is still hard masked. So you end up depending
> on virtual/x11, which is satisfied currently by xorg-x11-6.8, which
> requires xterm. Simple enough?? ;->
>
> Try with USE=-xpm.
Hmm, that seems to fix it:
[gromit ~ #] USE=-xpm emerge -uDptv wordpress
These are the packages that I would merge, in reverse order:
Calculating dependencies ...done!
[ebuild N ] www-apps/wordpress-2.0.1 +vhosts 0 kB
Total size of downloads: 0 kB
However, I already have
USE="-X -gtk -gnome -qt -kde -alsa -xpm -opengl userprofiles ..."
in make.conf, so somehow this is ignoring that "-xpm". Even adding
www-apps/wordpress -xpm
in /etc/portage/package.use doesn't prevent the original emerge command
from trying to pull in xterm and X11. What am I missing now?
Regards,
Lance Jacobs
lance@ljacobs.net
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Why does wordpress require xterm?
2006-02-22 23:47 ` Lance Jacobs
@ 2006-02-23 3:08 ` Greg Bur
2006-02-23 5:51 ` Richard Fish
2006-02-23 6:00 ` Richard Fish
2 siblings, 0 replies; 9+ messages in thread
From: Greg Bur @ 2006-02-23 3:08 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 478 bytes --]
On 2/22/06, Lance Jacobs <lance@ljacobs.net> wrote:
>
>
> However, I already have
>
> USE="-X -gtk -gnome -qt -kde -alsa -xpm -opengl userprofiles ..."
>
> in make.conf, so somehow this is ignoring that "-xpm". Even adding
>
> www-apps/wordpress -xpm
>
> in /etc/portage/package.use doesn't prevent the original emerge command
> from trying to pull in xterm and X11. What am I missing now?
Is it possible the xpm use flag was set when you built php?
[-- Attachment #2: Type: text/html, Size: 852 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Why does wordpress require xterm?
2006-02-22 23:47 ` Lance Jacobs
2006-02-23 3:08 ` Greg Bur
@ 2006-02-23 5:51 ` Richard Fish
2006-02-23 6:26 ` Lance Jacobs
2006-02-23 6:00 ` Richard Fish
2 siblings, 1 reply; 9+ messages in thread
From: Richard Fish @ 2006-02-23 5:51 UTC (permalink / raw
To: gentoo-user
On 2/22/06, Lance Jacobs <lance@ljacobs.net> wrote:
> However, I already have
>
> USE="-X -gtk -gnome -qt -kde -alsa -xpm -opengl userprofiles ..."
>
> in make.conf, so somehow this is ignoring that "-xpm". Even adding
>
> www-apps/wordpress -xpm
>
> in /etc/portage/package.use doesn't prevent the original emerge command
> from trying to pull in xterm and X11. What am I missing now?
It is not wordpress that has the xpm USE flag, but dev-lang/php. So
that should be "dev-lang/php -xpm". Also, make sure that only a
single entry for the package appears in package.use.
For the make.conf case, well, it should work. Maybe check the output
of "emerge -DNuvp world", and if that doesn't help, post the output of
emerge --info.
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Why does wordpress require xterm?
2006-02-22 23:47 ` Lance Jacobs
2006-02-23 3:08 ` Greg Bur
2006-02-23 5:51 ` Richard Fish
@ 2006-02-23 6:00 ` Richard Fish
2 siblings, 0 replies; 9+ messages in thread
From: Richard Fish @ 2006-02-23 6:00 UTC (permalink / raw
To: gentoo-user
On 2/22/06, Lance Jacobs <lance@ljacobs.net> wrote:
> However, I already have
>
> USE="-X -gtk -gnome -qt -kde -alsa -xpm -opengl userprofiles ..."
>
Oh also, not directly related to your question, but it sounds like you
might be better off using something like USE="-* userprofiles ...".
The "-*" turns off all default flags (which can change when changing
profiles, or when installing certain packages), so that only the flags
you specifically want are on. Then I would make heavy use of
package.use to turn on specific USE flags for specific packages,
rather than globally enabling them in make.conf.
This does take a bit more care to get right, but it can result in a
very lean system, with no surprises like the x11 dependancy you had
today.
But be really careful if you do convert to this, and don't merge
anything without examining the output of "emerge -DNuvp world", and
being happy with the changes it wants to make. Switching from "pam"
to "-pam" has been reported to break systems, for example. Once you
are happy, run the emerge for real.
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Why does wordpress require xterm?
2006-02-23 5:51 ` Richard Fish
@ 2006-02-23 6:26 ` Lance Jacobs
2006-02-23 15:41 ` Richard Fish
0 siblings, 1 reply; 9+ messages in thread
From: Lance Jacobs @ 2006-02-23 6:26 UTC (permalink / raw
To: gentoo-user
On Wed, 22 Feb 2006, Richard Fish wrote:
> On 2/22/06, Lance Jacobs <lance@ljacobs.net> wrote:
>> However, I already have
>>
>> USE="-X -gtk -gnome -qt -kde -alsa -xpm -opengl userprofiles ..."
>>
>> in make.conf, so somehow this is ignoring that "-xpm". Even adding
>>
>> www-apps/wordpress -xpm
>>
>> in /etc/portage/package.use doesn't prevent the original emerge command
>> from trying to pull in xterm and X11. What am I missing now?
>
> It is not wordpress that has the xpm USE flag, but dev-lang/php. So
> that should be "dev-lang/php -xpm". Also, make sure that only a
> single entry for the package appears in package.use.
>
> For the make.conf case, well, it should work. Maybe check the output
> of "emerge -DNuvp world", and if that doesn't help, post the output of
> emerge --info.
Bingo -- the "dev-lang/php -xpm" entry solved the problem. And, as
another poster suggested, I apparently did not have -xpm in place at the
time that php was built, as --newuse now wants to rebuild it due to the
change in that flag.
Is there some tool that I should be using, or some additional emerge
flag, that would help diagnose a problem like this? I tried masking the
packages that were being brought in, to see if that would tell me which
package had the dependency that was bringing in the extra stuff, but
nothing ever pointed me at php -- virtual/x11-6.8 is as far as it would
ever go. I appreciate the help and would like learn from this, and
avoid bugging the list if something like this comes up again.
Regards,
Lance
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Why does wordpress require xterm?
2006-02-23 6:26 ` Lance Jacobs
@ 2006-02-23 15:41 ` Richard Fish
0 siblings, 0 replies; 9+ messages in thread
From: Richard Fish @ 2006-02-23 15:41 UTC (permalink / raw
To: gentoo-user
On 2/22/06, Lance Jacobs <lance@ljacobs.net> wrote:
> Is there some tool that I should be using, or some additional emerge
> flag, that would help diagnose a problem like this? I tried masking the
> packages that were being brought in, to see if that would tell me which
> package had the dependency that was bringing in the extra stuff,
How did you mask the package? It should have been with
/etc/portage/package.mask...
"emerge -Dptv --emptytree <pkg>" will always show you the full
dependancy tree for a package. And if you mask out a package, this
command should also tell you which package is bringing in the
dependancy. For example, if I comment out the line in my unmask that
allows me to bring in x11-libs/libXpm, and try to emerge wordpress, I
get:
carcharias rjf # USE=xpm emerge -Deptv wordpress
These are the packages that I would merge, in reverse order:
Calculating dependencies |
!!! All ebuilds that could satisfy "x11-libs/libXpm" have been masked.
!!! One of the following masked packages is required to complete your request:
- x11-libs/libXpm-3.5.4.2 (masked by: package.mask)
# Donnie Berkholz <spyderous@gentoo.org> (07 Aug 2005)
# Modularized X, upstream release candidates
For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.
(dependency required by "dev-lang/php-5.1.1" [ebuild])
I get a similar error if I mask out dev-db/mysql in /etc/portage/package.mask
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2006-02-23 15:47 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-22 21:40 [gentoo-user] Why does wordpress require xterm? Lance Jacobs
2006-02-22 23:00 ` Iain Buchanan
2006-02-22 23:15 ` Richard Fish
2006-02-22 23:47 ` Lance Jacobs
2006-02-23 3:08 ` Greg Bur
2006-02-23 5:51 ` Richard Fish
2006-02-23 6:26 ` Lance Jacobs
2006-02-23 15:41 ` Richard Fish
2006-02-23 6:00 ` Richard Fish
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox