Bug 217127 - x11-wm/marco does not build
Summary: x11-wm/marco does not build
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-16 03:25 UTC by Victor Sudakov
Modified: 2018-01-13 06:44 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (gnome)


Attachments
complete poudriere log (37.92 KB, text/plain)
2017-02-16 03:25 UTC, Victor Sudakov
no flags Details
configure log (114.37 KB, text/plain)
2017-02-16 15:18 UTC, Victor Sudakov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Sudakov 2017-02-16 03:25:49 UTC
Created attachment 180035 [details]
complete poudriere log

configure: error: "Pango 1.2.0 or greater based on Xft2 is required"
===>  Script "configure" failed unexpectedly.
Please report the problem to gnome@FreeBSD.org [maintainer] and attach the
"/wrkdirs/usr/ports/x11-wm/marco/work/marco-1.12.1/config.log" including the
output of the failure of your make command. Also, it might be a good idea to
provide an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make: stopped in /usr/ports/x11-wm/marco
====>> Cleaning up wrkdir

I am attaching the complete poudriere log.
Comment 1 Victor Sudakov 2017-02-16 03:40:00 UTC
This prevents from building x11/mate, which is especially annoying.
Comment 2 Victor Sudakov 2017-02-16 15:18:02 UTC
Created attachment 180051 [details]
configure log
Comment 3 Anton Yuzhaninov 2017-03-04 18:12:16 UTC
Please check output of:

pkg-config --atleast-version 1.2.0 pangoxft ; echo $?

command on a build box.

If pangoxft is not found, check if file /usr/local/libdata/pkgconfig/pangoxft.pc is installed (as part of pango port).
Comment 4 Victor Sudakov 2017-03-05 14:45:00 UTC
(In reply to Anton Yuzhaninov from comment #3)
Dear Anton,

I have found the cause of the problem. I have "OPTIONS_UNSET= X11" globally in make.conf, so pango was being built without X11 support. When I explicitly configured OPTIONS_FILE_SET+=X11 for x11-toolkits/pango, the problem went away.

It's up to you to decide if it is a correct behavior for x11-wm/marco to fail like that when X11 is unset in make.conf. or it should handle the situation more gracefully. 

Thank you for your time!
Comment 5 Anton Yuzhaninov 2017-03-05 17:28:48 UTC
(In reply to vas from comment #4)

I think it is one more example of generic problem in FreeBSD ports infrastructure: there is no way to specify that port X depend on port Y with options OPT1, OPT2, e.t.c.

In this case port x11-wm/marco depends on port x11-toolkits/pango with X11=on option.

This problem is discussed from time to time in maillists, but no solution has been offered yet.

BTW Gentoo portage has support for dependencies with given USE flags, e. g.:
app-misc/foo[-bar,baz] - dependency on foo with bar disabled and baz enabled.

> It's up to you to decide if it is a correct behavior for x11-wm/marco to fail
> like that when X11 is unset in make.conf. or it should handle the situation
> more gracefully.

I think we should wait for comment from gnome maintainers (I'm not the one).

IMHO this behavior is not correct, but unfortunately, there is no easy way to fix.
Comment 6 Victor Sudakov 2017-03-06 01:46:30 UTC
(In reply to Anton Yuzhaninov from comment #5)
Anton, thank you for a great explanation. I wonder, if in Gentoo one package depends on app-misc/foo[-bar] and another on app-misc/foo[+bar], how do they handle it? Build two variants of the app-misc/foo package?
Comment 7 Anton Yuzhaninov 2017-03-06 01:53:13 UTC
(In reply to vas from comment #6)
I don't remember exactly, but probably such packages can't be installed together and emerge tool will show message about conflict.
Comment 8 Victor Sudakov 2017-03-06 02:00:57 UTC
(In reply to Anton Yuzhaninov from comment #7)
I see. Now I consider creating two separate sets in my poudriere: one for servers and another for desktops.
Comment 9 Walter Schwarzenfeld freebsd_triage 2018-01-12 12:00:02 UTC
Do understand right, this is solved? So please, close the PR.
Comment 10 Victor Sudakov 2018-01-13 06:43:28 UTC
(In reply to w.schwarzenfeld from comment #9)
As far as I understand, until there are major improvements in the FreeBSD ports infrastructure, we can do nothing about it, so let's close the PR.
Comment 11 Victor Sudakov 2018-01-13 06:44:25 UTC
As far as I understand, until there are major improvements in the FreeBSD ports infrastructure, we can do nothing about it, so let's close the PR.