From owner-freebsd-multimedia@FreeBSD.ORG Sun Aug 18 14:12:41 2013 Return-Path: Delivered-To: multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 10B369AF for ; Sun, 18 Aug 2013 14:12:41 +0000 (UTC) (envelope-from decke@bluelife.at) Received: from mail-ob0-x229.google.com (mail-ob0-x229.google.com [IPv6:2607:f8b0:4003:c01::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C8F042929 for ; Sun, 18 Aug 2013 14:12:40 +0000 (UTC) Received: by mail-ob0-f169.google.com with SMTP id wc20so3868586obb.14 for ; Sun, 18 Aug 2013 07:12:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bluelife.at; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=gevey3eYRxmIGF3po/4RMRxH0wbGhLJugxE69+CQu54=; b=Ntlr5EBfzKx35hdGeMJNtDJ+bN33PLqprPU0XGborvpVO8dgWyE7nRnpUEpXCeHkTK Vf2xg+wb7Dv+OySNCbu8MWhJd/xoNabwqckiikNyzeelebKm0WE6lTdIxXp+gl3rvffa 1zGlOAuD7wmo4hIXugPEbakibIRW5sCzKDRVg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=gevey3eYRxmIGF3po/4RMRxH0wbGhLJugxE69+CQu54=; b=VkLIbFTDeA3iIhQsdLTRTqTg6h7qeELGaBo2lniEbCqKczlouJtc/nKCxBpuTYGdrl VUcHajZcUxCuwrovIdS15+CG+nUyWQYwpMd7tjxYRMiMeQWrvohbKaCNqAapeun6sgO6 +zuChPR+qPE5rqF014xK5vdHBrh4r6MF2iPtw+DNuhIhaFnRxisC4VsCdiFxM24XUd6F OPxWnGi0231TfOMb2MkdU83rCdvaYuqvv1kBvstW8yQkkSl3tD2jqeTj7kR+zx2Yk6ye NrPNYGP+/rKai4YCykLwoiO1KzEg1HGkLSd1TwZANIIvLOJhTL84fjjyXB1lsavGfBOj 7c1Q== X-Gm-Message-State: ALoCoQmV95BYyMM7e/wVW+a/MVs25k0tLODq7mLY1AQQavsdX7iOEOLl7tdcv3Vc1mBN0mGXuQcS MIME-Version: 1.0 X-Received: by 10.60.70.134 with SMTP id m6mr7917617oeu.14.1376835160044; Sun, 18 Aug 2013 07:12:40 -0700 (PDT) Received: by 10.76.95.168 with HTTP; Sun, 18 Aug 2013 07:12:39 -0700 (PDT) X-Originating-IP: [46.74.189.12] In-Reply-To: <20130818131337.GA40218@triton8.kn-bremen.de> References: <20130818131337.GA40218@triton8.kn-bremen.de> Date: Sun, 18 Aug 2013 16:12:39 +0200 Message-ID: Subject: Re: xbmc-pvr-addons: on the way to xbmc pvr From: =?ISO-8859-1?Q?Bernhard_Fr=F6hlich?= To: Juergen Lock Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: nox@freebsd.org, multimedia@freebsd.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Aug 2013 14:12:41 -0000 On Sun, Aug 18, 2013 at 3:13 PM, Juergen Lock wrot= e: > On Sat, Aug 17, 2013 at 11:23:50AM +0200, Bernhard Fr=F6hlich wrote: >> Hi guys, > Hi! >> >> now that we have xbmc 12.2 and tvheadend in the portstree the next >> step to a proper PVR solution running on FreeBSD is to add the xbmc >> pvr addons that allow to use various backends like tvheadend. >> >> I have already created a port for the pvr addons that builds and >> installs just fine but for some reason xbmc doesn't like them and >> doesn't even display them in the GUI or any errors in the logfile. >> >> To try out the xbmc-pvr-addons port: >> svn co https://svn.redports.org/decke/multimedia/xbmc-addon-pvr >> >> It should build and install fine but it doesn't seem to have any >> effect on xbmc. You can also build ZIP packages for the addons that >> you can try to install via the Addon manager. >> >> Build zip addons: >> cd xbmc-addon-pvr && make && cd work/xbmc-pvr-addons-12.0-Frodo && make = zip >> >> Install ZIP addons: >> http://wiki.xbmc.org/index.php?title=3DAdd-on_manager#How_to_install_fro= m_a_ZIP_file >> >> With the ZIP files I always get "Add-on does not have the correct >> structure" immediately. No log message that tells why it's >> complaining. >> >> >> There was one error in the logfile with stock multimedia/xbmc 12.2 >> that I fixed on the way: >> ERROR: PVR - CreateTables - failed to get add-ons from the add-on manage= r >> >> I fixed it with the following patch that I also needed for xbmc-pvr-addo= ns. >> http://people.freebsd.org/~decke/patches/xbmc-12.2_1-addon-fix.diff >> >> >> So we are pretty close to a working xbmc pvr because the requires >> parts are all there already. We have an up-to-date xbmc 12.2 in the >> tree. tvheadend with FreeBSD support from latest git is also available >> in multimedia/tvheadend and works fine with webcamd devices. The >> xbmc-pvr-addons port is also there already. All that is left is >> getting that parts working in combination. >> >> I hope someone has an idea what is going on there or how to fix that. :o= ) >> > I finally got around looking at this and turns out the fix is really > simple if you know it: xbmc seems to look for linux > in the addon.xml files not freebsd. I added back freebsd too in > case this gets fixed later tho. (first post-patch REINPLACE_CMD.) > > Index: Makefile > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- Makefile (revision 15743) > +++ Makefile (working copy) > @@ -17,7 +17,6 @@ > BUILD_DEPENDS+=3D xbmc:${PORTSDIR}/multimedia/xbmc > RUN_DEPENDS+=3D xbmc:${PORTSDIR}/multimedia/xbmc > > -PATCH_ARGS=3D --suffix "" > USE_GL=3D gl > USE_AUTOTOOLS=3D libtoolize aclocal libtool automake autoconf > MAKE_JOBS_SAFE=3D yes > @@ -29,8 +28,10 @@ > .include > > post-patch: > + @${REINPLACE_CMD} 's|@OS@|freebsd linux|' \ > + ${WRKSRC}/addons/*/addon/addon.xml.in > @${REINPLACE_CMD} 's|-ldl||' \ > ${WRKSRC}/addons/pvr.hts/Makefile.am > - @${RM} ${WRKSRC}/addons/*/*.orig > + @${RM} ${WRKSRC}/addons/*/*/*.orig > > .include > > HTH, :) > Juergen Yay! It works fine now and the plugin is initialized and working now! Thanks a lot for that hint but I am a bit curious why FreeBSD still uses "linux" as platform. I think we should look into that and fix it properly - but not today. Now stay tuned for some XBMC Live-TV screenshots! :o) --=20 Bernhard Fr=F6hlich http://www.bluelife.at/