Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to disable WHIRLPOOL checksum
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
s4e8
Apprentice
Apprentice


Joined: 29 Jul 2006
Posts: 210

PostPosted: Sat Jan 19, 2013 12:59 am    Post subject: How to disable WHIRLPOOL checksum Reply with quote

whirlpool verification is incredible slow. while force portage use python2 and emerge python-mhash may help, but I perfer to disable this may-broken checksum.
Back to top
View user's profile Send private message
megabaks
Apprentice
Apprentice


Joined: 22 Jan 2012
Posts: 253
Location: Russia && Saint-Petersburg

PostPosted: Sat Jan 19, 2013 6:12 am    Post subject: Reply with quote

man make.conf:
Code:
       PORTAGE_CHECKSUM_FILTER = [space delimited list of hash names]
              This  variable  may  be  used  to  filter  the hash functions that are used to verify integrity of files. Hash function names are
              case-insensitive, and the * and -* wildcard tokens are supported.
              Defaults to the value of *.
              Examples:
              # Use all available hash functions
              PORTAGE_CHECKSUM_FILTER="*"
              # Use any function except whirlpool
              PORTAGE_CHECKSUM_FILTER="* -whirlpool"
              # Only use sha256
              PORTAGE_CHECKSUM_FILTER="-* sha256"
Back to top
View user's profile Send private message
s4e8
Apprentice
Apprentice


Joined: 29 Jul 2006
Posts: 210

PostPosted: Sat Jan 19, 2013 12:20 pm    Post subject: Reply with quote

megabaks wrote:
man make.conf:
Code:
       PORTAGE_CHECKSUM_FILTER = [space delimited list of hash names]
              This  variable  may  be  used  to  filter  the hash functions that are used to verify integrity of files. Hash function names are
              case-insensitive, and the * and -* wildcard tokens are supported.
              Defaults to the value of *.
              Examples:
              # Use all available hash functions
              PORTAGE_CHECKSUM_FILTER="*"
              # Use any function except whirlpool
              PORTAGE_CHECKSUM_FILTER="* -whirlpool"
              # Only use sha256
              PORTAGE_CHECKSUM_FILTER="-* sha256"

thanks. I can switch back to python3 now.
Back to top
View user's profile Send private message
syn0ptik
Apprentice
Apprentice


Joined: 09 Jan 2013
Posts: 238

PostPosted: Mon Jan 28, 2013 5:35 am    Post subject: Reply with quote

strange it doesn't work for my. I did...
/etc/make.conf
Code:
PORTAGE_CHECKSUM_FILTER="-* -whirlpool  -sha256 -sha512"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS=0

linked...
/etc/portage/make.conf -> /etc/make.conf
and emerge anyway try to download new package instead eat exist one, which I'd change.
Back to top
View user's profile Send private message
yngwin
Developer
Developer


Joined: 19 Dec 2002
Posts: 4394
Location: Suzhou, China

PostPosted: Mon Jan 28, 2013 7:55 am    Post subject: Reply with quote

You have disabled ALL checksum hash functions. You need to enable at least one.
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
syn0ptik
Apprentice
Apprentice


Joined: 09 Jan 2013
Posts: 238

PostPosted: Mon Jan 28, 2013 8:13 am    Post subject: Reply with quote

but then how can I'm change package and install it.
Code:
PORTAGE_CHECKSUM_FILTER="-whirlpool  -sha256 -sha512"

anyway
Back to top
View user's profile Send private message
The Doctor
Veteran
Veteran


Joined: 27 Jul 2010
Posts: 1479

PostPosted: Mon Jan 28, 2013 8:19 am    Post subject: Reply with quote

I take it you wish to modify the source code of a package? Make your own ebuild and store it in your local overlay.
_________________
First things first, but not necessarily in that order.
Back to top
View user's profile Send private message
syn0ptik
Apprentice
Apprentice


Joined: 09 Jan 2013
Posts: 238

PostPosted: Mon Jan 28, 2013 8:47 am    Post subject: Reply with quote

no, changing dependency painful, so I still decided to update existence.
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1942
Location: Zurich, Switzerland

PostPosted: Mon Jan 28, 2013 11:20 am    Post subject: Reply with quote

syn0ptik wrote:
no, changing dependency painful, so I still decided to update existence.

Which means, you changed the ebuild, which no longer matches the hashes (sha1, sha256, whirlpool).

easiest way, is to copy the file (and all depending files - usually the entire files folder is enough, if not an overkill) to a local overlay, change whatever is nescessary, then rebuild the checksum using ebuild /path/to/ebuild digest. alterntively - but i strongly advise against it - you can use the --digest in the emerge command.
_________________
read the portage output!
If my answer is too concise, ask for an explanation.
Back to top
View user's profile Send private message
ahgblopes
Tux's lil' helper
Tux's lil' helper


Joined: 16 Oct 2011
Posts: 102
Location: Brazil :(

PostPosted: Sat Oct 26, 2013 5:54 pm    Post subject: Reply with quote

thank you very much!

this solved my problem (my very old gentoo system now can be updated without the whirlpool error...)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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