aMule Forum
English => Compilation problems => Topic started by: BigBob on February 27, 2008, 12:31:27 AM
-
Hi,
It look like debian packages compilation break at locales generation ...
Here is the error :
dpkg-deb : construction du paquet « amule-daemon » dans « ../amule-daemon_20080226_i386.deb ».
touch amule-daemon-stage2
touch daemon
dh_testdir -pamule-i18n-ar
dh_testroot -pamule-i18n-ar
dh_installdirs -pamule-i18n-ar
install -d debian/amule-i18n-ar/usr/share/locale/ar/LC_MESSAGES debian/amule-i18n-ar/usr/share/lintian/overrides debian/amule-i18n-ar/usr/share/doc/amule-i18n-ar
dh_installchangelogs docs/Changelog -pamule-i18n-ar
install -o 0 -g 0 -p -m644 debian/changelog debian/amule-i18n-ar/usr/share/doc/amule-i18n-ar/changelog.Debian
install -o 0 -g 0 -p -m644 docs/Changelog debian/amule-i18n-ar/usr/share/doc/amule-i18n-ar/changelog
dh_installdocs -pamule-i18n-ar
install -g 0 -o 0 -m 644 -p debian/copyright debian/amule-i18n-ar/usr/share/doc/amule-i18n-ar/copyright
dh_install -Xlicense.txt -pamule-i18n-ar
cp -a ./debian/tmp/usr/share/locale/ar debian/amule-i18n-ar//usr/share/locale/
cp: ne peut évaluer `./debian/tmp/usr/share/locale/ar': Aucun fichier ou répertoire de ce type
dh_install: command returned error code 256
make: *** [i18n-ar] Erreur 1
If it can help, the aMule-CVS-20080208 compiled fine, and locales packages builded properly ...
A++
-
Well, trying to determining from what daily build the problem occur, I just see all builds extract allways in same directory (amule-cvs).
To ease the research I made a script to extract every daily builds in directory named with the date of the build, the script also push the changelog with the date of the build (not the current date like it was made from the wiki).
I join the script in this post, in case where it can help others ...
Just put the script in "/usr/bin", chmod +x it, and use it like that :
amule-cvs-building aMule-CVS-YYYYMMDD.tar.bz2
Hope it help ...
http://bigbob.chez-alice.fr/amule-cvs-building (http://bigbob.chez-alice.fr/amule-cvs-building)
A++
-
Ok,
The break occur since 20080223 (20080222 is fine).
A++
-
It could be the same problem making debs for Ubuntu 64 bits ::)
PKG_DATE=`date +%Y%m%d`
AMULECVS="aMule-CVS-"$PKG_DATE
TARBALL=aMule-CVS-$PKG_DATE.tar.bz2
wget http://amule.hirnriss.net/$TARBALL
mkdir $AMULECVS
tar jxvf $AMULECVS.tar.bz2 -C $AMULECVS --strip 1
cd $AMULECVS
dch -v `echo $AMULECVS|cut -d- -f3` New Upstream CVS Release
dpkg-buildpackage -uc -b -rfakeroot
touch daemon
dh_testdir -pamule-i18n-ar
dh_testroot -pamule-i18n-ar
dh_installdirs -pamule-i18n-ar
install -d debian/amule-i18n-ar/usr/share/locale/ar/LC_MESSAGES debian/amule-i18n-ar/usr/share/lintian/overrides debian/amule-i18n-ar/usr/share/doc/amule-i18n-ar
dh_installchangelogs docs/Changelog -pamule-i18n-ar
install -o 0 -g 0 -p -m644 debian/changelog debian/amule-i18n-ar/usr/share/doc/amule-i18n-ar/changelog.Debian
install -o 0 -g 0 -p -m644 docs/Changelog debian/amule-i18n-ar/usr/share/doc/amule-i18n-ar/changelog
dh_installdocs -pamule-i18n-ar
install -g 0 -o 0 -m 644 -p debian/copyright debian/amule-i18n-ar/usr/share/doc/amule-i18n-ar/copyright
dh_install -Xlicense.txt -pamule-i18n-ar
cp -a ./debian/tmp/usr/share/locale/ar debian/amule-i18n-ar//usr/share/locale/
cp: no se puede efectuar `stat' sobre `./debian/tmp/usr/share/locale/ar': No existe el fichero ó directorio
dh_install: command returned error code 256
make: *** [i18n-ar] Error 1
What I am doing wrong? :-\
-
I read in changelog file that vollstrecker has moved i18n packages to separate targets.
I tried to ask him by mail, but his SMTP server seems to be down for the last two days.
Now "dpkg-buildpackage -us -uc -b -rfakeroot" doesn't to make ANY language packages.
I can't install the packages, because synaptic tells me that I have a non satisfied dependency about "amule-i18n-en-gb".
I have been trying to generate only some i18n packages without success:
$ fakeroot debian/rules i18n-en-gb
[...]
dpkg-deb: construyendo el paquete `amule-xas' en `../amule-xas_20080225_amd64.deb'.
touch amule-common
dh_testdir -pamule-i18n-en-gb
dh_testroot -pamule-i18n-en-gb
dh_installdirs -pamule-i18n-en-gb
install -d debian/amule-i18n-en-gb/usr/share/locale/en_GB/LC_MESSAGES debian/amule-i18n-en-gb/usr/share/lintian/overrides debian/amule-i18n-en-gb/usr/share/doc/amule-i18n-en-gb
dh_installchangelogs docs/Changelog -pamule-i18n-en-gb
install -o 0 -g 0 -p -m644 debian/changelog debian/amule-i18n-en-gb/usr/share/doc/amule-i18n-en-gb/changelog.Debian
install -o 0 -g 0 -p -m644 docs/Changelog debian/amule-i18n-en-gb/usr/share/doc/amule-i18n-en-gb/changelog
dh_installdocs -pamule-i18n-en-gb
install -g 0 -o 0 -m 644 -p debian/copyright debian/amule-i18n-en-gb/usr/share/doc/amule-i18n-en-gb/copyright
dh_install -Xlicense.txt -pamule-i18n-en-gb
cp -a ./debian/tmp/usr/share/locale/en_GB debian/amule-i18n-en-gb//usr/share/locale/
cp: cannot `stat' over `./debian/tmp/usr/share/locale/en_GB': File not found
dh_install: command returned error code 256
make: *** [i18n-en-gb] Error 1
$ ls ./debian/tmp/usr/share
amule applications cas doc man pixmaps
$ ls binary-amd64/*.deb
amule_20080225_amd64.deb amule-daemon-dbg_20080225_amd64.deb amule-theme-default_20080225_amd64.deb
amule-alc_20080225_amd64.deb amule-dbg_20080225_amd64.deb amule-theme-php-default_20080225_amd64.deb
amule-alcc_20080225_amd64.deb amule-ed2k_20080225_amd64.deb amule-utils_20080225_amd64.deb
amule-alcc-dbg_20080225_amd64.deb amule-ed2k-dbg_20080225_amd64.deb amule-utils-gui_20080225_amd64.deb
amule-alc-dbg_20080225_amd64.deb amule-remote-gui_20080225_amd64.deb amuleweb_20080225_amd64.deb
amule-cas_20080225_amd64.deb amule-remote-gui-dbg_20080225_amd64.deb amuleweb-dbg_20080225_amd64.deb
amule-cas-dbg_20080225_amd64.deb amule-skin-gnome_20080225_amd64.deb amule-wxcas_20080225_amd64.deb
amule-cmd_20080225_amd64.deb amule-skin-kde4_20080225_amd64.deb amule-wxcas-dbg_20080225_amd64.deb
amule-cmd-dbg_20080225_amd64.deb amule-skin-tango_20080225_amd64.deb amule-xas_20080225_amd64.deb
amule-common_20080225_amd64.deb amule-skin-xfce_20080225_amd64.deb
amule-daemon_20080225_amd64.deb amule-theme-chicane_20080225_amd64.deb
-
Hi agarsab,
It's not you doing something wrong, it's just something changed in the Makefile generation since 20080223 (the 20080222 build fine) ...
I have a temporary solution :
Download http://www.hirnriss.net/files/cvs/aMule-CVS-20080222.tar.bz2 (http://www.hirnriss.net/files/cvs/aMule-CVS-20080222.tar.bz2)
Start the build from this release and look in "amule-cvs/po" directory when the file "Makefile" is generated.
Immediately when the file is generated, break the build of the 20080222 (hit ctrl+c).
Save the file "Makefile" somewhere else where you can get back.
Now, extract latest cvs and start build.
Look in "amule-cvs/po" directory, and when the file "Makefile" is generated, leave the build process continuing and overwrite the "amule-cvs/po/Makefile" with the one you have saved from 20080222.
I know it's not the right fix, but at least it permit to build all packages successfully ...
Hope it help ...
A++
-
I got your mail, but I have to delay the fix till Thuesday. For a workaround you can use the diff.gz from my repo and apply it to your tarball, or just use the source-pkg directly. Should work on Ubuntu, too and I forgot to include the changes there when I made them.
-
BigBob, your workaround works perfect. Thank you so much. ;D
Vollstrecker, I can't find your diff.gz, I'll wait for your changes in tarballs. ;)
-
I found the error. GonoszTopi changed to use the LINGUAS-Var, but whiole this change, the all parameter and the fallback on an empty --with-langs parameter to do all translations got missed. Atm, I don't know how to fix this.
-
Just to complete this. He fixed it some days ago.