xenserver / buildroot

Package buildroot for xen-api and related packages
44 stars 29 forks source link

Make fails on Ubuntu 14.04 #647

Open Echaleon opened 9 years ago

Echaleon commented 9 years ago

Trying to compile on Ubuntu 14.04 fails due to file not found in _build/SRPMS, despite the files existing in SRPMS. First one happens right off the bat with: libre-ocaml_1.2.2-1.dsc

Symlinking the file in SRPMS to _build/SRPMS seems to work, until make runs into another file not found error.

kzyczenko commented 9 years ago

Try following: cd buildroot rm -rf _build/SRPMS _build/RPMS ln -s RPMS _build/RPMS ln -s SRPMS _build/SRPMS

Echaleon commented 9 years ago

In the mean time I did that, before I saw this, and it seemed to run well for awhile, until make ran into another error.

[MAKEDEB] _build/SRPMS/liblwt-ocaml_2.4.8-1.dsc
2.4.5-1
2.4.4-1
2.4.3-1
2.2.0-2
2.2.0-2
2.2.0-1
2.0.0-0.3.rc1
2.0.0-0.2.rc1.fc13
2.0.0-0.rc1.fc13
1.1.0-6
1.1.0-5
2.4.8-1
1.1.0-4
1.1.0-3
1.1.0-2
1.1.0-1
cd /tmp/makedeb71CXsF
dpkg-source -b -auto-commit lwt-2.4.8
dpkg-source: error: can't build with source format '3.0 (quilt)': no upstream tarball found at ../liblwt-ocaml_2.4.5.orig.tar.{bz2,gz,lzma,xz}
Traceback (most recent call last):
    File "/usr/bin/planex-makedeb", line 9, in (module)
        load_entry_point('planex==0.6.0', 'console_scripts', 'planex-makedeb')()
    File "/usr/lib/python2.7/dist-packages/planex/makedeb.py", line 174, in main
        assert res == 0
AssertionError
make: *** [_build/SRPMS/liblwt-ocaml_2.4.8-1.dsc] Error 1

I did a find -name "liblwt*.tat*" to see if I could find anything and I only got:

./tmp/makedeb71CXsF/liblwt-ocaml_2.4.8.orig.tar.gz
./tmp/makedebW09efZ/liblwt-ocaml_2.4.8.orig.tar.gz

It's the same temp directory, so is it possible that it can be using 2.4.8. instead of 2.4.5? What would I have to modify to fix it? I'd really like to get this to work for XAPI on Ubuntu, and not have to resort to using CentOS or the prebuilt Xenserver iso, since the ZFS on Linux support isn't as great on CentOS.

kzyczenko commented 9 years ago

sed -i 's/2.4.5/2.4.8/g' SPECS/ocaml-lwt.spec

But it will fail again on something else. I was not able to compile it successfuly under Ubuntu 14.04.

djmoonshine commented 9 years ago

I got the exact same issues. First the "file not found" issue which the linking of SRPMS and RPMS resolves, and after that the issue with liblwt-ocaml_2.4.8-1.dsc I am usning a fresh install of Ubuntu 14.04.2 on a Citrix XenServer to test things out, cound this affect?