Hi. I'm trying to build ZCS from source based on perforce GNR-607 branch and got stuck with such an error:
Code:
                rpmbuild --target i386 --quiet --define '_rpmdir /home/public/p4/GNR-607/ZimbraBuild' --buildroot=/home/public/p4/GNR-607/ZimbraBuild/corebuild -bb /home/public/p4/GNR-607/ZimbraBuild/zimbra-core.spec )
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/sunlogo64x30.gif
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/README.html
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/.viminfo
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/.bash_profile
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/JavaResearchLicense.txt
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/.ldaprc
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/.exrc
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/build-linux.html
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/build-windows-i586.html
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/javalogo52x88.gif
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/.bashrc
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/build.html
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/build-solaris.html
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/bin
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/docs
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/contrib
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/libexec
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/logger
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/conf
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/db
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/jdk1.6.0_16
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/lib
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/zimbramon
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/bdb-4.7.25.4
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/openssl-0.9.8n
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/heimdal-1.3.2
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/curl-7.20.1
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/cyrus-sasl-2.1.23.3z
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/mysql-standard-5.0.90-pc-linux-gnu-i686-glibc23
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/openldap-2.4.22.2z
error: File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/tcmalloc-1.5
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/sunlogo64x30.gif
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/README.html
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/.viminfo
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/.bash_profile
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/JavaResearchLicense.txt
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/.ldaprc
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/.exrc
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/build-linux.html
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/build-windows-i586.html
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/javalogo52x88.gif
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/.bashrc
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/build.html
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/build-solaris.html
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/bin
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/docs
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/contrib
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/libexec
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/logger
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/conf
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/db
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/jdk1.6.0_16
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/lib
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/zimbramon
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/bdb-4.7.25.4
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/openssl-0.9.8n
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/heimdal-1.3.2
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/curl-7.20.1
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/cyrus-sasl-2.1.23.3z
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/mysql-standard-5.0.90-pc-linux-gnu-i686-glibc23
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/openldap-2.4.22.2z
    File not found: /home/public/p4/GNR-607/ZimbraBuild/corebuild/opt/zimbra/tcmalloc-1.5
Building target platforms: i386
Building for target i386
make: *** [core] Error 1
This is not true for the moment rpmbuild starts: all directories are present ATM. But I can't make it pass further. Any ideas?


I also mentioned that buildZCS.sh doesn't correctly detect my OS (it marks it as `openSUSEUNKNOWN`)