Fixes needed to build htop (#3691)
* Fixes needed to build htop * Build libncursesw.so, not libncurses.so * Remove htop hack now that it is picking up newer ncurses * Tell packages to link to new ncursesw libraries
This commit is contained in:
parent
87eafaa125
commit
745e2ce52f
@ -30,7 +30,12 @@ class Htop(AutotoolsPackage):
|
||||
|
||||
homepage = "https://github.com/hishamhm/htop"
|
||||
url = "https://hisham.hm/htop/releases/2.0.2/htop-2.0.2.tar.gz"
|
||||
list_url = "https://hisham.hm/htop/releases"
|
||||
list_depth = 1
|
||||
|
||||
version('2.0.2', '7d354d904bad591a931ad57e99fea84a')
|
||||
|
||||
depends_on('ncurses')
|
||||
|
||||
def configure_args(self):
|
||||
return ['--enable-shared']
|
||||
|
@ -36,3 +36,4 @@ class Htslib(AutotoolsPackage):
|
||||
|
||||
depends_on('zlib')
|
||||
depends_on('bzip2', when="@1.4:")
|
||||
depends_on('xz')
|
||||
|
@ -67,14 +67,14 @@ def install(self, spec, prefix):
|
||||
'MYLDFLAGS=-L%s -L%s' % (
|
||||
spec['readline'].prefix.lib,
|
||||
spec['ncurses'].prefix.lib),
|
||||
'MYLIBS=-lncurses',
|
||||
'MYLIBS=-lncursesw',
|
||||
'CC=%s -std=gnu99' % spack_cc,
|
||||
target)
|
||||
make('INSTALL_TOP=%s' % prefix,
|
||||
'MYLDFLAGS=-L%s -L%s' % (
|
||||
spec['readline'].prefix.lib,
|
||||
spec['ncurses'].prefix.lib),
|
||||
'MYLIBS=-lncurses',
|
||||
'MYLIBS=-lncursesw',
|
||||
'CC=%s -std=gnu99' % spack_cc,
|
||||
'install')
|
||||
|
||||
|
@ -57,7 +57,6 @@ def configure_args(self):
|
||||
'--with-cxx-shared',
|
||||
'--enable-widec',
|
||||
'--enable-overwrite',
|
||||
'--disable-lib-suffixes',
|
||||
'--without-ada',
|
||||
'--enable-pc-files',
|
||||
'--with-pkg-config-libdir={0}/lib/pkgconfig'.format(self.prefix)
|
||||
|
@ -45,4 +45,4 @@ class Readline(AutotoolsPackage):
|
||||
patch('readline-6.3-upstream_fixes-1.patch', when='@6.3')
|
||||
|
||||
def build(self, spec, prefix):
|
||||
make('SHLIB_LIBS=-lncurses')
|
||||
make('SHLIB_LIBS=-lncursesw')
|
||||
|
@ -46,7 +46,7 @@ class Samtools(Package):
|
||||
def install(self, spec, prefix):
|
||||
if self.spec.version >= Version('1.3.1'):
|
||||
configure('--prefix={0}'.format(prefix), '--with-ncurses',
|
||||
'CURSES_LIB=-lncurses')
|
||||
'CURSES_LIB=-lncursesw')
|
||||
make()
|
||||
make('install')
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user