Newsgroup: it.comp.os.linux.debian
Titolo: problema con apt-build

Ciao a tutti
avrei bisogno di aiuto in quanto non riesco a far andare questo
strumento.
uso una debian Etch
io lancio
-------------------------------------------------
#apt-build clean-sources
#apt-build clean-build
#apt-build clean-repository
poi
-------------------------------------------------
#apt-build update
#apt-get update
poi
-------------------------------------------------
#apt-build install unrar-free
-----> Installing build dependencies (for unrar-free) <-----
Lettura della lista dei pacchetti in corso... Fatto
Generazione dell'albero delle dipendenze in corso... Fatto
0 aggiornati, 0 installati, 0 da rimuovere e 66 non aggiornati.
-----> Updating package lists <-----
Ign file: apt-build Release.gpg
Get:1 file: apt-build Release [89B]
Ign file: apt-build/main Packages
.........cut................
Scaricato 4B in 14s (0B/s)
Lettura della lista dei pacchetti in corso... Fatto
-----> Downloading source unrar-free (1:0.0.1+cvs20060609-1) <-----
Lettura della lista dei pacchetti in corso... Fatto
Generazione dell'albero delle dipendenze in corso... Fatto
È necessario prendere 126kB di sorgenti
Get:1 
http://ftp.it.debian.org
 testing/main unrar-free
1:0.0.1+cvs20060609-1 (ds c) [697B]
Get:2 
http://ftp.it.debian.org
 testing/main unrar-free
1:0.0.1+cvs20060609-1 (ta r) [120kB]
Get:3 
http://ftp.it.debian.org
 testing/main unrar-free
1:0.0.1+cvs20060609-1 (di ff) [5305B]
Scaricato 126kB in 15s (8056B/s)
gpg: Signature made ven 09 giu:55:24 CEST using DSA key ID
gpg: Can't check signature: public key not found
dpkg-source: extracting unrar-free in unrar-free-0.0.1+cvs20060609
dpkg-source: unpacking unrar-free_0.0.1+cvs20060609.orig.tar.gz
dpkg-source: applying ./unrar-free_0.0.1+cvs20060609-1.diff.gz
-----> Building unrar-free <-----
dpkg-buildpackage: source package is unrar-free
dpkg-buildpackage: source version is 1:0.0.1+cvs20060609-1
dpkg-buildpackage: source changed by root <ro...@slayer.MIRMO>
dpkg-buildpackage: host architecture i386
dpkg-buildpackage: source version without epoch 0.0.1+cvs20060609-1
 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 distclean
make[1]: Entering directory `/var/cache/apt-build/build/unrar-
free-0.0.1+cvs2006 0609'
make[1]: *** No rule to make target `distclean'.  Stop.
make[1]: Leaving directory `/var/cache/apt-build/build/unrar-
free-0.0.1+cvs20060 609'
make: [clean] Error 2 (ignored)
rm -f unrar-free.1
if test -L config.guess; then \
                rm -f config.guess; \
                if test -e config.guess.debsave; then \
                        mv config.guess.debsave config.guess; \
                fi; \
        fi
if test -L config.sub; then \
                rm -f config.sub; \
                if test -e config.sub.debsave; then \
                        mv config.sub.debsave config.sub; \
                fi; \
        fi
dh_clean
 debian/rules build
dh_testdir
# link the latest version of autotools
if test -f config.guess; then \
                mv config.guess config.guess.debsave; \
        fi
ln -sf /usr/share/misc/config.guess .
if test -f config.sub; then \
                mv config.sub config.sub.debsave; \
        fi
ln -sf /usr/share/misc/config.sub .
touch configure-stamp
dh_testdir
# Add here commands to configure the package.
CFLAGS="-Wall -g -O2" ./configure --host=i486-linux-gnu --build=i486-
linux-gnu - -prefix=/usr --mandir=\${prefix}/share/man --infodir=\$
{prefix}/share/info
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i486-linux-gnu-gcc... i486-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i486-linux-gnu-gcc accepts -g... yes
checking for i486-linux-gnu-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of i486-linux-gnu-gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking how to run the C preprocessor... i486-linux-gnu-gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for atexit... yes
checking for realpath... yes
checking for setenv... yes
checking for strchr... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
dh_testdir
# Add here commands to compile the package.
/usr/bin/make
make[1]: Entering directory `/var/cache/apt-build/build/unrar-
free-0.0.1+cvs2006 0609'
/usr/bin/make  all-recursive
make[2]: Entering directory `/var/cache/apt-build/build/unrar-
free-0.0.1+cvs2006 0609'
Making all in src
make[3]: Entering directory `/var/cache/apt-build/build/unrar-
free-0.0.1+cvs2006 0609/src'
if i486-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..    -Wall -Wall -g -
O2 -MT unr ar.o -MD -MP -MF ".deps/unrar.Tpo" -c -o unrar.o unrar.c; \
        then mv -f ".deps/unrar.Tpo" ".deps/unrar.Po"; else rm -f
".deps/unrar.T po"; exit 1; fi
unrar.c: In function 'unrar_extract_directory':
unrar.c:300: warning: implicit declaration of function 'asprintf'
if i486-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..    -Wall -Wall -g -
O2 -MT opt s.o -MD -MP -MF ".deps/opts.Tpo" -c -o opts.o opts.c; \
        then mv -f ".deps/opts.Tpo" ".deps/opts.Po"; else rm -f ".deps/
opts.Tpo" ; exit 1; fi
if i486-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..    -Wall -Wall -g -
O2 -MT unr arlib.o -MD -MP -MF ".deps/unrarlib.Tpo" -c -o unrarlib.o
unrarlib.c; \
        then mv -f ".deps/unrarlib.Tpo" ".deps/unrarlib.Po"; else rm -
f ".deps/u nrarlib.Tpo"; exit 1; fi
unrarlib.c: In function 'SetCryptKeys':
unrarlib.c:2051: warning: comparison is always true due to limited
range of data  type
i486-linux-gnu-gcc -Wall -Wall -g -O2   -o unrar  unrar.o opts.o
unrarlib.o
make[3]: Leaving directory `/var/cache/apt-build/build/unrar-
free-0.0.1+cvs20060 609/src'
make[3]: Entering directory `/var/cache/apt-build/build/unrar-
free-0.0.1+cvs2006 0609'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/var/cache/apt-build/build/unrar-
free-0.0.1+cvs20060 609'
make[2]: Leaving directory `/var/cache/apt-build/build/unrar-
free-0.0.1+cvs20060 609'
make[1]: Leaving directory `/var/cache/apt-build/build/unrar-
free-0.0.1+cvs20060 609'
docbook-to-man debian/unrar-free.sgml > unrar-free.1
touch build-stamp
 debian/rules binary
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/unrar.
/usr/bin/make install DESTDIR=/var/cache/apt-build/build/unrar-
free-0.0.1+cvs200 60609/debian/unrar-free
make[1]: Entering directory `/var/cache/apt-build/build/unrar-
free-0.0.1+cvs2006 0609'
Making install in src
make[2]: Entering directory `/var/cache/apt-build/build/unrar-
free-0.0.1+cvs2006 0609/src'
make[3]: Entering directory `/var/cache/apt-build/build/unrar-
free-0.0.1+cvs2006 0609/src'
test -z "/usr/bin" || mkdir -p -- "/var/cache/apt-build/build/unrar-
free-0.0.1+c vs20060609/debian/unrar-free/usr/bin"
  /usr/bin/install -c 'unrar' '/var/cache/apt-build/build/unrar-
free-0.0.1+cvs20/debian/unrar-free/usr/bin/unrar'
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/var/cache/apt-build/build/unrar-
free-0.0.1+cvs20060 609/src'
make[2]: Leaving directory `/var/cache/apt-build/build/unrar-
free-0.0.1+cvs20060 609/src'
make[2]: Entering directory `/var/cache/apt-build/build/unrar-
free-0.0.1+cvs2006 0609'
make[3]: Entering directory `/var/cache/apt-build/build/unrar-
free-0.0.1+cvs2006 0609'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/var/cache/apt-build/build/unrar-
free-0.0.1+cvs20060 609'
make[2]: Leaving directory `/var/cache/apt-build/build/unrar-
free-0.0.1+cvs20060 609'
make[1]: Leaving directory `/var/cache/apt-build/build/unrar-
free-0.0.1+cvs20060 609'
mv /var/cache/apt-build/build/unrar-free-0.0.1+cvs20060609/debian/
unrar-free/usr /bin/unrar \
           /var/cache/apt-build/build/unrar-free-0.0.1+cvs20060609/
debian/unrar- free/usr/bin/unrar-free
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installman unrar-free.1
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
dpkg-deb: costruisco il pacchetto `unrar-free' in `../unrar-
free_0.0.1+cvs200606 09-1_i386.deb'.
 dpkg-genchanges -b
dpkg-genchanges: binary-only upload - not including any source code
dpkg-buildpackage: binary only upload (no source included)
----> Cleaning up object files <-----
Cleaning in directory .
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
/usr/bin/make distclean
make[1]: Entering directory `/var/cache/apt-build/build/unrar-
free-0.0.1+cvs2006 0609'
Making distclean in src
make[2]: Entering directory `/var/cache/apt-build/build/unrar-
free-0.0.1+cvs2006 0609/src'
test -z "unrar" || rm -f unrar
rm -f *.o
rm -f *.tab.c
test -z "" || rm -f
rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
rm -rf ./.deps
rm -f Makefile
make[2]: Leaving directory `/var/cache/apt-build/build/unrar-
free-0.0.1+cvs20060 609/src'
Making distclean in .
make[2]: Entering directory `/var/cache/apt-build/build/unrar-
free-0.0.1+cvs2006 0609'
test -z "" || rm -f
rm -f config.h stamp-h1
rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
make[2]: Leaving directory `/var/cache/apt-build/build/unrar-
free-0.0.1+cvs20060 609'
rm -f config.status config.cache config.log configure.lineno
configure.status.li
 neno
rm -f Makefile
make[1]: Leaving directory `/var/cache/apt-build/build/unrar-
free-0.0.1+cvs20060 609'
rm -f unrar-free.1
if test -L config.guess; then \
                rm -f config.guess; \
                if test -e config.guess.debsave; then \
                        mv config.guess.debsave config.guess; \
                fi; \
        fi
if test -L config.sub; then \
                rm -f config.sub; \
                if test -e config.sub.debsave; then \
                        mv config.sub.debsave config.sub; \
                fi; \
        fi
dh_clean
-----> Moving packages to repository <-----
-----> Building repository <-----
-----> Updating package lists <-----
Ign file: apt-build Release.gpg
Get:1 file: apt-build Release [89B]
Ign file: apt-build/main Packages
..........cut.....
Scaricato 4B in 9s (0B/s)
Lettura della lista dei pacchetti in corso... Fatto
Lettura della lista dei pacchetti in corso... Fatto
Generazione dell'albero delle dipendenze in corso... Fatto
I seguenti pacchetti NUOVI (NEW) saranno installati:
  unrar-free
0 aggiornati, 1 installati, 0 da rimuovere e 66 non aggiornati.
È necessario prendere 18,7kB di archivi.
Dopo l'estrazione, verranno occupati 81,9kB di spazio su disco.
Get:1 
http://ftp.it.debian.org
 testing/main unrar-free
1:0.0.1+cvs20060609-1 [18 ,7kB]
Scaricato 1B in 3s (0B/s)
Impossibile ottenere 
http://ftp.it.debian.org/debian/pool/main/u/unrar-free/unra
r-free_0.0.1+cvs20060609-1_i386.deb  Le Dimensioni non corrispondono
E: Impossibile prendere alcuni archivi, forse è meglio eseguire apt-
get update o  provare l'opzione --fix-missing
allora provo con apt-get
-------------------------------------------------
#apt-get install unrar-free
Lettura della lista dei pacchetti in corso... Fatto
Generazione dell'albero delle dipendenze in corso... Fatto
I seguenti pacchetti NUOVI (NEW) saranno installati:
  unrar-free
0 aggiornati, 1 installati, 0 da rimuovere e 66 non aggiornati.
È necessario prendere 18,7kB di archivi.
Dopo l'estrazione, verranno occupati 81,9kB di spazio su disco.
Get:1 
http://ftp.it.debian.org
 testing/main unrar-free
1:0.0.1+cvs20060609-1 [18,7kB]Scaricato 1B in 1s (1B/s)
Impossibile ottenere 
http://ftp.it.debian.org/debian/pool/main/u/unrar-free/unrar-free_0.0.1+cvs20060609-1_i386.deb
Le Dimensioni non corrispondono
E: Impossibile prendere alcuni archivi, forse è meglio eseguire apt-
get update o provare l'opzione --fix-missing
riporto il mio
-------------------------------------------------
$ cat apt-build.conf
build-dir = /var/cache/apt-build/build
repository-dir = /var/cache/apt-build/repository
Olevel = -O2
mtune = -mtune=athlon-xp
options = " -pipe -msse -m3dnow -mmmx -mfpmath=sse -fomit-frame-
pointer -falign-functions=64 -falign-loops=16 "
make_options = " "
e
-------------------------------------------------
$ cat sources.list
deb file:/var/cache/apt-build/repository apt-build main
#
#deb cdrom:[Debian GNU/Linux testing _Etch_ - Official Snapshot i386
NETINST Binary-1:28]/ etch contrib main
#deb cdrom:[Debian GNU/Linux testing _Etch_ - Official Snapshot i386
NETINST Binary-1:28]/ etch contrib main
# DEBIAN REPOSITORY OFFICIAL PACKAGE
deb 
http://ftp.it.debian.org/debian/
 testing main contrib non-free
deb-src 
http://ftp.it.debian.org/debian/
 testing main contrib non-free
#deb 
http://mirror.switch.ch/ftp/mirror/debian/
 etch main
#deb-src 
http://mirror.switch.ch/ftp/mirror/debian/
 etch main
# DEBIAN REPOSITORY OFFICIAL NON-US PACKAGE
# DEBIAN REPOSITORY OFFICIAL SECURITY UPDATES
deb 
http://mirror.switch.ch/ftp/mirror/debian-security/
 testing/
updates main contrib non-free
deb-src 
http://mirror.switch.ch/ftp/mirror/debian-security/
 testing/
updates main contrib non-free
#deb 
http://security.debian.org/
 etch/updates main contrib
#deb-src 
http://security.debian.org/
 etch/updates main contrib
# MARILLAT-MULTIMEDIA
deb 
http://debian-multimedia.gnali.org
 testing main
deb-src 
http://debian-multimedia.gnali.org
 testing main
# Skype
deb 
http://download.skype.com/linux/repos/debian/
 stable non-free
# SwiftFox (Firefox ottimizzato)
deb 
http://getswiftfox.com/builds/debian
 unstable non-free
# Opera
deb 
http://deb.opera.com/opera/
 etch non-free
# Google Picasa for Linux repository
deb 
http://dl.google.com/linux/deb/
 stable non-free

 debhttp://
deb.opera.com/opera/etch
 non-free



-- sì, lo so, sono di parte :-)
-- 
         Linux Registered User #334216
Get FireFox! >> 
http://snipurl.com/gofoxygo/
 <<
Blog         >>  
http://www.hanskalabs.net/
  <<
Staff        >> 
http://www.debianizzati.org/
 <<


Architecture: i386
Source: unrar-nonfree
Version: 1:3.5.4-1
Depends: libc6 (>= 2.3.6-6), libgcc1 (>= 1:4.1.1-12), libstdc++6 (>=
4.1.1-12)
Conflicts: rar (<= 2.60-1)
Filename: ./unrar_3.5.4-1_i386.deb
Size: 92032
MD5sum: 8d19cf32cdfcf14cf631197f9a88e888
SHA1: 1b629131943fcd1626fdd53574485b3b8129b653
SHA256:
6e4b2695338f5f680932948c8be28b52b6093624cdeeb54b3c0a4d2cabdc9563
Description: Unarchiver for .rar files (non-free version)
 Unrar can extract files from .rar archives. If you want to
create .rar
 archives, install package rar.

 e il contenuto di Package.gz
Vabbè, si poteva evitare ;-)
Saluti,
David
[1] 
http://bugs.debian.org/412743


 /var/lib/apt/lists/_var_cache_apt-build_repository_dists_apt-build_Release,
cat /var/lib/apt/lists/_var_cache_apt-build_repository_dists_apt-
build_Release
Archive: apt-build
Component: main
Origin: apt-build
Label: apt-build
Architecture: i386
_________________________
cat /etc/apt/preferences
Package: *
Pin: release o=apt-build
Pin-Priority: 950
Package: *
Pin: release a=testing
Pin-Priority: 900
Package: *
Pin: release a=unstable
Pin-Priority: 850
Package: *
Pin: release a=experim
Pin-Priority: 800
_________________________
cat /etc/apt/apt.conf
APT::Default-Release "testing";
APT::Cache-Limit 15000000;
Apt::Get::Purge;
APT::Clean-Installed;
APT::Get::Fix-Broken;
APT::Get::Fix-Missing;
APT::Get::Show-Upgraded "true";

aggiungo altri informazioni
$ apt-config dump
APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::Periodic "";
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Default-Release "testing";
APT::Cache-Limit "15000000";
APT::Get "";
APT::Get::Show-Upgraded "true";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::userstatus "status.user";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::sourceparts "sources.list.d";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Post-Invoke "";
DPkg::Post-Invoke:: "if [ -x /usr/sbin/localepurge ] && [ $(ps w -p
$PPID | grep -c remove) != 1 ]; then /usr/sbin/localepurge; else exit
0; fi";
 "Apt::Get::Purge";
 "APT::Clean-Installed";
 "APT::Get::Fix-Broken";
 "APT::Get::Fix-Missing";
inoltre
~$ apt-cache showpkg unrar
Package: unrar
Versions:
1:3.5.4-1(/var/lib/apt/lists/_var_cache_apt-build_repository_dists_apt-
build_main_binary-i386_Packages)(/var/lib/dpkg/status)
1:3.5.4-1(/var/lib/apt/lists/
mirror.switch.ch_ftp_mirror_debian_dists_testing_non-free_binary-
i386_Packages)
quindi sa che ci sono entrambi i pacchetti
inoltre andando a cercare all'interno di quei file il pacchetto hanno
effettivamento dimensione diversa (chiaramente uno l'ho compilato con
apt-build)
ho controllato pure gli md5 dei file del mio rep e sono corretti
comunque grazie mille
Alberto

ho cercato la pagina del progetto apt-build , ma non ho trovato niente
su google.
qualcuno può darmi un link

[PARZIALMENTE RISOLTO]....
oggi ho provato a modificare il mio sources.list, ho commentato gli
url deb  http://......... lasciando solo quelli deb-src.
apt-build  riusciva ad installarli senza problemi; ma solo quelli
privi di dipendenze o con dipendenze già soddisfatte.
per ora lascio così almeno fino a quando non c'è una soluzione
ciao
Alberto