Bug 175080 - multimedia/mplayer2 does not compile without X11
Summary: multimedia/mplayer2 does not compile without X11
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Grzegorz Blach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-07 00:00 UTC by pr
Modified: 2013-01-08 22:30 UTC (History)
0 users

See Also:


Attachments
file.diff (312 bytes, patch)
2013-01-07 00:00 UTC, pr
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description pr 2013-01-07 00:00:00 UTC
Ports multimedia/mplayer2 does not compile if you config the port without X11 (make config).
The error reported is:
/usr/ports/multimedia/mplayer2# make
N - O - T - E

There are some knobs which *can* *not* be selected via the
OPTIONS framework. You might want to check the Makefile in
order to learn more about them.
===>  License GPLv2 accepted by the user
===>  Found saved configuration for mplayer2-2.0.20121103
===>   mplayer2-2.0.20121103 depends on file: /usr/local/sbin/pkg - found
===>  Extracting for mplayer2-2.0.20121103
=> SHA256 Checksum OK for mplayer2-2.0.20121103.tar.xz.
===>  Patching for mplayer2-2.0.20121103
===>  Applying FreeBSD patches for mplayer2-2.0.20121103
===>   mplayer2-2.0.20121103 depends on executable: ffmpeg1 - found
===>   mplayer2-2.0.20121103 depends on executable: rst2man - found
===>   mplayer2-2.0.20121103 depends on file: /usr/local/include/linux/videodev2.h - found
===>   mplayer2-2.0.20121103 depends on file: /usr/local/bin/python3.3 - found
===>   mplayer2-2.0.20121103 depends on executable: gmake - found
===>   mplayer2-2.0.20121103 depends on shared library: png15 - found
===>   mplayer2-2.0.20121103 depends on shared library: freetype - found
===>   mplayer2-2.0.20121103 depends on shared library: v4l2 - found
===>   mplayer2-2.0.20121103 depends on shared library: ass - found
===>   mplayer2-2.0.20121103 depends on shared library: iconv.3 - found
===>  Configuring for mplayer2-2.0.20121103
Unknown parameter: --disable-fontconfig
===>  Script "configure" failed unexpectedly.
Please report the problem to gblach@FreeBSD.org [maintainer] and attach the
"/usr/ports/multimedia/mplayer2/work/mplayer2-2.0.20121103/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 info -g -Ea).
*** [do-configure] Error code 1

Stop in /usr/ports/multimedia/mplayer2.
*** [build] Error code 1

Stop in /usr/ports/multimedia/mplayer2.

Fix: This is just a workaround to have the port build.

Remove the offending option --disable-fontconfig from the Makefile. You can use the attache diff file.

The port then builds, and does not require any X11-related port.

Nevertheless it still depends on fontconfig.



Patch attached with submission follows:
How-To-Repeat: cd /usr/ports/multimedia/mplayer2
make config -> deselect X11 option
make -> boooom
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-01-07 00:00:07 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gblach

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-01-08 22:25:51 UTC
Author: gblach
Date: Tue Jan  8 22:25:44 2013
New Revision: 310109
URL: http://svnweb.freebsd.org/changeset/ports/310109

Log:
  - Fix build without X11
  
  PR:		ports/175080
  Approved by:	crees (mentor)

Modified:
  head/multimedia/mplayer2/Makefile

Modified: head/multimedia/mplayer2/Makefile
==============================================================================
--- head/multimedia/mplayer2/Makefile	Tue Jan  8 20:03:48 2013	(r310108)
+++ head/multimedia/mplayer2/Makefile	Tue Jan  8 22:25:44 2013	(r310109)
@@ -246,7 +246,7 @@ USE_XORG+=		xinerama xineramaproto
 CONFIGURE_ARGS+=	--disable-xinerama
 .endif
 .else			#WITHOUT_X11
-CONFIGURE_ARGS+=	--disable-x11 --disable-fontconfig
+CONFIGURE_ARGS+=	--disable-x11
 .endif
 
 .if ${PORT_OPTIONS:MVDPAU}
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Grzegorz Blach freebsd_committer freebsd_triage 2013-01-08 22:28:41 UTC
State Changed
From-To: open->closed

Fixed, thanks