sean0921 / sac_debian_packager Goto Github PK
View Code? Open in Web Editor NEWDebian/Ubuntu format SELF-packaging script for Seismic Analysis Code by IRIS
License: The Unlicense
Debian/Ubuntu format SELF-packaging script for Seismic Analysis Code by IRIS
License: The Unlicense
waiting for requests of new version of source code approved
There's a way:
https://seisman.github.io/SAC_Docs_zh/tricks-and-traps/init-macro/
To Do:
sac_in_distro.sh
)sbuild
debian/
directory, add necessary info and patches执行生成deb
的脚本后,输出大量警告信息
./build.bash
�[1;36mSAC Debian/Ubuntu Packager ver 101.6a-2+sdp1.1�[0m
�[1;33m+ Starting Build in /home/wangliang/sac_debian_packager ...�[0m
�[1m+ Cleaning previous build...�[0m
�[1;32m - Done!�[0m
�[1m+ Checking source tarball ( /home/wangliang/sac_debian_packager/sac-101.6a_source.tar.gz )...�[0m
�[1;32m - Tarball exists!�[0m
�[1;32m - Tarball checksums is right!�[0m
�[1m+ Extracting...�[0m
�[1;32m - Done!�[0m
�[1m+ Preparing for configuration...�[0m
�[1;32m - Done!�[0m
�[1m+ Compiling...�[0m
Making all in src
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
cnd/xcndc.c: In function ‘xcndc’:
cnd/xcndc.c:39:3: warning: implicit declaration of function ‘getmacroinfo’ [-Wimplicit-function-declaration]
getmacroinfo(&level, ¯o_name[0], 1024);
^~~~~~~~~~~~
dfm/xrtab.c: In function ‘xrtab’:
dfm/xrtab.c:180:41: warning: ‘%s’ directive writing up to 128 bytes into a region of size 64 [-Wformat-overflow=]
sprintf ( command , "lpstat -v | grep %s" , kmgem.kptrName ) ;
^~ ~~~~~
dfm/xrtab.c:180:3: note: ‘sprintf’ output between 18 and 146 bytes into a destination of size 81
sprintf ( command , "lpstat -v | grep %s" , kmgem.kptrName ) ;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
exm/xmsg.c: In function ‘xmsg’:
exm/xmsg.c:45:7: warning: implicit declaration of function ‘lcchar_split’; did you mean ‘lcchar_base’? [-Wimplicit-function-declaration]
if( lcchar_split( MCMSG, kmsg,MCMSG+1, &ncmsg ) ){
^~~~~~~~~~~~
lcchar_base
fks/xgmtmap.c: In function ‘xgmtmap’:
fks/xgmtmap.c:575:23: warning: comparison between pointer and zero character constant [-Wpointer-compare]
if( pEventBuffer != '\0' ){
^~
fks/xgmtmap.c:575:10: note: did you mean to dereference the pointer?
if( pEventBuffer != '\0' ){
^
ar: `u' modifier ignored since `D' is the default (see `U')
evalresp/print_fctns.c: In function ‘print_resp_itp’:
evalresp/print_fctns.c:294:42: warning: ‘%s’ directive writing up to 63 bytes into a region of size between 60 and 249 [-Wformat-overflow=]
sprintf(filename,"AMP.%s.%s.%s.%s",resp->network,resp->station,resp->locid,resp->channel);
^~
evalresp/print_fctns.c:294:11: note: ‘sprintf’ output between 8 and 260 bytes into a destination of size 256
sprintf(filename,"AMP.%s.%s.%s.%s",resp->network,resp->station,resp->locid,resp->channel);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
evalresp/print_fctns.c:298:44: warning: ‘%s’ directive writing up to 63 bytes into a region of size between 58 and 247 [-Wformat-overflow=]
sprintf(filename,"PHASE.%s.%s.%s.%s",resp->network,resp->station,resp->locid,resp->channel);
^~
evalresp/print_fctns.c:298:11: note: ‘sprintf’ output between 10 and 262 bytes into a destination of size 256
sprintf(filename,"PHASE.%s.%s.%s.%s",resp->network,resp->station,resp->locid,resp->channel);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
evalresp/print_fctns.c:345:42: warning: ‘%s’ directive writing up to 63 bytes into a region of size between 60 and 249 [-Wformat-overflow=]
sprintf(filename,"FAP.%s.%s.%s.%s",resp->network,resp->station,resp->locid,resp->channel);
^~
evalresp/print_fctns.c:345:11: note: ‘sprintf’ output between 8 and 260 bytes into a destination of size 256
sprintf(filename,"FAP.%s.%s.%s.%s",resp->network,resp->station,resp->locid,resp->channel);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
evalresp/print_fctns.c:386:44: warning: ‘%s’ directive writing up to 63 bytes into a region of size between 56 and 245 [-Wformat-overflow=]
sprintf(filename,"SPECTRA.%s.%s.%s.%s",resp->network,resp->station,resp->locid,resp->channel);
^~
evalresp/print_fctns.c:386:9: note: ‘sprintf’ output between 12 and 264 bytes into a destination of size 256
sprintf(filename,"SPECTRA.%s.%s.%s.%s",resp->network,resp->station,resp->locid,resp->channel);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ar: `u' modifier ignored since `D' is the default (see `U')
SeisMgr/cssListOps/cssTableDump.c: In function ‘dblPrintGRheaderToString’:
SeisMgr/cssListOps/cssTableDump.c:1626:28: warning: ‘%41s’ directive writing 41 bytes into a region of size 30 [-Wformat-overflow=]
sprintf(buffer,"%41s","grname");
^~~~ ~~~~~~~~
SeisMgr/cssListOps/cssTableDump.c:1626:12: note: ‘sprintf’ output 42 bytes into a destination of size 30
sprintf(buffer,"%41s","grname");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SeisMgr/cssListOps/cssTableDump.c: In function ‘dblPrintINheaderToString’:
SeisMgr/cssListOps/cssTableDump.c:1702:28: warning: ‘%33s’ directive writing 33 bytes into a region of size 30 [-Wformat-overflow=]
sprintf(buffer,"%33s","dfile");
^~~~ ~~~~~~~
SeisMgr/cssListOps/cssTableDump.c:1702:12: note: ‘sprintf’ output 34 bytes into a destination of size 30
sprintf(buffer,"%33s","dfile");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SeisMgr/cssListOps/cssTableDump.c:1712:21: warning: ‘%65s’ directive writing 65 bytes into a region of size 30 [-Wformat-overflow=]
sprintf(buffer,"%65s","dir");
^~~~ ~~~~~
SeisMgr/cssListOps/cssTableDump.c:1712:5: note: ‘sprintf’ output 66 bytes into a destination of size 30
sprintf(buffer,"%65s","dir");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
SeisMgr/cssListOps/cssTableDump.c:1722:21: warning: ‘%51s’ directive writing 51 bytes into a region of size 30 [-Wformat-overflow=]
sprintf(buffer,"%51s","insname");
^~~~ ~~~~~~~~~
SeisMgr/cssListOps/cssTableDump.c:1722:5: note: ‘sprintf’ output 52 bytes into a destination of size 30
sprintf(buffer,"%51s","insname");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SeisMgr/cssListOps/cssTableDump.c: In function ‘dblPrintSLheaderToString’:
SeisMgr/cssListOps/cssTableDump.c:2713:21: warning: ‘%51s’ directive writing 51 bytes into a region of size 30 [-Wformat-overflow=]
sprintf(buffer,"%51s","staname");
^~~~ ~~~~~~~~~
SeisMgr/cssListOps/cssTableDump.c:2713:5: note: ‘sprintf’ output 52 bytes into a destination of size 30
sprintf(buffer,"%51s","staname");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SeisMgr/cssListOps/cssTableDump.c: In function ‘dblPrintSCheaderToString’:
SeisMgr/cssListOps/cssTableDump.c:2845:21: warning: ‘%51s’ directive writing 51 bytes into a region of size 30 [-Wformat-overflow=]
sprintf(buffer,"%51s","descrip");
^~~~ ~~~~~~~~~
SeisMgr/cssListOps/cssTableDump.c:2845:5: note: ‘sprintf’ output 52 bytes into a destination of size 30
sprintf(buffer,"%51s","descrip");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SeisMgr/cssListOps/cssTableDump.c: In function ‘dblPrintSAheaderToString’:
SeisMgr/cssListOps/cssTableDump.c:3034:21: warning: ‘%33s’ directive writing 33 bytes into a region of size 30 [-Wformat-overflow=]
sprintf(buffer,"%33s","location");
^~~~ ~~~~~~~~~~
SeisMgr/cssListOps/cssTableDump.c:3034:5: note: ‘sprintf’ output 34 bytes into a destination of size 30
sprintf(buffer,"%33s","location");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
Making all in utils
Making all in t
ar: `u' modifier ignored since `D' is the default (see `U')
�[1;32m - Done!�[0m
�[1;32m+ Adding program to distro path...�[0m
Making install in src
/usr/bin/install -c sac '/home/wangliang/sac_debian_packager/pkgroot/opt/sac/bin'
/usr/bin/install -c -m 644 libsacio.a libsac.a '/home/wangliang/sac_debian_packager/pkgroot/opt/sac/lib'
( cd '/home/wangliang/sac_debian_packager/pkgroot/opt/sac/lib' && ranlib libsacio.a )
( cd '/home/wangliang/sac_debian_packager/pkgroot/opt/sac/lib' && ranlib libsac.a )
Making install in utils
/usr/bin/install -c sgftops sgfswap saclst sacswap bbfswap unvis '/home/wangliang/sac_debian_packager/pkgroot/opt/sac/bin'
Making install in t
/usr/bin/install -c bin/sacinit.sh bin/sacinit.csh bin/sgftoeps.csh bin/sgftox.csh bin/sac-config '/home/wangliang/sac_debian_packager/pkgroot/opt/sac/bin'
/home/wangliang/sac_debian_packager/sac-101.6a
�[1;32m+ Generating Debian/Ubuntu packaging control file...�[0m
�[1;32m+ Use dpkg-deb to generate Debian/Ubuntu package...�[0m
dlsym(acl_get_fd): /usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl_get_fd
dlsym(acl_get_file): /usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl_get_file
dlsym(acl_set_fd): /usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl_set_fd
dlsym(acl_set_file): /usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl_set_file
dpkg-deb: building package 'sac-iris' in 'sac-iris-101.6a-2+sdp1.1ubuntu16_amd64.deb'.
dlsym(acl_get_fd): /usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl_get_fd
dlsym(acl_get_file): /usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl_get_file
dlsym(acl_set_fd): /usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl_set_fd
dlsym(acl_set_file): /usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl_set_file
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.