[campcaster-dev] FW: Trouble building Campcaster Debian packages
  • Vote Up0Vote Down importimport
    Posts: 0Member
    Hi all,

    I'm moving a discussion between myself, Frans van Berckel and Nebojsa
    Grujic to the dev list, where it should have been in the first place.

    The issues generally are around problems making 1.4.0 beta packages under
    Ubuntu Hardy. We've eliminated the dependency issues caused by Hardy's use
    of updated packages, but along the way we've also discovered that Hardy
    handles the PHP realpath directive differently than previous versions.
    Hence the storage server is not installing correctly.

    If you're interested, the last few tickets might give you a better idea of
    what we're running into:

    installStorage.php writability check echo's a 1
    http://code.campware.org/projects/campcaster/ticket/2302

    storageServer does not install in Ubuntu Hardy
    http://code.campware.org/projects/campcaster/ticket/2290

    Development Environment install fails under Ubuntu 8.04 "Hardy"
    http://code.campware.org/projects/campcaster/ticket/2299


    The call goes out for some PHP gurus who might have an idea what's going
    on here. Anyone care to jump in?


    doug


    =============================================
    Media Development Loan Fund
    =============================================
    Douglas Arellanes
    Head of Research and Development
    Center for Advanced Media--Prague (CAMP)
    Na vinicnich horach 24a/1834, 160 00 Prague 6
    Czech Republic
    Tel: + 420 2 3333 5356, Fax: +420 2 2431 5419
    Mobile: +420 724 073 364
    Skype and Yahoo IM: dougiegyro
    http://www.campware.org
    =============================================
    http://www.mdlf.org
    =============================================
    ----- Forwarded by Douglas Arellanes/Mdlf on 05/23/2008 12:24 PM -----


    "Nebojsa Grujic"
    05/22/2008 04:51 PM


    To:
    cc: ,
    Subject: RE: Trouble building Campcaster Debian packages


    I have upgraded to Herron when it came out. I currently have only libicu38
    installed. I'm not on the home system so I cannot give you exact error but
    it essentially says it was not able to find correct version of libicu. If
    you look into any .mk4 (I think this is the right extension but search for
    libicu in the entire project and you'll find it) file that refers to
    libicu you will find a section that checks for version and prints error in
    case it fails. That is the one that fails for me. Also this section can be
    found in
    /src/campcaster/etc/portage/media-radio/livesupport/files/taglib-curl-icu.patch
    as well.

    All I think we need to do is find somewhere in somebody else's project a
    section where they use new libicu38 and copy that to our scripts (or write
    it ourselves, but as I'm not in any way a skilled bash scripter I would
    like to avoid this if I can).

    There is also a suggestion made by Doug in ticket http://code.campware.org/projects/campcaster/ticket/2303 but I think it is not that simple. Looks like to me that old libicu
    version checking was relying on some config file in a particular directory
    (see the script section I mentioned in the first paragraph). I'm not sure
    if it works that way anymore.



    -----Original Message-----
    From: Frans van Berckel [mailto:fberckel@xs4all.nl]
    Sent: Thursday, May 22, 2008 10:17 AM
    To: Nebojsa Grujic
    Cc: Douglas.Arellanes@mdlf.org; sava.tatic@mdlf.org
    Subject: RE: Trouble building Campcaster Debian packages

    Hi Nebojsa,

    Glade that you are willing to help us finding what goes on.

    It's true you can not install libicu36 and libicu38 on one system.

    What's the default libicu (and dev) available in your distribution and
    did you install it? What error do you get in this case?

    Thanks,


    Frans van Berckel


    On Thu, 2008-05-22 at 09:09 -0400, Nebojsa Grujic wrote:
    > Yes I see it in the Adept list but it ignores my requests for
    installation.
    > Feel free to try it yourself and let me know. Because if you can install
    > libicu36 and libicu38 in parallel we do not have a problem anymore, but
    as I
    > see it looks like this is not an option. We most likely have to switch
    to
    > new version which means modifying build scripts. In best case that would
    be
    > the end of it as the API is probably compatible, only build breaks coz
    of
    > our version checking so I believe this is the only thing we need to go
    > around.
    >
    >
    >
    > -----Original Message-----
    > From: Frans van Berckel [mailto:fberckel@xs4all.nl]
    > Sent: Thursday, May 22, 2008 2:09 AM
    > To: nebojsa grujic
    > Cc: Douglas.Arellanes@mdlf.org; sava.tatic@mdlf.org
    > Subject: Re: Trouble building Campcaster Debian packages
    >
    > Hi Nebojsa,
    >
    >
    > I am not sure we are gonna support the portage tree, if it's in our way
    > of releasing debian packages. And i just did a search at Ubuntu and they
    > still does adept libicu36.
    >
    > http://packages.ubuntu.com/search?keywords=libicu&searchon=names&suite=all&s
    > ection=all
    >
    > Did you test it Doug with today's commits for Gutsy?
    >
    >
    > Thanks,
    >
    >
    > Frans van Berckel
    >
    > On Wed, 2008-05-21 at 23:25 -0400, nebojsa grujic wrote:
    > > OK,
    > > I have reproduced this problem by doing fresh get. Looks like libicu36
    > > is no longer supported as Adept will not allow me to install it. It
    > > only works for libicu38. This is somewhat bad news as caster contains
    > > some related patches
    > > (see
    >
    /src/campcaster/etc/portage/media-radio/livesupport/files/taglib-curl-icu.pa
    > tch). The only way that seems possible after a quick look is that we
    modify
    > the code to use the new library. So much for lib versioning...
    > > I will be able to take a closer look at this only tomorrow afternoon
    > > but can not make any promises.
    > >
    > >
    > > On Wed, May 21, 2008 at 12:42 PM, wrote:
    > >
    > > I tried to make packages based on the newest commits and also
    > > commenting out lines 116 and 117 of debian/rules, and the
    > > packages built without errors. However, once they built there
    > > was something wrong in the etc/debian/control file, because it
    > > kept saying libicu36 was required. I'm going to have to take
    > > another look at the control file tomorrow.
    > >
    > > doug
    > >
    > >
    > > =============================================
    > > Media Development Loan Fund
    > > =============================================
    > > Douglas Arellanes
    > > Head of Research and Development
    > > Center for Advanced Media--Prague (CAMP)
    > > Na vinicnich horach 24a/1834, 160 00 Prague 6
    > > Czech Republic
    > > Tel: + 420 2 3333 5356, Fax: +420 2 2431 5419
    > > Mobile: +420 724 073 364
    > > Skype and Yahoo IM: dougiegyro
    > > http://www.campware.org
    > > =============================================
    > > http://www.mdlf.org
    > > =============================================
    > >
    > >
    > >
    > >
    > > "Nebojsa Grujic"
    > >
    > > 05/21/2008 03:17 PM
    > >
    > >
    > >
    > >
    > > To:
    > >
    > > cc:
    > > ,
    > > Subject:
    > > RE: Trouble
    > > building Campcaster
    > > Debian packages
    > >
    > >
    > >
    > >
    > > Yes, I guess that is no longer needed as well, but it seems to
    > > be failing
    > > gracefully so it should be no problem. I'll remove it later.
    > >
    > > -----Original Message-----
    > > From: Frans van Berckel [mailto:fberckel@xs4all.nl]
    > > Sent: Wednesday, May 21, 2008 8:20 AM
    > > To: nebojsa grujic
    > > Cc: fberckel@xs4all.nl; douglas.arellanes@mdlf.org;
    > > sava.tatic@mdlf.org
    > > Subject: Re: Trouble building Campcaster Debian packages
    > >
    > > Hi Nebojsa,
    > >
    > > And what do you think of line 116 and 117 of rules? That what
    > > got executed
    > > while buiding the debs.
    > >
    > >
    > http://code.campware.org/projects/campcaster/browser/trunk/campcaster/etc/de
    > > bian/rules
    > >
    > > Thanks,
    > >
    > > Frans van Berckel
    > >
    > > > OK,
    > > > This helped quite a bit. I have modified slightly
    > > postInstallStation.sh
    > > > file
    > > > to exclude registration stuff as it is not required now. At
    > > least it now
    > > > passes with no errors. Doug, could you please checkout the
    > > latest code
    > > > (perhaps only this one file) and test if the install
    > > produces usable
    > > > output.
    > > > Otherwise I'll have to dig deeper and see how to install
    > > gstreamer
    > > > properly.
    > > >
    > > >
    > > >
    > > > On Tue, May 20, 2008 at 11:24 AM, Frans van Berckel
    > >
    > > > wrote:
    > > >
    > > >> Hi all,
    > > >>
    > > >> Yes for what i found does the deb build break of a now non
    > > exciting
    > > >> directory called /var/cache/.
    > > >>
    > > >> That was in the old time's were GStreamer 0.8 stored his
    > > registry.xml
    > > >> settings file. That was activated/used by gst-register, but
    > > by today's
    > > >> 0.10 setup it "looks" like it's not available any more.
    > > >>
    > > >> There are some things in this case done by
    > > bin/postInstallStation.sh. We
    > > >> are calling /var/cache while building
    > > with /etc/debian/rule.
    > > >>
    > > >> Thanks for your support,
    > > >>
    > > >>
    > > >> Frans van Berckel
    > > >>
    > > >>
    > > >> On Tue, 2008-05-20 at 16:16 +0200,
    > > Douglas.Arellanes@mdlf.org wrote:
    > > >> >
    > > >> > I'm not sure if it's only in bin/dist.sh or if it's also
    > > elsewhere.
    > > >> > Yesterday I tried commenting out one reference to the
    > > place where the
    > > >> > build failed (see the end of build.log for the specific
    > > location). It
    > > >> > seems the problem was that it wanted this directory:
    > > >> >
    > > >> >
    > >
    > src/build/campcaster-1.4.0/debian/campcaster/opt/campcaster/var/cache
    > > >> >
    > > >> > When I commented out the two lines in one of the files (I
    > > can't
    > > >> > remember right now which one it was, but it might have
    > > been
    > > >> > postInstallStation.sh), it built. I'm sorry that Frans
    > > van Berckel
    > > >> > isn't around to remind me which script it was, but it may
    > > have been in
    > > >> > either that or wherever it tries to make reference to
    > > that missing
    > > >> > directory.
    > > >> >
    > > >> > doug
    > > >> >
    > > >> >
    > > >> >
    > > >> >
    > > >> >
    > > >> >
    > > >> > "Nebojsa Grujic"
    > > >> >
    > > >> >
    > > >> > 05/20/2008 03:51 PM
    > > >> >
    > > >> >
    > > >> >
    > > >> >
    > > >> > To:
    > > >> >
    > > >> > cc:
    > > >> >
    > > >> > Subject:
    > > >> > RE: Trouble building
    > > >> > Campcaster Debian
    > > >> > packages
    > > >> >
    > > >> >
    > > >> >
    > > >> > According to the document you referred to, seems like the
    > > problem is
    > > >> > in the bin/dist.sh file. As I took some of the projects
    > > out it only
    > > >> > makes sense it will not work anymore. I'll verify this
    > > when I get home
    > > >> > and reflect the code changes in bin/dist.sh.
    > > >> >
    > > >> > From: Douglas.Arellanes@mdlf.org
    > > [mailto:Douglas.Arellanes@mdlf.org]
    > > >> > Sent: Monday, May 19, 2008 9:33 AM
    > > >> > To: Nebojsa Grujic
    > > >> > Cc: sava.tatic@mdlf.org
    > > >> > Subject: Trouble building Campcaster Debian packages
    > > >> >
    > > >> >
    > > >> > Hi Nebojsa,
    > > >> >
    > > >> > I'm writing because I could use your help and expertise.
    > > For the last
    > > >> > few days I've been trying to make a set of Campcaster 1.4
    > > beta
    > > >> > packages for Debian/Ubuntu, but for some reason the build
    > > process
    > > >> > exits with errors. At first I thought it was because of
    > > some kind of
    > > >> > incompatibility with Ubuntu Hardy, but then I tried
    > > making the
    > > >> > packages on a relatively clean Gutsy install, and had the
    > > same
    > > >> > problem.
    > > >> >
    > > >> > The problem may be that the Debian package build process,
    > > which is
    > > >> > explained on this page:
    > > >> > http://campcaster-doc.campware.org/release.html , seems
    > > to have had
    > > >> > some items hard-coded in from the Gstreamer 0.8 install
    > > process.
    > > >> >
    > > >> > I've created a ticket for the problem, which is here:
    > > >> > http://code.campware.org/projects/campcaster/ticket/2301
    > > >> >
    > > >> >
    > > >> > If you could please take a look at this, I'd be quite
    > > grateful.
    > > >> >
    > > >> >
    > > >> > doug
    > > >> >
    > > >> >
    > > >> > =============================================
    > > >> > Media Development Loan Fund
    > > >> > =============================================
    > > >> > Douglas Arellanes
    > > >> > Head of Research and Development
    > > >> > Center for Advanced Media--Prague (CAMP)
    > > >> > Na vinicnich horach 24a/1834, 160 00 Prague 6
    > > >> > Czech Republic
    > > >> > Tel: + 420 2 3333 5356, Fax: +420 2 2431 5419
    > > >> > Mobile: +420 724 073 364
    > > >> > Skype and Yahoo IM: dougiegyro
    > > >> > http://www.campware.org
    > > >> > =============================================
    > > >> > http://www.mdlf.org
    > > >> > =============================================
    > > >> >
    > > >>
    > > >>
    > > >
    > >
    > >
    > >
    > >
    > >
    > >
    >
    >