[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problems building OCaml 3.11 package from git



On Tue, Oct 21, 2008 at 01:32:03AM +0200, Stéphane Glondu wrote:
> Stéphane Glondu wrote:
> >> I would like to try out OCaml 3.11 in Debian as long as we have a
> >> beta, and of course before the official release. [...]
> > 
> > I will have a look.
> 
> I have updated the ocaml source package. To build it, use:
> 
>   git-buildpackage \
>     --git-pristine-tar \
>     --git-debian-branch=3.11/master \
>     --git-upstream-branch=3.11/upstream \
>     [whatever-options]
> 
> in an up-to-date clone of ocaml.git tracking 3.11/* branches.

I have 

% git branch
* 3.11/master
  3.11/upstream
  master
  pristine-tar
  upstream
% git status
# On branch 3.11/master
nothing to commit (working directory clean)

When I try to build the 3.11 package with the command given by Stephane :

git-buildpackage --git-pristine-tar --git-debian-branch=3.11/master\
	 --git-upstream-branch=3.11/upstream

I get an error for unrepresentable changes to source :

dpkg-source: error: cannot represent change to ocaml/boot/ocamlc: binary file contents changed
dpkg-source: error: cannot represent change to ocaml/boot/ocamllex: binary file contents changed
dpkg-source: error: cannot represent change to ocaml/boot/ocamldep: binary file contents changed

A full log is attached. Has anyone an idea what is going here? -Ralf.
for t in `find debian/ -name \*.in | grep -v debian/control.in`; do \
	  sed -e 's%#OcamlABI#%3.11.0+beta1%' -e 's%#OcamlMAJOR#%3.11%' $t >${t%.in};	\
	done
touch abi-sed
dpatch  deapply-all  
install_ocamlbuild not applied to ./ .
install_scripts_config not applied to ./ .
stdlib_man_section not applied to ./ .
no_rpath not applied to ./ .
call_ld_with_proper_flags not applied to ./ .
alpha_ld_no-relax not applied to ./ .
man-ocamlmklib not applied to ./ .
dumpobj not applied to ./ .
objinfo not applied to ./ .
ocamldoc not applied to ./ .
manpages not applied to ./ .
rm -rf patch-stamp patch-stampT debian/patched
dh_testdir
dh_testroot
rm -f build-arch-stamp build-indep-stamp config-stamp abi-sed opt-built-stamp pre-config
# Add here commands to clean up after the build process.
[ ! -f "/home/rt/debian/packages/pkg-ocaml-maint-git/ocaml/config/Makefile" ] || /usr/bin/make clean
if test -d boot.debian; then	\
		rm -f -r boot;		\
		mv boot.debian boot;	\
	fi
[ ! -f "/home/rt/debian/packages/pkg-ocaml-maint-git/ocaml/config/Makefile" ] || /usr/bin/make -C emacs clean
# Restore files altered by debian/rules
for ext in sub guess; do \
	  if [ -f debian/config.orig.$ext ] ; then \
	    mv -f debian/config.orig.$ext config/gnu/config.$ext; \
	  fi; \
	done
if head -n 1 emacs/ocamltags.in | grep -q '^#!/bin/sh'; then \
		sed -i 1d emacs/ocamltags.in; \
	fi
# Files not cleaned by upstream (most of them are cleaned
# using debian/clean feature of dh_clean in debhelper 7)
rm -f ocaml-3.11.0+beta1
dh_clean
debian/rules abi-sed-clean
make[1]: Entering directory `/home/rt/debian/packages/pkg-ocaml-maint-git/ocaml'
rm -f abi-sed
for t in `find debian/ -name \*.in | grep -v debian/control.in`; do \
	  rm -f ${t%.in}; \
	done
make[1]: Leaving directory `/home/rt/debian/packages/pkg-ocaml-maint-git/ocaml'
rm -f debian/ocaml-source-3.11.0+beta1.tar.bz2
 dpkg-buildpackage -rfakeroot -D -us -uc -i.git/ -I.git
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value: 
dpkg-buildpackage: set LDFLAGS to default value: 
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package ocaml
dpkg-buildpackage: source version 3.11.0~beta1-2
dpkg-buildpackage: source changed by Stephane Glondu <steph@glondu.net>
dpkg-buildpackage: host architecture amd64
 fakeroot debian/rules clean
for t in `find debian/ -name \*.in | grep -v debian/control.in`; do \
	  sed -e 's%#OcamlABI#%3.11.0+beta1%' -e 's%#OcamlMAJOR#%3.11%' $t >${t%.in};	\
	done
touch abi-sed
dpatch  deapply-all  
install_ocamlbuild not applied to ./ .
install_scripts_config not applied to ./ .
stdlib_man_section not applied to ./ .
no_rpath not applied to ./ .
call_ld_with_proper_flags not applied to ./ .
alpha_ld_no-relax not applied to ./ .
man-ocamlmklib not applied to ./ .
dumpobj not applied to ./ .
objinfo not applied to ./ .
ocamldoc not applied to ./ .
manpages not applied to ./ .
rm -rf patch-stamp patch-stampT debian/patched
dh_testdir
dh_testroot
rm -f build-arch-stamp build-indep-stamp config-stamp abi-sed opt-built-stamp pre-config
# Add here commands to clean up after the build process.
[ ! -f "/home/rt/debian/packages/pkg-ocaml-maint-git/ocaml/config/Makefile" ] || /usr/bin/make clean
if test -d boot.debian; then	\
		rm -f -r boot;		\
		mv boot.debian boot;	\
	fi
[ ! -f "/home/rt/debian/packages/pkg-ocaml-maint-git/ocaml/config/Makefile" ] || /usr/bin/make -C emacs clean
# Restore files altered by debian/rules
for ext in sub guess; do \
	  if [ -f debian/config.orig.$ext ] ; then \
	    mv -f debian/config.orig.$ext config/gnu/config.$ext; \
	  fi; \
	done
if head -n 1 emacs/ocamltags.in | grep -q '^#!/bin/sh'; then \
		sed -i 1d emacs/ocamltags.in; \
	fi
# Files not cleaned by upstream (most of them are cleaned
# using debian/clean feature of dh_clean in debhelper 7)
rm -f ocaml-3.11.0+beta1
dh_clean
debian/rules abi-sed-clean
make[1]: Entering directory `/home/rt/debian/packages/pkg-ocaml-maint-git/ocaml'
rm -f abi-sed
for t in `find debian/ -name \*.in | grep -v debian/control.in`; do \
	  rm -f ${t%.in}; \
	done
make[1]: Leaving directory `/home/rt/debian/packages/pkg-ocaml-maint-git/ocaml'
rm -f debian/ocaml-source-3.11.0+beta1.tar.bz2
 dpkg-source -i.git/ -I.git -b ocaml
dpkg-source: warning: source directory 'ocaml' is not <sourcepackage>-<upstreamversion> 'ocaml-3.11.0~beta1'
dpkg-source: warning: .orig directory name ocaml.orig is not <package>-<upstreamversion> (wanted ocaml-3.11.0~beta1.orig)
dpkg-source: info: using source format `1.0'
dpkg-source: info: building ocaml using existing ocaml_3.11.0~beta1.orig.tar.gz
dpkg-source: info: building ocaml in ocaml_3.11.0~beta1-2.diff.gz
dpkg-source: warning: executable mode 0755 of 'byterun/Makefile.common' will not be represented in diff
dpkg-source: warning: newly created empty file 'debian/ocaml-nox.manpages' will not be represented in diff
dpkg-source: warning: newly created empty file 'debian/camlp4-extra.manpages' will not be represented in diff
dpkg-source: warning: executable mode 0755 of 'debian/patches/call_ld_with_proper_flags.dpatch' will not be represented in diff
dpkg-source: warning: executable mode 0755 of 'debian/patches/install_ocamlbuild.dpatch' will not be represented in diff
dpkg-source: warning: executable mode 0755 of 'debian/patches/for_pack_static.dpatch' will not be represented in diff
dpkg-source: warning: executable mode 0755 of 'debian/patches/manpages.dpatch' will not be represented in diff
dpkg-source: warning: executable mode 0755 of 'debian/patches/install_scripts_config.dpatch' will not be represented in diff
dpkg-source: warning: executable mode 0755 of 'debian/patches/missing-manpage-links.dpatch' will not be represented in diff
dpkg-source: warning: executable mode 0755 of 'debian/patches/dumpobj.dpatch' will not be represented in diff
dpkg-source: warning: executable mode 0755 of 'debian/patches/no_rpath.dpatch' will not be represented in diff
dpkg-source: warning: executable mode 0755 of 'debian/patches/man-ocamlmklib.dpatch' will not be represented in diff
dpkg-source: warning: executable mode 0755 of 'debian/patches/stdlib_man_section.dpatch' will not be represented in diff
dpkg-source: warning: executable mode 0755 of 'debian/patches/objinfo.dpatch' will not be represented in diff
dpkg-source: warning: executable mode 0755 of 'debian/patches/alpha_ld_no-relax.dpatch' will not be represented in diff
dpkg-source: warning: executable mode 0755 of 'debian/patches/ocamldoc.dpatch' will not be represented in diff
dpkg-source: warning: file ocaml/otherlibs/labltk/lib/Makefile.nt has no final newline (either original or modified version)
dpkg-source: error: cannot represent change to ocaml/boot/ocamlc: binary file contents changed
dpkg-source: error: cannot represent change to ocaml/boot/ocamllex: binary file contents changed
dpkg-source: error: cannot represent change to ocaml/boot/ocamldep: binary file contents changed
dpkg-source: warning: executable mode 0755 of 'stdlib/Makefile.shared' will not be represented in diff
dpkg-source: warning: newly created empty file 'asmrun/natdynlink.h' will not be represented in diff
dpkg-source: warning: ignoring deletion of file otherlibs/dynlink/.depend
dpkg-source: warning: ignoring deletion of file otherlibs/labltk/support/Makefile.common.nt
dpkg-source: warning: ignoring deletion of file camlp4/Camlp4Filters/Camlp4Tracer.ml
dpkg-source: unrepresentable changes to source
dpkg-buildpackage: failure: dpkg-source -i.git/ -I.git -b ocaml gave error exit status 1
debuild: fatal error at line 1319:
dpkg-buildpackage -rfakeroot -D -us -uc -i.git/ -I.git failed
debuild -i\.git/ -I.git returned 25
Couldn't run 'debuild -i\.git/ -I.git'

Reply to: