Bug 196679

Summary: [patch] x11-wm/fvwm2: Fix compilation error related to gtk12 and clang
Product: Ports & Packages Reporter: WATANABE Kazuhiro <CQG00620>
Component: Individual Port(s)Assignee: Cy Schubert <cy>
Status: Closed FIXED    
Severity: Affects Some People Flags: bugzilla: maintainer-feedback? (cy)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
A patch for x11-wm/fvwm2.
none
Build log on 10.1-RELEASE without x11-toolkits/gtk12.
none
Build error log on 10.1-RELEASE with x11-toolkits/gtk12.
none
Build log on 10.1-RELEASE with x11-toolkits/gtk12 and the patch.
none
poudriere testport log with the patch (10.1-RELEASE amd64) none

Description WATANABE Kazuhiro 2015-01-13 13:01:08 UTC
Created attachment 151552 [details]
A patch for x11-wm/fvwm2.

The previous version of x11-wm/fvwm2 had IMLIB option [1], and the option was
disabled by default.  If the option was disabled, added "--disable-gtk" to
the CONFIGURE_ARGS variable like this:

| .if ${PORT_OPTIONS:MIMLIB}     
| USE_GNOME+=     imlib          
| .else          
| CONFIGURE_ARGS+=--disable-gtk          
| .endif         

...and the FvwmGtk module was not compiled (it requires GTK) and disabled
in pkg-plist.

But the latest x11-wm/fvwm2 doesn't specify "--disable-gtk" anywhere.
So if x11-toolkits/gtk12 has been installed to the system, the configure script
detects the library automatically and tries to compile FvwmGtk which is not
listed in pkg-plist.

Unfortunately FvwmGtk cannot be compiled with clang and causes a compilation
error.  To fix the problem, add a missing "--disable-gtk" argument to the
CONFIGURE_ARGS variable.

# If we really want to compile FvwmGtk with clang, at least we have to add
# "USE_CSTD=gnu89" to Makefile [2].

[1] http://svnweb.freebsd.org/ports/head/x11-wm/fvwm2/Makefile?view=log#rev375573
[2] https://lists.freebsd.org/pipermail/freebsd-ports/2014-December/thread.html#97303
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2015-01-13 13:01:08 UTC
Auto-assigned to maintainer cy@FreeBSD.org
Comment 2 WATANABE Kazuhiro 2015-01-13 13:03:26 UTC
Created attachment 151553 [details]
Build log on 10.1-RELEASE without x11-toolkits/gtk12.
Comment 3 WATANABE Kazuhiro 2015-01-13 13:04:55 UTC
Created attachment 151554 [details]
Build error log on 10.1-RELEASE with x11-toolkits/gtk12.
Comment 4 WATANABE Kazuhiro 2015-01-13 13:06:23 UTC
Created attachment 151555 [details]
Build log on 10.1-RELEASE with x11-toolkits/gtk12 and the patch.
Comment 5 WATANABE Kazuhiro 2015-01-13 13:08:33 UTC
Created attachment 151556 [details]
poudriere testport log with the patch (10.1-RELEASE amd64)
Comment 6 commit-hook freebsd_committer freebsd_triage 2015-01-14 02:54:43 UTC
A commit references this bug:

Author: cy
Date: Wed Jan 14 02:53:53 UTC 2015
New revision: 376992
URL: https://svnweb.freebsd.org/changeset/ports/376992

Log:
  Fix gtk12/clang compile error.

  PR:		196679
  Submitted by:	WATANABE Kazuhiro <CQG00620@nifty.ne.jp>
  Broken by:	r375573

Changes:
  head/x11-wm/fvwm2/Makefile
Comment 7 Cy Schubert freebsd_committer freebsd_triage 2015-01-14 02:56:13 UTC
Broken by r375573. Committed and fixed. Thanks.