Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Can't emerge dev-lang/php with the apache2 USE flag
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
d00nicus
n00b
n00b


Joined: 31 Aug 2024
Posts: 3

PostPosted: Sat Aug 31, 2024 1:43 pm    Post subject: [Solved] Can't emerge dev-lang/php with the apache2 USE flag Reply with quote

Attempting to emerge dev-lang/php with the apache2 USE flag results in emerge requiring a change to package.use to disable it

Code:
emerge -av dev-lang/php

 * IMPORTANT: 34 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


Local copy of remote index is up-to-date and will be used.

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 0.70 s (backtrack: 0/20).


The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by dev-lang/php (argument)
>=dev-lang/php-8.2.20 -apache2

Would you like to add these changes to your config files? [Yes/No]


equery y www-servers/apache produces this:
Code:
Keywords for www-servers/apache:
             |                               |   u   |
             | a   a     p s   a   l r       |   n   |
             | m   r h   p p   l i o i s m m | e u s | r
             | d a m p p c a x p a o s 3 6 i | a s l | e
             | 6 r 6 p p 6 r 8 h 6 n c 9 8 p | p e o | p
             | 4 m 4 a c 4 c 6 a 4 g v 0 k s | i d t | o
-------------+-------------------------------+-------+-------
   2.4.59-r1 | + + + ~ + + + + ~ ~ ~ ~ ~ o ~ | 7 # 2 | gentoo
   2.4.59-r3 | ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ o ~ | 7 #   | gentoo
   2.4.61    | ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ o ~ | 7 #   | gentoo
[I]2.4.62    | + + + ~ + + + + ~ ~ ~ ~ ~ o ~ | 7 o   | gentoo


Last emerge sync was today, and all pre-existing packages are completely up to date.

Make.conf:
Code:
CFLAGS="-O2 -pipe"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C
CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3"
MAKEOPTS="-j64 -l63"
FEATURES="parallel-install getbinpkg"
EMERGE_DEFAULT_OPTS="--autounmask --jobs=10 --load-average 60 --binpkg-respect-use=y"


Last edited by d00nicus on Sat Aug 31, 2024 3:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22618

PostPosted: Sat Aug 31, 2024 2:02 pm    Post subject: Reply with quote

Welcome to the forums.

That result seems a bit odd to me. What happens if you instead run emerge --pretend --verbose --autounmask=n dev-lang/php? The use of --autounmask=n will forbid Portage from suggesting this USE flag change, and should instead force it to show an error explaining that what you want is impossible - and why. Once we know why, we can try to find a solution that satisfies Portage and satisfies your request.
Back to top
View user's profile Send private message
d00nicus
n00b
n00b


Joined: 31 Aug 2024
Posts: 3

PostPosted: Sat Aug 31, 2024 2:04 pm    Post subject: Reply with quote

Thanks for the speedy response, that gives me this output:

Code:
emerge --pretend --verbose --autounmask=n dev-lang/php

Local copy of remote index is up-to-date and will be used.

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 1.02 s (backtrack: 0/20).


emerge: there are no ebuilds built with USE flags to satisfy ">=app-eselect/eselect-php-0.9.7[apache2?,fpm?]".
!!! One of the following packages is required to complete your request:
- app-eselect/eselect-php-0.9.9::gentoo (Change USE: +apache2)
- dev-lang/php-8.2.20::gentoo (Change USE: -apache2)
(dependency required by "dev-lang/php-8.2.20::gentoo" [ebuild])
(dependency required by "dev-lang/php" [argument])
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22618

PostPosted: Sat Aug 31, 2024 2:39 pm    Post subject: Reply with quote

dev-lang/php requires app-eselect/eselect-php[apache2?]. Decoded, this means:
  • If dev-lang/php has USE=-apache2 (as it does now), then app-eselect/eselect-php can have USE=apache2 or USE=-apache2. Both are acceptable.
  • If dev-lang/php has USE=apache2 (as you requested), then app-eselect/eselect-php must have USE=apache2, and currently you do not.
Therefore, you either need to let Portage rebuild app-eselect/eselect-php with USE=apache2, or you need not to set USE=apache2 on php. You probably want the former. Add app-eselect/eselect-php apache2 to /etc/portage/package.use, then run emerge --autounmask=n --ask --verbose --oneshot dev-lang/php app-eselect/eselect-php. If it offers to install, answer yes. If it fails, report back with the resulting output and the output of cat -n /etc/portage/package.use.
Back to top
View user's profile Send private message
d00nicus
n00b
n00b


Joined: 31 Aug 2024
Posts: 3

PostPosted: Sat Aug 31, 2024 3:10 pm    Post subject: Reply with quote

That worked perfectly - you're my hero.

Thank you so much (and thank you for not making me feel too dense!)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
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