Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366385 - virtual/mysql[static] requires dev-db/mysql[static]
Summary: virtual/mysql[static] requires dev-db/mysql[static]
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-07 19:03 UTC by f1a989188a51186834a821708563800a
Modified: 2011-05-13 19:02 UTC (History)
1 user (show)

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


Attachments
emerge --info output (emerge_info.txt,4.19 KB, text/plain)
2011-05-08 07:13 UTC, f1a989188a51186834a821708563800a
Details
emerge --debug output (emerge_world_deb.txt,127.41 KB, text/plain)
2011-05-13 16:46 UTC, f1a989188a51186834a821708563800a
Details

Note You need to log in before you can comment on or make changes to this bug.
Description f1a989188a51186834a821708563800a 2011-05-07 19:03:09 UTC
Static useflag enabled on my system in make.conf globally. I would like to build the freshly stabilized mysql without it.

From package.use:

virtual/mysql -*
dev-db/mysql -*

gentoo ~ # emerge -avquDN --keep-going world

emerge: there are no ebuilds built with USE flags to satisfy "=dev-db/mysql-5.1*[embedded=,minimal=,static=]".
!!! One of the following packages is required to complete your request:
- dev-db/mysql-5.1.56 (Change USE: -static)
- virtual/mysql-5.1 (Change USE: +static)
(dependency required by "virtual/mysql-5.1" [ebuild])
(dependency required by "dev-db/mysql-5.1.56" [ebuild])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])

2nd case scenario:
virtual/mysql -*
dev-db/mysql -* -static

gentoo ~ # emerge -avquDN --keep-going world

emerge: there are no ebuilds built with USE flags to satisfy "=dev-db/mysql-5.1*[embedded=,minimal=,static=]".
!!! One of the following packages is required to complete your request:
- dev-db/mysql-5.1.56 (Change USE: -static)
- virtual/mysql-5.1 (Change USE: +static)
(dependency required by "virtual/mysql-5.1" [ebuild])
(dependency required by "dev-db/mysql-5.1.56" [ebuild])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])
Comment 1 f1a989188a51186834a821708563800a 2011-05-08 07:13:03 UTC
Created attachment 272455 [details]
emerge --info output
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2011-05-12 18:09:44 UTC
The maintainers probably have very good reasons to set this.
Comment 3 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-05-12 18:31:27 UTC
(In reply to comment #0)
> Static useflag enabled on my system in make.conf globally. I would like to
> build the freshly stabilized mysql without it.
> 
> From package.use:
> 
> virtual/mysql -*
> dev-db/mysql -*

This is "dangerous" as you're disabling all use flags, including the IUSE defaults. You should replace -* with -static.

> gentoo ~ # emerge -avquDN --keep-going world
> 
> emerge: there are no ebuilds built with USE flags to satisfy
> "=dev-db/mysql-5.1*[embedded=,minimal=,static=]".
> !!! One of the following packages is required to complete your request:
> - dev-db/mysql-5.1.56 (Change USE: -static)
> - virtual/mysql-5.1 (Change USE: +static)

Portage is warning you that you need to have the static use flag set the same way for both dev-db/mysql and virtual/mysql.

Make sure you don't have any "stray" use flag set for the mysql ebuilds in the package.use file / dir.
Comment 4 f1a989188a51186834a821708563800a 2011-05-12 19:20:45 UTC
(In reply to comment #3)
> (In reply to comment #0)
> > Static useflag enabled on my system in make.conf globally. I would like to
> > build the freshly stabilized mysql without it.
> > 
> > From package.use:
> > 
> > virtual/mysql -*
> > dev-db/mysql -*
> 
> This is "dangerous" as you're disabling all use flags, including the IUSE
> defaults. You should replace -* with -static.
> 
> > gentoo ~ # emerge -avquDN --keep-going world
> > 
> > emerge: there are no ebuilds built with USE flags to satisfy
> > "=dev-db/mysql-5.1*[embedded=,minimal=,static=]".
> > !!! One of the following packages is required to complete your request:
> > - dev-db/mysql-5.1.56 (Change USE: -static)
> > - virtual/mysql-5.1 (Change USE: +static)
> 
> Portage is warning you that you need to have the static use flag set the same
> way for both dev-db/mysql and virtual/mysql.
> 
> Make sure you don't have any "stray" use flag set for the mysql ebuilds in the
> package.use file / dir.

Thanks for the hint. Tried out, though the emerge behavior doesn't changed at all.

gentoo ~ # cat /etc/portage/package.use
virtual/mysql -static
dev-db/mysql -static

This build works just fine on and amd64 system. What can cause the problem here?
Comment 5 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-05-12 23:05:28 UTC
(In reply to comment #4)
> Thanks for the hint. Tried out, though the emerge behavior doesn't changed at
> all.
> 
> gentoo ~ # cat /etc/portage/package.use
> virtual/mysql -static
> dev-db/mysql -static
> 
> This build works just fine on and amd64 system. What can cause the problem
> here?

> PORTDIR_OVERLAY="/usr/local/portage"

Please check if you have any mysql ebuilds in your overlay.
If not, please attach to this bug report the output of emerge --debug -uDpvN @world
Comment 6 f1a989188a51186834a821708563800a 2011-05-13 16:45:39 UTC
gentoo ~ # ls -al /usr/local/portage/
total 8
drwxr-xr-x 4 portage portage   32 May 13 17:46 .
drwxr-xr-x 9 root    root    4096 Nov  9  2009 ..
drwxr-xr-x 3 root    root       8 Dec 23 20:26 dev-php5
drwxr-xr-x 3 portage portage    8 Nov 14 11:29 mail-filter
Comment 7 f1a989188a51186834a821708563800a 2011-05-13 16:46:41 UTC
Created attachment 273101 [details]
emerge --debug output
Comment 8 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-05-13 17:51:39 UTC
What's the output of the following:

emerge -pv --nodeps dev-db/mysql
emerge -pv --nodeps virtual/mysql
Comment 9 f1a989188a51186834a821708563800a 2011-05-13 18:25:00 UTC
(In reply to comment #8)
> What's the output of the following:
> 
> emerge -pv --nodeps dev-db/mysql
> emerge -pv --nodeps virtual/mysql

gentoo ~ # emerge -pv --nodeps dev-db/mysql

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

... done!
[ebuild   R   ] dev-db/mysql-5.1.56  USE="static* -big-tables -cluster -community -debug -embedded -extraengine -latin1 -max-idx-128 -minimal -pbxt -perl -profiling (-selinux) -ssl -test -xtradb" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

gentoo ~ # emerge -pv --nodeps virtual/mysql

These are the packages that would be merged, in order:
... done!                                                                           [ebuild   R   ] virtual/mysql-5.1  USE="-embedded -minimal -static" 0 kB
Total: 1 package (1 reinstall), Size of downloads: 0 kB

gentoo ~ # cat /etc/portage/package.use 
virtual/mysql -static
dev-db/mysql -static
Comment 10 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-05-13 18:34:02 UTC
(In reply to comment #9)
> (In reply to comment #8)
> gentoo ~ # emerge -pv --nodeps dev-db/mysql
> [ebuild   R   ] dev-db/mysql-5.1.56  USE="static* -big-tables -cluster
> -community -debug -embedded -extraengine -latin1 -max-idx-128 -minimal -pbxt
> -perl -profiling (-selinux) -ssl -test -xtradb" 0 kB

> gentoo ~ # emerge -pv --nodeps virtual/mysql
>     [ebuild   R   ] virtual/mysql-5.1  USE="-embedded -minimal -static" 0 kB
> Total: 1 package (1 reinstall), Size of downloads: 0 kB
> 
> gentoo ~ # cat /etc/portage/package.use 
> virtual/mysql -static
> dev-db/mysql -static

There's either something wrong with your package.use file or there's a portage bug here somewhere.

@portage:
Any ideas?
Comment 11 Zac Medico gentoo-dev 2011-05-13 18:42:53 UTC
Also check /etc/portage/package.env, since it's possible to set per-package USE there as well.
Comment 12 f1a989188a51186834a821708563800a 2011-05-13 18:48:12 UTC
Please excuse me! There was 2 dev-db/mysql line in my package.use file, and the 2nd was forcing the static useflag for dev-db/mysql . Thank you very much for pointing this out.

 One more question for my stupid mistake: Are there any automated way to check for this duplications? Portage never mentioned this duplicated usage.

Anyway: Thank you one more time for your help!

Gergely Németh
Comment 13 Zac Medico gentoo-dev 2011-05-13 18:59:59 UTC
(In reply to comment #12)
>  One more question for my stupid mistake: Are there any automated way to check
> for this duplications? Portage never mentioned this duplicated usage.

I don't know of any tool to automate this.
Comment 14 Zac Medico gentoo-dev 2011-05-13 19:02:00 UTC
(In reply to comment #13)
> (In reply to comment #12)
> >  One more question for my stupid mistake: Are there any automated way to check
> > for this duplications? Portage never mentioned this duplicated usage.
> 
> I don't know of any tool to automate this.

However, a command like this typically makes it easy to spot such problems:

  grep -r mysql /etc/portage