Giter Site home page Giter Site logo

Comments (5)

githububub avatar githububub commented on June 6, 2024 1

2cb5395 with echo CFLAGS+= -fPIC > config.mak did the trick.

from netbsd-curses.

rofl0r avatar rofl0r commented on June 6, 2024

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.

rofl0r avatar rofl0r commented on June 6, 2024

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.

githububub avatar githububub commented on June 6, 2024

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.

rofl0r avatar rofl0r commented on June 6, 2024

oops, you uncovered a bug: fixed here 2cb5395

from netbsd-curses.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.