[sane-devel] Build system issues.

Olaf Meeuwissen olaf.meeuwissen at avasys.jp
Fri Feb 27 01:36:40 UTC 2009


"m. allan noah" <kitno455 at gmail.com> writes:

> On Thu, Feb 26, 2009 at 6:23 PM, Olaf Meeuwissen
> <olaf.meeuwissen at avasys.jp> wrote:
>> "m. allan noah" <kitno455 at gmail.com> writes:
>>
>>> On Sun, Feb 22, 2009 at 2:06 PM, Chris Bagwell <chris at cnpbagwell.com> wrote:
>>>> m. allan noah wrote:
>>>>>
>>>>> it's not just that it leaves the links behind, it actually makes the
>>>>> links to 1.0.19, even when 1.1.0 is also installed.
>>>>>
>>>> Couldn't find any documentation related to what libtool behaviour should be
>>>> in tihs area.
>>>>
>>>> I just now installed sane 1.0.19 tarball into a private directory and then
>>>> installed current CVS on top of it.  The behaviour I got seems to be the
>>>> behaviour you want.  In the end, all symlinks were updated and pointed to
>>>> latest so.  I had the following in ${prefix}/lib and other backends followed
>>>> same behaviour.
>>>>
>>>> libsane.la
>>>> libsane.so -> libsane.so.1.1.0
>>>> libsane.so.1 -> libsane.so.1.1.0
>>>> libsane.so.1.0.19
>>>> libsane.so.1.1.0
>>>>
>>>> Let me know if you continue to see different behaviour and we can continue
>>>> to debug it.
>>>
>>> Well, It seems to do the base dll backend correctly:
>>>
>>> /usr/lib/libsane.so -> libsane.so.1.1.0
>>> /usr/lib/libsane.so.1 -> libsane.so.1.1.0
>>>
>>> but all of the individual backends that were in 1.0.19 are still (partly) wrong:
>>> /usr/lib/sane/libsane-fujitsu.so -> libsane-fujitsu.so.1.1.0
>>> /usr/lib/sane/libsane-fujitsu.so.1 -> libsane-fujitsu.so.1.0.19
>>
>> I'd expect all the backends that were built to get installed the same
>> way.  Their either all wrong or all right.  Would you happen to be
>> building only selected backends?  What about the timestamps of the
>> links?  Do those match with the time you ran `make install`?
>
> i wiped out all the links. make install rebuilt them.

Just tried to reproduce this.  Configured 1.0.19 and the CVS snapshot
of 2009-02-26 with --prefix=/tmp/sane, built and installed.
Installing the snapshot over 1.0.19 results in:

  -rwxr-xr-x 1 olaf olaf    875 2009-02-27 10:21 libsane-fujitsu.la
  lrwxrwxrwx 1 olaf olaf     24 2009-02-27 10:21 libsane-fujitsu.so -> libsane-fujitsu.so.1.1.0
  lrwxrwxrwx 1 olaf olaf     24 2009-02-27 10:21 libsane-fujitsu.so.1 -> libsane-fujitsu.so.1.1.0
  -rwxr-xr-x 1 olaf olaf 244142 2009-02-27 10:18 libsane-fujitsu.so.1.0.19
  -rwxr-xr-x 1 olaf olaf 296770 2009-02-27 10:21 libsane-fujitsu.so.1.1.0

for all backends from the snapshot that were built.  Re-installing
1.0.19 on top of that gives:

  -rwxr-xr-x 1 olaf olaf   1013 2009-02-27 10:23 libsane-fujitsu.la
  lrwxrwxrwx 1 olaf olaf     25 2009-02-27 10:23 libsane-fujitsu.so -> libsane-fujitsu.so.1.0.19
  lrwxrwxrwx 1 olaf olaf     24 2009-02-27 10:23 libsane-fujitsu.so.1 -> libsane-fujitsu.so.1.1.0
  -rwxr-xr-x 1 olaf olaf 244142 2009-02-27 10:23 libsane-fujitsu.so.1.0.19
  -rwxr-xr-x 1 olaf olaf 296770 2009-02-27 10:21 libsane-fujitsu.so.1.1.0

Repeatedly installing one version over the other does not cause any
differences in the above.

I've also tried installing the snapshot after I wiped all the links with

  find /tmp/sane/lib/sane -type l | xargs rm

but that resulted in the first list, i.e. all symlinks pointing to the
snapshot's backends.

Allan: Could you provide a log of `make install -C backends` _after_
       you remove the '--silent' option from the libtool invocation?

Chris: While still hacking on the build system, please don't turn off
       command echoing and command output.  We can do that once we're
       past the growing pains.

Hope this helps,
-- 
Olaf Meeuwissen, LPIC-2           FLOSS Engineer -- AVASYS Corporation
FSF Associate Member #1962               Help support software freedom
                 http://www.fsf.org/jf?referrer=1962



More information about the sane-devel mailing list