• Cdrecord location

    From Bit Twister@2:250/1 to All on Sun Jul 5 15:04:49 2020
    On Sun, 5 Jul 2020 23:03:56 +1000, faeychild wrote:
    On 5/7/20 6:42 pm, Bit Twister wrote:


    whereas
    $ type cdrecord
    cdrecord is /usr/local/bin/cdrecord
    $ dir /usr/local/bin/cdrecord


    [faeychild@unimatrix ~]$ dir /usr/local/bin/cdrecord
    dir: cannot access '/usr/local/bin/cdrecord': No such file or directory

    [faeychild@unimatrix ~]$ type cdrecord
    cdrecord is /usr/bin/cdrecord

    have you moved yours around at some time, Bits ?

    Maybe some time long ago when there was a big blowup about it, maybe a
    decade or so ago and cdrtools rpm could no longer be shipped as is
    because of the restricted license.

    I download the archive, currently schily-2020-07-01.tar.bz2, run
    make ; make install, then create links in /usl/local/bin to where
    "make install" installed all the tools.

    If we are going to look into the difference between us, you will need
    to provide what package you are using, and check each occurrence of
    the application location.

    To do that, just run "ls -l each_usage_here".
    Using your output from the above:
    > [faeychild@unimatrix ~]$ type cdrecord
    > cdrecord is /usr/bin/cdrecord
    you need to see where /usr/bin/cdrecord is located:
    ls -l /usr/bin/cdrecord
    If result is a link, you ls -l link_goes_here

    I would be interested is seeing the name of the package used for your install.

    For Mageia bug reports, it is desirable to have the src rpm for the bug
    report. To make it easy to get the source and install rpm, I created a get_src_rpm script to get rpm information.

    Here is a copy for anyone who might be interested:

    After install, just run get_src_rpm cdrecord

    ----8<----8<----8<----8<- cut below this line ---8<----8<----8<
    #!/bin/bash #****************************************************************************** #*
    #* get_src_rpm - get pkg and source rpm name for application or file. Version 1.8
    #* Normally used during bug reporting for filling in the
    #* Source rpm: box.
    #*
    #* Install in /usr/local/bin or $HOME/bin and remember to set execute bit.
    #* chmod +x /usr/local/bin/get_src_rpm
    #* or chmod +x $HOME/bin/get_src_rpm
    #*
    #*
    #* This is free software released to public domain. Do with it whatever you want.
    #*
    #* https://ml.mageia.org/l/arc/dev/2019-03/msg00181.html
    #* #******************************************************************************


    export PATH="\
    /usr/local/sbin:/usr/sbin:/sbin\
    :/usr/local/bin:/usr/bin:/bin\
    :/usr/local/games:/usr/games\
    "
    #*********************************************************
    #* add normal qt* & optional kde plasma libexec to PATH
    #*********************************************************

    _libs="$(ls -d /usr/lib*/qt*/bin 2> /dev/null) \
    $(ls -d /usr/libexec/kf* 2> /dev/null | grep -v kfontprint) \
    $(ls -d /usr/lib*/kde*/libexec 2> /dev/null) \
    $(ls -d /usr/libexec 2> /dev/null)"
    _libs=$(echo $_libs| tr ' ' ':')

    export PATH=${PATH}:$_libs

    set -u
    _exe=$0

    if [ $# -ne 1 ] ; then
    echo "
    Usage: $_exe app_name or full file spec
    Examples:
    $_exe xterm
    $_exe /usr/share/applications/kde4/kplayer.desktop
    "
    exit 1
    fi

    _arg1=$1

    _char1="${_arg1:0:1}"
    if [ "$_char1" = "/" ] ; then
    _fn=$_arg1
    else # user gave an app name. Lets see if we can find it.
    _x=$(type -p $_arg1)
    if [ $? -eq 0 ] ; then
    _fn="$(realpath $(type -p $_arg1))"
    else # try without documentation
    _fn=$(locate $_arg1 | grep -vE '/doc|/man' | tail -1)
    if [ $? -ne 0 ] ; then # try with documentation
    _fn=$(locate $_arg1 | tail -1)
    if [ $? -ne 0 ] ; then # tell user we can not find it.
    echo " "
    which $_arg1
    exit 1
    fi
    fi
    fi
    fi

    #*********************************************************
    #* http://www.rpm.org/max-rpm/ch-queryformat-tags.html
    #*********************************************************

    echo "
    $(rpm --query --scripts --file $_fn)

    Looked for : $_arg1
    Using : $_fn
    Installed rpm : $(rpm -qf $_fn )
    rpm short name: $(rpm --query --queryformat '%{NAME}' --file $_fn)
    $(rpm --query --queryformat 'Source rpm : %{SOURCERPM}' --file $_fn)
    $(rpm --query --queryformat 'Information : %{URL}' --file $_fn)
    $(rpm --query --queryformat 'Packager : %{Packager}' --file $_fn)
    $(rpm --query --queryformat 'Summary : %{SUMMARY}' --file $_fn)
    List rpm contents: rpm --query --list $(rpm -qf $_fn )
    "

    #************** end get_src_rpm *************************************




    --- MBSE BBS v1.0.7.17 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From William Unruh@2:250/1 to All on Sun Jul 5 18:31:00 2020
    On 2020-07-05, Bit Twister <BitTwister@mouse-potato.com> wrote:
    On Sun, 5 Jul 2020 23:03:56 +1000, faeychild wrote:
    On 5/7/20 6:42 pm, Bit Twister wrote:


    whereas
    $ type cdrecord
    cdrecord is /usr/local/bin/cdrecord
    $ dir /usr/local/bin/cdrecord

    Why would one want to list the directory contents of a file. /usr/local/bin/cdrecord is a file not a directory.


    [faeychild@unimatrix ~]$ dir /usr/local/bin/cdrecord
    dir: cannot access '/usr/local/bin/cdrecord': No such file or directory

    /usr/local tells you this was not installed from a Mageia repository.
    Get the program from http://cdrtools.sourceforge.net/private/cdrecord.html



    [faeychild@unimatrix ~]$ type cdrecord
    cdrecord is /usr/bin/cdrecord

    Be careful. That may be a link to wodim, an ancient version of
    cdrecord.


    have you moved yours around at some time, Bits ?

    Maybe some time long ago when there was a big blowup about it, maybe a
    decade or so ago and cdrtools rpm could no longer be shipped as is
    because of the restricted license.

    No, If that were true most of the programs in a Linux distro could not
    be shipped. There was a blowup in which both the writer of cdrecord and
    moreso the runners of the Debian distro behaved like children in a
    schoolyard fight. The only people that suffered were the users like you
    and me.

    Mageia got themselves caught up in that fight and they supply a bastard
    called cdrkit, which is an ancient version of cdrecord for which the
    program is called wodim, and which sets up a link from cdrecord to /etc/alternatives/cdrecord to /usr/bin/wodim.
    Get the current version of cdrecord and Bit mentions below.



    I download the archive, currently schily-2020-07-01.tar.bz2, run
    make ; make install, then create links in /usl/local/bin to where
    "make install" installed all the tools.

    You also need to set up the various links, like in /etc/alternatives

    If we are going to look into the difference between us, you will need
    to provide what package you are using, and check each occurrence of
    the application location.
    .....

    --- MBSE BBS v1.0.7.17 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Bit Twister@2:250/1 to All on Sun Jul 5 18:53:25 2020
    On Sun, 5 Jul 2020 17:31:00 -0000 (UTC), William Unruh wrote:
    On 2020-07-05, Bit Twister <BitTwister@mouse-potato.com> wrote:
    On Sun, 5 Jul 2020 23:03:56 +1000, faeychild wrote:
    On 5/7/20 6:42 pm, Bit Twister wrote:


    whereas
    $ type cdrecord
    cdrecord is /usr/local/bin/cdrecord
    $ dir /usr/local/bin/cdrecord

    Why would one want to list the directory contents of a file. /usr/local/bin/cdrecord is a file not a directory.

    You need to look at that again. type returned what would be executed
    if user entered the command, cdrecord at a command line prompt.



    I download the archive, currently schily-2020-07-01.tar.bz2, run
    make ; make install, then create links in /usl/local/bin to where
    "make install" installed all the tools.

    You also need to set up the various links, like in /etc/alternatives

    Hmmmm, how many might that be,
    $ cd /usr/local/bin ; ls -al * | grep --count /opt/schily
    72

    You might, but I want an easily maintained system setup and absolutely
    no possible interference from the distribution installation.

    With my setup I can run whichever cdrecord I desire.
    $ type -a cdrecord
    cdrecord is /usr/local/bin/cdrecord
    cdrecord is /usr/bin/cdrecord
    cdrecord is /bin/cdrecord

    /usr/local/bin/cdrecord would be schily's and /usr/bin/cdrecord would
    be Mageia's application.


    Same for firefox and thunderbird.
    $ type -a firefox
    firefox is /usr/local/bin/firefox
    firefox is /usr/bin/firefox
    firefox is /bin/firefox

    $ type -a thunderbird
    thunderbird is /usr/local/bin/thunderbird
    thunderbird is /usr/bin/thunderbird
    thunderbird is /bin/thunderbird


    --- MBSE BBS v1.0.7.17 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From William Unruh@2:250/1 to All on Sun Jul 5 23:58:27 2020
    On 2020-07-05, William Unruh <unruh@invalid.ca> wrote:
    On 2020-07-05, Bit Twister <BitTwister@mouse-potato.com> wrote:
    On Sun, 5 Jul 2020 23:03:56 +1000, faeychild wrote:
    On 5/7/20 6:42 pm, Bit Twister wrote:


    whereas
    $ type cdrecord
    cdrecord is /usr/local/bin/cdrecord
    $ dir /usr/local/bin/cdrecord

    Why would one want to list the directory contents of a file. /usr/local/bin/cdrecord is a file not a directory.


    [faeychild@unimatrix ~]$ dir /usr/local/bin/cdrecord
    dir: cannot access '/usr/local/bin/cdrecord': No such file or directory

    /usr/local tells you this was not installed from a Mageia repository.
    Get the program from http://cdrtools.sourceforge.net/private/cdrecord.html

    You can also get the OpenMandriva source rpm package ( which is cdrecord 3.01-a09 which was the latest version to4 days ago) at

    http://abf-downloads.openmandriva.org/cooker/repository/SRPMS/main/release/cdrt ools-3.02-5.src.rpm

    (It seems that they did not update the version number to 9 )
    It compiles on Mageia 7.1 and runs althought I have not tried to
    actually use it.

    This is just in case you do not want to use the compiled on (compiled
    for OpenMandriva 4.1). That also works.




    [faeychild@unimatrix ~]$ type cdrecord
    cdrecord is /usr/bin/cdrecord

    Be careful. That may be a link to wodim, an ancient version of
    cdrecord.


    have you moved yours around at some time, Bits ?

    Maybe some time long ago when there was a big blowup about it, maybe a
    decade or so ago and cdrtools rpm could no longer be shipped as is
    because of the restricted license.

    No, If that were true most of the programs in a Linux distro could not
    be shipped. There was a blowup in which both the writer of cdrecord and moreso the runners of the Debian distro behaved like children in a
    schoolyard fight. The only people that suffered were the users like you
    and me.

    Mageia got themselves caught up in that fight and they supply a bastard called cdrkit, which is an ancient version of cdrecord for which the
    program is called wodim, and which sets up a link from cdrecord to /etc/alternatives/cdrecord to /usr/bin/wodim.
    Get the current version of cdrecord and Bit mentions below.



    I download the archive, currently schily-2020-07-01.tar.bz2, run
    make ; make install, then create links in /usl/local/bin to where
    "make install" installed all the tools.

    You also need to set up the various links, like in /etc/alternatives

    If we are going to look into the difference between us, you will need
    to provide what package you are using, and check each occurrence of
    the application location.
    ....

    --- MBSE BBS v1.0.7.17 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)