public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] How to prevent documentation in /usr/share/doc from being bzip2'ed ?
@ 2008-10-30 13:43 Ashish Shukla आशीष शुक्ल
  2008-10-30 14:01 ` Albert Hopkins
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Ashish Shukla आशीष शुक्ल @ 2008-10-30 13:43 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 494 bytes --]

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

[-- Attachment #2: Type: application/pgp-signature, Size: 196 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [gentoo-user] How to prevent documentation in /usr/share/doc from being bzip2'ed ?
  2008-10-30 13:43 [gentoo-user] How to prevent documentation in /usr/share/doc from being bzip2'ed ? Ashish Shukla आशीष शुक्ल
@ 2008-10-30 14:01 ` Albert Hopkins
  2008-10-30 14:02 ` Daniel Pielmeier
  2008-10-30 22:50 ` Iain Buchanan
  2 siblings, 0 replies; 17+ messages in thread
From: Albert Hopkins @ 2008-10-30 14:01 UTC (permalink / raw
  To: gentoo-user

On Thu, 2008-10-30 at 19:13 +0530, Ashish Shukla आशीष शुक्ल wrote:
> 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...?


See the PORTAGE_COMPRESS* variables in the make.conf man page.  I
typically use

   PORTAGE_COMPRESS=""

HTH,
-a





^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [gentoo-user] How to prevent documentation in /usr/share/doc from being bzip2'ed ?
  2008-10-30 13:43 [gentoo-user] How to prevent documentation in /usr/share/doc from being bzip2'ed ? Ashish Shukla आशीष शुक्ल
  2008-10-30 14:01 ` Albert Hopkins
@ 2008-10-30 14:02 ` Daniel Pielmeier
  2008-10-30 22:24   ` Ashish Shukla आशीष शुक्ल
  2008-10-30 22:50 ` Iain Buchanan
  2 siblings, 1 reply; 17+ messages in thread
From: Daniel Pielmeier @ 2008-10-30 14:02 UTC (permalink / raw
  To: gentoo-user

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

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [gentoo-user] How to prevent documentation in /usr/share/doc from being bzip2'ed ?
  2008-10-30 14:02 ` Daniel Pielmeier
@ 2008-10-30 22:24   ` Ashish Shukla आशीष शुक्ल
  2008-10-30 22:55     ` Albert Hopkins
  0 siblings, 1 reply; 17+ messages in thread
From: Ashish Shukla आशीष शुक्ल @ 2008-10-30 22:24 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 6497 bytes --]

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

[-- Attachment #2: Type: application/pgp-signature, Size: 196 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [gentoo-user] How to prevent documentation in /usr/share/doc from being bzip2'ed ?
  2008-10-30 13:43 [gentoo-user] How to prevent documentation in /usr/share/doc from being bzip2'ed ? Ashish Shukla आशीष शुक्ल
  2008-10-30 14:01 ` Albert Hopkins
  2008-10-30 14:02 ` Daniel Pielmeier
@ 2008-10-30 22:50 ` Iain Buchanan
  2008-10-30 23:48   ` Ashish Shukla आशीष शुक्ल
  2008-10-31  0:40   ` felix
  2 siblings, 2 replies; 17+ messages in thread
From: Iain Buchanan @ 2008-10-30 22:50 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [gentoo-user] How to prevent documentation in /usr/share/doc from being bzip2'ed ?
  2008-10-30 22:24   ` Ashish Shukla आशीष शुक्ल
@ 2008-10-30 22:55     ` Albert Hopkins
  2008-10-30 23:39       ` Eric Martin
  2008-10-30 23:51       ` Ashish Shukla आशीष शुक्ल
  0 siblings, 2 replies; 17+ messages in thread
From: Albert Hopkins @ 2008-10-30 22:55 UTC (permalink / raw
  To: gentoo-user


> ,----
> | % 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.




^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [gentoo-user] How to prevent documentation in /usr/share/doc from being bzip2'ed ?
  2008-10-30 22:55     ` Albert Hopkins
@ 2008-10-30 23:39       ` Eric Martin
  2008-10-31  0:12         ` Neil Bothwick
  2008-10-31  0:38         ` felix
  2008-10-30 23:51       ` Ashish Shukla आशीष शुक्ल
  1 sibling, 2 replies; 17+ messages in thread
From: Eric Martin @ 2008-10-30 23:39 UTC (permalink / raw
  To: gentoo-user

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.
>
>
>



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [gentoo-user] How to prevent documentation in /usr/share/doc from being bzip2'ed ?
  2008-10-30 22:50 ` Iain Buchanan
@ 2008-10-30 23:48   ` Ashish Shukla आशीष शुक्ल
  2008-10-31  2:50     ` Iain Buchanan
  2008-10-31  0:40   ` felix
  1 sibling, 1 reply; 17+ messages in thread
From: Ashish Shukla आशीष शुक्ल @ 2008-10-30 23:48 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 952 bytes --]

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

[-- Attachment #2: Type: application/pgp-signature, Size: 196 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [gentoo-user] How to prevent documentation in /usr/share/doc from being bzip2'ed ?
  2008-10-30 22:55     ` Albert Hopkins
  2008-10-30 23:39       ` Eric Martin
@ 2008-10-30 23:51       ` Ashish Shukla आशीष शुक्ल
  1 sibling, 0 replies; 17+ messages in thread
From: Ashish Shukla आशीष शुक्ल @ 2008-10-30 23:51 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1211 bytes --]

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

[-- Attachment #2: Type: application/pgp-signature, Size: 196 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [gentoo-user] How to prevent documentation in /usr/share/doc from being bzip2'ed ?
  2008-10-30 23:39       ` Eric Martin
@ 2008-10-31  0:12         ` Neil Bothwick
  2008-10-31  0:38         ` felix
  1 sibling, 0 replies; 17+ messages in thread
From: Neil Bothwick @ 2008-10-31  0:12 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 234 bytes --]

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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [gentoo-user] How to prevent documentation in /usr/share/doc from being bzip2'ed ?
  2008-10-30 23:39       ` Eric Martin
  2008-10-31  0:12         ` Neil Bothwick
@ 2008-10-31  0:38         ` felix
  2008-10-31  5:49           ` Paul Hartman
  2008-10-31 10:24           ` Neil Bothwick
  1 sibling, 2 replies; 17+ messages in thread
From: felix @ 2008-10-31  0:38 UTC (permalink / raw
  To: gentoo-user

On Thu, Oct 30, 2008 at 07:39:10PM -0400, Eric Martin wrote:
> Why not go even easier and use bzcat,bzless,zcat,and zless

Because bzgrep and many others haven't been written.

-- 
            ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
     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



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [gentoo-user] How to prevent documentation in /usr/share/doc from being bzip2'ed ?
  2008-10-30 22:50 ` Iain Buchanan
  2008-10-30 23:48   ` Ashish Shukla आशीष शुक्ल
@ 2008-10-31  0:40   ` felix
  2008-10-31  2:23     ` Andrey Falko
  1 sibling, 1 reply; 17+ messages in thread
From: felix @ 2008-10-31  0:40 UTC (permalink / raw
  To: gentoo-user

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?

-- 
            ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
     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



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [gentoo-user] How to prevent documentation in /usr/share/doc from being bzip2'ed ?
  2008-10-31  0:40   ` felix
@ 2008-10-31  2:23     ` Andrey Falko
  2008-10-31  5:42       ` felix
  0 siblings, 1 reply; 17+ messages in thread
From: Andrey Falko @ 2008-10-31  2:23 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1055 bytes --]

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
>
>

[-- Attachment #2: Type: text/html, Size: 1718 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [gentoo-user] How to prevent documentation in /usr/share/doc from being bzip2'ed ?
  2008-10-30 23:48   ` Ashish Shukla आशीष शुक्ल
@ 2008-10-31  2:50     ` Iain Buchanan
  0 siblings, 0 replies; 17+ messages in thread
From: Iain Buchanan @ 2008-10-31  2:50 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [gentoo-user] How to prevent documentation in /usr/share/doc from being bzip2'ed ?
  2008-10-31  2:23     ` Andrey Falko
@ 2008-10-31  5:42       ` felix
  0 siblings, 0 replies; 17+ messages in thread
From: felix @ 2008-10-31  5:42 UTC (permalink / raw
  To: gentoo-user

On Thu, Oct 30, 2008 at 07:23:09PM -0700, Andrey Falko wrote:

> 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

Sorry, not good enough.  The disk space taken by uncompressed docs is
hardly significant these days, and grep -r is too handy to have to
live with shell programming just because part of the disk is compressed.

-- 
            ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
     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



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [gentoo-user] How to prevent documentation in /usr/share/doc from being bzip2'ed ?
  2008-10-31  0:38         ` felix
@ 2008-10-31  5:49           ` Paul Hartman
  2008-10-31 10:24           ` Neil Bothwick
  1 sibling, 0 replies; 17+ messages in thread
From: Paul Hartman @ 2008-10-31  5:49 UTC (permalink / raw
  To: gentoo-user

On Thu, Oct 30, 2008 at 7:38 PM,  <felix@crowfix.com> wrote:
> On Thu, Oct 30, 2008 at 07:39:10PM -0400, Eric Martin wrote:
>> Why not go even easier and use bzcat,bzless,zcat,and zless
>
> Because bzgrep and many others haven't been written.

http://www.bzip.org/bzip2-howto/with-grep.html



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [gentoo-user] How to prevent documentation in /usr/share/doc  from being bzip2'ed ?
  2008-10-31  0:38         ` felix
  2008-10-31  5:49           ` Paul Hartman
@ 2008-10-31 10:24           ` Neil Bothwick
  1 sibling, 0 replies; 17+ messages in thread
From: Neil Bothwick @ 2008-10-31 10:24 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 502 bytes --]

On Thu, 30 Oct 2008 17:38:55 -0700, felix@crowfix.com wrote:

> On Thu, Oct 30, 2008 at 07:39:10PM -0400, Eric Martin wrote:
> > Why not go even easier and use bzcat,bzless,zcat,and zless
> 
> Because bzgrep and many others haven't been written.

Shhh, don't tell my computer that!

[nelz@krikkit ~ 0]% which bzgrep
/usr/bin/bzgrep
[nelz@krikkit ~ 0]% qfile bzgrep
app-arch/bzip2 (/usr/bin/bzgrep)


-- 
Neil Bothwick

"Bother," said Pooh, as the media exposed his sexual depravity.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2008-10-31 10:24 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-30 13:43 [gentoo-user] How to prevent documentation in /usr/share/doc from being bzip2'ed ? Ashish Shukla आशीष शुक्ल
2008-10-30 14:01 ` Albert Hopkins
2008-10-30 14:02 ` Daniel Pielmeier
2008-10-30 22:24   ` Ashish Shukla आशीष शुक्ल
2008-10-30 22:55     ` Albert Hopkins
2008-10-30 23:39       ` Eric Martin
2008-10-31  0:12         ` Neil Bothwick
2008-10-31  0:38         ` felix
2008-10-31  5:49           ` Paul Hartman
2008-10-31 10:24           ` Neil Bothwick
2008-10-30 23:51       ` Ashish Shukla आशीष शुक्ल
2008-10-30 22:50 ` Iain Buchanan
2008-10-30 23:48   ` Ashish Shukla आशीष शुक्ल
2008-10-31  2:50     ` Iain Buchanan
2008-10-31  0:40   ` felix
2008-10-31  2:23     ` Andrey Falko
2008-10-31  5:42       ` felix

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox