sqlite:ver bump and fix permissions

This commit is contained in:
blue-devil
2020-04-27 00:58:43 +03:00
parent 6b661bf684
commit 598e062385
3 changed files with 52 additions and 28 deletions
+13 -10
View File
@@ -4,14 +4,14 @@
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
# Use secure delete. Even if the data is deleted with sqlite query, the traces of the deleted data still remains in the file
# but cannot be seen with sqlite query. However, it can be seen by opening the file with a text editor.
# SQLITE_SECURE_DELETE overwrites written data with zeros.
# Use secure delete. Even if the data is deleted with sqlite query, the traces of the deleted data still remains in the file
# but cannot be seen with sqlite query. However, it can be seen by opening the file with a text editor.
# SQLITE_SECURE_DELETE overwrites written data with zeros.
def setup():
pisitools.cflags.add("-DSQLITE_SECURE_DELETE=1",
"-DSQLITE_ENABLE_UNLOCK_NOTIFY=1",
@@ -26,7 +26,8 @@ def setup():
"-DSQLITE_ENABLE_STMT_SCANSTATUS",
"-DSQLITE_SOUNDEX",
"-DSQLITE_ENABLE_RTREE",
"-DSQLITE_ENABLE_API_ARMOR")
"-DSQLITE_ENABLE_API_ARMOR",
"-Wno-stringop-overflow")
pisitools.cflags.sub("-O[s\d]", "-O3")
@@ -38,6 +39,8 @@ def setup():
--enable-rtree \
--enable-json1 \
--enable-threadsafe")
# fix unused direct dependency analysis
pisitools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
#shelltools.cd("tea")
#autotools.configure(" \
@@ -56,16 +59,15 @@ def build():
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
#shelltools.cd("%s/sqlite-autoconf-3110000/tea" % get.workDIR())
#shelltools.cd("%s/sqlite-autoconf-3110100/tea" % get.workDIR())
#autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc("README*")
shelltools.cd("%s/sqlite-doc-3300100" % get.workDIR())
shelltools.system("pwd")
pisitools.insinto("/usr/share/doc/sqlite", "../sqlite-doc-3300100/*")
shelltools.cd("%s/sqlite-doc-3310100" % get.workDIR())
pisitools.insinto("/usr/share/doc/sqlite", "../sqlite-doc-3310100/*")
"""
# fix permissions and remove obsolete files; https://bugs.archlinux.org/task/24605
shelltools.system("find %s -type f -perm 755 -exec ls -lha {} \;" % get.installDIR())
shelltools.system("find %s -type f -perm 755 -exec chmod 644 {} \;" % get.installDIR())
@@ -75,3 +77,4 @@ def install():
shelltools.system("find %s -type f -name '.~*' -exec ls -lha {} \;" % get.installDIR())# /build/pkg/sqlite-doc/usr/share/doc/sqlite/images/fileformat/.~lock.indexpage.odg#
shelltools.system("find %s -type d -name '.~*' -exec ls -lha {} \;" % get.installDIR())
shelltools.system("find %s -name '.~*' -exec rm -f {} \;" % get.installDIR())
"""