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

Re: pbuilder -- chroot and build-dependencies.



В Чтв, 01/09/2005 в 16:56 +0200, Sven Mueller пишет:

> It would be quite interesting to see a log of what is happening there.
> For example: How do you call pbuilder? With a .dsc file or from within
> an unpacked source tree? The way the build machines would do it (AFAIK,
> they use sbuild, not pbuilder) would be to use the .dsc file. If you
> call it from within an unpacked source tree, I would guess that it first
> does a "dpkg-buildpackage -S" (or equivalent) first, which might fail if
> the build dependencies aren't met. I'm not 100% sure about this however.
> Especially not without sufficient information from you (log, how do you
> call it, possibly an example source).

Inside an unpacked source tree;
I call ~/bin/mydebuild, which is simple shell script:
#!/bin/sh
pdebuild --configfile ~/.pbuilderrc \
        --buildsourceroot fakeroot \
        --pbuilderroot sudo \
        $*

I noticed this problem some time ago, but since it can be solved in most
cases by just installing one packages, I just ignored it. But now it
required ocaml... 

Here is full log of build attempt:

zulu@lab:~/src/mldonkey-2.5.28$ mydebuild
dpkg-checkbuilddeps: Unmet build dependencies: ocaml-nox-3.08 xsltproc
zlib1g-dev docbook-xsl docbook-xml chrpath m4 liblablgtk2-ocaml-dev
W: Unmet build-dependency in source
dpkg-buildpackage: source package is mldonkey
dpkg-buildpackage: source version is 2.5.28-2
dpkg-buildpackage: source maintainer is Sylvain Le Gall
<sylvain.le-gall@polytechnique.org>
 fakeroot debian/rules clean
# Bug in 2.5.27
cp src/gtk2/newgui/gui_console_base.ml
src/gtk2/newgui/gui_console_base.mls
cp src/gtk2/newgui/gui_cdget_base.ml
src/gtk2/newgui/gui_cdget_base.mls
cp src/gtk2/newgui/gui_installer_base.ml
src/gtk2/newgui/gui_installer_base.mls
cp src/gtk2/im/gui_im_base.ml            src/gtk2/im/gui_im_base.mls
# Prevent the rebuild of configure
#touch config/configure
/usr/bin/make maintainerclean
make[1]: Entering directory `/home/zulu/src/mldonkey-2.5.28'
Makefile:14: config/Makefile.config: No such file or directory
******************************************


 You should rerun ./configure now


******************************************
rm -f *.cm? donkey_* *.byte *.cm?? mlnet  *~ *.o core *.static *.a
rm -f build/*.a build/*.cma build/*.cmxa
rm -f *_plugin
rm -f mldonkey mlgui
(for i in src/utils/cdk src/daemon/chat src//chat src/utils/lib
src/utils/ocamlrss src/utils/xml-light src/utils/net tools
src/daemon/common src/daemon/driver src/utils/mp3tagui src/config/ ; do
\
        rm -f  $i/*.cm? $i/*.o ; \
done)
rm -f                   src/networks/opennap/napigator.ml
src/networks/gnutella2/g2Types.ml src/networks/gnutella2/g2Options.ml
src/networks/gnutella2/g2Globals.ml
src/networks/gnutella2/g2ComplexOptions.ml
src/networks/gnutella2/g2Protocol.ml src/networks/gnutella2/g2Clients.ml
src/networks/gnutella2/g2Scheduler.ml
src/networks/gnutella2/g2Servers.ml
src/networks/gnutella2/g2Interactive.ml src/networks/gnutella2/g2Main.ml
src/utils/lib/options.ml src/utils/lib/gettext.ml
src/utils/xml-light/xml_lexer.ml src/utils/lib/http_lexer.ml
src/utils/xml-light/xml_parser.ml  src/utils/xml-light/xml_parser.mli
src/daemon/common/giftLexer.ml  src/daemon/common/giftParser.ml
src/daemon/common/giftParser.mli
src/utils/lib/options.ml src/utils/lib/gettext.ml
src/utils/xml-light/xml_lexer.ml src/utils/lib/http_lexer.ml
src/daemon/common/giftLexer.ml  src/utils/xml-light/xml_parser.ml
src/daemon/common/giftParser.ml  src/utils/xml-light/xml_parser.mli
src/daemon/common/giftParser.mli     src/utils/lib/options.ml
src/utils/lib/gettext.ml    src/utils/xml-light/xml_lexer.ml
src/utils/lib/http_lexer.ml  src/utils/xml-light/xml_parser.ml
src/utils/xml-light/xml_parser.mli     tools/ocamlpp.ml
src/utils/lib/options.ml src/utils/lib/gettext.ml
src/utils/xml-light/xml_lexer.ml src/utils/lib/http_lexer.ml
src/daemon/common/giftLexer.ml  src/utils/xml-light/xml_parser.ml
src/daemon/common/giftParser.ml  src/utils/xml-light/xml_parser.mli
src/daemon/common/giftParser.mli     src/utils/lib/options.ml
src/utils/lib/gettext.ml    src/utils/xml-light/xml_lexer.ml
src/utils/lib/http_lexer.ml  src/utils/xml-light/xml_parser.ml
src/utils/xml-light/xml_parser.mli     src/utils/lib/options.ml
src/utils/lib/gettext.ml    src/utils/xml-light/xml_lexer.ml
src/utils/lib/http_lexer.ml  src/utils/xml-light/xml_parser.ml
src/utils/xml-light/xml_parser.mli     src/utils/lib/options.ml
src/utils/lib/gettext.ml    src/utils/xml-light/xml_lexer.ml
src/utils/lib/http_lexer.ml  src/utils/xml-light/xml_parser.ml
src/utils/xml-light/xml_parser.mli     src/utils/lib/options.ml
src/utils/lib/gettext.ml    src/utils/xml-light/xml_lexer.ml
src/utils/lib/http_lexer.ml  src/utils/xml-light/xml_parser.ml
src/utils/xml-light/xml_parser.mli     src/utils/lib/options.ml
src/utils/lib/gettext.ml    src/utils/xml-light/xml_lexer.ml
src/utils/lib/http_lexer.ml  src/utils/xml-light/xml_parser.ml
src/utils/xml-light/xml_parser.mli     src/utils/lib/options.ml
src/utils/lib/gettext.ml    src/utils/xml-light/xml_lexer.ml
src/utils/lib/http_lexer.ml  src/utils/xml-light/xml_parser.ml
src/utils/xml-light/xml_parser.mli         src/utils/lib/cddb_lexer.ml
src/utils/lib/options.ml src/utils/lib/gettext.ml
src/utils/xml-light/xml_lexer.ml src/utils/lib/http_lexer.ml
src/utils/xml-light/xml_parser.ml  src/utils/xml-light/xml_parser.mli
src/utils/lib/options.ml src/utils/lib/gettext.ml
src/utils/xml-light/xml_lexer.ml src/utils/lib/http_lexer.ml
src/utils/xml-light/xml_parser.ml  src/utils/xml-light/xml_parser.mli
src/utils/lib/options.ml src/utils/lib/gettext.ml
src/utils/xml-light/xml_lexer.ml src/utils/lib/http_lexer.ml
src/utils/xml-light/xml_parser.ml  src/utils/xml-light/xml_parser.mli
src/utils/lib/options.ml src/utils/lib/gettext.ml
src/utils/xml-light/xml_lexer.ml src/utils/lib/http_lexer.ml
src/utils/xml-light/xml_parser.ml  src/utils/xml-light/xml_parser.mli
src/utils/lib/options.ml src/utils/lib/gettext.ml
src/utils/xml-light/xml_lexer.ml src/utils/lib/http_lexer.ml
src/utils/xml-light/xml_parser.ml  src/utils/xml-light/xml_parser.mli
src/utils/lib/options.ml src/utils/lib/gettext.ml
src/utils/xml-light/xml_lexer.ml src/utils/lib/http_lexer.ml
src/utils/xml-light/xml_parser.ml  src/utils/xml-light/xml_parser.mli
src/utils/lib/options.ml src/utils/lib/gettext.ml
src/utils/xml-light/xml_lexer.ml src/utils/lib/http_lexer.ml
src/utils/xml-light/xml_parser.ml  src/utils/xml-light/xml_parser.mli
src/utils/lib/options.ml src/utils/lib/gettext.ml
src/utils/xml-light/xml_lexer.ml src/utils/lib/http_lexer.ml
src/utils/xml-light/xml_parser.ml  src/utils/xml-light/xml_parser.mli
rm -f config/config.cache config/config.log config/config.status
rm -f config/config.h config/Makefile.config
rm -f tools/zoggy/*.cm?
rm -rf patches/build
rm -f .depend
rm -f config/Makefile.config
rm -f config/Makefile.config.i386
rm -f config/Makefile.config.i486
rm -f config/Makefile.config.i586
rm -f config/Makefile.config.i686
rm -f config/mldonkey.rc
rm -f config/config.h
rm -f packages/rpm/*.spec
rm -f packages/windows/mlnet.nsi
rm -f src/utils/lib/autoconf.ml
rm -f src/utils/lib/autoconf.ml.new
rm -f src/utils/lib/gAutoconf.ml
rm -f src/utils/lib/gAutoconf.ml.new
rm -f icons/tux/*.ml_icons
rm -f icons/tux/*.ml
rm -f icons/kde/*.ml_icons
rm -f icons/kde/*.ml
rm -f icons/mldonkey/*.ml_icons
rm -f icons/mldonkey/*.ml
rm -rf patches/local
rm -f OLDGUI/gui.ml OLDGUI/gui_zog.ml
make[1]: Leaving directory `/home/zulu/src/mldonkey-2.5.28'
rm -f config/confdefs.h
# Bug in 2.5.27
mv -f src/gtk2/newgui/gui_console_base.mls
src/gtk2/newgui/gui_console_base.ml
mv -f src/gtk2/newgui/gui_cdget_base.mls
src/gtk2/newgui/gui_cdget_base.ml
mv -f src/gtk2/newgui/gui_installer_base.mls
src/gtk2/newgui/gui_installer_base.ml
mv -f src/gtk2/im/gui_im_base.mls            src/gtk2/im/gui_im_base.ml
dpatch  deapply-all
19_mlgui_align not applied to ./ .
18_utf8_encoding not applied to ./ .
02_usr_bin not applied to ./ .
01_see not applied to ./ .
rm -rf patch-stamp patch-stampT debian/patched
cd debian/xml-man && rm -f *.new *.diff
rm -f doc-check-stamp
dh_testdir
dh_testroot
# Add here commands to clean up after the build process.
cd debian/xml-man && /usr/bin/make clean
make[1]: Entering directory
`/home/zulu/src/mldonkey-2.5.28/debian/xml-man'
rm -rf *.1
make[1]: Leaving directory
`/home/zulu/src/mldonkey-2.5.28/debian/xml-man'
cd debian/utils && /usr/bin/make clean
make[1]: Entering directory
`/home/zulu/src/mldonkey-2.5.28/debian/utils'
/usr/bin/make -f Makefile.command clean
make[2]: Entering directory
`/home/zulu/src/mldonkey-2.5.28/debian/utils'
Makefile.command:186: .depend.command: No such file or directory
ocamldep *.mli *.ml > .depend.command
/bin/sh: line 1: ocamldep: command not found
make[2]: *** [.depend.command] Error 127
make[2]: Leaving directory `/home/zulu/src/mldonkey-2.5.28/debian/utils'
make[1]: *** [clean] Error 2
make[1]: Leaving directory `/home/zulu/src/mldonkey-2.5.28/debian/utils'
make: *** [clean] Error 2
zulu@lab:~/src/mldonkey-2.5.28$

Well, I noticed warning in the beginning, but I can see this warning
every time I build a package, since actual build will be performed in
chroot with all packages installed.

> regards,
> Sven
> 
> > PS. Please CC me, I'm not on the list.
> Preserved for future reference.
> 
-- 
Best regards,
Alexander A. Vlasov.



Reply to: