Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ebuild e sorgenti patchati
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
saxtro
Apprentice
Apprentice


Joined: 28 Nov 2004
Posts: 153

PostPosted: Sun Nov 28, 2004 3:12 pm    Post subject: ebuild e sorgenti patchati Reply with quote

Ciao a tutta la comunità ,a chi ho avuto il piacere di conoscere su altri forum e a tutti gli altri, questo è il mio primo post in questo forum, sono giunto qui tramite san google mentre cercavo di capire come funziona l'opzione digest di ebuild.
Vi spiego il mio problema;
sono uno sfigato possessore di uno scanner HP3300 che è ben supportato da sane a patto di patchare il sane-backend, il sane che mi fa emergere (anche con ACCEPT_KEYWORDS="~x86") non è patchato, allora l'ho patchato io(ho decompresso i source, li ho patchati e li ho ricompressi), ora il problema è che con emerge
Code:

bash-2.05b# emerge sane-backends
Calculating dependencies ...done!
>>> emerge (1 of 1) media-gfx/sane-backends-1.0.14-r6 to /

!!! Digest verification Failed:
!!!    /usr/portage/distfiles/sane-backends-1.0.14.tar.gz
!!! Reason: Filesize does not match recorded size


allora ho provato
Code:
bash-2.05b# ebuild /usr/portage/media-gfx/sane-backends/sane-backends-1.0.14-r6.ebuild digest
>>> Generating digest file...
<<< sane-backends-1.0.14.tar.gz
<<< backend-20040723_1.tar.gz
Traceback (most recent call last):
  File "/usr/sbin/ebuild", line 49, in ?
    a=portage.doebuild(pargs[0],x,getroot(),tmpsettings,debug=debug,cleanup=cleanup)
  File "/usr/lib/portage/pym/portage.py", line 2520, in doebuild
    return (not digestgen(aalist,mysettings,overwrite=1))
  File "/usr/lib/portage/pym/portage.py", line 1950, in digestgen
    mydigests=digestCreate(myarchives, basedir, oldDigest=myolddigest)
  File "/usr/lib/portage/pym/portage.py", line 1886, in digestCreate
    raise portage_exception.DigestException, "Size mismatch during checksums"
portage_exception.DigestException: 'Size mismatch during checksums'


ma il risultato di emrge è sempre lo stesso, come faccio a fargli capire che l'md5sum anche se non corrisponde va bene?
ho provato anche ad editare a mano il Manifest sostituendo l'md5sum con quello nuovo ma non va lo stesso
grazie a tutti
Back to top
View user's profile Send private message
motaboy
Developer
Developer


Joined: 15 Dec 2003
Posts: 1483

PostPosted: Sun Nov 28, 2004 4:21 pm    Post subject: Reply with quote

cancella il file di digest e riprova.
_________________
...
Back to top
View user's profile Send private message
saxtro
Apprentice
Apprentice


Joined: 28 Nov 2004
Posts: 153

PostPosted: Sun Nov 28, 2004 4:40 pm    Post subject: Reply with quote

Code:

bash-2.05b# rm digest-sane-backends-1.0.1*
bash-2.05b# ebuild /usr/portage/media-gfx/sane-backends/sane-backends-1.0.14-r6.ebuild digest
>>> Generating digest file...
<<< sane-backends-1.0.14.tar.gz
<<< backend-20040723_1.tar.gz
!!! We have a source URI, but no file...
!!! File: /usr/portage/distfiles/backend-20040723_1.tar.gz
bash-2.05b# emerge sane-backends
Calculating dependencies ...done!
>>> emerge (1 of 1) media-gfx/sane-backends-1.0.14-r6 to /
!!! No package digest file found: /usr/portage/media-gfx/sane-backends/files/digest-sane-backends-1.0.14-r6
!!! Type "ebuild foo.ebuild digest" to generate it.
bash-2.05b#   


:oops:
Back to top
View user's profile Send private message
motaboy
Developer
Developer


Joined: 15 Dec 2003
Posts: 1483

PostPosted: Sun Nov 28, 2004 4:44 pm    Post subject: Reply with quote

non esiste il file /usr/portage/distfiles/backend-20040723_1.tar.gz prima devi prelevarlo

per farlo usa emerge -F ebuildname
_________________
...
Back to top
View user's profile Send private message
saxtro
Apprentice
Apprentice


Joined: 28 Nov 2004
Posts: 153

PostPosted: Sun Nov 28, 2004 4:56 pm    Post subject: Reply with quote

Code:

bash-2.05b# ebuild /usr/portage/media-gfx/sane-backends/sane-backends-1.0.14-r6.ebuild digest
>>> Generating digest file...
<<< sane-backends-1.0.14.tar.gz
<<< backend-20040723_1.tar.gz
<<< sane-backends-1.0.13-brothermfc-r1.patch.bz2
!!! We have a source URI, but no file...
!!! File: /usr/portage/distfiles/sane-backends-1.0.13-brothermfc-r1.patch.bz2
bash-2.05b#                                                     


a questo punto credo di dover modificare URl ,
tutti questi file che mancano a me non servono, se compilo in maniera classica il
sane-backends-1.0.14.tar.gz (patchato) lo scanner mi funziona

Code:

inherit eutils

IUSE="usb gphoto2 ipv6"

DESCRIPTION="Scanner Access Now Easy - Backends"
HOMEPAGE="http://www.mostang.com/sane/"

DEPEND=">=media-libs/jpeg-6b
   x86? ( sys-libs/libieee1284 )
   =sys-apps/sed-4*
   usb? ( dev-libs/libusb )
   gphoto2? ( media-gfx/gphoto2 )"

BROTHERMFCDRIVER="sane-backends-1.0.13-brothermfc-r1.patch"

SRC_URI="ftp://ftp.mostang.com/pub/sane/${P}/${P}.tar.gz
   ftp://ftp.mostang.com/pub/sane/old-versions/${P}/${P}.tar.gz
   usb? ( mirror://sourceforge/hp3300backend/backend-20040723_1.tar.gz )
   usb? ( mirror://gentoo/${BROTHERMFCDRIVER}.bz2 )"
SLOT="0"
LICENSE="GPL-2 public-domain"
KEYWORDS="x86 sparc ~ppc ~ppc64 ~amd64"


provo a togliere queste righe?
usb? ( mirror://sourceforge/hp3300backend/backend-20040723_1.tar.gz )
usb? ( mirror://gentoo/${BROTHERMFCDRIVER}.bz2 )"

sisi provo e faccio sapere (siccome so di essere niubbozzo ho una dir sane-backends_old in caso di malfunzionamento pesante)
Back to top
View user's profile Send private message
saxtro
Apprentice
Apprentice


Joined: 28 Nov 2004
Posts: 153

PostPosted: Sun Nov 28, 2004 5:00 pm    Post subject: Reply with quote

dopo aver editato lo script
Code:

bash-2.05b# ebuild /usr/portage/media-gfx/sane-backends/sane-backends-1.0.14-r6.ebuild digest
>>> Generating digest file...
<<< sane-backends-1.0.14.tar.gz
>>> Generating manifest file...
<<< sane-backends-1.0.14-r6.ebuild
<<< Manifest_old
<<< sane-backends-1.0.14-r3.ebuild
<<< sane-backends-1.0.15.ebuild
<<< sane-backends-1.0.13-r3.ebuild
<<< ChangeLog
<<< metadata.xml
<<< files/linux_sg3_err.h
<<< files/libusbscanner-device.patch
<<< files/canoscan-focus.patch
<<< files/libusbscanner-device-r1.patch
<<< files/digest-sane-backends-1.0.14-r6
>>> Computed message digests.

bash-2.05b#                     
 


ora lo emergo per vedere se il rattoppo che ho fatto funge...
Back to top
View user's profile Send private message
saxtro
Apprentice
Apprentice


Joined: 28 Nov 2004
Posts: 153

PostPosted: Sun Nov 28, 2004 6:47 pm    Post subject: conclusioni Reply with quote

il rattoppo funge ma:
# sane-find-scanner
non trova lo scanner,
allora anzichè editare lo script gli ho procurato i file che mi chiedeva e
# sane-find-scanner
non trova lo scanner, se invece mi sposto nella mia home e lancio il sane-find-scanner che ho compilato per vedere se fungeva
Code:

bash-2.05b$ ./sane-find-scanner

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x0205 [HP ScanJet 3300C]) at libusb:001:003
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.

  # You may want to run this program as root to find all devices. Once you
  # found the scanner devices, be sure to adjust access permissions as
  # necessary.
bash-2.05b$                                     


lo scanner viene trovato...
credò che smanetterò un pò con USE per emergere sto sane-backends, cioè ho emerge perchè dare make install dalla dir in cui gli eseguibili fungono?

edit: dimenticavo, grazie motaboy delle dritte, mi hai un input importante per capire come funzionano gli ebuild
Back to top
View user's profile Send private message
saxtro
Apprentice
Apprentice


Joined: 28 Nov 2004
Posts: 153

PostPosted: Wed Dec 01, 2004 5:43 pm    Post subject: Reply with quote

qualcuno sa perchè? (fino a ieri funzionava....) non so se sia rilevante ma io non ho cambiato porta allo scanner, ieri era sul 001:003 oggi sullo 002:002....
Code:

bash-2.05b# lsusb
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 03f0:0205 Hewlett-Packard ScanJet 3300c
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
bash-2.05b# sane-find-scanner -q
found USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x0205 [HP ScanJet 3300C]) at libusb:002:002
bash-2.05b# scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
bash-2.05b#                                                         
Back to top
View user's profile Send private message
ultimodruido
Apprentice
Apprentice


Joined: 11 Dec 2003
Posts: 253
Location: Muenchen

PostPosted: Wed Dec 01, 2004 7:05 pm    Post subject: Reply with quote

non so piu dove, ma esiste un file di configurazione di sane con la lista degli scanner disponibili come patch, ma sono tutti commentati. in teoria dovresti trovare sto file e decommentare il tuo. scusa non so dirti qual'è perche suk portatile non l'ho installato.
ciao nic
_________________
Account Jabber: ultimodruido@jabber.linux.it
Back to top
View user's profile Send private message
saxtro
Apprentice
Apprentice


Joined: 28 Nov 2004
Posts: 153

PostPosted: Wed Dec 01, 2004 7:15 pm    Post subject: Reply with quote

@ultimodruido

intendi il libsane.usermap ?
se si è a posto con la riga giusta deccomantata ;(
Back to top
View user's profile Send private message
ultimodruido
Apprentice
Apprentice


Joined: 11 Dec 2003
Posts: 253
Location: Muenchen

PostPosted: Wed Dec 01, 2004 7:17 pm    Post subject: Reply with quote

scusa, so che sono info un po' inutili, pero non mi sembra quello il file come nome...
prova un
Code:
find / -iname '*sane*'
magari trovi altri file...
_________________
Account Jabber: ultimodruido@jabber.linux.it
Back to top
View user's profile Send private message
ultimodruido
Apprentice
Apprentice


Joined: 11 Dec 2003
Posts: 253
Location: Muenchen

PostPosted: Wed Dec 01, 2004 7:23 pm    Post subject: Reply with quote

ho trovato questo su internet... e mi sono ricordato che gli scanner HP hanno un software da installare (hpoj credo) e poi si deve eseguire un
Code:
/etc/init.d/ptal-init setup
io avevo usato questo per far funzionare il mio... mi spiace solo che non ho sotto mano ora il pc!!!
prova a guardare qui!
ciao nic
_________________
Account Jabber: ultimodruido@jabber.linux.it
Back to top
View user's profile Send private message
saxtro
Apprentice
Apprentice


Joined: 28 Nov 2004
Posts: 153

PostPosted: Wed Dec 01, 2004 7:45 pm    Post subject: Reply with quote

grazie per l'interessamento ultimodruido ma non ci siamo, hpoj serve per le hp office jet, io ho un semplice scanner che da che distro e distro che ho usato (mdk, slackware e ora gentoo) è sempre andato con sane-backends patchato con il supporto per gli hp 3300 e 3400 (niash-usb), e fino a ieri (quindi prima di spegnere è andato pure con gentoo)
Back to top
View user's profile Send private message
saxtro
Apprentice
Apprentice


Joined: 28 Nov 2004
Posts: 153

PostPosted: Wed Dec 01, 2004 8:36 pm    Post subject: Reply with quote

ci sono novità :
# scanimage -d niash:libusb:002:002

mi scanna l'immagine sulla consolle
invece

# xscanimage niash:libusb:002:002

mi apre il frontend e lo scanner funziona, bah provo a modificare il niash.conf forse è per questo che non lo usa direttamente
Back to top
View user's profile Send private message
saxtro
Apprentice
Apprentice


Joined: 28 Nov 2004
Posts: 153

PostPosted: Wed Dec 01, 2004 8:47 pm    Post subject: Reply with quote

nulla
in attesa di tempi migliori mi faccio uno script per usare lo scanner con le opzioni giuste, però questo mi scoccia perchè i programmi in grado di interfacciarsi con lo scanner non riescono (tipo acquisire immagini con oodraw o gimp )
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum