package database-2.4.0 released

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

package database-2.4.0 released

Olaf Till-2
A new release of the database package, version 2.4.0, is available.

For new features, see:

http://octave.sourceforge.net/database/NEWS.html

Thanks Carnë for checking the material and putting it online.

Olaf

--
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave

signature.asc (836 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: package database-2.4.0 released

Montgomery-Smith, Stephen
On 03/17/2016 02:45 PM, Olaf Till wrote:
> A new release of the database package, version 2.4.0, is available.
>
> For new features, see:
>
> http://octave.sourceforge.net/database/NEWS.html
>
> Thanks Carnë for checking the material and putting it online.
>
> Olaf

I'm having trouble building this in FreeBSD.  I get this error:


./munge-texi.pl MFDOCSTRINGS pq_close.cc.docstrings
pq_exec.cc.docstrings pq_update_types.cc.docstrings pq_lo.cc.docstrings
pq_conninfo.cc.docstrings var2bytea.cc.docstrings
bytea2var.cc.docstrings < ../doc/database.txi > ../doc/database.texi
Use of uninitialized value $_ in pattern match (m//) at ./munge-texi.pl
line 43, <DOCFH> line 200.
invalid doc file format
Makefile:81: recipe for target '../doc/database.texi' failed



_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave

signature.asc (501 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: package database-2.4.0 released

Olaf Till-2
On Thu, Mar 17, 2016 at 10:43:27PM +0000, Montgomery-Smith, Stephen wrote:

> On 03/17/2016 02:45 PM, Olaf Till wrote:
> > A new release of the database package, version 2.4.0, is available.
> >
> > For new features, see:
> >
> > http://octave.sourceforge.net/database/NEWS.html
> >
> > Thanks Carnë for checking the material and putting it online.
> >
> > Olaf
>
> I'm having trouble building this in FreeBSD.  I get this error:
>
>
> ./munge-texi.pl MFDOCSTRINGS pq_close.cc.docstrings
> pq_exec.cc.docstrings pq_update_types.cc.docstrings pq_lo.cc.docstrings
> pq_conninfo.cc.docstrings var2bytea.cc.docstrings
> bytea2var.cc.docstrings < ../doc/database.txi > ../doc/database.texi
> Use of uninitialized value $_ in pattern match (m//) at ./munge-texi.pl
> line 43, <DOCFH> line 200.
> invalid doc file format
> Makefile:81: recipe for target '../doc/database.texi' failed
In the release, the docs are already built, and in normal installation
the above building of documents should not take place at all. How did
you acquire and build the package?

Olaf

--
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave

signature.asc (836 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Dont't use 'var2bytea' of this release! (was: Re: package database-2.4.0 released)

Olaf Till-2
In reply to this post by Olaf Till-2
On Thu, Mar 17, 2016 at 08:45:55PM +0100, Olaf Till wrote:
> A new release of the database package, version 2.4.0, is available.

There is a mistake in function 'var2bytea' of this release which leads
to unrecoverable data if variables of different type are given as
arguments.

Don't use this function in this release.

An emergency release will be made.

Sorry, it was a typo and it escaped my tests.

@Stephen:

If a change in Makefile.in should be made for FreeBSD, we should try
to figure this out as well now.

Olaf

--
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave

signature.asc (836 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: package database-2.4.0 released

Montgomery-Smith, Stephen
In reply to this post by Olaf Till-2
On 03/18/2016 02:38 AM, Olaf Till wrote:

> On Thu, Mar 17, 2016 at 10:43:27PM +0000, Montgomery-Smith, Stephen wrote:
>> On 03/17/2016 02:45 PM, Olaf Till wrote:
>>> A new release of the database package, version 2.4.0, is available.
>>>
>>> For new features, see:
>>>
>>> http://octave.sourceforge.net/database/NEWS.html
>>>
>>> Thanks Carnë for checking the material and putting it online.
>>>
>>> Olaf
>>
>> I'm having trouble building this in FreeBSD.  I get this error:
>>
>>
>> ./munge-texi.pl MFDOCSTRINGS pq_close.cc.docstrings
>> pq_exec.cc.docstrings pq_update_types.cc.docstrings pq_lo.cc.docstrings
>> pq_conninfo.cc.docstrings var2bytea.cc.docstrings
>> bytea2var.cc.docstrings < ../doc/database.txi > ../doc/database.texi
>> Use of uninitialized value $_ in pattern match (m//) at ./munge-texi.pl
>> line 43, <DOCFH> line 200.
>> invalid doc file format
>> Makefile:81: recipe for target '../doc/database.texi' failed
>
> In the release, the docs are already built, and in normal installation
> the above building of documents should not take place at all. How did
> you acquire and build the package?
>
> Olaf
>
I acquired the package from sourceforge.  I was building via an update
of the FreeBSD port https://www.freshports.org/math/octave-forge-database/

Based upon your reply, I edited Makefile.in as follows, which fixed the
problem.  Is this legitimate?

--- Makefile.in.orig    2016-03-18 14:46:25 UTC
+++ Makefile.in
@@ -45,7 +45,7 @@ MFILES := $(wildcard *.m) $(wildcard ../

 .INTERMEDIATE: MFDOCSTRINGS $(DSFILES)

-all: doc $(octs)
+all: $(octs)

 release: doc html




_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave

signature.asc (501 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: package database-2.4.0 released

Olaf Till-2
On Fri, Mar 18, 2016 at 02:54:12PM +0000, Montgomery-Smith, Stephen wrote:
> I acquired the package from sourceforge.

Where exactly from sourceforge? The official package at

https://sourceforge.net/projects/octave/files/Octave%20Forge%20Packages/Individual%20Package%20Releases/database-2.4.0.tar.gz/download?use_mirror=netix&download=

, or

from the Mercurial repository?

> I was building via an update
> of the FreeBSD port https://www.freshports.org/math/octave-forge-database/

I don't understand this.

> Based upon your reply, I edited Makefile.in as follows, which fixed the
> problem.  Is this legitimate?
>
> --- Makefile.in.orig    2016-03-18 14:46:25 UTC
> +++ Makefile.in
> @@ -45,7 +45,7 @@ MFILES := $(wildcard *.m) $(wildcard ../
>
>  .INTERMEDIATE: MFDOCSTRINGS $(DSFILES)
>
> -all: doc $(octs)
> +all: $(octs)
>
>  release: doc html
I don't know yet. If you used the official package, has it been
somehow changed? Is doc/database.info still in it? Maybe the
timestamps are wrong so that it is rebuilt? Could you paste the output
of 'ls -l doc/ inst/ src/' (before building)?

Apart from the question why it is rebuild, I'd also like to know why
rebuilding goes wrong. Can you insert this in 'munge-texi.pl':

--- database/src/munge-texi.pl  2016-03-09 07:14:16.461738357 +0100
+++ tp/database-2.4.0/src/munge-texi.pl 2016-03-18 10:13:13.450932703 +0100
@@ -36,6 +36,8 @@
 {
   open (DOCFH, $DOCSTRING_file) or die "Unable to open $DOCSTRING_file\n";
 
+  warn "$DOCSTRING_file\n";
+
   # Skip comments
   while (defined ($_ = <DOCFH>) and /$comment_line/o) {;}

and build, and paste the output, so that I see in which file it fails?
If it is 'MFDOCSTRINGS', you can send me this also (better
off-list). If it's another one, I'll have further questions ...

Olaf

--
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave

signature.asc (836 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: package database-2.4.0 released

Montgomery-Smith, Stephen
On 03/18/2016 11:02 AM, Olaf Till wrote:

> On Fri, Mar 18, 2016 at 02:54:12PM +0000, Montgomery-Smith, Stephen wrote:
>> I acquired the package from sourceforge.
>
> Where exactly from sourceforge? The official package at
>
> https://sourceforge.net/projects/octave/files/Octave%20Forge%20Packages/Individual%20Package%20Releases/database-2.4.0.tar.gz/download?use_mirror=netix&download=
>
> , or
>
> from the Mercurial repository?
From the former.

>
>> I was building via an update
>> of the FreeBSD port https://www.freshports.org/math/octave-forge-database/
>
> I don't understand this.

It basically goes into the directory src, and then does ./configure
followed by make install.  However it has a bunch of FreeBSD specific
variables set, so who know what effect that would have.


>
>> Based upon your reply, I edited Makefile.in as follows, which fixed the
>> problem.  Is this legitimate?
>>
>> --- Makefile.in.orig    2016-03-18 14:46:25 UTC
>> +++ Makefile.in
>> @@ -45,7 +45,7 @@ MFILES := $(wildcard *.m) $(wildcard ../
>>
>>  .INTERMEDIATE: MFDOCSTRINGS $(DSFILES)
>>
>> -all: doc $(octs)
>> +all: $(octs)
>>
>>  release: doc html
>
> I don't know yet. If you used the official package, has it been
> somehow changed? Is doc/database.info still in it?
Yes, that's still there.

> Maybe the
> timestamps are wrong so that it is rebuilt? Could you paste the output
> of 'ls -l doc/ inst/ src/' (before building)?

doc/:
total 110
-rw-r--r--  1 stephen  staff    320 Mar 16 16:57 README
-rw-r--r--  1 stephen  staff   1493 Mar 16 16:57 README-postgresql
-rw-r--r--  1 stephen  staff  38765 Mar 16 16:58 database.info
-rw-r--r--  1 stephen  staff  36063 Mar 16 16:58 database.texi
-rw-r--r--  1 stephen  staff  24048 Mar 16 16:57 database.txi
drwxr-xr-x  2 stephen  staff    512 Mar 16 16:57 dev-postgresql
drwxr-xr-x  2 stephen  staff   1536 Mar 16 16:58 html
-rw-r--r--  1 stephen  staff   2513 Mar 16 16:57 macros.texi

inst/:
total 34
-rw-r--r--  1 stephen  staff  2043 Mar 16 16:57 __all_db_opts__.m
-rw-r--r--  1 stephen  staff  2641 Mar 16 16:57 database_doc.m
-rw-r--r--  1 stephen  staff  1776 Mar 16 16:57 getdbopts.m
-rw-r--r--  1 stephen  staff  8471 Mar 16 16:57 pq_connect.m
-rw-r--r--  1 stephen  staff  6255 Mar 16 16:57 pq_exec_params.m
-rw-r--r--  1 stephen  staff  3154 Mar 16 16:57 pq_lo_view.m
-rw-r--r--  1 stephen  staff  3913 Mar 16 16:57 setdbopts.m

src:
total 348
-rw-r--r--  1 stephen  staff    4771 Mar 16 16:57 Makefile.in
-rw-r--r--  1 stephen  staff    1604 Mar 16 16:57 __pq_connect__.cc
-rw-r--r--  1 stephen  staff    1592 Mar 16 16:57 __pq_internal_exit__.cc
-rwxr-xr-x  1 stephen  staff      21 Mar 16 16:57 bootstrap
-rw-r--r--  1 stephen  staff    3363 Mar 16 16:57 bytea2var.cc
-rw-r--r--  1 stephen  staff   25803 Mar 16 16:57 command.cc
-rw-r--r--  1 stephen  staff    3251 Mar 16 16:57 command.h
-rw-r--r--  1 stephen  staff     239 Mar 16 16:57 config.h.in
-rwxr-xr-x  1 stephen  staff  131490 Mar 16 16:58 configure
-rw-r--r--  1 stephen  staff    3322 Mar 16 16:57 configure.ac
-rw-r--r--  1 stephen  staff   58807 Mar 16 16:57 converters.cc
-rw-r--r--  1 stephen  staff    9668 Mar 16 16:57 converters.h
-rw-r--r--  1 stephen  staff   17596 Mar 16 16:57 converters_arr_comp.cc
-rw-r--r--  1 stephen  staff    1231 Mar 16 16:57 error-helpers.cc
-rw-r--r--  1 stephen  staff    3320 Mar 16 16:57 error-helpers.h
-rwxr-xr-x  1 stephen  staff    2263 Mar 16 16:57 mkdoc.pl
-rwxr-xr-x  1 stephen  staff    4691 Mar 16 16:57 munge-texi.pl
-rw-r--r--  1 stephen  staff    1515 Mar 16 16:57 pq_close.cc
-rw-r--r--  1 stephen  staff   17783 Mar 16 16:57 pq_connection.cc
-rw-r--r--  1 stephen  staff    3323 Mar 16 16:57 pq_connection.h
-rw-r--r--  1 stephen  staff    2485 Mar 16 16:57 pq_conninfo.cc
-rw-r--r--  1 stephen  staff    9936 Mar 16 16:57 pq_exec.cc
-rw-r--r--  1 stephen  staff   17330 Mar 16 16:57 pq_lo.cc
-rw-r--r--  1 stephen  staff    1836 Mar 16 16:57 pq_update_types.cc
-rw-r--r--  1 stephen  staff    3397 Mar 16 16:57 var2bytea.cc
-rw-r--r--  1 stephen  staff    1407 Mar 16 16:57 wrap_endian.h


>
> Apart from the question why it is rebuild, I'd also like to know why
> rebuilding goes wrong. Can you insert this in 'munge-texi.pl':
>
> --- database/src/munge-texi.pl  2016-03-09 07:14:16.461738357 +0100
> +++ tp/database-2.4.0/src/munge-texi.pl 2016-03-18 10:13:13.450932703 +0100
> @@ -36,6 +36,8 @@
>  {
>    open (DOCFH, $DOCSTRING_file) or die "Unable to open $DOCSTRING_file\n";
>  
> +  warn "$DOCSTRING_file\n";
> +
>    # Skip comments
>    while (defined ($_ = <DOCFH>) and /$comment_line/o) {;}
>
> and build, and paste the output, so that I see in which file it fails?
> If it is 'MFDOCSTRINGS', you can send me this also (better
> off-list). If it's another one, I'll have further questions ...
>
> Olaf
>
It is MFDOCSTRINGS.  But I cannot find any file by that name.


_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave

signature.asc (501 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: package database-2.4.0 released

Olaf Till-2
FTR, I've moved this part of the thread to the maintainers list and
replied there.

Olaf

--
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave

signature.asc (836 bytes) Download Attachment