LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Trying to create deb from k9copy sid source (https://www.linuxquestions.org/questions/debian-26/trying-to-create-deb-from-k9copy-sid-source-770664/)

mark_alfred 11-21-2009 01:29 PM

Trying to create deb from k9copy sid source
 
Trying to create a debian package for Lenny from the k9copy sid source. I installed all the dependencies via apt-get build-dep. I get the following result when I try to build the deb:

Code:

mark@debian:~/stuff/debs/k9copy/k9copy-2.3.3$ dpkg-buildpackage -rfakeroot -uc -b -D
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 k9copy
dpkg-buildpackage: source version 2.3.3-0.0
dpkg-buildpackage: source changed by Christian Marillat <marillat@debian.org>
dpkg-buildpackage: host architecture i386
 fakeroot debian/rules clean
QUILT_PATCHES=debian/patches quilt --quiltrc /dev/null pop -a -R || test $? = 2
Patch 01_ffmpeg.diff does not remove cleanly (refresh it or enforce with -f)
make: *** [unpatch] Error 1
dpkg-buildpackage: failure: fakeroot debian/rules clean gave error exit status 2

Any ideas?

mark_alfred 11-21-2009 04:07 PM

To further add to my previous entry, I found the patch that was getting in the way, and got rid of it (presumably it came from my previous effort at this). On my second attempt, it got 75% of the way through before giving me this error:
Code:

/home/mark/stuff/debs/k9copy/k9copy-2.3.3/build/src/main/k9main.cpp:127: error: invalid use of incomplete type ‘struct QHeaderView’
/usr/include/qt4/QtGui/qtreeview.h:52: error: forward declaration of ‘struct QHeaderView’
make[3]: *** [CMakeFiles/k9copy.dir/src/main/k9main.o] Error 1
make[3]: Leaving directory `/home/mark/stuff/debs/k9copy/k9copy-2.3.3/build'
make[2]: *** [CMakeFiles/k9copy.dir/all] Error 2
make[2]: Leaving directory `/home/mark/stuff/debs/k9copy/k9copy-2.3.3/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/mark/stuff/debs/k9copy/k9copy-2.3.3/build'
make: *** [build-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2

The above occured when it was in the process of "[ 75%] Building CXX object CMakeFiles/k9copy.dir/src/main/k9main.o"

knudfl 11-21-2009 04:21 PM

'quilt' : http://packages.debian.org/lenny/quilt

As k9copy doesn't use a "series of patches" :
The k9copy_2.3.3-0.0.diff generates one patch,
so I guess, you can try deleting line 8 in the
k9copy_2.3.3-0.0.diff , and gzip it again.
( Line 8 : +include /usr/share/quilt/quilt.make ).

EDIT : Writing, while you were posting : i can see,
you solved the "quilt" issue.
.....

Which mirror are you using to set up the "source
repo" line ? I have tried several : No luck getting
all the files downloaded to complete the repo.
.....

craigevil 11-21-2009 04:27 PM

Just curious why you are using fakeroot rather than just doing:
apt-get build-dep packagename;apt-get -b source packagename; install the resultant debs

mark_alfred 11-21-2009 04:37 PM

I'm using
Code:

deb-src ftp://mirror.csclub.uwaterloo.ca/debian-multimedia/ sid main
for the source repo.

I used fakeroot as per the instructions from the debian site. I'll try just using root and see.

(later...)

With root, it's the exact same result.

knudfl 11-21-2009 04:57 PM

Source repo : Sorry, it is the Debian Lenny repo
for source, I can't complete.

The Multimedia repo is OK.

the trooper 11-21-2009 05:24 PM

Quote:

With root, it's the exact same result.
I assume this is using the fakeroot method?.
Did you try Craigevils' suggestion of using apt to build the .deb?.

mark_alfred 11-21-2009 05:35 PM

knudfl:
I use
Code:

deb-src http://debian.yorku.ca/debian/ sid main contrib non-free
for the debian sources repo. I just tested it, and it works:
Code:

Get:6 http://debian.yorku.ca sid/main Sources [3403kB]

Get:10 http://debian.yorku.ca sid/contrib Sources [36.4kB]                                                                                                                                                         
Get:11 http://debian.yorku.ca sid/non-free Sources [67.2kB]                                                                                                                                                       
Fetched 3671kB in 16min40s (3669B/s)                                                                                                                                                                               
Reading package lists... Done

Back to my original topic, the reason I'm interested in upgrading the version of k9copy is that I've had some issues copying some dvds (and some issues playing dvds with smplayer too). Not all, as some dvds work fine, but some give me issues. So, I thought perhaps upgrading would help.

To clarify the issues that I have, here is a part of the printout from trying to view one problematic dvd using smplayer:
Code:

libdvdread: Invalid title IFO (VTS_08_0.IFO).
libdvdread: Invalid title IFO (VTS_08_0.BUP).

Perhaps I should try to get a newer version of libdvdread.

the trooper 11-21-2009 06:01 PM

Code:

deb-src http://debian.yorku.ca/debian/ sid main contrib non-free
Ok,but k9copy is in the Debian-Multimedia repo's?.
I get you need a source entry for Sid in your apt sources,what i don't get is what method you're using to build the package....
According to the link you posted, you use fakeroot if you are not creating the .deb at the time of downloading:

Quote:

If you decide not to create the .deb at the time of the download, you can create it later by running:

$ dpkg-buildpackage -rfakeroot -uc -b
Is this the case for you?.
Apologies if i'm making this even harder for you.

mark_alfred 11-21-2009 07:58 PM

Quote:

Originally Posted by the trooper (Post 3765266)
what i don't get is what method you're using to build the package....
According to the link you posted, you use fakeroot if you are not creating the .deb at the time of downloading. Is this the case for you?

I did initially attempt "apt-get -b source k9copy" when I was first getting the source package, but it did not work (for reasons that are as yet unknown to me -- which is why I started this thread, hoping to get some suggestions for answers). Since I had the source from this first attempt and didn't need to download it, in my later attempts (tried as both fakeroot and root) I used the dpkg-buildpackage method.

I did install libdvdread4 from sid (successfully, I might add, using the aforementioned methodology), to see if this would help my current k9copy, but it didn't. Maybe upgrading qt would help to get the new k9copy created.

Again, suggestions always appreciated.

craigevil 11-21-2009 10:20 PM

Hehe fun things like this are why I run sid. All the trouble people go to trying to backport packages to stable just to have a 'stable' system. My install was installed just before Sarge was released so its around 5 yrs old in all that time I have had very few issues. The biggest issue was with the new Xorg, had to edit my xorg.conf using nano. which took a whole 2 minutes. I run apt-get dist-upgrade pretty much daily and other than occasionally having to wait a couple of days for a bug to get fixed I haven't had any real issues.

System: Host craigevil Kernel 2.6.31-6.dmz.1-liquorix-686 i686 (32 bit) Distro Debian GNU/Linux squeeze/sid
CPU: Single core Intel Pentium 4 (UP) cache 1024 KB flags (sse3 nx lm) bmips 5593.9
Clock Speeds: (1) 2793.271 MHz (2) 2793.271 MHz
Graphics: Card Intel 82915G/GV/910GL Integrated Graphics Controller X.Org 1.6.5 Res: 1280x1024@60.0hz
GLX Renderer Mesa DRI Intel 915G GEM 20090712 2009Q2 RC3 x86/MMX/SSE2 GLX Version 1.4 Mesa 7.6 Direct Rendering Yes
Audio: Card Intel 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller driver HDA Intel
Sound: Advanced Linux Sound Architecture Version 1.0.20
Network: Card Intel 82562ET/EZ/GT/GZ - PRO/100 VE (LOM) Ethernet Controller driver e100 at port dcc0
Disks: HDD Total Size: 160.0GB (16.0% used) 1: /dev/sda WDC WD1600JS-75N 160.0GB
Partition: ID:/ size: 103G used: 24G (25%) fs: ext3 ID:swap-1 size: 5.25GB used: 0.04GB (1%) fs: swap
Info: Processes 116 Uptime 5 days Memory 251.2/493.7MB Client Shell inxi 1.2.7

mark_alfred 11-22-2009 12:34 AM

Quote:

Originally Posted by craigevil (Post 3765367)
Hehe fun things like this are why I run sid.

Do you run k9copy? If so, does it sometimes fail to copy (particularly with newly released dvds), or is it quite reliable with practically all dvds? This would be useful for me to know, because if the newer k9copy from sid also is unreliable, then really there is no point to me even trying to get the sid version.

the trooper 11-22-2009 04:54 AM

Quote:

Do you run k9copy? If so, does it sometimes fail to copy (particularly with newly released dvds), or is it quite reliable with practically all dvds?
I use the same version as Sid in Testing(2.3.3-0.0),and it has always worked for me.
Not that i use it very often,can't remember ever having a copy fail.

mark_alfred 11-22-2009 09:45 AM

That's good to know. It only seems to fail on some of the newer dvds (likewise for smplayer).

mark_alfred 11-22-2009 01:06 PM

Well, I'm giving up. After giving up on upgrading k9copy, I then tried to upgrade ffmpeg from the sid source package (thinking that may help w/ the issue), and that too proved to be impossible. It would make more sense to simply upgrade the entire system to squeeze (in the past, I've had bad experiences using testing, though). The other obvious choice is to simply not worry about the few dvd disks that don't work, and get on with life (which is what I'm going to do). Hopefully I haven't broken my system*. Time to reboot and see.

______
* I stupidly used "apt-get build-dep" for various packages, rather than "aptitude build-dep", so, given that I have almost exclusively used aptitude in the past for maintenance of my system, I potentially may have screwed something up. I'll soon find out.


All times are GMT -5. The time now is 12:58 PM.