Opened 9 years ago

Closed 9 years ago

#48137 closed update (fixed)

octave-stk @2.2.0_0: update to 2.3.1

Reported by: Schamschula (Marius Schamschula) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: haspatch maintainer Cc: michaelld (Michael Dickens), julien.bect@…
Port: octave-stk

Description

octave-stk has been updated to version 2.3.1:

Bug fixes

  • stk_optim_hasfmincon.m: Detect fmincon by trying to use it, instead of relying on the result of the exist function.
  • stk_param_estim.m: Make sure that the bounds that we use for the lnv parameter contain the starting point lnv0 when it is provided.
  • @stk_dataframe/set.m: Fix stk_error calls (missing mnemonic).
  • stk_distrib_bivnorm_cdf.m: Fix a bug in the case of mixtures of singular and non-singular cases.
  • @stk_dataframe/subsasgn.m: Preserve column names when deleting rows, even if the resulting array is empty.

Minor changes

  • stk_init.m: Clear persistent variables. As a consequence, stk_init can now be used to restart STK completely.
  • stk_commonsize.m: Accept empty dimensions, under the condition that all input arguments have the same empty dimensions (in which case the result is empty).
  • stk_commonsize.m: is now faster when some arguments already have the proper size (unnecessary calls to repmat are avoided).
  • stk_distrib_normal_cdf.m, stk_distrib_bivnorm_cdf.m: are now slightly faster (unnecessary calls to stk_commonsize are avoided).

Hopefully, this update also obsoletes #47478 regarding the installation issues. See http://octave.1599824.n4.nabble.com/On-the-use-of-PKG-ADD-PKG-DEL-directives-in-the-stk-package-td4671049.html

Attachments (1)

Portfile-octave-stk.diff (870 bytes) - added by Schamschula (Marius Schamschula) 9 years ago.

Download all attachments as: .zip

Change History (9)

Changed 9 years ago by Schamschula (Marius Schamschula)

Attachment: Portfile-octave-stk.diff added

comment:1 Changed 9 years ago by julien.bect@…

Cc: julien.bect@… added

Cc Me!

comment:2 in reply to:  description ; Changed 9 years ago by julien.bect@…

Replying to mschamschula@…:

Hopefully, this update also obsoletes #47478 regarding the installation issues. See http://octave.1599824.n4.nabble.com/On-the-use-of-PKG-ADD-PKG-DEL-directives-in-the-stk-package-td4671049.html

Hello Marius,

Unfortunately, I don't think it will... But, if my guess is correct, there is an easy workaround ;-)

More information and a workaround: https://savannah.gnu.org/bugs/?45091

See also my answer on ticket #47478: https://trac.macports.org/ticket/47478#comment:12

@++ Julien

comment:3 in reply to:  2 ; Changed 9 years ago by Schamschula (Marius Schamschula)

Replying to julien.bect@…:

Replying to mschamschula@…:

Hopefully, this update also obsoletes #47478 regarding the installation issues. See http://octave.1599824.n4.nabble.com/On-the-use-of-PKG-ADD-PKG-DEL-directives-in-the-stk-package-td4671049.html

Hello Marius,

Unfortunately, I don't think it will... But, if my guess is correct, there is an easy workaround ;-)

More information and a workaround: https://savannah.gnu.org/bugs/?45091

See also my answer on ticket #47478: https://trac.macports.org/ticket/47478#comment:12

@++ Julien

In the tarball for stk 2.3.1, I only get one instance of PKG_ADD/PKG_DEL, namely in the arch-independent directory:

tar ztvf  /opt/local/share/octave/stk.tar.gz | grep PKG_
-rw-r--r--  0 macports admin      14 Jun 22 09:03 stk/PKG_ADD
-rw-r--r--  0 macports admin      18 Jun 22 09:03 stk/PKG_DEL

comment:4 in reply to:  3 ; Changed 9 years ago by julien.bect@…

Replying to mschamschula@…:

In the tarball for stk 2.3.1, I only get one instance of PKG_ADD/PKG_DEL, namely in the arch-independent directory:

tar ztvf  /opt/local/share/octave/stk.tar.gz | grep PKG_
-rw-r--r--  0 macports admin      14 Jun 22 09:03 stk/PKG_ADD
-rw-r--r--  0 macports admin      18 Jun 22 09:03 stk/PKG_DEL

Yes, I know. They are the ones that 'pkg install' moves to the arch-independent directory.

Delete these two files, and you should be ok.

comment:5 in reply to:  4 Changed 9 years ago by Schamschula (Marius Schamschula)

Replying to julien.bect@…:

Replying to mschamschula@…:

In the tarball for stk 2.3.1, I only get one instance of PKG_ADD/PKG_DEL, namely in the arch-independent directory:

tar ztvf  /opt/local/share/octave/stk.tar.gz | grep PKG_
-rw-r--r--  0 macports admin      14 Jun 22 09:03 stk/PKG_ADD
-rw-r--r--  0 macports admin      18 Jun 22 09:03 stk/PKG_DEL

Yes, I know. They are the ones that 'pkg install' moves to the arch-independent directory.

Delete these two files, and you should be ok.

I see.

I've created a patch for octave-1.0.tcl, a.k.a. the octave port group, to delete these files: #48143

comment:6 Changed 9 years ago by michaelld (Michael Dickens)

has duplicate, #47478, sort of.

comment:7 Changed 9 years ago by michaelld (Michael Dickens)

"mkoctfile" is parsing the file "inst/stk_init.m" & creating the PKG* files automagically. These files are executed when the package is loaded or unloaded, and result in failure at that point. Removing the lines for PKG* keeps mkoctfile from creating those files. I'm committing a patch that removes these lines, thus fixing the PKG* load and unload issues directly at the source.

comment:8 Changed 9 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: newclosed

Done in r138162.

Note: See TracTickets for help on using tickets.