Skip to content

Commit

Permalink
repair broken package build, ensure s57static for tools
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas committed Feb 17, 2024
1 parent 37ed2f1 commit 2484e9d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
20 changes: 9 additions & 11 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ def DEFAULT_DEPS = [
['libstdc++6'],
['libssl1.1'],
['libcurl4'],
[primary:['python3-mapbox-earcut'], or:['base-files']]
[primary:['python3-mapbox-earcut'], or:['base-files']],
['gdal-bin'],
['libusb-0.1-4']
]
def IMAGE_VERSION = "A1"
def VARIANTS=[
Expand Down Expand Up @@ -93,14 +95,6 @@ def VARIANTS=[
oexdir: 'linux64',
dependencies: DEFAULT_DEPS
],
[osline:'debian',
osversion:'buster',
arch: 'i386',
tag: IMAGE_VERSION,
dockerbase:'i386/debian',
dockerfile:'Dockerfile.all',
dependencies: DEFAULT_DEPS
],
[osline:'debian',
osversion:'buster',
arch: 'amd64',
Expand Down Expand Up @@ -364,9 +358,13 @@ ospackage {
include "collectS57.sh"
fileMode 0755
}
from('tools/senc')
from('tools/senc'){
include "*.py"
into "senc"
into "senc"
}
from('tools/senc/s57static'){
into "senc/s57static"
}
}
into("/etc/udev/rules.d"){
from(projectDir){
Expand Down
1 change: 1 addition & 0 deletions tools/senc/s57static
2 changes: 1 addition & 1 deletion tools/senc/sqlite2senc.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def a2l(lastAttrs):
class Options:
def __init__(self):
self.basedir=None
self.s57dir=os.path.join(os.path.dirname(__file__),"..","..","provider","s57static")
self.s57dir=os.path.join(os.path.dirname(__file__),"s57static")
self.em=senc.SencFile.EM_ALL
self.scale=None
self.ignoreErrors=False
Expand Down
2 changes: 1 addition & 1 deletion tools/tosenc.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def handleSingleFile(context:Context,ifile:str,ofile:str):
M_FILES=0
M_DIR=1
if __name__ == '__main__':
s57dir=os.path.join(os.path.dirname(__file__),"..","provider","s57static")
s57dir=os.path.join(os.path.dirname(__file__),"senc","s57static")
basedir=None
scale=None
optlist,args=getopt.getopt(sys.argv[1:],"b:d:s:e:ic:")
Expand Down

0 comments on commit 2484e9d

Please sign in to comment.