Retrieved 2023-03-05 from https://sources.debian.org/data/main/r/ruby-hiredis/0.6.3-2/debian/patches/use_system_libhiredis.patch. From: Apollon Oikonomopoulos Date: Mon, 20 Jan 2020 09:28:45 -0300 Subject: Use system libhiredis Last-Update: 2013-04-10 Forwarded: no Use Debian's libhiredis version instead of downloading one and statically linking against it. --- ext/hiredis_ext/extconf.rb | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/ext/hiredis_ext/extconf.rb b/ext/hiredis_ext/extconf.rb index da39eb5..ffa3abf 100644 --- a/ext/hiredis_ext/extconf.rb +++ b/ext/hiredis_ext/extconf.rb @@ -9,12 +9,6 @@ end RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC'] -hiredis_dir = File.join(File.dirname(__FILE__), %w{.. .. vendor hiredis}) -unless File.directory?(hiredis_dir) - STDERR.puts "vendor/hiredis missing, please checkout its submodule..." - exit 1 -end - RbConfig::CONFIG['configure_args'] =~ /with-make-prog\=(\w+)/ make_program = $1 || ENV['make'] make_program ||= case RUBY_PLATFORM @@ -27,15 +21,9 @@ else end if build_hiredis - # Make sure hiredis is built... - Dir.chdir(hiredis_dir) do - success = system("#{make_program} static") - raise "Building hiredis failed" if !success - end - - # Statically link to hiredis (mkmf can't do this for us) - $CFLAGS << " -I#{hiredis_dir}" - $LDFLAGS << " #{hiredis_dir}/libhiredis.a" + # Debian: use system hiredis + $CFLAGS << " -I/usr/include/hiredis" + $LDFLAGS << " -lhiredis" have_func("rb_thread_fd_select") create_makefile('hiredis/ext/hiredis_ext') ame='id' value='dcc6f0537f593af49c0b3e96ab8350b3ceba694f'/>
path: root/gnu/services/games.scm
AgeCommit message (Expand)Author
2023-01-14gnu: services: Add joycond-service....* gnu/services/games.scm (joycond-configuration): New configuration type. (joycond-shepherd-service): New procedure. (joycond-service-type): New variable. * doc/guix.texi (Game Services): Document it. David Thompson
2022-05-01services: wesnothd: Use 'least-authority-wrapper'....* gnu/services/games.scm (wesnothd-shepherd-service): Use 'least-authority-wrapper' instead of 'make-forkexec-constructor/container'. Ludovic Courtès
2022-05-01services: wesnothd: Grant write access to /var/run/wesnothd....* gnu/services/games.scm (wesnothd-shepherd-service): Augment 'modules' field. Pass #:mappings argument to 'make-forkexec-constructor/container'. (wesnothd-activation): New variable. (wesnothd-service-type): Extend ACTIVATION-SERVICE-TYPE. Ludovic Courtès