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

2006-04-06 Thread Ian
Hi,
I found these links on the Developer Resources section of the Ubuntu wiki ->

http://women.alioth.debian.org/wiki/index.php/English/PackagingTutorial
http://women.alioth.debian.org/wiki/index.php/English/MaintainerScripts
https://perso.duckcorp.org/duck/cdbs-doc/cdbs-doc.xhtml

For deeper understanding of the packaging process, you might want to have a 
look at this one:
http://women.alioth.debian.org/wiki/index.php/English/BuildingWithoutHelper

For your private archives, this has interesting notes:
http://people.debian.org/~calvin/unofficial/

and finally a Forum Thread: How to make Debian-standard debs from scratch
http://ubuntuforums.org/showthread.php?t=51003&page=1&pp=10

abraços
Ian

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

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


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

2006-04-03 Thread Marius Vollmer
"ext Ian" <[EMAIL PROTECTED]> writes:

> I know Nokia recommends only depending on maemo but can I depend on
> something else if it is already packaged for the 770 ?

Yes.  You should keep your dependency information as correct as
possible.  If your packages does in fact depend on some other package
then you should include that package in your Depends field.

Thus, your Depends field should reflect the real dependency situation,
but you should try to keep the real dependency situation as simple as
possible since the Application installer only works dpkg-like, not
apt-get-like.  It quickly turns into a game of .deb-Sokoban for the
user when dependencies are complicated.

> I mean how would this work on the actual device. I am not with my
> 770 at the moment so I cannot look at its /etc/apt/sources.list but
> will i find some maemo repositories when i do?

There is no /etc/apt/sources.list in the current version of the 770
software... :-(

> The application installer is what then... some Hildonised front end
> to apt?

It will be, in the future: 
https://stage.maemo.org/svn/maemo/projects/haf/trunk/osso-application-installer/

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


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

2006-04-01 Thread Neil Jerram
"Ian" <[EMAIL PROTECTED]> writes:

> disse  --> Neil Jerram
> Thx for these explanations,you are helping me out a lot.
> I am not sure about the difference between Build-Depends and Depends :
>
> originais -> Build-Depends: debhelper (>= 4.0.0)
>
> originais -> Depends: maemo

I'm not 100% sure either, but I believe "Build-Depends" is only
relevant when someone wants to rebuild your package from its source:
it tells that person what they need to have installed in order to do
the build.  "Depends" on the other hand lists the requirements for the
binary package installation to work.

> I know Nokia recommends only depending on maemo but can I depend on
> something else if it is already packaged for the 770 ?

Here I would agree with the answers that Kalle and Michael have
already given.

> I mean how would this work on the actual device. I am not with my
> 770 at the moment so I cannot look at its /etc/apt/sources.list but
> will i find some maemo repositories when i do?. The application
> installer is what then... some Hildonised front end to apt?

I believe it's currently much simpler than that.  Currently there are
no repositories for application installer (=> 3rd party) packages,
just individual .debs on people's websites.  (The repository that the
maemo.org pages speak about is the one used to manage the 770's base
filesystem + program set, not application installer packages.)

Regards,
Neil

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


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

2006-03-31 Thread Michael P. Lococo
> Some applications do separate functionality and depend on
> external packages when necessary (the gpe stuff does, for
> example), but you should do so unnecessarily...

Clearly, I meant to say that external dependencies should _not_ be used
needlessly.

Oops,
Mike

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


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

2006-03-31 Thread Michael P. Lococo
> I know Nokia recommends only depending on maemo but can I depend on
something else if it is already packaged for the 770 ?

The problem is that application installer doesn't automatically resolve
dependencies.  If you get an overly complicated dependency tree you end up
in rpm hell, except with .arm.debs.  Some applications do separate
functionality and depend on external packages when necessary (the gpe
stuff does, for example), but you should do so unnecessarily because it
can make the app a pain for to install at the user end.

Mike




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


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

2006-03-31 Thread Kalle Vahlman
On 3/31/06, Ian <[EMAIL PROTECTED]> wrote:
>
> disse  --> Neil Jerram
> Thx for these explanations,you are helping me out a lot.
> I am not sure about the difference between Build-Depends and Depends :
>
> originais -> Build-Depends: debhelper (>= 4.0.0)
>
> originais -> Depends: maemo
>
> I know Nokia recommends only depending on maemo but can I depend on something 
> else if it is
> already packaged for the 770 ?

If I'm not mistaken, you can depend on other AI packages in addition to 'maemo'.

--
Kalle Vahlman, [EMAIL PROTECTED]
Powered by http://movial.fi
Interesting stuff at http://syslog.movial.fi
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


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

2006-03-31 Thread Ian

disse  --> Neil Jerram
Thx for these explanations,you are helping me out a lot.
I am not sure about the difference between Build-Depends and Depends :

originais -> Build-Depends: debhelper (>= 4.0.0)

originais -> Depends: maemo

I know Nokia recommends only depending on maemo but can I depend on something 
else if it is
already packaged for the 770 ?
I mean how would this work on the actual device. I am not with my 770 at the 
moment so I cannot
look at its /etc/apt/sources.list but will i find some maemo repositories when 
i do?. The
application installer is what then... some Hildonised front end to apt?
abraços
Ian
-- 
.''`.
   : :'  :
   `. `'`
 `- Orgulhoso ser MetaRecicleiro

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


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

2006-03-30 Thread Neil Jerram
Xavier Calbet <[EMAIL PROTECTED]> writes:

>   I have had problems with the regular
> building of packages with dpkg-buildpackage, etc.
> When I reach the "..as described in the 
> new maintainer guide.." I get lost. Does any
> novice 
> really find this guide useful?

Well, I had never built a Debian package before, when I built my first
package for the 770.

If you want to say where you get lost, I'd be happy to try to explain.

> I also get lost in the "but removing lots of stuff
> that the 770 doesn't need or can't
>   handle" because I do not know what the 770
> cannot handle, unless I do trial and error 
> (and of course that takes forever).

OK.  The only files I think you need are the following.

changelog - This should follow the format specified by the NM guide,
but you are free to put as much or as little actual information as you
like.  The debian-changelog mode for Emacs makes it trivial to get the
format right.

compat - I've actually no idea about this; I just left it as generated
by dh_make.

control - Easiest by example:

Source: guile-gnome-dev
Section: devel
Priority: optional
Maintainer: Neil Jerram <[EMAIL PROTECTED]>
Build-Depends: debhelper (>= 4.0.0)
Standards-Version: 3.6.0

Package: guile-gnome-dev
Architecture: any
Depends: maemo
Description: Guile language bindings for the GNOME platform
 Guile language bindings for the GNOME platform

copyright - Per NM guide.  (Tedious, but important for free software.)

docs - Any files that you want to be installed in
$prefix/share/doc/, like this:

AUTHORS
NEWS
README

info - Not sure, but probably not needed.

rules - As generated by dh_make, plus the two changes described in my
previous email.

>   By the way I am trying to build the deb packages
> for perl/PDL which should make the Nokia770
> a powerful calculator with graphics. I already
> have the code running on the Nokia 770.

Sounds fun; good luck with the packaging.

Neil 

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


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

2006-03-30 Thread Armin M. Warda
  Hi Xavier,

On Thursday 30 March 2006 08:16, you wrote:
>   Thanks for the page, very nice. But could you
> please extend the '...also simple to build one'
> section a bit more and write an
> idiot proof step by step
> command line series of what to do after
> you have a compiled an application running on the
> Nokia?

I would like to propose the following to you:

I write 'a brief step by step instruction of what to do after you have 
compiled an application running on the Nokia', I send this to you,
you try it, add missing details, and finally you add the resulting 
'idiot proof step by step command line series of what to do after you 
have a compiled an application running on the Nokia' to the Wiki.

You understand, this Maemo and Wiki is about collaboration...

> I would greatly appreciate this as 
> the complicated deb packaging is holding
> me back from making them. I really think your
> method is much easier than the dpkg-buildpackage
> approach.

OK, here we go:

After you compiled your application you have all resulting files 
prepared. Executables, libraries, config files, and everything else 
is prepared, and just has to be packaged into a deb for installation 
on the Nokia 770.

You might have to adapt the config files of your application because 
on the Nokia 770 finally everything will be installed relative 
to /var/lib/install/, for example /etc/myconfig 
becomes /var/lib/install/etc/myconfig. If your application has 
compiled-in locations, you might even have to change Makefiles, or 
source files before you compile!

mkdir ./stage
cd ./stage
mkdir bin etc lib libexec sbin usr var # only those which you need

Create necessary subdirectories below ./stage/usr/

Move the files into the appropriate directories.

Do a 'strip' on the executables and libraries to remove debugging 
information and reduce size.

It does not really make sense to include source code, READMEs, manual 
pages, etc. into the package for the Nokia 770, so just ignore these.

du -ks .  # note down the size to put it into the control file

cat > control <
Description: this application does bla bla bla
EOF

Edit the file. Put in the correct size you just determined.

echo 2.0 > debian-binary
tar -cvzf control.tar.gz control
tar -cvzf data.tar.gz ./usr

ar -rv my-package-name_0.1_arm.deb \
  debian-binary control.tar.gz data.tar.gz

Good Luck! Send me a mail after you updated the Wiki!

  regards, Armin.

>   I have had problems with the regular
> building of packages with dpkg-buildpackage, etc.
> When I reach the "..as described in the
> new maintainer guide.." I get lost. Does any
> novice really find this guide useful?
> I also get lost in the "but removing lots of stuff
> that the 770 doesn't need or can't
>   handle" because I do not know what the 770
> cannot handle, unless I do trial and error
> (and of course that takes forever).
>
>   By the way I am trying to build the deb packages
> for perl/PDL which should make the Nokia770
> a powerful calculator with graphics. I already
> have the code running on the Nokia 770.
>
>   Thanks,
>
>   Xavier Calbet
>
>  --- "Armin M. Warda" <[EMAIL PROTECTED]> escribió:
> >   Hi,
> >
> > I added a HowTo to the Maemo Wiki:
> >
> > http://maemo.org/maemowiki/HowTo_SimpleDeb
> >
> >   regards, Armin.
> >
> > --
> >--- May the Source be with you! Linux. ---
> >--- secure eMail: http://www.gnupg.de/ ---
> >--- My Homepage http://armin-warda.de/ ---
> >
> > > ___
> >
> > maemo-developers mailing list
> > maemo-developers@maemo.org
> > https://maemo.org/mailman/listinfo/maemo-developers
>
> __
> LLama Gratis a cualquier PC del Mundo.
> Llamadas a fijos y móviles desde 1 céntimo por minuto.
> http://es.voice.yahoo.com

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


pgpIs5K3QbjKn.pgp
Description: PGP signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


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

2006-03-29 Thread Xavier Calbet
  Thanks for the page, very nice. But could you
please extend the '...also simple to build one'
section a bit more and write an
idiot proof step by step
command line series of what to do after
you have a compiled an application running on the
Nokia? I would greatly appreciate this as
the complicated deb packaging is holding
me back from making them. I really think your
method is much easier than the dpkg-buildpackage
approach.

  I have had problems with the regular
building of packages with dpkg-buildpackage, etc.
When I reach the "..as described in the 
new maintainer guide.." I get lost. Does any
novice 
really find this guide useful?
I also get lost in the "but removing lots of stuff
that the 770 doesn't need or can't
  handle" because I do not know what the 770
cannot handle, unless I do trial and error 
(and of course that takes forever).

  By the way I am trying to build the deb packages
for perl/PDL which should make the Nokia770
a powerful calculator with graphics. I already
have the code running on the Nokia 770.

  Thanks,

  Xavier Calbet




 --- "Armin M. Warda" <[EMAIL PROTECTED]> escribió:

>   Hi,
> 
> I added a HowTo to the Maemo Wiki:
> 
> http://maemo.org/maemowiki/HowTo_SimpleDeb
> 
>   regards, Armin.
> 
> -- 
>--- May the Source be with you! Linux. ---
>--- secure eMail: http://www.gnupg.de/ ---
>--- My Homepage http://armin-warda.de/ ---
> > ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://maemo.org/mailman/listinfo/maemo-developers
> 




__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


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

2006-03-28 Thread Armin M. Warda
  Hi,

I added a HowTo to the Maemo Wiki:

http://maemo.org/maemowiki/HowTo_SimpleDeb

  regards, Armin.

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


pgptKIcqY9qUe.pgp
Description: PGP signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


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

2006-03-27 Thread Armin M. Warda
  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/ ---


pgpeUxL1m3XSr.pgp
Description: PGP signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers