On 2020-07-18 13:37, Brian Inglis wrote:
> On 2020-07-18 11:45, Brian Inglis wrote:
>> On 2020-07-18 10:45, Thomas Wolff wrote:
>>> Am 18.07.2020 um 18:40 schrieb Thomas Wolff:
>>>> Am 18.07.2020 um 18:31 schrieb Thomas Wolff:
>>>>> Am 18.07.2020 um 09:55 schrieb Achim Gratz:
>>>>>> Gnuplot version 5.4.0 is now available on Cygwin.  The upstream release
>>>>>> notes are available at:
>>>>>> http://www.gnuplot.info/ReleaseNotes_5_4.html
>>>>>> Cygwin Notes
> 
>>>>>> Depending on which packages you install running plain
>>>>>> "gnuplot" will dispatch different executables via the alternatives
>>>>>> system.
> 
>>>>> running setup, gnuplot-base is updated from 5.4 rc2 to 5.4, but package
>>>>> gnuplot has vanished.
> 
>>>> Errh, which you explained above, sorry. Anyhow, gnuplot.exe did not get
>>>> installed.
> 
>>> OK, it's called gnuplot-base now. Is it a good idea to drop plain gnuplot 
>>> as an
>>> invocation name?
> 
>> Release notes suggest there should be a file /var/lib/alternatives/gnuplot to
>> define a symlink /bin/gnuplot to /etc/alternatives/gnuplot and that symlinks 
>> to
>> /bin/gnuplot-base.
>>
>> Please check if /etc/postinstall/gnuplot.sh.done exists and completed
>> successfully in /var/log/setup.log.full or /var/log/setup.log and the
>> alternatives were created successfully, as above.
> 
> Script to setup postinstall alternatives is actually called gnuplot-base.dash
> and the executable name does not look as if alternatives will use it:
> 
> $ tar -x -O \
> -f mirror/x86_64/release/gnuplot/gnuplot-base/gnuplot-base-5.4.rc2-0.tar.xz \
>       etc/postinstall/gnuplot-base.dash
> /usr/sbin/alternatives --install /usr/bin/gnuplot gnuplot
> /usr/bin/gnuplot-{BB}.exe 10
> 
> AFAIK alternatives is not going to do anything special with 
> gnuplot-*{BB}*.exe:
> perhaps intended to be generated with "*$*{BB}" == "base" but missing *$*?

Yup, should have checked further earlier - missing *$* before {BB} in
postinstall/preremove alternatives script generation:

$ fgrep -C1 alternatives gnuplot-5.4.rc2-0.src/gnuplot-5.4.rc2-0.cygport
                    cat > ${PN}-${BB}.postinstall <<EOF
/usr/sbin/alternatives --install /usr/bin/gnuplot gnuplot
/usr/bin/gnuplot-{BB}.exe ${APRIO}                                              
        <<<!!!
EOF
--
                    cat > ${PN}-${BB}.preremove <<EOF
/usr/sbin/alternatives --remove gnuplot /usr/bin/gnuplot-{BB}.exe       <<<!!!
EOF

Need a 5.4.0-2 soon!

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in IEC units and prefixes, physical quantities in SI.]
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to