LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 10-28-2007, 05:54 PM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,441

Rep: Reputation: 81
Exclamation need help building deb package of qemu


I am trying to create a deb of qemu without using checkinstall. Here is what I have done. I followed this guide.

http://www.quietearth.us/articles/20...ge-from-source

Why did it not work? What has gone wrong?

root@ubuntu:/tmp# cd qemu-0.9.0
root@ubuntu:/tmp/qemu-0.9.0# ls
aes.c cpu-all.h LICENSE softmmu_template.h
aes.h cpu-defs.h linux-user sparc64.ld
alpha-dis.c cpu-exec.c loader.c sparc-dis.c
alpha.ld cutils.c m68k-dis.c sparc.ld
a.out.h darwin-user m68k.ld tap-win32.c
arm-dis.c disas.c Makefile target-arm
arm.ld disas.h Makefile.target target-i386
arm-semi.c dis-asm.h mips-dis.c target-m68k
audio dyngen.c monitor.c target-mips
block-bochs.c dyngen-exec.h osdep.c target-ppc
block.c dyngen.h osdep.h target-sh4
block-cloop.c dyngen-op.h pc-bios target-sparc
block-cow.c elf.h ppc-dis.c tests
block-dmg.c elf_ops.h ppc.ld texi2pod.pl
block_int.h exec-all.h qemu-binfmt-conf.sh thunk.c
block-qcow2.c exec.c qemu-doc.texi thunk.h
block-qcow.c fpu qemu-img.c TODO
block-raw.c gdbstub.c qemu-img.texi translate-all.c
block-vmdk.c gdbstub.h qemu_socket.h translate-op.c
block-vpc.c hostregs_helper.h qemu-tech.texi usb-linux.c
block-vvfat.c hw readline.c VERSION
bswap.h i386-dis.c README vgafont.h
Changelog i386.ld s390.ld vl.c
check_ops.sh i386-vl.ld sdl.c vl.h
cocoa.m ia64.ld sdl_keysym.h vnc.c
configure keymaps sh4-dis.c vnchextile.h
console.c keymaps.c slirp vnc_keysym.h
COPYING kqemu.c softmmu_exec.h x86_64.ld
COPYING.LIB kqemu.h softmmu_header.h x_keymap.c
root@ubuntu:/tmp/qemu-0.9.0# dh_make
822-date: warning: This program is deprecated. Please use 'date -R' instead.

Type of package: single binary, multiple binary, library, kernel module or cdbs?
[s/m/l/k/b] s

Maintainer name : root
Email-Address : root@ubuntu
Date : Sun, 28 Oct 2007 16:43:53 -0500
Package Name : qemu
Version : 0.9.0
License : blank
Type of Package : Single
Hit <enter> to confirm:
Could not find qemu_0.9.0.orig.tar.gz
Either specify an alternate file to use with -f,
or add --createorig to create one.
root@ubuntu:/tmp/qemu-0.9.0# dh_make --createorig
822-date: warning: This program is deprecated. Please use 'date -R' instead.

Type of package: single binary, multiple binary, library, kernel module or cdbs?
[s/m/l/k/b] s

Maintainer name : root
Email-Address : root@ubuntu
Date : Sun, 28 Oct 2007 16:44:29 -0500
Package Name : qemu
Version : 0.9.0
License : blank
Type of Package : Single
Hit <enter> to confirm:
Done. Please edit the files in the debian/ subdirectory now. qemu
uses a configure script, so you probably don't have to edit the Makefiles.
root@ubuntu:/tmp/qemu-0.9.0# cd debian/
root@ubuntu:/tmp/qemu-0.9.0/debian# vim
changelog emacsen-remove.ex postrm.ex
compat emacsen-startup.ex preinst.ex
control init.d.ex prerm.ex
copyright manpage.1.ex qemu-default.ex
cron.d.ex manpage.sgml.ex qemu.doc-base.EX
dirs manpage.xml.ex README.Debian
docs menu.ex rules
emacsen-install.ex postinst.ex watch.ex
root@ubuntu:/tmp/qemu-0.9.0/debian# vim control
root@ubuntu:/tmp/qemu-0.9.0/debian# dpkg-buildpackage -rfakeroot
dpkg-parsechangelog: error: cannot open debian/changelog to find format: No such file or directory
dpkg-buildpackage: unable to determine source package is
root@ubuntu:/tmp/qemu-0.9.0/debian# cd ..
root@ubuntu:/tmp/qemu-0.9.0# dpkg-buildpackage -rfakeroot
dpkg-buildpackage: source package is qemu
dpkg-buildpackage: source version is 0.9.0-1
dpkg-buildpackage: source changed by root <root@ubuntu>
dpkg-buildpackage: host architecture amd64
dpkg-buildpackage: source version without epoch 0.9.0-1
fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp
# Add here commands to clean up after the build process.
/usr/bin/make distclean
make[1]: Entering directory `/tmp/qemu-0.9.0'
Makefile:3: config-host.mak: No such file or directory
make[1]: *** No rule to make target `config-host.mak'. Stop.
make[1]: Leaving directory `/tmp/qemu-0.9.0'
make: [clean] Error 2 (ignored)
rm -f config.sub config.guess
dh_clean
dpkg-source -b qemu-0.9.0
dpkg-source: building qemu in qemu_0.9.0.orig.tar.gz
dpkg-source: building qemu in qemu_0.9.0-1.diff.gz
dpkg-source: building qemu in qemu_0.9.0-1.dsc
debian/rules build
dh_testdir
# Add here commands to configure the package.
cp -f /usr/share/misc/config.sub config.sub
cp -f /usr/share/misc/config.guess config.guess
./configure --host=x86_64-linux-gnu --build=x86_64-linux-gnu --prefix=/usr --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info CFLAGS="-Wall -g -O2" LDFLAGS="-Wl,-z,defs"
WARNING: "gcc" looks like gcc 4.x
Looking for gcc 3.x
./configure: 372: Syntax error: Bad fd number
make: *** [config.status] Error 2
root@ubuntu:/tmp/qemu-0.9.0#

Edit: I installed an older gcc version, but I still can't compile.

root@ubuntu:/tmp/qemu-0.9.0# CC=/usr/bin/gcc-3.4 dpkg-buildpackage -rfakeroot
dpkg-buildpackage: source package is qemu
dpkg-buildpackage: source version is 0.9.0-1
dpkg-buildpackage: source changed by root <root@ubuntu>
dpkg-buildpackage: host architecture amd64
dpkg-buildpackage: source version without epoch 0.9.0-1
fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp
# Add here commands to clean up after the build process.
/usr/bin/make distclean
make[1]: Entering directory `/tmp/qemu-0.9.0'
Makefile:3: config-host.mak: No such file or directory
make[1]: *** No rule to make target `config-host.mak'. Stop.
make[1]: Leaving directory `/tmp/qemu-0.9.0'
make: [clean] Error 2 (ignored)
rm -f config.sub config.guess
dh_clean
dpkg-source -b qemu-0.9.0
dpkg-source: building qemu using existing qemu_0.9.0.orig.tar.gz
dpkg-source: building qemu in qemu_0.9.0-1.diff.gz
dpkg-source: building qemu in qemu_0.9.0-1.dsc
debian/rules build
dh_testdir
# Add here commands to configure the package.
cp -f /usr/share/misc/config.sub config.sub
cp -f /usr/share/misc/config.guess config.guess
./configure --host=x86_64-linux-gnu --build=x86_64-linux-gnu --prefix=/usr --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info CFLAGS="-Wall -g -O2" LDFLAGS="-Wl,-z,defs"
WARNING: "gcc" looks like gcc 4.x
Looking for gcc 3.x
./configure: 372: Syntax error: Bad fd number
make: *** [config.status] Error 2
root@ubuntu:/tmp/qemu-0.9.0#

Last edited by fakie_flip; 10-28-2007 at 05:59 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
An unwanted link getting generated automatically: building .deb package varun_shrivastava Debian 0 10-08-2007 05:06 AM
Building my own .deb package (help on postinst config) odiseo77 Debian 3 01-28-2007 11:49 AM
How to make deb package chrisstooss Debian 6 09-16-2005 06:21 PM
How to install deb package tstrickland Linux - Newbie 10 07-21-2005 07:39 PM
building optimized deb-src packages (debian/rules) Rounan Debian 1 02-17-2004 01:03 PM


All times are GMT -5. The time now is 04:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration