Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 175126 - mytharchive ebuild specifies two versions for mjpegtools
Summary: mytharchive ebuild specifies two versions for mjpegtools
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-18 18:19 UTC by Dan A. Dickey
Modified: 2007-05-09 12:24 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan A. Dickey 2007-04-18 18:19:38 UTC
The mytharchive-0.20_p12824 ebuild specifies:
                >=media-video/mjpegtools-1.6.2
                <media-video/mjpegtools-1.8.99999
in RDEPEND.
For whatever reason, this is giving me the following output from an emerge -pDv mytharchive:

# emerge -pDv mytharchive

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

Calculating dependencies \
!!! Multiple versions within a single package slot have been
!!! pulled into the dependency graph:

('installed', '/', 'media-video/mjpegtools-1.8.0-r2', 'nomerge') pulled in by
  ('ebuild', '/', 'media-plugins/mytharchive-0.20_p12824', 'merge')

('ebuild', '/', 'media-video/mjpegtools-1.9.0_rc2', 'merge') pulled in by
  ('ebuild', '/', 'media-plugins/mytharchive-0.20_p12824', 'merge')

It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously. If such a conflict exists in the
dependencies of two different packages, then those packages can not be
installed simultaneously.

For more information, see MASKED PACKAGES section in the emerge man page
or refer to the Gentoo Handbook.

... done!
[ebuild     U ] media-video/mjpegtools-1.9.0_rc2 [1.8.0-r2] USE="X dv mmx png v4l -dga -gtk -quicktime -sdl -yv12" 0 kB
[ebuild   R   ] media-plugins/mytharchive-0.20_p12824  USE="mmx -debug" 0 kB

Total: 2 packages (1 upgrade, 1 reinstall), Size of downloads: 0 kB

It believe I know what was intended with the two mjpegtools specifications,
but I do not think portage understands.  Can someone please fix this?
I've been hoping someone other than myself would report this for the last
several days.
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2007-04-23 18:33:18 UTC
The issue is because you have a newer version installed so Portage already has those solutions. The problem crops up because Portage does not yet support backtracking and as such can't downgrade it's previous decision. 

If you downgrade the version by hand, it will resolve this for you. The fix will be out in the next Portage version (2.2 or 2.1.4) should contain the fix.
Comment 2 Dan A. Dickey 2007-04-23 20:26:51 UTC
Yes, I believe it is a portage problem; or possibly one could
alternatively blame the ebuild.  I've unmerged mjpegtools altogether,
and I'm still getting the problem when trying 'emerge -pDuv world'.

Your explanation for closing the bug leaves a bit to be desired.
I downgraded mjpegtools manually, and:
# emerge -pDuv world

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

Calculating world dependencies -
!!! Multiple versions within a single package slot have been
!!! pulled into the dependency graph:

('installed', '/', 'media-video/mjpegtools-1.8.0-r2', 'nomerge') pulled in by
  ('installed', '/', 'media-plugins/mytharchive-0.20_p12824', 'nomerge')

('ebuild', '/', 'media-video/mjpegtools-1.9.0_rc2', 'merge') pulled in by
  ('installed', '/', 'media-plugins/mytharchive-0.20_p12824', 'nomerge')

It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously. If such a conflict exists in the
dependencies of two different packages, then those packages can not be
installed simultaneously.

For more information, see MASKED PACKAGES section in the emerge man page
or refer to the Gentoo Handbook.

... done!
[ebuild     U ] media-tv/mythtv-0.20_p13271 [0.20_p13110] USE="alsa dts dvb dvd ieee1394 ivtv lirc mmx opengl perl xvmc (-altivec) -autostart -backendonly -crciprec -dbox2 -debug -freebox -frontendonly -hdhomerun -jack -joystick -lcd -vorbis" VIDEO_CARDS="via -i810 -nvidia" 51 kB
[ebuild     U ] media-video/mjpegtools-1.9.0_rc2 [1.8.0-r2] USE="X dv mmx png v4l -dga -gtk -quicktime -sdl -yv12" 0 kB
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2007-04-23 20:31:06 UTC
Yes. A mask will solve the problem. As I stated in my instructions, the proper fix would have been to hand emerge (emerge --oneshot =media-video/mjpegtools-1.8*) the proper version and it would go away.

Now that you've unmerged the current version. The only fix is to add a mask to /etc/portage/package.mask.

This isssue is bug #1343.
Comment 4 Dan A. Dickey 2007-04-26 10:52:18 UTC
Yes, the mask solved the problem.  Thanks.
I actually tried that first, but it didn't work then
(still needed to manually downgrade I guess), so had
backed it out.  And then did the manual downgrade and
forgot to try the mask again.  Anyways, everything looks
good now.  Thanks again.
Comment 5 Mark L Pappin 2007-05-09 12:24:41 UTC
(In reply to comment #3)
> Yes. A mask will solve the problem.

And if a mask is necessary it should be part of the official distribution.  Every time I 'emerge --sync && emerge --update portage', my hand-entered masks disappear.  It's getting tedious.

> As I stated in my instructions, the proper
> fix would have been to hand emerge (emerge --oneshot
> =media-video/mjpegtools-1.8*) the proper version and it would go away.

Not without the mask it doesn't:

# emerge -auND --with-bdeps y world

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

Calculating world dependencies /
!!! Multiple versions within a single package slot have been
!!! pulled into the dependency graph:

('installed', '/', 'media-video/mjpegtools-1.8.0-r2', 'nomerge') pulled in by
  ('installed', '/', 'media-plugins/mytharchive-0.20.1_p13375', 'nomerge')

('ebuild', '/', 'media-video/mjpegtools-1.9.0_rc2', 'merge') pulled in by
  ('installed', '/', 'media-video/transcode-1.0.3', 'nomerge')
  ('installed', '/', 'media-plugins/mytharchive-0.20.1_p13375', 'nomerge')

[snip]
!!! Depgraph creation failed.

Note that nothing in this part of the deptree is being remerged - it's all up to date with appropriate matching versions (according to your previous comments), but portage can't tell.  It's a portage bug, or a bug in one of the ebuilds listed.

Please reopen this bug - _somebody_ can fix it.