Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Keep portage from compressing things on install?
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
ahferroin7
n00b
n00b


Joined: 26 Nov 2014
Posts: 10

PostPosted: Wed Jan 17, 2018 4:33 pm    Post subject: Keep portage from compressing things on install? Reply with quote

A bit of background first: I'm using BTRFS on all my systems, and just switched things to start using the new zstandard transparent file compression support that got added a couple of kernel releases ago. The settings used in-kernel actually give both better compression and better speed than either zlib/gzip or bzip2 with the default options there (no, seriously, I got rid of the gzip compression I've been using for everything in /var/log on my system and it freed up a couple of gigabytes of space). Given this, I would much rather have the transparent compression done by BTRFS do it's job and not manually compress stuff from userspace unless I need it really tiny (in which case I'll probably still use zstandard from userspace, just with significantly more aggressive settings than the kernel uses). TO that end, I've turned off compression in logrotate, ccache, and pretty much everything else on the system that has a switch for this, except for Portage, which brings me to my question.

Is there any way to keep portage from compressing things it would normally compress on installation (such as man pages, texinfo files, stuff in /usr/share/doc, etc) without modifying anything in portage other than configuration. Pretty much, I want to turn the ecmpressdir helper and similar things into a no-op. I know I can obviously just write up a dummy script for PORTAGE_COMPRESS and PORTAGE_BZIP2_COMMAND, but I'm curious if there's some other more elegant way to do it that doesn't require a hacky script to be used.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Wed Jan 17, 2018 5:36 pm    Post subject: Reply with quote

ahferroin7 ...

you may be able to set PORTAGE_COMPRESS="true" and PORTAGE_COMPRESS_FLAGS="" to get a no-op, untested.

HTH & best ... khay
Back to top
View user's profile Send private message
ahferroin7
n00b
n00b


Joined: 26 Nov 2014
Posts: 10

PostPosted: Wed Jan 17, 2018 8:22 pm    Post subject: Reply with quote

khayyam wrote:
ahferroin7 ...

you may be able to set PORTAGE_COMPRESS="true" and PORTAGE_COMPRESS_FLAGS="" to get a no-op, untested.

HTH & best ... khay


Yep, this works perfectly! I can't believe I didn't think of it.
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