LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-07-2011, 11:14 PM   #1
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Can't build wine-unstable, or, Proper way to dpkg-buildpackage?


Hello,

I am trying to build wine-unstable from http://dev.carbon-project.org/debian/wine-unstable/ . I have done the following:

Code:
mkdir wine; cd wine
wget http://dev.carbon-project.org/debian/wine-unstable/wine-unstable_1.3.19-0.1.dsc
wget http://dev.carbon-project.org/debian/wine-unstable/wine-unstable_1.3.19.orig.tar.bz2
wget http://dev.carbon-project.org/debian/wine-unstable/wine-unstable_1.3.19-0.1.debian.tar.bz2
tar xvjf wine-unstable_1.3.19-0.1.debian.tar.bz2
vi debian/rules #to append to CFLAGS and the ./configure line
dpkg-buildpackage -us -uc -rfakeroot -b
And I get back:
Code:
cd build32 && \
	CC="gcc" \
	CFLAGS="-O2 -g -pipe -march=native" \
	LDFLAGS="" \
	../configure --disable-win64 --with-x --disable-tests --with-openal \
	--prefix=/usr \
	--sysconfdir=/etc \
	--bindir=/usr/bin \
	--libdir=/usr/lib \
	--mandir=/usr/share/man \
	--infodir=/usr/share/info
bash: line 1: ../configure: No such file or directory
make: *** [configure-arch32-stamp] Error 127
dpkg-buildpackage: error: debian/rules build gave error exit status 2
Full log: http://zxcv.pastebin.ca/2055145

Or if I try a non-binary-only build:
Code:
dpkg-buildpackage -us -uc -rfakeroot
# snip
 dpkg-source -b wine
dpkg-source: info: using options from wine/debian/source/options: --compression=bzip2 --compression-level=9
dpkg-source: error: can't build with source format '3.0 (quilt)': no orig.tar file found
dpkg-buildpackage: error: dpkg-source -b wine gave error exit status 255
System:
Code:
Debian dpkg-buildpackage version 1.16.0.3.
Linux tlaptop 2.6.38-5.dmz.2-liquorix-686 #1 ZEN SMP PREEMPT Sat May 7 07:01:27 UTC 2011 i686 GNU/Linux
Debian wheezy/sid
What am I doing wrong? How can I build these source packages?

Last edited by AlucardZero; 05-07-2011 at 11:18 PM.
 
Old 05-08-2011, 08:02 AM   #2
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
This is just a quick look, but it looks to me that you didn't cd to where you've extracted wine-unstable_1.3.19-0.1.debian.tar.bz2.

There are other ways to do this, but if things will work after my suggestion, then I won't mention it.
 
1 members found this post helpful.
Old 05-08-2011, 08:50 AM   #3
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Original Poster
Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
If I cd to wine/debian and try dpkg-buildpackage, it gives me:
Code:
tail: cannot open `debian/changelog' for reading: No such file or directory
dpkg-buildpackage: error: tail of debian/changelog gave error exit status 1
 
Old 05-08-2011, 09:45 AM   #4
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
I've visited that page, I've downloaded that package. There's no debian/changelog file in the debian directory, but that is because that's source, if you understand me. You can create debian/changelog; http://www.debian.org/doc/manuals/ma...html#changelog

Also a link worth visiting; http://www.debian.org/doc/manuals/ma.../index.en.html

And finally, may I ask why don't you use binary packages which are available on the mentioned page?
 
Old 05-08-2011, 11:04 AM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Original Poster
Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Code:
$ tar tjf wine-unstable_1.3.19-0.1.debian.tar.bz2 | grep changelog
debian/changelog
?



Because I'm not supposed to trust binary packages provided by someone else (as the page so forcibly says), and so I can compile with -march=native. But I'll probably give up and do it anyway.
 
Old 05-08-2011, 01:38 PM   #6
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
There is changelog and debian/changelog. And on the second look this may be workable. It's just that I didn't go into this deeply, I'm really tired today.

You can try to build only .deb with;
Code:
fake root debian/rules binary
Or by using apt-get source, then execute dpkg-buildpackage in the source directory.
http://www.debian.org/doc/FAQ/ch-pkg_basics.en.html#s-sourcepkgs
http://www.debian.org/doc/manuals/ma.../build.en.html

And just a note, don't give up , even I learned something trying to help you.

You said;
Quote:
Because I'm not supposed to trust binary packages provided by someone else (as the page so forcibly says)
And you are thinking correctly, but I'd say that you can trust those packages, but then again let's try to install this from source.
 
Old 05-08-2011, 02:22 PM   #7
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Original Poster
Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
OK, by comparing what "apt-get source" got me, I found that I was extracting things in the wrong place. Correct order:
Code:
tar xjf wine-unstable_1.3.19.orig.tar.bz2
cd wine-1.3.19
tar xjf ../wine-unstable_1.3.19-0.1.debian.tar.bz2
Yielding:
Code:
/wine-1.3.19$ ls
aclocal.m4  configure.ac  documentation/  LICENSE      Make.rules.in      programs/  VERSION
ANNOUNCE    COPYING.LIB   fonts/          LICENSE.OLD  Maketest.rules.in  README
AUTHORS     debian/       include/        loader/      Make.vars.in       server/
configure   dlls/         libs/           Makefile.in  po/                tools/
Thanks.
 
Old 05-08-2011, 03:33 PM   #8
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Great!
 
  


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
dpkg-buildpackage: passing ./configure options? neocookie Debian 3 08-27-2008 10:20 PM
what's this dpkg-buildpackage error mean? lugoteehalt Debian 5 08-06-2007 02:02 PM
dpkg-buildpackage problem... wrongman Ubuntu 2 11-03-2006 04:10 AM
problem with dpkg-buildpackage cottonmouth Debian 0 12-12-2004 03:34 PM
Where can I learn about dpkg-buildpackage? Durham Debian 1 02-29-2004 12:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:08 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration