[maemo-developers] Re: Building deb packages for the Nokia 770 is very easy

2006-03-28 Thread Stephen DeGabrielle
Thanks Armin,

It's good to see how these things fit together.

I'd really like to just use  'dpkg-buildpackage -rfakeroot -b' but it
spits errors at me;

My problem seems to be that I use ./configure;make;make install to compile.

the Maemo Tutorial seems to want me to
'Run autogen.sh to generate application build configures: '

I don't have an autogen.sh to run to I fell back on to good old
./configure;mke;make install

I believe this is why my attempts at a standard package fail;
--
[EMAIL PROTECTED]:~$ /scratchbox/login
Welcome to maemo Development Platform 1.1!

For further information please check out the official maemo website at
http://www.maemo.org/.

Copyright (c) 2005 Nokia
[sbox-SDK_ARM: ~]  cd plt
[sbox-SDK_ARM: ~/plt]  cd src/
[sbox-SDK_ARM: ~/plt/src]  ls
Makefile README  config.h.in  config.status  ltmzscheme  wxxt
Makefile.in  autogen.sh  config.log   configure  mred  wxcommon
[sbox-SDK_ARM: ~/plt/src]  dpkg-buildpackage -rfakeroot -b
dpkg-parsechangelog: error: cannot open debian/changelog to find
format: No such file or directory
dpkg-buildpackage: unable to determine source package
[sbox-SDK_ARM: ~/plt/src] 
--
[I even went to the extent of building from the latest stable source
package for plt-scheme from the debian packages repository. ]

I am tempted to package it up by hand - do you think I could just make
up the contents of the 'control' file?
eg
--control--
Package: mzscheme
Version: 209
Section: unstable
Priority: optional
Architecture: arm
Depends: maemo
Installed-Size: what here
Maintainer: Stephen De Gabrielle Stephen.DeGabrielle AT gmail.com
Description: mzscheme
--end-

What do you think?
(I would really just prefer  'dpkg-buildpackage -rfakeroot -b' )

Stephen



On 3/28/06, Armin M. Warda [EMAIL PROTECTED] wrote:
   Hi Stephen,

 On Tuesday 28 March 2006 07:27, Stephen DeGabrielle wrote:
  [...] as I have not worked out how to package it yet [...]

 Building deb packages for the Nokia 770 is actually very easy,
 if you know how. This posting explains the basic structure of
 a simple package:

 http://maemo.org/pipermail/maemo-users/2006-March/000853.html

   regards, Armin.

 --
--- May the Source be with you! Linux. ---
--- secure eMail: http://www.gnupg.de/ ---
--- My Homepage http://armin-warda.de/ ---






--

--

Stephen De Gabrielle
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Re: Building deb packages for the Nokia 770 is very easy

2006-03-28 Thread Ian

disse  -- Stephen DeGabrielle

originais - My problem seems to be that I use ./configure;make;make install to 
compile.
Not sure about this but could you not use checkinstall
(http://asic-linux.com.mx/%7Eizto/checkinstall/) to make the .deb?
abraços
Ian



-- 
.''`.
   : :'  :
   `. `'`
 `- Orgulhoso ser MetaRecicleiro

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Re: Building deb packages for the Nokia 770 is very easy

2006-03-28 Thread Neil Jerram
Stephen DeGabrielle [EMAIL PROTECTED] writes:

 I'd really like to just use  'dpkg-buildpackage -rfakeroot -b' but it
 spits errors at me;

 My problem seems to be that I use ./configure;make;make install to compile.

Me too, and I haven't had a problem with this.

 the Maemo Tutorial seems to want me to
 'Run autogen.sh to generate application build configures: '

I think that's assuming that you're starting from the developers' CVS
repository for a product.

I recommend starting from the most recently released tarball for the
product in question, and then following the Debian new maintainer
guide.  At least that worked for me.

In outline, in other words:

- Get and unpack a pristine released tarball.

- Go into the root dir of the unpacked tarball.

- Do the dh_make step as described in the new maintainer guide.

- Edit the debian/* files generally as described by the new maintainer
  guide, but removing lots of stuff that the 770 doesn't need or can't
  handle: pre and post scripts, manpage, etc.; also change
  debian/control so that the only dependency is maemo.

- In debian/rules, make two key changes.

  - Change the configure line so that it has
--prefix=/var/lib/install/usr.  This means that the package will
find its files in the right place once it has been installed.

  - Add two lines like this after the $(MAKE) install line:

mv $(CURDIR)/debian/PACKAGE/var/lib/install/* $(CURDIR)/debian/PACKAGE/
rm -rf $(CURDIR)/debian/PACKAGE/var

(replacing PACKAGE by your package name).  This means that the
files in the .deb appear to be rooted at /usr, which is what the
770's application installer needs.

- dpkg-buildpackage -rfakeroot

Good luck!

 Neil

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers