Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Dec 2008 20:49:36 +0100
From:      "Diego Depaoli" <trebestie@gmail.com>
To:        "Max Brazhnikov" <makc@freebsd.org>
Cc:        stan <stanb@panix.com>, freebsd-ports@freebsd.org
Subject:   Re: Build problems with amarok
Message-ID:  <83e5fb980812291149u196c822br6953a1077edd9d9d@mail.gmail.com>
In-Reply-To: <200812292218.05073.makc@freebsd.org>
References:  <20081229164749.GA19620@teddy.fas.com> <200812292218.05073.makc@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_162158_16907215.1230580176334
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Mon, Dec 29, 2008 at 8:18 PM, Max Brazhnikov <makc@freebsd.org> wrote:
> On Mon, 29 Dec 2008 11:47:49 -0500, stan wrote:
>> I'm building a new machine which I cvsup'd yesterday. I am having trouble
>> getting the amarok port to compile. here is the end of the compile
>> failure:
>> Can anyne sugest how to resolve this?
> amarok was broken with libmtp update to 0.3.1 (ports/126905). Expectation that
> amarok will be updated soon is not right -- amarok2 (which is for KDE 4) will
> be added as separate port. So someone should recreate libmtp-0.2 for amarok.
Put attached patch (taken from gentoo) into amarok/files and rebuild.
It worked for me

Cheers
-- 
Diego Depaoli

------=_Part_162158_16907215.1230580176334
Content-Type: application/octet-stream;
	name=patch-amarok_src_mediadevice_mtp_mtpmediadevice.cpp
Content-Transfer-Encoding: base64
X-Attachment-Id: f_fpbjlyp70
Content-Disposition: attachment;
	filename=patch-amarok_src_mediadevice_mtp_mtpmediadevice.cpp

LS0tIGFtYXJvay9zcmMvbWVkaWFkZXZpY2UvbXRwL210cG1lZGlhZGV2aWNlLmNwcAorKysgYW1h
cm9rL3NyYy9tZWRpYWRldmljZS9tdHAvbXRwbWVkaWFkZXZpY2UuY3BwCkBAIC0yOTMsMTIgKzI5
MywxMyBAQAogICAgICAgICBwYXJlbnRfaWQgPSBnZXREZWZhdWx0UGFyZW50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yZWF0ZV9OZXdfUGxheWxpc3QoIG1fZGV2aWNlLCBtZXRhZGF0YSApOwogICAgICAgICBp
ZiggcmV0ID09IDAgKQogICAgICAgICB7CiAgICAgICAgICAgICBpdGVtLT5wbGF5bGlzdCgpLT5z
ZXRJZCggbWV0YWRhdGEtPnBsYXlsaXN0X2lkICk7Cg==
------=_Part_162158_16907215.1230580176334--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?83e5fb980812291149u196c822br6953a1077edd9d9d>