Bug 204847 - multimedia/mediainfo: build fails
Summary: multimedia/mediainfo: build fails
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-27 14:02 UTC by Mathieu Arnold
Modified: 2016-03-17 23:44 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Arnold freebsd_committer freebsd_triage 2015-11-27 14:02:56 UTC
On 9 and 10, it fails with:



/bin/sh ./libtool  --tag=CXX    --mode=link c++   -O2 -pipe -fno-strict-aliasing -O2 -I/usr/local -DUNICODE -DUNICODE   -o mediainfo CLI_Main.o CommandLine_Parser.o  Help.o Core.o  -L/wrkdirs/usr/ports/multimedia/libmediainfo/work/MediaInfo_CLI_GNU_FromSource/MediaInfoLib/Project/GNU/Library -lmediainfo -lz -L/usr/local/lib -lzen -lpthread -L/usr/local/lib -lcurl -L/usr/local/lib -L/usr/local/lib -ltinyxml2 -L/usr/local/lib -lzen -lpthread
libtool: link: c++ -O2 -pipe -fno-strict-aliasing -O2 -I/usr/local -DUNICODE -DUNICODE -o mediainfo CLI_Main.o CommandLine_Parser.o Help.o Core.o  -L/wrkdirs/usr/ports/multimedia/libmediainfo/work/MediaInfo_CLI_GNU_FromSource/MediaInfoLib/Project/GNU/Library -lmediainfo -lz -L/usr/local/lib -lcurl -ltinyxml2 -lzen -lpthread
/usr/local/lib/libmediainfo.so: undefined reference to `mmsx_read'
/usr/local/lib/libmediainfo.so: undefined reference to `mmsx_connect'
/usr/local/lib/libmediainfo.so: undefined reference to `mmsx_seek'
/usr/local/lib/libmediainfo.so: undefined reference to `mmsx_close'
/usr/local/lib/libmediainfo.so: undefined reference to `mmsx_get_length'
/usr/local/lib/libmediainfo.so: undefined reference to `mmsx_get_asf_header_len'
/usr/local/lib/libmediainfo.so: undefined reference to `mmsx_peek_header'
*** [mediainfo] Error code 1

https://pkg.absolight.fr/data/latest-per-pkg/mediainfo/0.7.79/9i386-pkgng.log
https://pkg.absolight.fr/data/latest-per-pkg/mediainfo/0.7.79/9amd64-pkgng.log
https://pkg.absolight.fr/data/latest-per-pkg/mediainfo/0.7.79/10i386-pkgng.log
https://pkg.absolight.fr/data/latest-per-pkg/mediainfo/0.7.79/10amd64-pkgng.log
Comment 1 Po-Chuan Hsieh freebsd_committer freebsd_triage 2015-11-27 23:44:18 UTC
(In reply to Mathieu Arnold from comment #0)

The 4 log links seem to be wrong.
Could you also provide libmediainfo logs?
Thanks.
Comment 2 Mathieu Arnold freebsd_committer freebsd_triage 2015-11-28 00:06:58 UTC
(In reply to Sunpoet Po-Chuan Hsieh from comment #1)
> (In reply to Mathieu Arnold from comment #0)
> 
> The 4 log links seem to be wrong.
> Could you also provide libmediainfo logs?
> Thanks.

I can fetch them without any problem, what happens for you ?
Comment 3 Po-Chuan Hsieh freebsd_committer freebsd_triage 2015-11-28 00:13:56 UTC
(In reply to Mathieu Arnold from comment #2)

The content is wrong.

====>> Ignoring multimedia/mediainfo: Blacklisted
[1;33m====>>[0;0m [1;33mWarning: Leftover processes:
[0;0mUSER   PID %CPU %MEM   VSZ  RSS TT  STAT STARTED    TIME COMMAND
build of multimedia/mediainfo ended at Fri Nov 27 23:17:47 CET 2015
build time: 00:00:01
Comment 4 Mathieu Arnold freebsd_committer freebsd_triage 2015-11-28 00:21:17 UTC
Ah, interesting, yes, those are bad.

Here is a good one:

https://pkg.absolight.fr/data/10amd64-pkgng/20151126T144456Z/logs/errors/mediainfo-0.7.79.log

(they all have the same problem)
Comment 5 Po-Chuan Hsieh freebsd_committer freebsd_triage 2015-11-28 09:18:57 UTC
This port builds fine with default configuration [1]. MMS is an off-by-default option [2]. Please provide your poudriere configuration and libmediainfo build log. Thanks.

[1] http://portsmon.freebsd.org/portoverview.py?category=multimedia&portname=mediainfo
[2] https://svnweb.freebsd.org/ports/head/multimedia/libmediainfo/Makefile?revision=401997&view=markup#l21
Comment 6 Po-Chuan Hsieh freebsd_committer freebsd_triage 2015-12-25 07:56:42 UTC
Feedback timeout.
Comment 7 commit-hook freebsd_committer freebsd_triage 2016-03-17 23:44:09 UTC
A commit references this bug:

Author: mat
Date: Thu Mar 17 23:43:37 UTC 2016
New revision: 411322
URL: https://svnweb.freebsd.org/changeset/ports/411322

Log:
  libmms dropped the dependency on glib a long time ago, and forgot to
  remove it from there.

  If a port tries to use pkg-config to depend on it, and does not bring in
  glib, it'll end up failing with:

    % pkg-config --libs libmms
    Package glib-2.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `glib-2.0.pc'
    to the PKG_CONFIG_PATH environment variable
    Package 'glib-2.0', required by 'libmms', not found

  This fixes a long standing issue with multimedia/mediainfo. (via
  multimedia/libmediainfo.)

  PR:		204847
  Sponsored by:	Absolight

Changes:
  head/net/libmms/Makefile
  head/net/libmms/files/
  head/net/libmms/files/patch-pkgconfig_libmms.pc.in