diff options
author | sem <sem@FreeBSD.org> | 2008-07-02 23:35:53 +0800 |
---|---|---|
committer | sem <sem@FreeBSD.org> | 2008-07-02 23:35:53 +0800 |
commit | 8b21fa7068337c07d5bb61e660f56147a5c997e3 (patch) | |
tree | 52e074e2c0e2c43e594042a1fdde6a6364aa86db | |
parent | 21d6b12a6f7dc56812076cff0b5ae7452cb5c3b8 (diff) | |
download | freebsd-ports-gnome-8b21fa7068337c07d5bb61e660f56147a5c997e3.tar.gz freebsd-ports-gnome-8b21fa7068337c07d5bb61e660f56147a5c997e3.tar.zst freebsd-ports-gnome-8b21fa7068337c07d5bb61e660f56147a5c997e3.zip |
- Update to 0.6.3
-rw-r--r-- | databases/pxlib/Makefile | 3 | ||||
-rw-r--r-- | databases/pxlib/distinfo | 6 | ||||
-rw-r--r-- | databases/pxlib/files/patch-src-paradox.c | 18 | ||||
-rw-r--r-- | databases/pxlib/files/patch-src-px_io.c | 85 |
4 files changed, 4 insertions, 108 deletions
diff --git a/databases/pxlib/Makefile b/databases/pxlib/Makefile index bea663f22074..7dfb24bf70b0 100644 --- a/databases/pxlib/Makefile +++ b/databases/pxlib/Makefile @@ -6,8 +6,7 @@ # PORTNAME= pxlib -PORTVERSION= 0.6.2 -PORTREVISION= 1 +PORTVERSION= 0.6.3 CATEGORIES= databases MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/databases/pxlib/distinfo b/databases/pxlib/distinfo index 05ca0474902c..850ec0000f88 100644 --- a/databases/pxlib/distinfo +++ b/databases/pxlib/distinfo @@ -1,3 +1,3 @@ -MD5 (pxlib-0.6.2.tar.gz) = be582272c84c03b79e00fc1546e0fb17 -SHA256 (pxlib-0.6.2.tar.gz) = 7e19209a26928b3d8a2c4c1431234824480982aa7b22218ecaa72a9b5bffd4db -SIZE (pxlib-0.6.2.tar.gz) = 516967 +MD5 (pxlib-0.6.3.tar.gz) = 0742020854496fa757d7acbe6a895224 +SHA256 (pxlib-0.6.3.tar.gz) = 20ea3782d8a084e9d46677a7adf0303d346f431ec1547131cf2bca2a60586c08 +SIZE (pxlib-0.6.3.tar.gz) = 517332 diff --git a/databases/pxlib/files/patch-src-paradox.c b/databases/pxlib/files/patch-src-paradox.c deleted file mode 100644 index 02c1c327b6b4..000000000000 --- a/databases/pxlib/files/patch-src-paradox.c +++ /dev/null @@ -1,18 +0,0 @@ ---- src/paradox.c.orig Sun Jun 4 21:38:12 2006 -+++ src/paradox.c Sun Jun 4 21:38:31 2006 -@@ -273,6 +273,7 @@ - pxstream_t *pxs; - pxpindex_t *pindex; - int blockcount, blocknumber, numrecords; -+ TDataBlock datablockhead; - - pxh = pxdoc->px_head; - pxs = pxdoc->px_stream; -@@ -337,7 +338,6 @@ - if(blocknumber != 0) { - while(blocknumber > 0) { - fprintf(stderr, "next blocknumber after creating primary index: %d\n", blocknumber); -- TDataBlock datablockhead; - if(get_datablock_head(pxdoc, pxs, blocknumber, &datablockhead) < 0) { - px_error(pxdoc, PX_RuntimeError, _("Could not get head of data block nr. %d."), blocknumber); - pxdoc->free(pxdoc, pindex); diff --git a/databases/pxlib/files/patch-src-px_io.c b/databases/pxlib/files/patch-src-px_io.c deleted file mode 100644 index 420df4a2f7ec..000000000000 --- a/databases/pxlib/files/patch-src-px_io.c +++ /dev/null @@ -1,85 +0,0 @@ ---- src/px_io.c.orig Sun Dec 11 13:12:58 2005 -+++ src/px_io.c Sun Dec 11 13:13:26 2005 -@@ -346,82 +346,6 @@ - */ - size_t px_mb_write(pxblob_t *p, pxstream_t *dummy, size_t len, void *buffer) { - return(p->mb_stream->write(p->pxdoc, p->mb_stream, len, buffer)); -- pxdoc_t *pxdoc; -- pxhead_t *pxh; -- pxstream_t *pxs; -- long pos; -- int ret; -- unsigned char *tmpbuf = NULL; -- unsigned int blockslen, blockoffset; -- -- pxdoc = p->pxdoc; -- pxh = pxdoc->px_head; -- pxs = p->mb_stream; -- -- if (pxh->px_encryption == 0) -- return pxs->write(pxdoc, pxs, len, buffer); -- -- pos = pxs->tell(pxdoc, pxs); -- if (pos < 0) { -- return pos; -- } -- -- blockoffset = (pos >> BLOCKSIZEEXP) << BLOCKSIZEEXP; -- /* We need to read at least chunk from the blockoffset till the -- * desired postion and the data itself which has len bytes. -- * e.g. if we want to read 20 bytes starting at position 300 in the -- * file, we will need to read 44+20 bytes starting at position 256. -- */ -- blockslen = len + pos - blockoffset; -- /* Check if the end of the data is within a 2^BLOCKSIZEEXP bytes block. -- * If that is the case, we will need to read the remainder of the -- * 2^BLOCKSIZEEXP bytes block as well. In the above example, we -- * will have to read 256 bytes instead of just 64. -- */ -- if(blockslen & 0xff) -- blockslen = ((blockslen >> BLOCKSIZEEXP) + 1) << BLOCKSIZEEXP; -- -- assert(blockslen >= len); -- assert(blockoffset <= (unsigned long)pos); -- assert((blockoffset+blockslen) >= (pos+len)); -- -- ret = pxs->seek(pxdoc, pxs, blockoffset, SEEK_SET); -- if (ret < 0) { -- return ret; -- } -- -- tmpbuf = (unsigned char *) malloc(blockslen); -- if (tmpbuf == NULL) { -- return -ENOMEM; -- } -- -- ret = pxs->read(pxdoc, pxs, blockslen, tmpbuf); -- if (ret < 0) { -- goto end; -- } -- -- px_decrypt_mb_block(tmpbuf, tmpbuf, pxh->px_encryption, blockslen); -- memcpy(tmpbuf + (pos - blockoffset), buffer, len); -- px_encrypt_mb_block(tmpbuf, tmpbuf, pxh->px_encryption, blockslen); -- -- ret = pxs->seek(pxdoc, pxs, blockoffset, SEEK_SET); -- if (ret < 0) { -- return ret; -- } -- ret = pxs->write(pxdoc, pxs, blockslen, tmpbuf); -- if (ret < 0) { -- goto end; -- } -- -- ret = pxs->seek(pxdoc, pxs, pos + len, SEEK_SET); -- if (ret < 0) { -- goto end; -- } -- -- ret = len; --end: -- free(tmpbuf); -- return ret; - } - /* }}} */ - |