Results 1 to 10 of 18

Thread: Ubuntu 8.04 64-bit build (Hardy A4)

Hybrid View

  1. #1
    Join Date
    Feb 2007
    Posts
    12
    Rep Power
    8

    Arrow Ubuntu 8.04 64-bit build (Hardy A4)

    Hi all,

    I have completed a build on Ubuntu 8.04 64-bit Hardy A4 from the public Zimbra P4 cache. I'd like to package it up, but I'm stumped as to what make target I need to call (something in coretargets.def?) in order to kick off the debianization of the built files.

    It looks like this might be undocumented territory as I've not found any wiki or forum posts that explicitly mention how to invoke the packaging process to create RPMs or DEBs from the build scripts. If anyone could fill me in on the missing step it would be much appreciated.

    When I finish my work, I'll be posting a patch with modifications required to build on Hardy + 64-bit.

    Cheers,
    -G

  2. #2
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    12

    Default

    packaging debs is already fully supported in the various debian and ubuntu builds. your best bet is just to copy an existing debian or ubuntu .def in ZimbraBuild/defs and use that. doing a full build will automagically package everything for you in ZimbraBuild/i386 and ZimbraBuild/zcs-xxx.

  3. #3
    Join Date
    Feb 2007
    Posts
    12
    Rep Power
    8

    Default

    So much for being done I had a "Build Successful" message, seems building with "sudo make -j 2" is somewhat unpredictable...

    When I rerun with just "sudo make" I get an error with SpamAssassin...

    Code:
    ...
    /opt/zimbra-src/main/ZimbraBuild/corebuild/opt/zimbra/conf
    cp /opt/zimbra-src/main/ZimbraBuild/../ZimbraServer/conf/com.zimbra.zcs.plist /opt/zimbra-src/main/ZimbraBuild/corebuild/opt/zimbra/conf
    cp /opt/zimbra-src/main/ZimbraBuild/../ZimbraServer/conf/postfix_recipient_restrictions.cf /opt/zimbra-src/main/ZimbraBuild/corebuild/opt/zimbra/conf
    cp -Rf /opt/zimbra-src/main/ZimbraBuild/../ZimbraServer/conf/externaldirsync /opt/zimbra-src/main/ZimbraBuild/corebuild/opt/zimbra/conf/externaldirsync
    cp -Rf /opt/zimbra-src/main/ZimbraBuild/../ZimbraServer/build/dist/conf/msgs /opt/zimbra-src/main/ZimbraBuild/corebuild/opt/zimbra/conf/msgs
    mkdir -p /opt/zimbra-src/main/ZimbraBuild/corebuild/opt/zimbra/conf/spamassassin
    cp /opt/zimbra-src/main/ZimbraBuild/../ZimbraServer/conf/spamassassin/[^C]* /opt/zimbra-src/main/ZimbraBuild/corebuild/opt/zimbra/conf/spamassassin
    cp: cannot stat `/opt/zimbra-src/main/ZimbraBuild/../ZimbraServer/conf/spamassassin/[^C]*': No such file or directory
    make: *** [/opt/zimbra-src/main/ZimbraBuild/corebuild/opt/zimbra/conf] Error 1

  4. #4
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    12

    Default

    there's not supposed to be a space between the -j and the number is there?

    as for this:
    cp /opt/zimbra-src/main/ZimbraBuild/../ZimbraServer/conf/spamassassin/[^C]* /opt/zimbra-src/main/ZimbraBuild/corebuild/opt/zimbra/conf/spamassassin
    cp: cannot stat `/opt/zimbra-src/main/ZimbraBuild/../ZimbraServer/conf/spamassassin/[^C]*': No such file or directory
    I have long since changed this in my patches, [^C] doesn't seem to do anything useful as there is nothing present that would match that regexp. Check that you're using bash, not dash as ubuntu seems to like to use for unknown reasons as this might provoke this problem.

  5. #5
    Join Date
    Feb 2007
    Posts
    12
    Rep Power
    8

    Default

    there's not supposed to be a space between the -j and the number is there?
    it's fine, man says "-j [jobs], --jobs[=jobs]"... it would have complained that there was no "2" build target. Idea was to take advantage of SMP to help speed up compiling.

    Code:
    /opt/zimbra-src/main/ZimbraBuild/../ZimbraServer/conf/spamassassin/[^C]*
    I had thought at the time, that the error was because it was expecting to find something starting with "C" to ignore but there was nothing starting with "C". Upon further reflection that thought seems a bit silly, as it shouldn't care if something is not there if it wants to exclude it anyway...

    It make sense that this is a shell expansion problem where dash is bollocking up [^C]* as a real file name instead of expanding it like Bash would do... (I haven't replaced the default shell with bash, forgot that Dapper symlinked sh -> dash). If you wouldn't normally see "C*" files, then I may just change that to cp * instead. [I'm trying to avoid changing stuff in the base distro where possible]

    Cheers,

    -G

  6. #6
    Join Date
    Feb 2007
    Posts
    12
    Rep Power
    8

    Default

    Got everything built into debs and packed into a ZCS tarball...

    Still have some work to do, zimbra-core refuses to install because "x86_64 is a unknown OS"...

    Cheers,

    -G

Similar Threads

  1. evolution connector for ubuntu hardy heron .deb
    By spirit in forum Evolution Connector
    Replies: 4
    Last Post: 06-23-2008, 12:07 PM
  2. Unable to install on Ubuntu 7.04 64 bit
    By geekneck in forum Installation
    Replies: 5
    Last Post: 07-16-2007, 08:52 PM
  3. FC5 x86-64 bit build etc.
    By kavabean in forum Developers
    Replies: 0
    Last Post: 08-20-2006, 01:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •