| View previous topic :: View next topic |
| Author |
Message |
s4e8 Apprentice

Joined: 29 Jul 2006 Posts: 163
|
Posted: Sat Jan 19, 2013 12:59 am Post subject: How to disable WHIRLPOOL checksum |
|
|
| 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 |
|
 |
megabaks Tux's lil' helper


Joined: 22 Jan 2012 Posts: 105
|
Posted: Sat Jan 19, 2013 6:12 am Post subject: |
|
|
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 |
|
 |
s4e8 Apprentice

Joined: 29 Jul 2006 Posts: 163
|
Posted: Sat Jan 19, 2013 12:20 pm Post subject: |
|
|
| 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 |
|
 |
syn0ptik Apprentice


Joined: 09 Jan 2013 Posts: 176
|
Posted: Mon Jan 28, 2013 5:35 am Post subject: |
|
|
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 |
|
 |
yngwin Developer


Joined: 19 Dec 2002 Posts: 4389 Location: Suzhou, China
|
Posted: Mon Jan 28, 2013 7:55 am Post subject: |
|
|
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 |
|
 |
syn0ptik Apprentice


Joined: 09 Jan 2013 Posts: 176
|
Posted: Mon Jan 28, 2013 8:13 am Post subject: |
|
|
but then how can I'm change package and install it.
| Code: | | PORTAGE_CHECKSUM_FILTER="-whirlpool -sha256 -sha512" |
anyway |
|
| Back to top |
|
 |
The Doctor l33t


Joined: 27 Jul 2010 Posts: 947
|
Posted: Mon Jan 28, 2013 8:19 am Post subject: |
|
|
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 |
|
 |
syn0ptik Apprentice


Joined: 09 Jan 2013 Posts: 176
|
Posted: Mon Jan 28, 2013 8:47 am Post subject: |
|
|
| no, changing dependency painful, so I still decided to update existence. |
|
| Back to top |
|
 |
Veldrin Veteran


Joined: 27 Jul 2004 Posts: 1931 Location: Zurich, Switzerland
|
Posted: Mon Jan 28, 2013 11:20 am Post subject: |
|
|
| 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 short, just ask for an explanation. |
|
| Back to top |
|
 |
|