Cant build a simple package.

2005-01-06 Thread Rakotomandimby (R12y) Mihamina
[ I already posted this to debian-dev, they told me
here was the right place. I really need help to learn 
building debian packages ]

Hello,
I'm learning making debian packages.
I choosed to learn on a very simple software: minimalist.

Installing it from source is just about copying a single file
(minimalist.pl) into /usr/bin and then copying its conf file
into /etc/minimalist.conf

I get the error message you can see at the bottom of this post.
I dont understand it. Would you help me?

Especially where to tell the package builder not to use 
'debian/minimalist/DEBIAN/control' but 'debian/control' ?


In my rules file, I have:
=

#!/usr/bin/make -f

export DH_VERBOSE=1

configure:

build:

clean:

install:

dh_testdir
cp minimalist.pl $(CURDIR)/debian/minimalist

binary-indep:

binary-arch:

dh_builddeb

binary: binary-indep binary-arch

.PHONY: build clean binary-indep binary-arch binary install



The error output of the command 'dpkg-buildpackage -rfakeroot'
(wich is run at the top source directory):
===
[...]
debian/rules build
 debian/rules build
 fakeroot debian/rules binary
 fakeroot debian/rules binary
dpkg-deb: failed to open package info file
`debian/minimalist/DEBIAN/control' for reading: No such file or
directory
dpkg-deb: failed to open package info file
`debian/minimalist/DEBIAN/control' for reading: No such file or
directory
dh_builddeb: command returned error code 512
make: *** [binary-arch] Error 1
dh_builddeb: command returned error code 512
make: *** [binary-arch] Error 1

-- 
ASPO Infogérance   http://aspo.rktmb.org/activites/infogerance
Unofficial FAQ fcolc   http://faq.fcolc.eu.org/
LUG sur Orléans et alentours.
Tél : 02 38 76 43 65 (France)



Re: Cant build a simple package.

2005-01-06 Thread Rakotomandimby (R12y) Mihamina
On Thu, 2005-01-06 at 08:46 -0500, Justin Pryzby wrote:
> > I choosed to learn on a very simple software: minimalist.
> That's okay; in fact its one of the best ways I know of to learn about
> something new.

:-)

> > Especially where to tell the package builder not to use 
> > 'debian/minimalist/DEBIAN/control' but 'debian/control' ?
> DEBIAN/control is created from debian/control (and probably others).
> The former is specific to the given build (Arch: i386) whereas the
> latter is for the source (Arch: any).

If it had been created by dh_make, why wouldn't it find it?

> > cp minimalist.pl $(CURDIR)/debian/minimalist
> You probably mean $(CURDIR)/debian/usr/bin/

I read (http://www.debian.org/doc/maint-guide/ch-modify.en.html) section
3.1 :

[...]
Therefore you need to do something else: install the program into a
temporary subdirectory from which the maintainer tools will build a
working .deb package
This temporary directory is usually created under your debian/ directory
in the unpacked source tree. It is usually called debian/tmp or
debian/packagename.
[...]

And I followed what was suggested by the auto-generated 'rules' file...

-- 
ASPO Infogérance   http://aspo.rktmb.org/activites/infogerance
Unofficial FAQ fcolc   http://faq.fcolc.eu.org/
LUG sur Orléans et alentours.
Tél : 02 38 76 43 65 (France)



Re: Cant build a simple package.

2005-01-06 Thread Rakotomandimby (R12y) Mihamina
On Thu, 2005-01-06 at 16:35 +, David Given wrote:
> On Thursday 06 January 2005 09:17, Rakotomandimby (R12y) Mihamina wrote
> > I'm learning making debian packages.
> > I choosed to learn on a very simple software: minimalist.
> Are you aware that minimalist has already been packaged?

Yes.
I looked for some simple softwares to learn on.
I had the choice to package "flumotion" too, but it is a bit complicated
for me.
Please help me on this simple case first. Then I will package some other
non packaged softwares.
-- 
ASPO Infogérance   http://aspo.rktmb.org/activites/infogerance
Unofficial FAQ fcolc   http://faq.fcolc.eu.org/
LUG sur Orléans et alentours.
Tél : 02 38 76 43 65 (France)



Re: Cant build a simple package.

2005-01-06 Thread Rakotomandimby (R12y) Mihamina
On Thu, 2005-01-06 at 17:50 +0100, Nico Golde wrote:
> please do not cross post on debian-devel. -devel isnt the
> right list.

I did not:

- I asked on -devel.
- They told me it was the wrong place
- I had to re-post. Crossposting would have been "posting at -mentors &
-devel at the same time". 

I do apologize for annoyance.
-- 
ASPO Infogérance   http://aspo.rktmb.org/activites/infogerance
Unofficial FAQ fcolc   http://faq.fcolc.eu.org/
LUG sur Orléans et alentours.
Tél : 02 38 76 43 65 (France)



Re: Cant build a simple package.

2005-01-06 Thread Rakotomandimby (R12y) Mihamina
On Thu, 2005-01-06 at 11:20 -0500, Justin Pryzby wrote:
> > If it had been created by dh_make, why wouldn't it find it?
> Its not created by dh_make.  dh_make just creates some template files
> in ./debian/ (many of which are usually deleted).  All of them need to
> be edited to be useful.

I edited them, but I left them into ./debian.

> dh_installdeb creates stuff in ./DEBIAN/,

So I have to mention dh_installdeb somewhere into the 'rules' file?
Where do you suggest to?

>  and dh_builddeb builds a
> .deb out of it.  Read the manpages for all the dh_* programs in
> dh_makes's default ./debian/rules

Too much manpage reading kills the manpage reading. I'm Ok about reading
docs, and I read it. You have the proof i did not understand it well.
But knowledge is also about experimentation, that's what I do now :-).
-- 
ASPO Infogérance   http://aspo.rktmb.org/activites/infogerance
Unofficial FAQ fcolc   http://faq.fcolc.eu.org/
LUG sur Orléans et alentours.
Tél : 02 38 76 43 65 (France)



Re: Cant build a simple package.

2005-01-06 Thread Rakotomandimby (R12y) Mihamina
On Thu, 2005-01-06 at 13:42 -0500, Justin Pryzby wrote:

>   http://www.ibiblio.org/...

Yes! I had to 'mkdir ./debian/DEBIAN' manually. :-)
Anyway, manually creating ".debian/DEBIAN" is not clearly mentionned in
tha Debian new Maintainer guide.
-- 
ASPO Infogérance   http://aspo.rktmb.org/activites/infogerance
Unofficial FAQ fcolc   http://faq.fcolc.eu.org/
LUG sur Orléans et alentours.
Tél : 02 38 76 43 65 (France)



after the new maintenainer guide

2005-03-04 Thread Rakotomandimby (R12y) Mihamina
Hello,
I would like to learn building multiple binaries package and libraries.
As well as the Debian maintainer guide just covers single binary package
and no library, I would like your advices on any document teaching what
I want to learn.

Also, I want to learn recompiling php and apache from debian official
source packages, and I dont know yet how to.

Thank you for your help :-)
-- 
ASPO Infogérance   http://aspo.rktmb.org/activites/infogerance
Unofficial FAQ fcolc   http://faq.fcolc.eu.org/
LUG sur Orléans et alentours (France).
Tél : 02 34 08 26 04 / 06 33 26 13 14


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: after the new maintenainer guide

2005-03-04 Thread Rakotomandimby (R12y) Mihamina
On Fri, 2005-03-04 at 14:37 -0500, Justin Pryzby wrote:
> You should read the Library Packaging Guide [0]

Thanks, I will.

> apt-get -b source will always work; or use debian/rules binary, or
> dpkg-buildpackage, or debuild, etc.

The goal is to :
1rst - fetch the package source and unpack it
2nd  - modify the rules (most of the modification are about the
"configure" options)
3rd  - build it.

I just miss how to perform the "1rst" . The "2nd" and the "3rd" are
Ok...
-- 
ASPO Infogérance   http://aspo.rktmb.org/activites/infogerance
Unofficial FAQ fcolc   http://faq.fcolc.eu.org/
LUG sur Orléans et alentours (France).
Tél : 02 34 08 26 04 / 06 33 26 13 14


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: after the new maintenainer guide

2005-03-04 Thread Rakotomandimby (R12y) Mihamina
On Fri, 2005-03-04 at 17:34 -0500, Justin Pryzby wrote:
> Do you now understand?

No. But dont anger please:-)

> You said you wanted to compile apache and php.

Yes.

> Why?  And why do you need to modify the rules?  I guess you want some
> special ./configure --options?

Yes, I need special ./configure --options. They are specified in the
rules file. Apache is a daemon, the debian new maintainer guide does not
cover building daemons package. I'm looking for some document covering
that.

I also want to try to make debian packages for libtheora and mldonkey on
_sparc_ so I need to know how to recompile library.

All of these are existents packages for x86, I just need to make some
changes to the packages source to port them to another architecture.

But before, I need to fetch the package source, and spread/unpack it in
a directory to modify the desc file and so on...
-- 
ASPO Infogérance   http://aspo.rktmb.org/activites/infogerance
Unofficial FAQ fcolc   http://faq.fcolc.eu.org/
LUG sur Orléans et alentours (France).
Tél : 02 34 08 26 04 / 06 33 26 13 14


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: after the new maintenainer guide

2005-03-05 Thread Rakotomandimby (R12y) Mihamina
On Sat, 2005-03-05 at 01:44 +0200, Shaul Karl wrote: 
> apt-get source pkg

Yes! I found this:
http://lyre.mit.edu/~powell/debian-howto/build-source.html
-- 
ASPO Infogérance   http://aspo.rktmb.org/activites/infogerance
Unofficial FAQ fcolc   http://faq.fcolc.eu.org/
LUG sur Orléans et alentours (France).
Tél : 02 34 08 26 04 / 06 33 26 13 14


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



fetch souce packages

2005-03-06 Thread Rakotomandimby (R12y) Mihamina
Hello,
I have a sparc box
I want to recompile some packages only available for x86 to make
packages for sparc.
If I just try to fetch the source package with 'apt-get source
package_name' from the sparc it doesn't work, because the package is not
available for sparc.
Is the only solution to go to packages.debian.org and manually fetch the
sources for x86?
-- 
ASPO Infogérance   http://aspo.rktmb.org/activites/infogerance
Unofficial FAQ fcolc   http://faq.fcolc.eu.org/
LUG sur Orléans et alentours (France).
Tél : 02 34 08 26 04 / 06 33 26 13 14


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: fetch souce packages

2005-03-07 Thread Rakotomandimby (R12y) Mihamina
On Mon, 2005-03-07 at 12:31 +1100, Matthew Palmer wrote:

> may be that you don't have any applicable apt-src
> lines in your sources.list.

here is the content of my sparc sources.list:

deb http://ftp.fr.debian.org/debian/ testing main  
deb-src http://ftp.fr.debian.org/debian/ testing main  
deb http://non-us.debian.org/debian-non-US testing/non-US main
deb-src http://non-us.debian.org/debian-non-US testing/non-US main


that's all? is it wrong ?
-- 
ASPO Infogérance   http://aspo.rktmb.org/activites/infogerance
Unofficial FAQ fcolc   http://faq.fcolc.eu.org/
LUG sur Orléans et alentours (France).
Tél : 02 34 08 26 04 / 06 33 26 13 14


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: fetch souce packages

2005-03-07 Thread Rakotomandimby (R12y) Mihamina
On Mon, 2005-03-07 at 11:56 +0100, Geert Stappers wrote:
> stating the package name would allow others to reproduce the expriment

No worth. I'm dumb-ass.

The packages I wanted to fetch are:

- qmailadmin (wich is not a 'main' nor 'free')
- mldonkey (wich is at unstable)

so I need to use a more complicated source.list first to grab thesources
of those packages.
-- 
ASPO Infogérance   http://aspo.rktmb.org/activites/infogerance
Unofficial FAQ fcolc   http://faq.fcolc.eu.org/
LUG sur Orléans et alentours (France).
Tél : 02 34 08 26 04 / 06 33 26 13 14


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: fetch souce packages

2005-03-07 Thread Rakotomandimby (R12y) Mihamina
On Mon, 2005-03-07 at 10:42 +0100, Sjoerd Simons wrote:
> What makes me wonder more is what package is usefull on sparc, but not
> available
> as a binary package for it.. 

The mldonkey one.
Just the GUI for controlling the remote server.
I have one server, an x86, far from home (in a datacenter).
Home, I have two sparcs. I want to control the running mldonkey server
with the sparc.

The GUI (mlgui) is bundled with the same package as the server, so that
I must install them. The problem is my sparcs are "testing" . The
mldonkey package has been kicked from "testing" it's now at unstable.

The mldonkey program is written in caml, and I need to build several
libs related to Caml and Caml/GTK...
-- 
ASPO Infogérance   http://aspo.rktmb.org/activites/infogerance
Unofficial FAQ fcolc   http://faq.fcolc.eu.org/
LUG sur Orléans et alentours (France).
Tél : 02 34 08 26 04 / 06 33 26 13 14


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



emacs mode for package builders

2005-03-08 Thread Rakotomandimby (R12y) Mihamina
Hello.
I wonder if there would be an emacs mode just for syntax coloration.
I learn to build debian packages but all is black & white on my screen
and it misses colors.
Would you know if it exists?
-- 
ASPO Infogérance   http://aspo.rktmb.org/activites/infogerance
Unofficial FAQ fcolc   http://faq.fcolc.eu.org/
LUG sur Orléans et alentours (France).
Tél : 02 34 08 26 04 / 06 33 26 13 14


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



re generate a "rules" file

2005-03-08 Thread Rakotomandimby (R12y) Mihamina
Hello.
I did not make a backup copy of my "rules" file, and I edited it like a
pig.
I would like to do it again but with a clean "rules" file.
I would like to re-generate the "rules" file. How to?
-- 
ASPO Infogérance   http://aspo.rktmb.org/activites/infogerance
Unofficial FAQ fcolc   http://faq.fcolc.eu.org/
LUG sur Orléans et alentours (France).
Tél : 02 34 08 26 04 / 06 33 26 13 14


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



DESTDIR and .conf file

2005-03-08 Thread Rakotomandimby (R12y) Mihamina
Hello,
I'm still learning to build debian package.
Following the Debian New Maintainer's guide.
There are two things I dont understand:

1 ) ---
 I want that once the binary package is installed, the file
'minimalist.pl' is into '/usr/bin'. To do so, I put these in the install
section of my "rules" file:

install: build
dh_testdir
dh_testroot
dh_clean -k 
dh_installdirs

cp minimalist.pl debian/minimalist/usr/bin

Is it right? Where should I specify i want it into '/usr/bin',
'/usr/sbin', whatever... ?
There's no makefile for this software. It's just about copying one file
into the path.

2 ) 

To install the configuration file, I append to what I written (in the
"install" section yet:

cp minimalist.conf-sample debian/minimalist/etc/minimalist.conf

I had to append 'etc' into the 'dirs' file.
Is it right ?


PS: I do know there is a minimalist package.
I just do it to learn.
-- 
ASPO Infogérance   http://aspo.rktmb.org/activites/infogerance
Unofficial FAQ fcolc   http://faq.fcolc.eu.org/
LUG sur Orléans et alentours (France).
Tél : 02 34 08 26 04 / 06 33 26 13 14


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



what's a sponsor ?

2005-03-31 Thread Rakotomandimby (R12y) Mihamina
Hello,

I saw a flow of "RFS:" messages.
Does RFS mean Request For Sponsor?
What's that? What is it about? I dont understand...

Searching "debian sponsor" on google did not give the answer...

-- 
Get a fully managed dedicated server for ¤200/month ($257/month)
No time limit for taking care of your server.
You keep the "root" acces if you want. Billing periods are 3 months.
See the conditions at http://aspo.rktmb.org/activities/managed_servers


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



how to know the architecture ?

2005-04-08 Thread Rakotomandimby (R12y) Mihamina
Hello,

When I build a debian package, and I fill the dsc file:
How would I know the binary will run on all architectures or will only
run on some?

Because, for example, I have some x86 and sparc64 home, and there is an
XFCE package both for x86 and for sparc. If I take a look at the
source.list file, there is no mention of the arch.

- Where does apt look for the architecture to download for?

- How will I know, when I build a package, that the binary will be arch
specific? (Because I need to correctly fill the "Architecture:" field in
the dsc file!)

If I build it on a x86, and if I dont know, have I to suppose it's x86
specific and wait for some others to compile it on some other arches to
declare it "all arches" ?

-- 
Get a fully managed dedicated server for ¤200/month ($257/month)
No time limit for taking care of your server.
You keep the "root" acces if you want. Billing periods are 3 months.
See the conditions at http://aspo.rktmb.org/activities/managed_servers


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]