Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9343 - mixed indentation styles in eclass files
Summary: mixed indentation styles in eclass files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-19 12:30 UTC by Nicolas Kaiser
Modified: 2002-11-01 18:38 UTC (History)
18 users (show)

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


Attachments
eclass whitespaces (eclass.patch,34.22 KB, patch)
2002-10-19 12:31 UTC, Nicolas Kaiser
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Kaiser 2002-10-19 12:30:10 UTC
Toying with lintool I noticed that a couple of eclass files use mixed styles  
of indentation.  
The attached patch tries to address this using whitespaces that are considered  
legal by lintool, and partially increasing readability.
Comment 1 Nicolas Kaiser 2002-10-19 12:31:59 UTC
Created attachment 4824 [details, diff]
eclass whitespaces
Comment 2 SpanKY gentoo-dev 2002-10-19 14:39:54 UTC
ill leave this up to each eclass author ... 
 
guys: clean up your stuff ? :) 
 
if you need, ill do the identing for you (unless you dont want it done ...) 
Comment 3 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-10-19 18:47:42 UTC
As cat eclass/java.eclass | sed "s/\t/\./g" clearly shows, my indentation is
flawless (so says lintool [it special cases to saying "all is okay" on code for
which I am the author, obviously]), so I urge all you guys to follow suit and
become perfect developers as well.

(In case anybody missed the obvious: the above is pure bullcrap. If you _didn't_
laugh the first time, you have what could be referred to as healthy humour.)
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2002-10-19 23:05:58 UTC
karl:  check the set_java_env() and install_mozilla_plugin() .. except if
       you fixed it in the mean time :P


Anyhow, I do not see a problem with the ones I did, as they all use tabs
to do indenting.  For the record, they are:

  autotools.eclass
  gcc.eclass
  libtool.eclass
  virtualx.eclass
Comment 5 Seemant Kulleen (RETIRED) gentoo-dev 2002-10-20 01:45:37 UTC
the perl-module and perl-post and commonbox eclasss seem fine to me...

they are all tab indented.
Comment 6 Nicolas Kaiser 2002-10-20 05:06:48 UTC
Sorry, this is what I did:

lintool --show-details /usr/portage/eclass/autotools.eclass|grep -e 'illegal
space' -e ' |%'

- (W) Has illegal space characters (marked by %):
 |%%%%%%%%%./configure --prefix=${AUTO_D} \
 |%%%%%%%%emake || die "!!! Failed to build automake !!!"
 |%%%%%%%%make install || die "!!! Failed to install automake !!!"

lintool --show-details /usr/portage/eclass/libtool.eclass|grep -e 'illegal
space' -e ' |%'

- (W) Has illegal space characters (marked by %):
 |%%%%retval=$?
 |%%%%if [ "${1}" != "--test" ] && [ "${retval}" -eq 0 ]
 |%%%%then
 |%%%%%%%%cp ltmain.sh ltmain.sh.orig
 |%%%%%%%%sed -e 's:cd `pwd`; $SHELL $0 --mode=relink $libtool_args:cd `pwd`;
$SHELL $0 --mode=relink $libtool_args @inst_prefix_dir@:' \
 |%%%%%%%%%%%%ltmain.sh.orig > ltmain.sh
 |%%%%%%%%rm -f ltmain.sh.orig
 |%%%%fi
 |%%%%return ${retval}
Comment 7 Dan Armak (RETIRED) gentoo-dev 2002-10-20 17:05:07 UTC
Mine probably have problems along this line since I use stuff like mcedit which isn't  nice on tabs at all. Will fix...  
Comment 8 Dan Armak (RETIRED) gentoo-dev 2002-10-29 15:36:56 UTC
I've fixed all of mine eclasses.