Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 655650 - app-text/texlive-core-2017-r4: depend on <=media-libs/freetype-2.9.1-r1
Summary: app-text/texlive-core-2017-r4: depend on <=media-libs/freetype-2.9.1-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexis Ballier
URL: https://gitweb.gentoo.org/repo/gentoo...
Whiteboard:
Keywords:
Depends on:
Blocks: CVE-2018-6942
  Show dependency tree
 
Reported: 2018-05-13 13:07 UTC by Nikos Chantziaras
Modified: 2018-06-07 20:46 UTC (History)
5 users (show)

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 Nikos Chantziaras 2018-05-13 13:07:05 UTC
media-libs/freetype-2.9.1-r1 is now in portage and it still provides freetype-config, which is needed by texlive-core. Until a patch is available that uses pkg-config instead of freetype-config, the ebuild can instead depend on freetype-2.9.1-r1 instead of 2.9, as 2.9.1 has some important bug fixes.

The revbump to r4 was needed to avoid blockers when doing a @world update.
Comment 1 Coacher 2018-05-13 14:21:49 UTC

*** This bug has been marked as a duplicate of bug 655052 ***
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-05-13 21:44:59 UTC
See URL field.

You can safely depend on <media-libs/freetype-2.9.1-r2 now.
Comment 3 Nikos Chantziaras 2018-05-14 12:44:15 UTC
Why has this been closed? This is not a duplicate. This is a dep change, not a move to pkg-config.
Comment 4 Alexis Ballier gentoo-dev 2018-05-15 06:57:07 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #2)
> See URL field.
> 
> You can safely depend on <media-libs/freetype-2.9.1-r2 now.

That change has been made without revbump so there is 0 guarantee the installed 2.9.1-r1 will have freetype-config.
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2018-05-15 14:42:36 UTC
It would be quite ugly, but a check in pkg_pretend()

if has_version =media-libs/freetype-2.9.1-r1; then
    [[ -f "${EPREFIX}"/usr/bin/freetype-config ]] || die "re-emerge freetype"
fi

could do the trick in most cases. Notable exception is when previously built binpkg without freetype-config is going to be installed.
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-05-16 12:10:55 UTC
(In reply to Alexis Ballier from comment #4)
> (In reply to Lars Wendler (Polynomial-C) from comment #2)
> > See URL field.
> > 
> > You can safely depend on <media-libs/freetype-2.9.1-r2 now.
> 
> That change has been made without revbump so there is 0 guarantee the
> installed 2.9.1-r1 will have freetype-config.

~arch already has freetype-2.9.1-r2 so I don't see a big problem here.
Comment 7 Larry the Git Cow gentoo-dev 2018-05-16 13:18:40 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06f93ddd92c098680b9e7e7ab1c31566fba18803

commit 06f93ddd92c098680b9e7e7ab1c31566fba18803
Author:     Alexis Ballier <aballier@gentoo.org>
AuthorDate: 2018-05-16 13:14:55 +0000
Commit:     Alexis Ballier <aballier@gentoo.org>
CommitDate: 2018-05-16 13:18:25 +0000

    app-text/texlive-core: adjust freetype dep
    
    Closes: https://bugs.gentoo.org/655650
    Package-Manager: Portage-2.3.36, Repoman-2.3.9

 app-text/texlive-core/texlive-core-2017-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 8 Franz Trischberger 2018-05-17 09:02:43 UTC
Broken again with recent freetype commit:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d9a68ef8e502f06fc968430038c3877112aef40
texlive-core still wants <freetype-2.9.1-r2

Isn't there a better solution to this issue than depending on exact (or max/min/whatever) versions?
Comment 9 Anton Bolshakov 2018-05-18 00:36:04 UTC
@Lars Wendler Please stop breaking stable users. This is not acceptable. You should do your last min changes in a ~arch branch at least.

@Nikos Chantziaras Please re-open this bug.
Comment 10 maurerpe 2018-05-18 01:59:18 UTC
(In reply to Franz Fellner from comment #8)
> Broken again with recent freetype commit:
> https://gitweb.gentoo.org/repo/gentoo.git/commit/
> ?id=7d9a68ef8e502f06fc968430038c3877112aef40
> texlive-core still wants <freetype-2.9.1-r2
> 
> Isn't there a better solution to this issue than depending on exact (or
> max/min/whatever) versions?

The better solution is my patch on bug https://bugs.gentoo.org/655052.  However, as you can see from the discussion it is not ready to go live.
Comment 11 Mike Limansky 2018-05-25 09:31:44 UTC
Why does it fixed? The error is still there:

WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:

media-libs/freetype:2

  (media-libs/freetype-2.9.1-r3:2/2::gentoo, ebuild scheduled for merge) conflicts with
    <media-libs/freetype-2.9.1-r2 required by (app-text/texlive-core-2017-r3:0/0::gentoo, installed)
Comment 12 Franz Trischberger 2018-05-25 10:21:34 UTC
Because it broke again. But a fix seems to be coming. You can add "=app-text/texlive-core-2017-r4 **" in /etc/portage/package.accept_keywords to get the fixed version.
Comment 13 groepaz 2018-05-30 13:34:20 UTC
adding "=app-text/texlive-core-2017-r4 **" to keywords does not fix it here (stable profile), still fails with

WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:

media-libs/freetype:2

  (media-libs/freetype-2.9.1-r3:2/2::gentoo, ebuild scheduled for merge) conflicts with
    <media-libs/freetype-2.9.1-r2 required by (app-text/texlive-core-2017-r3:0/0::gentoo, installed)
    ^                    ^^^^^^^^
Comment 14 Franz Trischberger 2018-05-30 13:50:26 UTC
(In reply to groepaz from comment #13)
>     <media-libs/freetype-2.9.1-r2 required by
> (app-text/texlive-core-2017-r3:0/0::gentoo, installed)
>     ^                    ^^^^^^^^

It says "-r3" so it didn't pick up the unmasking of "-r4" - are you sure you properly unmasked texlive-core? Correct config file? No misspelling?
Comment 15 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-05-30 14:40:15 UTC
(In reply to Anton Bolshakov from comment #9)
> @Lars Wendler Please stop breaking stable users. This is not acceptable. You
> should do your last min changes in a ~arch branch at least.

Please stop telling me how to do my work. It's not my fault texlive-core has stupid dependency restrictions.