Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 169772 (portage-compress) - einfo 'typo' - $blah is bz2, not gz
Summary: einfo 'typo' - $blah is bz2, not gz
Status: RESOLVED FIXED
Alias: portage-compress
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Quality Assurance Team
URL:
Whiteboard:
Keywords: Tracker
: 169874 170939 172427 173160 176564 180594 185990 186242 186511 189178 195678 199982 202506 207373 207688 (view as bug list)
Depends on: 177874 207768 207770 207772 207773 207774 207775 207776 207778 207780 207781 207782 207784 207786 207788 207789 207791 207792 207794 207796 207798 207799 207801 260772 260781 260782 260786 260788 260789 260790 260792 272889 272891 272893 272895 272899 272900 272902 272904 272906 272907 272909 272910 272913 272915 272919 272921 272923 272925 272927 272929 272931 272933 272935 272936 272937 272939 272941 272943 272945
Blocks:
  Show dependency tree
 
Reported: 2007-03-07 14:43 UTC by Ivan Iakoupov
Modified: 2009-07-12 18:28 UTC (History)
13 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Diff file (fvwm-crystal-3.0.4.diff,134 bytes, patch)
2007-03-07 14:45 UTC, Ivan Iakoupov
Details | Diff
devmanual patch (bug169772.patch,966 bytes, patch)
2008-01-15 01:49 UTC, Mark Loeser (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Iakoupov 2007-03-07 14:43:43 UTC
After one of the elog lines states:
"They are listed in /usr/share/doc/${PF}/INSTALL.gz."
However on my system that file is compressed with .bz2 instead
So maybe that line should be:
"They are listed in /usr/share/doc/${PF}/INSTALL.bz2"?

Reproducible: Always
Comment 1 Ivan Iakoupov 2007-03-07 14:45:32 UTC
Created attachment 112420 [details, diff]
Diff file
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-03-07 14:45:42 UTC
man make.conf / PORTAGE_COMPRESS
Comment 3 UncleOwen 2007-03-07 14:59:02 UTC
So what? The message is still wrong.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-03-07 15:38:33 UTC
(In reply to comment #3)
> So what? The message is still wrong.

So what? It will be *still* wrong after you 'fix' it and you set PORTAGE_COMPRESS="gzip" 
Comment 5 UncleOwen 2007-03-07 16:12:21 UTC
Exactly. Now that we've established that - how about a real solution?
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-03-07 16:13:59 UTC
Like, use your brain/common sense? Thanks.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-03-08 09:00:55 UTC
*** Bug 169874 has been marked as a duplicate of this bug. ***
Comment 8 Ivan Iakoupov 2007-03-10 14:33:01 UTC
Hm, I don't even have that varible set in my make.conf (I do have bzip2 USE flag however)
Ok, if one cannot do something smart like:

elog "They are listed in /usr/share/doc/${PF}/INSTALL.${DOC_EXTENSION}."

then what about adding the line:
"NOTE: docs could also be compressed with bzip2"
or something like that.
Then not so experienced users like me will not bug you anymore with this issue (I see there's already a similiar bug)
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-03-10 16:00:50 UTC
(In reply to comment #8)
> elog "They are listed in /usr/share/doc/${PF}/INSTALL.${DOC_EXTENSION}."

Talk about over-engineering...
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2007-03-14 20:52:51 UTC
*** Bug 170939 has been marked as a duplicate of this bug. ***
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2007-03-27 16:13:13 UTC
*** Bug 172427 has been marked as a duplicate of this bug. ***
Comment 12 Paul Healy 2007-03-27 18:10:54 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > elog "They are listed in /usr/share/doc/${PF}/INSTALL.${DOC_EXTENSION}."
> 
> Talk about over-engineering...

# find /usr/portage/ -name '*.ebuild' | xargs egrep -l 'einfo.*share.*gz|elog.*share.*gz'|wc -l
196
#

Lots of potential for duplicate bug reports there.

Some options:
 a) DOC_EXTENSION/over-engineered fix - but only complete fix?
 b) have einfo|elog regsub their arguments - quick hack, complete fix impossible
 c) leave as is - untidy, possible version skew indication
 d) teach gunzip bz2 - :)
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2007-04-04 07:21:34 UTC
*** Bug 173160 has been marked as a duplicate of this bug. ***
Comment 14 Łukasz Damentko (RETIRED) gentoo-dev 2007-04-30 13:32:31 UTC
*** Bug 176564 has been marked as a duplicate of this bug. ***
Comment 15 Marijn Schouten (RETIRED) gentoo-dev 2007-04-30 13:49:26 UTC
reopening to reassign
Comment 16 Marijn Schouten (RETIRED) gentoo-dev 2007-04-30 13:53:52 UTC
Changing severity to normal, since these are not just typos, but documentation errors.
Comment 17 Marius Mauch (RETIRED) gentoo-dev 2007-04-30 16:31:19 UTC
How about just using wildcards:
elog "They are listed in /usr/share/doc/${PF}/INSTALL."*
(assuming we're talking about postinst)
Comment 18 SpanKY gentoo-dev 2007-04-30 17:11:29 UTC
too much overhead for any of these solutions ...

just rewrite the message to not explicitly include the full path:
"They are listed in the INSTALL file in /usr/share/doc/${PF}/"
Comment 19 Jakub Moc (RETIRED) gentoo-dev 2007-06-01 21:22:42 UTC
*** Bug 180594 has been marked as a duplicate of this bug. ***
Comment 20 Jakub Moc (RETIRED) gentoo-dev 2007-07-22 16:14:29 UTC
*** Bug 186242 has been marked as a duplicate of this bug. ***
Comment 21 Jakub Moc (RETIRED) gentoo-dev 2007-07-24 20:20:17 UTC
*** Bug 186511 has been marked as a duplicate of this bug. ***
Comment 22 Martin von Gagern 2007-07-24 20:35:49 UTC
(In reply to comment #21)
> *** Bug 186511 has been marked as a duplicate of this bug. ***

I'm a bit surprised using ".../INSTALL$(ecompress --suffix)" hasn't occured here yet. Anyone thought of that? If so, any reason for not using this? Could there still be portage versions out there that don't have ecompress? In that case you could use ".../INSTALL$(ecompress --suffix 2>/dev/null || echo .gz)". Note that the latest ecompress does cache the suffix, so the overhead will be negligible.
Comment 23 SpanKY gentoo-dev 2007-07-25 04:27:34 UTC
or just make it read "the INSTALL file in /usr/share/doc/${PF}/"

people arent retarded, they can tab complete
Comment 24 Jakub Moc (RETIRED) gentoo-dev 2007-08-17 00:22:55 UTC
*** Bug 189178 has been marked as a duplicate of this bug. ***
Comment 25 Jakub Moc (RETIRED) gentoo-dev 2007-09-04 01:19:00 UTC
*** Bug 185990 has been marked as a duplicate of this bug. ***
Comment 26 Torsten Rehn 2007-09-04 21:01:28 UTC
Maybe this should be added to the "writing ebuilds" docs somewhere. I think it would be best to not reference the complete path and filename explicitly, but rather describe it's location (as vapier suggested in comment #23). Why don't we make this policy and close this bug? 

I understand jakub saying that this is really not worth the overhead it caused, but pointing users to a file that doesn't exist just feels wrong from a QA point of view, even if the correct filename can be found easily.
Comment 27 Jakub Moc (RETIRED) gentoo-dev 2007-10-13 07:41:40 UTC
*** Bug 195678 has been marked as a duplicate of this bug. ***
Comment 28 Jakub Moc (RETIRED) gentoo-dev 2007-11-22 13:41:25 UTC
*** Bug 199982 has been marked as a duplicate of this bug. ***
Comment 29 Jakub Moc (RETIRED) gentoo-dev 2007-12-16 19:33:24 UTC
*** Bug 202506 has been marked as a duplicate of this bug. ***
Comment 30 Mark Loeser (RETIRED) gentoo-dev 2008-01-09 03:01:55 UTC
Okay, so is the Portage team saying that this is too much of a pain and with little gain to add in the ${ECOMPRESS_EXTENSION} or whatever we want to call it?  If that's the case, is everyone in agreement that we will just tell people the directory to look for the files?  "The INSTALL file can be found in /usr/share/i_like_penguins/" ?  If so, then I'll go ahead and start getting something done about this.  I just want to be sure of what everyone's position is before I do anything.  Thanks
Comment 31 SpanKY gentoo-dev 2008-01-09 07:01:09 UTC
yes, rewrite the message
Comment 32 Mark Loeser (RETIRED) gentoo-dev 2008-01-15 01:49:24 UTC
Created attachment 140959 [details, diff]
devmanual patch

How does this sound for documentation on devmanual?
Comment 33 SpanKY gentoo-dev 2008-01-15 02:26:46 UTC
looks sexy, thanks
Comment 34 Samuli Suominen (RETIRED) gentoo-dev 2008-01-19 10:39:42 UTC
Is using `ecompress --suffix` to find out extension for manpages entirely wrong then? I needed this for media-gfx/xloadimage and media-gfx/xli for update_alternatives to symlink manpages correctly. 

If this is wrong, please provide a alternative.
Comment 35 SpanKY gentoo-dev 2008-01-25 12:52:04 UTC
ecompress isnt part of PMS ... it could easily be integrated though as the API should be clean

however, you're talking about internal stuff, not messages displayed to the user.  there still should be no reference to suffixes in messages.
Comment 36 Jakub Moc (RETIRED) gentoo-dev 2008-01-25 13:00:52 UTC
*** Bug 207373 has been marked as a duplicate of this bug. ***
Comment 37 Jakub Moc (RETIRED) gentoo-dev 2008-01-27 15:22:29 UTC
*** Bug 207688 has been marked as a duplicate of this bug. ***
Comment 38 Steev Klimaszewski (RETIRED) gentoo-dev 2008-02-05 16:37:27 UTC
Since these are such simple fixes, why doesn't the QA team just go in and do the fix when they find it?  I realize the whole stepping on toes thing, but come on, this is silly.
Comment 39 Mark Loeser (RETIRED) gentoo-dev 2008-02-05 16:51:27 UTC
(In reply to comment #38)
> Since these are such simple fixes, why doesn't the QA team just go in and do
> the fix when they find it?  I realize the whole stepping on toes thing, but
> come on, this is silly.
> 

We will go and fix them (eventually when I get time), but we want to make maintainers aware of this as well.  I'll be sending something to g-dev/g-dev-announce, since we want to teach people instead of just going and changing things without letting people know why the change is needed.
Comment 40 Carsten Lohrke (RETIRED) gentoo-dev 2008-02-29 13:39:06 UTC
Guys, I disagree with you. (In reply to comment #23)
> people arent retarded, they can tab complete

I'm not so sure about that, but this isn't the point. Not listing the exact file breaks copy and paste for people how like to have a look at the file in question in some specific file viewer, for example. To me it's more about this last bit of exactness/quality Gentoo is lacking constantly. Granted this one is minor issue, but it wouldn't be a big issue to let Portage provide $ECOMPRESS_EXTENSION. The work needed to modify the ebuilds accordingly wouldn't be different to what is happening now.
Comment 41 Jeronimo Zucco 2008-08-04 17:26:47 UTC
(In reply to comment #0)
> After one of the elog lines states:
> "They are listed in /usr/share/doc/${PF}/INSTALL.gz."
> However on my system that file is compressed with .bz2 instead
> So maybe that line should be:
> "They are listed in /usr/share/doc/${PF}/INSTALL.bz2"?
> 
> Reproducible: Always
> 

I would like to suggest other things to put it in DB_CONFIG sample, like:

# http://www.stanford.edu/services/directory/openldap/configuration/bdb-config.html
set_flags DB_LOG_AUTOREMOVE


# http://www.mail-archive.com/openldap-software@openldap.org/msg06940.html 
# http://coreservices.blog.gustavus.edu/2006/05/03/fedora-core-5-and-openldap/
#set_lk_max_locks 2000
#set_lk_max_lockers 2000
#set_lk_max_objects 2000


Comment 42 Mark Loeser (RETIRED) gentoo-dev 2009-05-16 00:40:46 UTC
All done here.
Comment 43 Mike Auty (RETIRED) gentoo-dev 2009-06-06 14:40:35 UTC
Looks like we've got more of these in the tree, reopening...
Comment 44 Mike Auty (RETIRED) gentoo-dev 2009-06-06 15:05:13 UTC
Victor, I've CCed you on this bug, because you've been adding several of these compression bugs.

In the future, could you please just mention on the relevant bug what you're intending to do, and the QA devs can suggest the best way to go about it?  Many of these bugs are being filed to the same people, who'll be a little unhappy at receiving all these emails for effectively the same problem.  It would save both the time of the bug wranglers, and all the devs who have to deal with these bugs.  So next time, please ask for advice and then wait a few days and if you haven't had a reply, then start filing them.

Also, you could always mention the issue on gentoo-dev to try and get some attention.  It's possible someone with free time might have gone through and fixed all the bugs without bothering all these different people...
Comment 45 Mark Loeser (RETIRED) gentoo-dev 2009-07-12 18:28:56 UTC
Its my opinion, for any QA bug like this, to open bugs for each of the maintainers to make them aware of the issue.  Just going and fixing the problem isn't going to educate anyone so they don't reintroduce the same issue again somewhere else.

With that said, all of these are fixed...closing again until we find more :)