aMSN Forums
February 10, 2012, 07:03:14 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New forum for aMSN !!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [svn8983] compiler bug when making proper DEBIAN package  (Read 3777 times)
ashrack
Newbie

Offline Offline

Posts: 42


View Profile
« on: September 03, 2007, 07:19:22 pm »

when trying to make a proper DEBIAN package I first had to added to
'debian/control' under 'build-depends' the following, since they were missing and thus ./configure complained:
Code:
libpng12-dev, libjpeg62-dev


and when I then try to run debuild, ofcourse in a chrooted environmet this error come up:
Code:
dh_testdir
dh_testroot
dh_installdocs
dh_installexamples
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb --destdir="./distrib/DEB" --filename="amsn_.deb"
dpkg-deb: unable to create `./distrib/DEB/amsn_.deb': No such file or directory
dpkg-deb: building package `amsn' in `./distrib/DEB/amsn_.deb'.
dh_builddeb: command returned error code 512
make: *** [binary-arch] Error 1
debuild: fatal error at line 1228:
fakeroot debian/rules binary failed
(feisty.i386)tom@tomi:/home/tom/src/amsn/amsn-8983$
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9424


View Profile WWW
« Reply #1 on: September 04, 2007, 12:40:06 am »

good point about the build-deps, I just added it to SVN.
About building a deb, just type 'make deb', it should work.
I think I once tried with dpkg-buildpackage but it failed...
Logged

KaKaRoTo
ashrack
Newbie

Offline Offline

Posts: 42


View Profile
« Reply #2 on: September 04, 2007, 10:20:32 am »

Will try it when I get home from work.

Do U know of a reason why 'debuild' would fail?
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9424


View Profile WWW
« Reply #3 on: September 04, 2007, 04:15:49 pm »

no sorry, I don't know much about the makefile crack. All I know is that we build deps with 'make deb'.
We probably shouldn't..
if you can provide a patch (with 'svn diff' against latest svn) that would help.
thx
Logged

KaKaRoTo
ashrack
Newbie

Offline Offline

Posts: 42


View Profile
« Reply #4 on: September 04, 2007, 07:39:14 pm »

Fixed the compilation problems, more info in the attached file.

http://www.2shared.com/file/2237291/8e8992dd/amsndifftar.html

ps. Is there a reason why there is no 'changelog' file, just 'changelog.in'?
I would suggest U make a 'changelog' file and just put in which SVN build is this, else 'debuild' complains.
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9424


View Profile WWW
« Reply #5 on: September 05, 2007, 03:26:21 am »

Hi,
Thanks, I see what you did there.. it's pretty simple... the problem was the #VERSION# causing issues.
If you look at the Makefile you'll see the 'deb' rule for "make deb" :
Code:
deb: all
        mkdir -p ./distrib/DEB

        sed "s/#VERSION#/${VERSION}/" debian/changelog.in > debian/changelog
        fakeroot debian/rules clean
        fakeroot debian/rules binary VERSION=${VERSION}


so it created the changelog by replacing the #VERSION# with the current version
also not that the current 'make deb' is better because it does many things, first, if it's a release, it will create the file accordingly, if it's the SVN version it will put the svn revision number in the filename, and if you have a modified SVN version, it will append an "M" to it...  it is all very useful stuff.
I just tried copying the changelog.in into changelog and fixing the #VERSION# thing, then I did a 'fakeroot dpkg-buildpackage' and it worked. the only thing is that it created a file in distrib/DEB/amsn_.deb (missing version from the filename). oh and I also had to do a mkdir distrib && mkdir distrib/DEB before that...
so.. overall, we could try to find a solution for allowing both the dpkg-buildpackage to work AND the 'make deb' to work with more advanced version naming...
I'll look into it later.
Thanks for the diff!
Logged

KaKaRoTo
ashrack
Newbie

Offline Offline

Posts: 42


View Profile
« Reply #6 on: September 05, 2007, 07:50:02 am »

no problem, glad to help.

if there are any other issue concerning compilation problem with DEBs please notify my and I will look into it and try to fix it.

ps. But pay attention I am no compiler wiz, I just started learning doing proper DEBIAN packages about 2 months ago
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!