Comments (5)
2cb5395 with echo CFLAGS+= -fPIC > config.mak
did the trick.
from netbsd-curses.
nice to see arch interested in this project!
i attached now the sha512sum to the release download page here on github. generally the upstream URL for releases is http://ftp.barfooze.de/pub/sabotage/tarballs/ and we ususally also update the sabotage linux package with the release sha512 hash when we do a version bump: https://github.com/sabotage-linux/sabotage/blob/master/pkg/curses#L3 , this info is just for double-checking because i'll publish the checksum from now on with the release notes here on GH.
i looked into the arch package and there's one thing you could improve: rather than doing sed on GNUmakefile you can just echo "CFLAGS=-O1 -fPIC" > config.mak
.
as for the urxvt issue: i'm aware of that ( #9 ) and i think to solve it someone would have to contact urxvt upstream and ask if they could supply their terminfo snippet in a format that's supported (i.e. like all other terminfo entries in https://github.com/sabotage-linux/netbsd-curses/blob/master/terminfo/terminfo ) - we would even gladly add that to our default terminfo db and built-in terminfo entries.
if there's something else i can help you with let me know and good luck with your project!
from netbsd-curses.
i just saw another thing in your recipe that should be fixed:
if you just pass PREFIX= at make install time, hardcoded filenames such as the location of the global terminfo db will assume "/usr/local" as prefix. so it would be best if you echo PREFIX=/usr >> /config.mak
in prepare()
.
from netbsd-curses.
Thank you for the hash :) . Using the following updated build recipe: http://pastebin.com/EF7c0jSU
...results in...
==> Making package: netbsd-curses 0.1.1-1 (Thu Nov 10 19:13:15 UTC 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found netbsd-curses-0.1.1.tar.xz
==> Validating source files with sha512sums...
netbsd-curses-0.1.1.tar.xz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
-> Extracting netbsd-curses-0.1.1.tar.xz with bsdtar
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
cc -D_FORTIFY_SOURCE=2 -I. -I./libterminfo -DHAVE_WCHAR -DINSTALL_PREFIX="/usr" -I./tic -O1 -fPIC -Werror-implicit-function-declaration -c -o tic/tic.o tic/tic.c
cc -D_FORTIFY_SOURCE=2 -I. -I./libterminfo -DHAVE_WCHAR -DINSTALL_PREFIX="/usr" -I./tic -O1 -fPIC -Werror-implicit-function-declaration -c -o tic/cdbw.o tic/cdbw.c
cc -D_FORTIFY_SOURCE=2 -I. -I./libterminfo -DHAVE_WCHAR -DINSTALL_PREFIX="/usr" -I./tic -O1 -fPIC -Werror-implicit-function-declaration -c -o tic/mi_vector_hash.o tic/mi_vector_hash.c
cc -D_FORTIFY_SOURCE=2 -I. -I./libterminfo -DHAVE_WCHAR -DINSTALL_PREFIX="/usr" -I./tic -O1 -fPIC -Werror-implicit-function-declaration -c -o tic/compile.o tic/compile.c
cc -D_FORTIFY_SOURCE=2 -I. -I./libterminfo -DHAVE_WCHAR -DINSTALL_PREFIX="/usr" -O0 -g0 -c -o nbperf/nbperf.o nbperf/nbperf.c
In file included from /usr/include/endian.h:21:0,
from ./netbsd_sys/endian.h:4,
from nbperf/nbperf.c:45:
/usr/include/features.h:331:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^~~~~~~
cc -D_FORTIFY_SOURCE=2 -I. -I./libterminfo -DHAVE_WCHAR -DINSTALL_PREFIX="/usr" -O0 -g0 -c -o nbperf/nbperf-bdz.o nbperf/nbperf-bdz.c
In file included from /usr/include/err.h:22:0,
from nbperf/nbperf-bdz.c:40:
/usr/include/features.h:331:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^~~~~~~
cc -D_FORTIFY_SOURCE=2 -I. -I./libterminfo -DHAVE_WCHAR -DINSTALL_PREFIX="/usr" -O0 -g0 -c -o nbperf/nbperf-chm.o nbperf/nbperf-chm.c
cc -D_FORTIFY_SOURCE=2 -I. -I./libterminfo -DHAVE_WCHAR -DINSTALL_PREFIX="/usr" -O0 -g0 -c -o nbperf/nbperf-chm3.o nbperf/nbperf-chm3.c
cc -D_FORTIFY_SOURCE=2 -I. -I./libterminfo -DHAVE_WCHAR -DINSTALL_PREFIX="/usr" -O0 -g0 -c -o nbperf/graph2.o nbperf/graph2.c
In file included from /usr/include/err.h:22:0,
from nbperf/nbperf-chm.c:39:
/usr/include/features.h:331:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^~~~~~~
In file included from /usr/include/err.h:22:0,
from nbperf/nbperf-chm.c:39,
from nbperf/nbperf-chm3.c:4:
/usr/include/features.h:331:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^~~~~~~
In file included from /usr/include/err.h:22:0,
from nbperf/graph2.c:40:
/usr/include/features.h:331:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^~~~~~~
cc -D_FORTIFY_SOURCE=2 -I. -I./libterminfo -DHAVE_WCHAR -DINSTALL_PREFIX="/usr" -O0 -g0 -c -o nbperf/graph3.o nbperf/graph3.c
In file included from /usr/include/err.h:22:0,
from nbperf/graph3.c:40:
/usr/include/features.h:331:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^~~~~~~
cc -D_FORTIFY_SOURCE=2 -I. -I./libterminfo -DHAVE_WCHAR -DINSTALL_PREFIX="/usr" -O0 -g0 -c -o nbperf/mi_vector_hash.o nbperf/mi_vector_hash.c
cc -O1 -fPIC -Werror-implicit-function-declaration -D_FORTIFY_SOURCE=2 -I. -I./libterminfo -DHAVE_WCHAR -c -o libterminfo/ti.o libterminfo/ti.c
In file included from /usr/include/endian.h:21:0,
from ./netbsd_sys/endian.h:4,
from nbperf/mi_vector_hash.c:47:
/usr/include/features.h:331:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
warning _FORTIFY_SOURCE requires compiling with optimization (-O)
...where FORTIFY_SOURCE warnings regarding -O0 persist. CFLAGS in config.mak do not appear to take precedence over GNUmakefile for nbperf.
from netbsd-curses.
oops, you uncovered a bug: fixed here 2cb5395
from netbsd-curses.
Related Issues (20)
- `tput cols` always prints "80" HOT 5
- 0.2.1 Build Failure HOT 6
- sl hangs in linux terminal HOT 9
- Cannot seem to build static w/ specified lib && include paths HOT 4
- Error compiling with ncurses installed. HOT 5
- Problems uninstalling HOT 1
- Add toe utility HOT 7
- Compile fails with glibc 2.27-8 HOT 2
- support for strfnames/strnames HOT 14
- Cross-compiling issues HOT 1
- CANCELLED_STRING HOT 1
- Heavy namespace violations in curses.h HOT 2
- merge libcurses and libterminfo? HOT 2
- Unable to build with gnu-efi (linker relocation fails) HOT 4
- nnn with netbsd-curses HOT 32
- Make a new release HOT 2
- Issues compiling some packages HOT 4
- cross-compile with `clang`? HOT 1
- __scanflike error on musl HOT 3
- wchar_t / unicode support broken? - initscr breaking putwc HOT 19
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netbsd-curses.