Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 16/05/2007, à 20:47

Goldy

Compiler un paquet, rien de mieux que pbuilder ?

Bonsoir,

Je cherche à faire un paquet d'un thème usplash que j'ai créé, et je bloque au niveau de la compilation avec pbuilder, le paquet est vraiment très simple et il bloque sur une ligne de configuration présent dans la partie install du make. Voici l'erreur :

goldy@goldy-laptop:~/dev/usplash$ sudo pbuilder build *dsc
I: using fakeroot in build.
pbuilder-buildpackage/i386 $Id: pbuilder-buildpackage-funcs,v 1.32 2006/11/06 20:06:25 lool Exp $
$Id: pbuilder-buildpackage,v 1.127 2006/08/15 13:14:25 dancer Exp $

Current time: Wed May 16 20:40:38 CEST 2007
pbuilder-time-stamp: 1179340838
Building the build Environment
 -> extracting base tarball [/var/cache/pbuilder/base.tgz]
 -> creating local configuration
 -> copying local configuration
 -> mounting /proc filesystem
 -> mounting /dev/pts filesystem
 -> policy-rc.d already exists
Obtaining the cached apt archive contents
Installing the build-deps
 -> Attempting to parse the build-deps : pbuilder-satisfydepends,v 1.29 2006/11/06 20:20:56 lool Exp $
 -> Considering build-dep debhelper (>= 5)
   -> Trying debhelper
 -> Considering build-dep libusplash-dev
   -> Trying libusplash-dev
 -> Considering build-dep gcc
   -> Trying gcc
 -> Considering build-dep g++
   -> Trying g++
 -> Considering build-dep make
   -> Trying make
 -> Considering build-dep libc6-dev
   -> Trying libc6-dev
 -> Considering build-dep usplash
   -> Trying usplash
 -> Installing  debhelper libusplash-dev gcc g++ make libc6-dev usplash
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gcc is already the newest version.
g++ is already the newest version.
make is already the newest version.
libc6-dev is already the newest version.
The following extra packages will be installed:
  file gettext html2text intltool-debian libfreetype6 libgd2-noxpm libjpeg62
  libmagic1 libpng12-0 libusplash0 libx86-1 po-debconf
Suggested packages:
  dh-make cvs gettext-doc libfreetype6-dev libgd-tools
Recommended packages:
  curl wget lynx libmail-sendmail-perl libcompress-zlib-perl
The following NEW packages will be installed:
  debhelper file gettext html2text intltool-debian libfreetype6 libgd2-noxpm
  libjpeg62 libmagic1 libpng12-0 libusplash-dev libusplash0 libx86-1
  po-debconf usplash
0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/4672kB of archives.
After unpacking 14.3MB of additional disk space will be used.
Selecting previously deselected package libmagic1.
(Reading database ... 12054 files and directories currently installed.)
Unpacking libmagic1 (from .../libmagic1_4.19-1ubuntu2_i386.deb) ...
Selecting previously deselected package file.
Unpacking file (from .../file_4.19-1ubuntu2_i386.deb) ...
Selecting previously deselected package html2text.
Unpacking html2text (from .../html2text_1.3.2a-3_i386.deb) ...
Selecting previously deselected package gettext.
Unpacking gettext (from .../gettext_0.16.1-1ubuntu2_i386.deb) ...
Selecting previously deselected package intltool-debian.
Unpacking intltool-debian (from .../intltool-debian_0.35.0+20060710.1_all.deb) ...
Selecting previously deselected package po-debconf.
Unpacking po-debconf (from .../po-debconf_1.0.8_all.deb) ...
Selecting previously deselected package debhelper.
Unpacking debhelper (from .../debhelper_5.0.42ubuntu1_all.deb) ...
Selecting previously deselected package libfreetype6.
Unpacking libfreetype6 (from .../libfreetype6_2.2.1-5ubuntu1_i386.deb) ...
Selecting previously deselected package libjpeg62.
Unpacking libjpeg62 (from .../libjpeg62_6b-13_i386.deb) ...
Selecting previously deselected package libpng12-0.
Unpacking libpng12-0 (from .../libpng12-0_1.2.15~beta5-1_i386.deb) ...
Selecting previously deselected package libgd2-noxpm.
Unpacking libgd2-noxpm (from .../libgd2-noxpm_2.0.34~rc1-2ubuntu1_i386.deb) ...
Selecting previously deselected package libx86-1.
Unpacking libx86-1 (from .../libx86-1_0.99-1.2_i386.deb) ...
Selecting previously deselected package libusplash0.
Unpacking libusplash0 (from .../libusplash0_0.4-44_i386.deb) ...
Selecting previously deselected package libusplash-dev.
Unpacking libusplash-dev (from .../libusplash-dev_0.4-44_i386.deb) ...
Selecting previously deselected package usplash.
Unpacking usplash (from .../usplash_0.4-44_i386.deb) ...
Setting up libmagic1 (4.19-1ubuntu2) ...

Setting up file (4.19-1ubuntu2) ...
Setting up html2text (1.3.2a-3) ...

Setting up gettext (0.16.1-1ubuntu2) ...

Setting up intltool-debian (0.35.0+20060710.1) ...
Setting up po-debconf (1.0.8) ...
Setting up debhelper (5.0.42ubuntu1) ...
Setting up libfreetype6 (2.2.1-5ubuntu1) ...

Setting up libjpeg62 (6b-13) ...

Setting up libpng12-0 (1.2.15~beta5-1) ...

Setting up libgd2-noxpm (2.0.34~rc1-2ubuntu1) ...

Setting up libx86-1 (0.99-1.2) ...

Setting up libusplash0 (0.4-44) ...
Setting up libusplash-dev (0.4-44) ...
Setting up usplash (0.4-44) ...

 -> Finished parsing the build-deps
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  fakeroot
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/99.4kB of archives.
After unpacking 397kB of additional disk space will be used.
Selecting previously deselected package fakeroot.
(Reading database ... 12677 files and directories currently installed.)
Unpacking fakeroot (from .../fakeroot_1.5.10ubuntu2_i386.deb) ...
Setting up fakeroot (1.5.10ubuntu2) ...

Copying back the cached apt archive contents
Copying source file
    -> copying [sosdan-usplash_1.0-1.dsc]
    -> copying [./sosdan-usplash_1.0.orig.tar.gz]
    -> copying [./sosdan-usplash_1.0-1.diff.gz]
Extracting source
dpkg-source: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
gpg: can't open `/gnupg/options.skel': No such file or directory
gpg: Signature made Wed May 16 18:40:26 2007 UTC using DSA key ID 04D8C34A
gpg: Can't check signature: public key not found
dpkg-source: extracting sosdan-usplash in sosdan-usplash-1.0
dpkg-source: unpacking sosdan-usplash_1.0.orig.tar.gz
dpkg-source: applying ./sosdan-usplash_1.0-1.diff.gz
 -> Building the package
dpkg-parsechangelog: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
debian: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-buildpackage: source package is sosdan-usplash
dpkg-parsechangelog: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
debian: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-buildpackage: source version is 1.0-1
dpkg-parsechangelog: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
debian: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-buildpackage: source changed by Goldy <goldy@goldenfish.info>
dpkg-architecture: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-architecture: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-buildpackage: host architecture i386
dpkg-buildpackage: source version without epoch 1.0-1
dpkg-checkbuilddeps: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-architecture: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-architecture: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
 fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
/usr/bin/make clean
make[1]: Entering directory `/tmp/buildd/sosdan-usplash-1.0'
rm -f *.png.c *.bdf.c *.c.o *.so
make[1]: Leaving directory `/tmp/buildd/sosdan-usplash-1.0'
dh_clean 
 dpkg-source -b sosdan-usplash-1.0
dpkg-source: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-parsechangelog: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
debian: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-architecture: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-source: building sosdan-usplash using existing sosdan-usplash_1.0.orig.tar.gz
dpkg-source: building sosdan-usplash in sosdan-usplash_1.0-1.diff.gz
dpkg-source: warning: ignoring deletion of file sos-theme.c~
dpkg-source: building sosdan-usplash in sosdan-usplash_1.0-1.dsc
 debian/rules build
dh_testdir
# Add here commands to configure the package.
touch configure-stamp
dh_testdir
# Add here commands to compile the package.
/usr/bin/make
make[1]: Entering directory `/tmp/buildd/sosdan-usplash-1.0'
make[1]: Circular sos_1024_576_cropped.png <- sos_1024_576_cropped.png.c dependency dropped.
pngtousplash sos_1024_576_cropped.png > sos_1024_576_cropped.png.c
gcc  -g -Wall -fPIC -o sos_1024_576_cropped.png.c.o -c sos_1024_576_cropped.png.c
make[1]: Circular sos_1024_768.png <- sos_1024_768.png.c dependency dropped.
pngtousplash sos_1024_768.png > sos_1024_768.png.c
gcc  -g -Wall -fPIC -o sos_1024_768.png.c.o -c sos_1024_768.png.c
make[1]: Circular sos_800_600.png <- sos_800_600.png.c dependency dropped.
pngtousplash sos_800_600.png > sos_800_600.png.c
gcc  -g -Wall -fPIC -o sos_800_600.png.c.o -c sos_800_600.png.c
make[1]: Circular throbber_fore.png <- throbber_fore.png.c dependency dropped.
pngtousplash throbber_fore.png > throbber_fore.png.c
gcc  -g -Wall -fPIC -o throbber_fore.png.c.o -c throbber_fore.png.c
make[1]: Circular throbber_back.png <- throbber_back.png.c dependency dropped.
pngtousplash throbber_back.png > throbber_back.png.c
gcc  -g -Wall -fPIC -o throbber_back.png.c.o -c throbber_back.png.c
gcc  -g -Wall -fPIC -o sos-theme.c.o -c sos-theme.c
make[1]: Circular helvB10.bdf <- helvB10.bdf.c dependency dropped.
bdftousplash helvB10.bdf > helvB10.bdf.c
gcc  -g -Wall -fPIC -o helvB10.bdf.c.o -c helvB10.bdf.c
gcc  -g -Wall -fPIC -shared -o sos-theme.so sos_1024_576_cropped.png.c.o sos_1024_768.png.c.o sos_800_600.png.c.o throbber_fore.png.c.o throbber_back.png.c.o sos-theme.c.o helvB10.bdf.c.o
rm sos_800_600.png.c helvB10.bdf.c sos_1024_768.png.c throbber_back.png.c sos_1024_576_cropped.png.c throbber_fore.png.c
make[1]: Leaving directory `/tmp/buildd/sosdan-usplash-1.0'
#docbook-to-man debian/sosdan-usplash.sgml > sosdan-usplash.1
touch build-stamp
 fakeroot debian/rules binary
dh_testdir
dh_testroot
dh_clean -k 
dh_installdirs
# Add here commands to install the package into debian/sosdan-usplash.
/usr/bin/make DESTDIR=/tmp/buildd/sosdan-usplash-1.0/debian/sosdan-usplash install
make[1]: Entering directory `/tmp/buildd/sosdan-usplash-1.0'
/usr/bin/install -c -d /tmp/buildd/sosdan-usplash-1.0/debian/sosdan-usplash/usr/lib/usplash
/usr/bin/install -c -m 755 sos-theme.so /tmp/buildd/sosdan-usplash-1.0/debian/sosdan-usplash/usr/lib/usplash/sos-theme.so
update-alternatives --install /usr/lib/usplash/usplash-artwork.so usplash-artwork.so /usr/lib/usplash/sos-theme.so 10
update-alternatives: unable to open /var/lib/dpkg/alternatives/usplash-artwork.so.dpkg-new for write: Permission denied
make[1]: *** [install] Error 2
make[1]: Leaving directory `/tmp/buildd/sosdan-usplash-1.0'
make: *** [install] Error 2
pbuilder: Failed autobuilding of package
 -> Aborting with an error
 -> unmounting dev/pts filesystem
 -> unmounting proc filesystem
 -> cleaning the build env 
    -> removing directory /var/cache/pbuilder/build//13217 and its subdirectories

On remarque donc qu'il ne trouve pas les droits nécessaires pour exécuter update-alternatives. Hors il est pas vraiment sensé l'executer (du moins, c'est ce que je pense), et donc je ne vois pas comment il est possible de lui donner des droits qu'il a déjà (il est exécuté en root...). Qu'est ce que je peux faire pour compiler mon paquet ? Utiliser autre chose que pbuilder ? (surtout qu'il ne me sert a rien dans le cas présent, je connais les dépendances).

Merci d'avance.

Hors ligne

#2 Le 16/05/2007, à 23:08

Goldy

Re : Compiler un paquet, rien de mieux que pbuilder ?

J'ai finit par le faire avec dpkg-buildpackage -rfakeroot en root, ça a très bien marché.

Hors ligne

#3 Le 17/05/2007, à 16:35

mr_pouit

Re : Compiler un paquet, rien de mieux que pbuilder ?

Bonjour,

Goldy a écrit :

update-alternatives --install /usr/lib/usplash/usplash-artwork.so usplash-artwork.so /usr/lib/usplash/sos-theme.so 10

Parce que ça ne sert à rien de faire ça dans le pbuilder... il faut faire update-alternatives sur le système qui installe le paquet (appeler update-alternatives dans le postinst et le prerm).

Goldy a écrit :

J'ai finit par le faire avec dpkg-buildpackage -rfakeroot en root, ça a très bien marché.

Oui, mais comme dit au-dessus, tu ne pourras pas distribuer le paquet créé, il ne mettra pas à jour l'alternative. wink

Hors ligne

#4 Le 18/05/2007, à 01:06

Goldy

Re : Compiler un paquet, rien de mieux que pbuilder ?

C'est obscure, c'est une commande qui est présente dans le make install, je pensais que  la construction du paquet était automatisé à partir de ce que contenait le make file.

De plus, il me semble bien que le paquet que j'ai créé met a jours l'alternative, étant donné qu'après installation, le thème que j'ai créé était présent dans usplash-switcher (faut dire que je l'avais installé puis désinstallé auparavant).

Dernière modification par Goldy (Le 18/05/2007, à 01:06)

Hors ligne