Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 750125 - net-misc/unison[gtk] doesn't actually build the GTK GUI (PATCH)
Summary: net-misc/unison[gtk] doesn't actually build the GTK GUI (PATCH)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-10-19 13:31 UTC by Maciej S. Szmigiero
Modified: 2020-10-20 03:09 UTC (History)
2 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 Maciej S. Szmigiero 2020-10-19 13:31:10 UTC
At least with net-misc/unison-2.51.3_rc2 (and earlier versions likely, too) enabling "gtk" USE flag doesn't actually build the GTK GUI.

This is because the package ebuild calls "make" on the default target, while the unison top-level Makefile overrides the UISTYLE var to text for this target:
> default: text
> 
> text:
>     $(MAKE) -C src UISTYLE=text


In order to have a switchable UISTYLE the "all" target should be built instead,
the required ebuild change is below:
>  src_compile() {
>         local myconf
>  
> +       myconf="all"
> +
>        if use threads; then
>                myconf="$myconf THREADS=true"
>        fi

The above fixes the GTK build.
Comment 1 Larry the Git Cow gentoo-dev 2020-10-20 03:09:25 UTC
The bug has been closed via the following commit(s):

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

commit dfcfaa586a6aee2b81100c59995480f632f669dc
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2020-10-20 03:08:18 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-10-20 03:09:22 +0000

    net-misc/unison: fix .desktop and GUI build
    
    Closes: https://bugs.gentoo.org/360161
    Closes: https://bugs.gentoo.org/750125
    Package-Manager: Portage-3.0.8, Repoman-3.0.1
    Signed-off-by: Sam James <sam@gentoo.org>

 .../unison/{unison-2.48.15_p4.ebuild => unison-2.48.15_p4-r1.ebuild}  | 4 ++--
 net-misc/unison/unison-2.51.3_rc3.ebuild                              | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)