All of lore.kernel.org
 help / color / mirror / Atom feed
From: mds@paradyne.com (Mark D. Studebaker )
To: lm-sensors@vger.kernel.org
Subject: /lib/modules/$(KERNELVER)/kernel/drivers/sensors left empty
Date: Thu, 19 May 2005 06:24:00 +0000	[thread overview]
Message-ID: <3EEB7616.8070607@paradyne.com> (raw)
In-Reply-To: <20030608202401.60d0cec0.khali@linux-fr.org>

I put gz removal and directory solution #2 in both sensors and i2c.
please test.

Jean Delvare wrote:
>>>I noticed that when upgrading from an old lm_sensors to CVS, modules
>>>are installed to /lib/modules/$(KERNELVER)/kernel/drivers/i2c
>>>instead of/lib/modules/$(KERNELVER)/kernel/drivers/sensors. Old
>>>modules are removed, but the directory itself isn't. Shouldn't we
>>>delete it as well? Or could possibly be there something that doesn't
>>>belong to us?
>>>
>>>Also, modules are removed if and only if they are uncompressed.
>>>.o.gz(do .o.bz2 exist?) modules are not. I know we don't compress
>>>modules, but maybe removing any existing module could solve possible
>>>issues before they arise. Comments on this would be welcome.
>>
>>good questions.
>>I don't know if either problem is worth solving.
>>The first problem is harmless but the second one could cause trouble.
>>What installation procedure compresses modules - it is a Red Hat thing
>>or something? How common is this?
> 
> 
> On the other hand, both problem are easy to fix, methinks (yeah, you
> always say that *before* trying, and only later understand how painful
> it will be).
> 
> For the empty directory thing, I suggest one of the following solutions:
> 1* "rmdir --ignore-fail-on-non-empty $DIR". It's clean, but will fail
> before fileutils-4.0.
> 2* "rmdir $DIR 2> /dev/null || true". Does the same, will work
> everywhere.
> 3* "if [ "$(ls -A $dir)" = '' ] ; then rmdir $dir ; fi". Probably
> cleaner than 2*, more flexible (we can add a warning if the directory
> isn't empty) but slower.
> My preference go to 2*. Simple and efficient.
> 
> Compressing modules is a common practice among distributions. Slackware
> does it (that's why I noticed the problem), I was told Mandrake does it
> too, but Debian and Red Hat wouldn't. I think there are only few risks
> this ever cause a problem because a non-compressed (that is, our) module
> will be prefered over a compressed (that is, their) module. But anyway,
> removing the old modules frees some disk space, and probably quickens
> subsequent depmods. And removing compressed modules is rather easy, so I
> think we should do it.
> 

      parent reply	other threads:[~2005-05-19  6:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-19  6:23 /lib/modules/$(KERNELVER)/kernel/drivers/sensors left empty Jean Delvare
2005-05-19  6:23 ` Mark D. Studebaker 
2005-05-19  6:23 ` Jean Delvare
2005-05-19  6:24 ` Mark D. Studebaker  [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3EEB7616.8070607@paradyne.com \
    --to=mds@paradyne.com \
    --cc=lm-sensors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.