FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 10-30-2008, 12:43 PM
 
Default How to prevent documentation in /usr/share/doc from being bzip2'ed ?

Hi all

While trying to lookup XCB API documentation (
/usr/share/doc/libxcb/manual/ ), I noticed that it is compressed, now
I'm wondering is there anyway to install that documentation in the
decompressed form, hmm...?

Thanks
Ashish Shukla
--
() ascii ribbon campaign - against HTML e-mail
/ www.asciiribbon.org - against proprietary attachments
·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
% dig +short cname cdac.in @::1
ms.gov.in
 
Old 10-30-2008, 01:02 PM
"Daniel Pielmeier"
 
Default How to prevent documentation in /usr/share/doc from being bzip2'ed ?

2008/10/30 Ashish Shukla आशीष शुक्ल <wahjava.ml@gmail.com>:
> While trying to lookup XCB API documentation (
> /usr/share/doc/libxcb/manual/ ), I noticed that it is compressed, now
> I'm wondering is there anyway to install that documentation in the
> decompressed form, hmm...?

I tink there is the PORTAGE_COMPRESS variable.

Set PORTAGE_COMPRESS="" in make.conf and portage will not compress
documentation.

There is also PORTAGE_COMPRESS_EXCLUDE_SUFFIXES which you can extend
to your needs. Currently it defaults to
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"

--
Regards,
Daniel
 
Old 10-30-2008, 09:24 PM
 
Default How to prevent documentation in /usr/share/doc from being bzip2'ed ?

Thanks Albert and Daniel for the replies.

Daniel Pielmeier writes:
> 2008/10/30 Ashish Shukla आशीष शुक्ल <wahjava.ml@gmail.com>:
>> While trying to lookup XCB API documentation (
>> /usr/share/doc/libxcb/manual/ ), I noticed that it is compressed, now
>> I'm wondering is there anyway to install that documentation in the
>> decompressed form, hmm...?

> I tink there is the PORTAGE_COMPRESS variable.

> Set PORTAGE_COMPRESS="" in make.conf and portage will not compress
> documentation.

> There is also PORTAGE_COMPRESS_EXCLUDE_SUFFIXES which you can extend
> to your needs. Currently it defaults to
> PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"

,----
| % emerge --info libxcb
| Portage 2.2_rc12 (default/linux/amd64/2008.0/no-multilib, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r7 x86_64)
| ================================================== ===============
| System Settings
| ================================================== ===============
| System uname: Linux-2.6.25-gentoo-r7-x86_64-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-glibc2.2.5
| Timestamp of tree: Tue, 28 Oct 2008 16:45:01 +0000
| distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
| ccache version 2.4 [enabled]
| app-shells/bash: 3.2_p33
| dev-java/java-config: 1.3.7, 2.1.6
| dev-lang/python: 2.4.4-r13, 2.5.2-r7
| dev-python/pycrypto: 2.0.1-r6
| dev-util/ccache: 2.4-r7
| dev-util/cmake: 2.6.2
| sys-apps/baselayout: 2.0.0
| sys-apps/openrc: 0.3.0-r1
| sys-apps/sandbox: 1.2.18.1-r2
| sys-devel/autoconf: 2.13, 2.61-r2
| sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
| sys-devel/binutils: 2.18-r3
| sys-devel/gcc-config: 1.4.0-r4
| sys-devel/libtool: 1.5.26
| virtual/os-headers: 2.6.23-r3
| ACCEPT_KEYWORDS="amd64"
| CBUILD="x86_64-pc-linux-gnu"
| CFLAGS="-O2 -pipe -fforce-addr -mtune=nocona -march=nocona -mmmx -msse2 -msse3 -ggdb"
| CHOST="x86_64-pc-linux-gnu"
| CONFIG_PROTECT="/etc /opt/openjms/config /usr/share/config /var/bind"
| CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d
| /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release
| /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
| CXXFLAGS="-O2 -pipe -fforce-addr -mtune=nocona -march=nocona -mmmx -msse2 -msse3 -ggdb"
| DISTDIR="/usr/portage/distfiles"
| FEATURES="buildpkg ccache collision-protect distlocks fakeroot
| fixpackages metadata-transfer parallel-fetch preserve-libs protect-owned
| sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv
| usersandbox"
| GENTOO_MIRRORS="http://mirror.cambrium.nl/pub/os/linux/gentoo/
| ftp://mirror.cambrium.nl/pub/os/linux/gentoo/ http://mirror.gentoo.no/
| ftp://mirror.bih.net.ba/gentoo/ ftp://mirrors.ludost.net/gentoo/"
| LANG="en_US.UTF-8"
| LC_ALL="en_US.UTF-8"
| LDFLAGS="-Wl,--hash-style,both"
| LINGUAS="hi en en_US"
| MAKEOPTS="-j3"
| PKGDIR="/usr/portage/packages"
| PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
| --compress --force --whole-file --delete --stats --timeout=180
| --exclude=/distfiles --exclude=/local --exclude=/packages"
| PORTAGE_TMPDIR="/var/tmp"
| PORTDIR="/usr/portage"
| PORTDIR_OVERLAY="/usr/portage/local/layman/perl-experimental
| /usr/portage/local/layman/sunrise /usr/portage/local/layman/emacs
| /usr/portage/local/layman/xemacs /usr/portage/local/layman/haskell
| /usr/local/portage"
| SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage"
| USE="X a52 aac accessibility acl acpi alsa amd64 ao artworkextra
| audiofile avahi bash-completion berkdb bluetooth branding bzip2 cairo
| caps cdr cli cracklib crypt cscope cups curl dbus dirac djvu doc dri dvd
| dvdr emacs exif ffmpeg flac fontconfig fortran gdbm gif gnome
| gnome-keyring gpm gstreamer gtk gtkhtml guile hal hashstyle htmlhandbook
| iconv idn imlib ipv6 isdnlog jingle jpeg jpeg2k kde latex lcms ldap
| libcaca libffi libnotify libsamplerate loop-aes lzma mad maildir midi
| mmx mp3 mpeg mudflap musepack mysql ncurses networkmanager nls nntp nptl
| nptlonly offensive ogg opengl openmp pam pango pcre perl plasma png
| policykit postgres pppd pth pulseaudio python qt4 readline reflection
| ruby schroedinger sdl session sndfile speex spell spl sqlite3 sse sse2
| ssl startup-notification svg sysfs tcl tcpd tetex tex theora tiff
| truetype unicode urandom vim-syntax vnc vorbis xattr xcb xcomposite xfce
| xft xinetd xorg xscreensaver xulrunner xv zeroconf zlib"
| ALSA_CARDS="hda-intel ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy
| dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat
| linear meter mmap_emul mulaw multi null plug rate route share shm
| softvol" APACHE2_MODULES="actions alias auth_basic authn_alias
| authn_anon authn_dbm authn_default authn_file authz_dbm authz_default
| authz_groupfile authz_host authz_owner authz_user autoindex cache dav
| dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache
| filter headers include info log_config logio mem_cache mime mime_magic
| negotiation rewrite setenvif speling status unique_id userdir usertrack
| vhost_alias" CAMERAS="spca50x" ELIBC="glibc" INPUT_DEVICES="evdev
| keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk
| hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="hi en en_US"
| USERLAND="GNU" VIDEO_CARDS="intel v4l vesa dummy"
| Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK,
| PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
|
| ================================================== ===============
| Package Settings
| ================================================== ===============
| x11-libs/libxcb-1.1 was built with the following:
| CFLAGS="-O2 -g -ggdb -march=nocona -mtune=nocona -pipe"
| CXXFLAGS="-O2 -g -ggdb -march=nocona -mtune=nocona -pipe"
|
| >>> Attempting to run pkg_info() for 'x11-libs/libxcb-1.1'
| * Adjusting permissions for FEATURES=userpriv: '/tmp/tmpdY9i9w/ccache'
| * pkg_info() is not defined: 'libxcb-1.1.ebuild'
`----

Any ideas why PORTAGE_COMPRESS_* aren't set on my box. BtW, how do I see
what PORTAGE_COMPRESS_EXCLUDE_SUFFIXES is set to.

Thanks in advance,
Ashish Shukla
--
() ascii ribbon campaign - against HTML e-mail
/ www.asciiribbon.org - against proprietary attachments
·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
% dig +short cname cdac.in @::1
ms.gov.in
 
Old 10-30-2008, 09:50 PM
Iain Buchanan
 
Default How to prevent documentation in /usr/share/doc from being bzip2'ed ?

Ashish Shukla आशीष शुक्ल wrote:

Hi all

While trying to lookup XCB API documentation (
/usr/share/doc/libxcb/manual/ ), I noticed that it is compressed, now
I'm wondering is there anyway to install that documentation in the
decompressed form, hmm...?


why?

less /usr/share/doc/libxcb/manual/blah.doc.bz2
cat /usr/share/doc/libxcb/manual/blah.doc.bz2 | bzip2 -d
cp /usr/share/doc/libxcb/manual/blah.doc.bz2 ~/; bzip2 -d ~/blah.doc.bz2

--
Iain Buchanan <iaindb at netspace dot net dot au>

One thing they don't tell you about doing experimental physics is that
sometimes you must work under adverse conditions... like a state of
sheer terror.

-- W.K. Hartmann
 
Old 10-30-2008, 10:39 PM
"Eric Martin"
 
Default How to prevent documentation in /usr/share/doc from being bzip2'ed ?

Why not go even easier and use bzcat,bzless,zcat,and zless

On 10/30/08, Albert Hopkins <marduk@letterboxes.org> wrote:
>
>> ,----
>> | % emerge --info libxcb
>> | Portage 2.2_rc12 (default/linux/amd64/2008.0/no-multilib, gcc-4.1.2,
>> glibc-2.6.1-r0, 2.6.25-gentoo-r7 x86_64)
> [blah]
>
>> Any ideas why PORTAGE_COMPRESS_* aren't set on my box.
>
> Because you haven't set them. Therefore they take the defaults. BTW,
> 'emerge --info' doesn't print out every portage variable, only the
> "interesting" ones (e.g. ones useful for submitting bug reports).
>
>> BtW, how do I see
>> what PORTAGE_COMPRESS_EXCLUDE_SUFFIXES is set to.
>
> # cat /etc/make.conf /etc/make.globals /etc/make.profile/make.defaults
> |grep -m 1 ^PORTAGE_COMPRESS_EXCLUDE_SUFFIXES
>
> Also the man page for make.conf lists many common defaults.
>
>
>
 
Old 10-30-2008, 10:48 PM
 
Default How to prevent documentation in /usr/share/doc from being bzip2'ed ?

Iain Buchanan writes:
> Ashish Shukla आशीष शुक्ल wrote:
>> Hi all
>>
>> While trying to lookup XCB API documentation (
>> /usr/share/doc/libxcb/manual/ ), I noticed that it is compressed, now
>> I'm wondering is there anyway to install that documentation in the
>> decompressed form, hmm...?

> why?

> less /usr/share/doc/libxcb/manual/blah.doc.bz2
> cat /usr/share/doc/libxcb/manual/blah.doc.bz2 | bzip2 -d
> cp /usr/share/doc/libxcb/manual/blah.doc.bz2 ~/; bzip2 -d ~/blah.doc.bz2

I know how to view and decompress compressed-files, but I don't want to
decompress file and but then after decompressing, I'll lose the ability
to track the file from portage's database.

Ashish
--
() ascii ribbon campaign - against HTML e-mail
/ www.asciiribbon.org - against proprietary attachments
·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
% dig +short cname cdac.in @::1
ms.gov.in
 
Old 10-30-2008, 10:51 PM
 
Default How to prevent documentation in /usr/share/doc from being bzip2'ed ?

Albert Hopkins writes:

>> ,----
>> | % emerge --info libxcb
>> | Portage 2.2_rc12 (default/linux/amd64/2008.0/no-multilib, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r7 x86_64)
> [blah]

>> Any ideas why PORTAGE_COMPRESS_* aren't set on my box.

> Because you haven't set them. Therefore they take the defaults. BTW,
> 'emerge --info' doesn't print out every portage variable, only the
> "interesting" ones (e.g. ones useful for submitting bug reports).

>> BtW, how do I see
>> what PORTAGE_COMPRESS_EXCLUDE_SUFFIXES is set to.

> # cat /etc/make.conf /etc/make.globals /etc/make.profile/make.defaults
> |grep -m 1 ^PORTAGE_COMPRESS_EXCLUDE_SUFFIXES

Yes, PORTAGE_COMPRESS_EXCLUDE_SUFFIXES is set to that default. Thanks
for mentioning this. Anyways, re-emerging libxcb fixes the issue for
me. Maybe it is some bug in old portage version (which I used when I
emerged libxcb), as I recently upgraded to 2.2_rc12 to have KDE 4.1.2.

Thanks
Ashish Shukla
--
() ascii ribbon campaign - against HTML e-mail
/ www.asciiribbon.org - against proprietary attachments
·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
% dig +short cname cdac.in @::1
ms.gov.in
 
Old 10-30-2008, 11:12 PM
Neil Bothwick
 
Default How to prevent documentation in /usr/share/doc from being bzip2'ed ?

On Thu, 30 Oct 2008 19:39:10 -0400, Eric Martin wrote:

> Why not go even easier and use bzcat,bzless,zcat,and zless

On HTML documentation?


--
Neil Bothwick

Bury a lawyer 12 feet under, because deep down they're nice.
 
Old 10-31-2008, 01:23 AM
"Andrey Falko"
 
Default How to prevent documentation in /usr/share/doc from being bzip2'ed ?

On Thu, Oct 30, 2008 at 5:40 PM, <felix@crowfix.com> wrote:

On Fri, Oct 31, 2008 at 08:20:40AM +0930, Iain Buchanan wrote:



> less /usr/share/doc/libxcb/manual/blah.doc.bz2

> cat /usr/share/doc/libxcb/manual/blah.doc.bz2 | bzip2 -d

> cp /usr/share/doc/libxcb/manual/blah.doc.bz2 ~/; bzip2 -d ~/blah.doc.bz2



and grep?You don't need bzgrep or what ever....just bzcat /ab/def/sd/blah.bz2 | grep yay

Or if you want to use the cases above, a "| grep yay" should be more than enough...plus you get the colors in the results.


It does get a little annoying when you want to use grep for all files in the directory, but nothing a little for loop cannot fix:

for i in /path/to/dir/*; do echo $i; bzcat $i | grep yay; done





--

* * * * * *... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.

* * Felix Finch: scarecrow repairman & rocket surgeon / felix@crowfix.com

*GPG = E987 4493 C860 246C 3B1E *6477 7838 76E9 182E 8151 ITAR license #4933

I've found a solution to Fermat's Last Theorem but I see I've run out of room o
 
Old 10-31-2008, 01:50 AM
Iain Buchanan
 
Default How to prevent documentation in /usr/share/doc from being bzip2'ed ?

Ashish Shukla आशीष शुक्ल wrote:

Iain Buchanan writes:

Ashish Shukla आशीष शुक्ल wrote:

Hi all

While trying to lookup XCB API documentation (
/usr/share/doc/libxcb/manual/ ), I noticed that it is compressed, now
I'm wondering is there anyway to install that documentation in the
decompressed form, hmm...?



why?



less /usr/share/doc/libxcb/manual/blah.doc.bz2
cat /usr/share/doc/libxcb/manual/blah.doc.bz2 | bzip2 -d
cp /usr/share/doc/libxcb/manual/blah.doc.bz2 ~/; bzip2 -d ~/blah.doc.bz2


I know how to view and decompress compressed-files, but I don't want to
decompress file and but then after decompressing, I'll lose the ability
to track the file from portage's database.


I still don't understand - if you know how to view a compressed file
"without" decompressing it, then what do you want to decompress it for?


--
Iain Buchanan <iaindb at netspace dot net dot au>

"Any excuse will serve a tyrant."
-- Aesop
 

Thread Tools




All times are GMT. The time now is 10:40 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org