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)