[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Some intermediate thanks to Joerg Schilling



Hi,

> Mmm, strange. cdrtools did just compile wihout any warning
> on Suse 10.0

Now you made me curious. My SuSE 9.0:
Linux * 2.4.21-215-athlon #1 Tue Apr 27 00:53:38 UTC 2004
i686 athlon i386 GNU/Linux

  $ bunzip2 <cdrtools-2.01.01a13.tar.bz2 | tar xf -
  $ cd cdrtools-2.01.01
  $ view README README.compile
  $ make 2>&1 | tee -i ../compile.log
                W A R N I N G   Messages like:

  [...a minute on a 1900 MHz Athlon ...]

  /usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../../../i586-suse-linux/bin/ld: cannot find -lscg
  collect2: ld returned 1 exit status
  make[1]: *** [OBJ/athlon-linux-cc/skel] Error 1
  [...]
  $

I know this since i have my SuSE 9.0.
In ../compile.log my vim finds:
  ==> COMPILING "OBJ/athlon-linux-cc/scsihack.o"
  In file included from scsihack.c:131:
  scsi-linux-sg.c: In function `sg_settimeout':
  scsi-linux-sg.c:1195: error: `HZ' undeclared (first use in this function)
  scsi-linux-sg.c:1195: error: (Each undeclared identifier is reported only once
  scsi-linux-sg.c:1195: error: for each function it appears in.)

I carry my little private patch (see cdwrite archives July 2004)
from my previous recent cdrecord to the new one:
  $ view ../cdrtools-2.01.01a09/libscg/scsi-linux-sg.c
    [...]
    /* added by scdbackup@gmx.net A40724 - A60515 .
       Guessed. Nonportable. Do not use ! 
    */      
    #ifndef HZ 
    #define HZ 100
    #endif  
  $ vi libscg/scsi-linux-sg.c
    /* added by scdbackup@gmx.net A40724 - A60908 .
  $ make

Now it is fine. No further problem. (May memories are false,
probably.)

  $ find . -name cdrecord
  ./cdrecord
  ./cdrecord/OBJ/athlon-linux-cc/cdrecord
  $ ( cd ./cdrecord/OBJ/athlon-linux-cc ; ls -l cdrecord )
    -rwxr-xr-x    1 thomas   thomas     409166 Sep  8 21:13 cdrecord
  $ su
  # ./cdrecord/OBJ/athlon-linux-cc/cdrecord -scanbus
  Cdrecord-ProDVD-Clone 2.01.01a12 (i686-pc-linux-gnu)
  Copyright (C) 1995-2006 Jörg Schilling
  Linux sg driver version: 3.1.25
  Using libscg version 'schily-0.8'.
  scsibus0:
          0,0,0     0) 'HL-DT-ST' 'DVDRAM GSA-4082B' 'A201' Removable CD-ROM
  [...]

Joerg. You see that i damn trust your honor.
You are superuser on my box. Personally.
In case of mishap i'll test the quality of my backups.

Urm ... why does it say 2.01.01a12 ?
There is a AN-2.01.01a13 in the top directory.
... aha ... no new cdrecord features since a12.


Well, what did i want to test soon ?
(Currently i'm hopping between my old and my new
 machine. The old running 2.6, the new 2.4. I got
 some need for whoami clones like whereami, whatsnext.)
I wanted to RTFM of mkisofs.

  $ ./mkisofs/OBJ/athlon-linux-cc/mkisofs -version
  mkisofs 2.01.01a13 (i686-pc-linux-gnu)
  $ find . -name mkisofs.8
  $ man ./mkisofs/mkisofs.8
  [...]
       mkisofs will create any directories
       required such that the graft points  exist  on  the  cdrom
       image  -  the  directories do not need to appear in one of
       the paths.  By default, any directories that  are  created
       on the fly like this will have permissions 0555 and appear
       to be owned by the person running mkisofs.   If  you  wish
       other  permissions  or owners of the intermediate directo­
       ries,  see   -uid,   -gid,   -dir-mode,   -file-mode   and
       -new-dir-mode

Again, i end up at -new-dir-mode which is a bit what i would
need ... but not quite exactly:
       -new-dir-mode mode
              Mode  to  use  when creating new directories in the
              iso fs image.  The default mode is 0555.

I would need an option which tries to obtain the mode from the
directories in the source path. This currently happens only with
the leaf directory of the source path and with its sub tree.
  /x/y=/a/b/c/leaf
(I will check this again.)

"leaf" transfers its mode to ISO:"/x/y" , but the mode of "c"
would be what i wish for ISO:"/x".

If there is a way to achieve this, then give me an example, please.

If not: well, i needed a workaround anyway. So i store a list
with all directories and their permissions in the backup,
as well as a shell script, which would restore all those
permissions.


It will be a few days until i can give the new cdrecord 
and the new mkisofs a full regression test with scdbackup.
I'll report.


Have a nice day :)

Thomas


-- 
To UNSUBSCRIBE, email to cdwrite-REQUEST@other.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@other.debian.org


Reply to: