Debian Developers - debian/rules problem while creating multiple packages from Source

This is Interesting: Free IT Magazines  
Home > Archive > Debian Developers > July 2004 > debian/rules problem while creating multiple packages from Source





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author debian/rules problem while creating multiple packages from Source
Michelle Konzack

2004-07-10, 5:54 pm

Hello all,

I make Debian Packages since some years but now I have a problem
to create several *.deb from one Source. I have ask three other
mailinglists but gotten no useful answer.

The problem is exactly with "dh_installdirs" which does not create
the directory debian/<package> but makes a debian/tmp.

I have tried to make 6 Debian Packages from one source because I think
they are to big and not all people want it. For each Package I have a
file "debian/xfonts-arabeyes1-<typ>.dirs" created

Now I have:

____ ( '/home/michelle/src/xfonts-arabeyes1-1.0.0/debian/rules' ) ____
/
| #!/usr/bin/make -f
|
| PKG_DIR=3Ddebian/xfonts-arabeyes1-
| TTF_DIR=3D/usr/X11R6/lib/fonts/TrueType/
|
| clean:
| rm -rf debian/xfonts-arabeyes1-aahs debian/xfonts-arabeyes1-aga \
| debian/xfonts-arabeyes1-fs debian/xfonts-arabeyes1-kasr \
| debian/xfonts-arabeyes1-mcs debian/xfonts-arabeyes1-shmookh \
| ae_fonts1 debian/tmp
|
| build: decompress directories build-aahs build-aga build-fs build-kasr build-mcs build-shmookh
| decompress:
| dh_testdir
| tar -xjf ae_fonts1_ttf_1.0.tar.bz2
|
| directories:
| dh_installdirs -A

here it create debian/tmp/<hierarchie>
debian/xfonts-arabeyes1-aga/<hierarchie>
debian/xfonts-arabeyes1-fs/<hierarchie>
debian/xfonts-arabeyes1-kacst/<hierarchie>
debian/xfonts-arabeyes1-mcs/<hierarchie>
debian/xfonts-arabeyes1-shmookh/<hierarchie>

| build-aahs:
| dh_testdir
| cp ae_fonts1/AAHS/* $(PKG_DIR)aahs$(TTF_DIR)

The script ends here because it expect to find
"debian/xfonts-arabeyes1-aahs/<hierarchie>"

If I change it to 'cp ae_fonts1/AAHS/* debian/tmp$(TTF_DIR)'
it works fine...

| build-aga:
| dh_testdir
| cp ae_fonts1/AGA/* $(PKG_DIR)aga$(TTF_DIR)
|
| build-fs:
| dh_testdir
| cp ae_fonts1/FS/* $(PKG_DIR)fs$(TTF_DIR)
|
| build-kasr:
| dh_testdir
| cp ae_fonts1/Kasr/* $(PKG_DIR)kasr$(TTF_DIR)
|
| build-mcs:
| dh_testdir
| cp ae_fonts1/MCS/* $(PKG_DIR)mcs$(TTF_DIR)
|
| build-shmookh:
| dh_testdir
| cp ae_fonts1/Shmookh/* $(PKG_DIR)shmookh$(TTF_DIR)
|

<snip>

\_______________________________________
_______________________________


The bizzar thing is, that the first directory is not created but
debian/tmp with the right subdirectories.

Then, all files "debian/xfonts-arabeyes1-<typ>.dirs" are identic
with the exception of "/usr/share/doc/<package>"

Why does this happen ?
It was working already before...

Here ist the error output from 'dpkg-buildpackage'

____ ( 'stdin' ) ________________________________________
_____________
/
| dpkg-buildpackage: source package is xfonts-arabeyes1
| dpkg-buildpackage: source version is 1.0.0
| dpkg-buildpackage: source maintainer is Michelle Konzack <linux4michelle@freenet.de>
| dpkg-buildpackage: host architecture is i386
| debian/rules clean
| rm -rf debian/xfonts-arabeyes1-aahs debian/xfonts-arabeyes1-aga \
| debian/xfonts-arabeyes1-fs debian/xfonts-arabeyes1-kasr \
| debian/xfonts-arabeyes1-mcs debian/xfonts-arabeyes1-shmookh \
| ae_fonts1 debian/tmp
| dpkg-source -b xfonts-arabeyes1-1.0.0
| dpkg-source: building xfonts-arabeyes1 in xfonts-arabeyes1_1.0.0.tar.gz
| dpkg-source: building xfonts-arabeyes1 in xfonts-arabeyes1_1.0.0.dsc
| debian/rules build
| dh_testdir
| tar -xjf ae_fonts1_ttf_1.0.tar.bz2
| dh_installdirs -A
| dh_testdir
| cp ae_fonts1/AAHS/* debian/xfonts-arabeyes1-aahs/usr/X11R6/lib/fonts/TrueType/
| cp: Kopieren mehrerer Dateien, aber der letzte Parameter "debian/xfonts-arabeyes1-aahs/usr/X11R6/lib/fonts/TrueType/" ist kein Verzeichnis| "cp --help" gibt weitere Informationen.
| make: *** [build-aahs] Fehler 1
\_______________________________________
_______________________________

So it can not copy the files into the first directoy because
"debian/xfonts-arabeyes1-aahs/usr/X11R6/lib/fonts/TrueType/"
does not exist but "debian/tmp/usr/X11R6/lib/fonts/TrueType/"

Arggggg....

Please some sugestions...

Thanks
Michelle

--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)


Isaac Clerencia

2004-07-10, 5:54 pm

Michelle Konzack

2004-07-10, 5:54 pm

Hello Isaac,

Am 2004-07-10 16:46:15, schrieb Isaac Clerencia:

>You should put a compat file in your debian/ directory with a 4 in it:
>echo 4 > debian/compat
>
>You should also do a "man debhelper"


Thanks it was the right tip.

Nice weekend
Michelle

--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)

Jeroen van Wolffelaar

2004-07-10, 5:54 pm

On Sat, Jul 10, 2004 at 04:36:03PM +0200, Michelle Konzack wrote:
> Hello all,
>
> I make Debian Packages since some years but now I have a problem
> to create several *.deb from one Source. I have ask three other
> mailinglists but gotten no useful answer.


AFAICS, you didn't ask debian-mentor, which is exactly the mailinglist
for such packaging questions.

(sorry in case I'm mistaken)

--Jeroen

--
Jeroen van Wolffelaar
Jeroen@wolffelaar.nl (also for Jabber & MSN; ICQ: 33944357)
http://Jeroen.A-Eskwadraat.nl

Michelle Konzack

2004-07-11, 5:51 pm

Am 2004-07-10 17:09:17, schrieb Jeroen van Wolffelaar:

>AFAICS, you didn't ask debian-mentor, which is exactly the mailinglist
>for such packaging questions.


Thanks for it, but I am curently no DM or DD and do not now
whether I can ask or not :-/

But because I create Debian Packages corretcly I must ask :-)

>(sorry in case I'm mistaken)
>
>--Jeroen


Greetings
Michelle

--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)

Marc Haber

2004-07-11, 5:51 pm

On Sun, 11 Jul 2004 15:40:49 +0200, Michelle Konzack
<linux4michelle@freenet.de> wrote:
>Am 2004-07-10 17:09:17, schrieb Jeroen van Wolffelaar:
>
>Thanks for it, but I am curently no DM or DD and do not now=20
>whether I can ask or not :-/


With that line of argumentation, you can't ask on -devel as well.

Greetings
Marc

--=20
-------------------------------------- !! No courtesy copies, please !! =
-----
Marc Haber | " Questions are the | Mailadresse im =
Header
Karlsruhe, Germany | Beginning of Wisdom " | Fon: *49 721 966 32=
15
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31=
29
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com