aboutsummaryrefslogtreecommitdiff
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013, 2014, 2020 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
;;; Copyright © 2022 LuHui <luhux76@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages libdaemon)
  #:use-module (gnu packages autotools)
  #:use-module (guix licenses)
  #:use-module (guix packages)
  #:use-module (guix utils)
  #:use-module (guix download)
  #:use-module (guix build-system gnu))

(define-public libdaemon
  (package
    (name "libdaemon")
    (version "0.14")
    (source (origin
             (method url-fetch)
             (uri (list
                   (string-append
                    "mirror://debian/pool/main/libd/libdaemon/libdaemon_"
                    version ".orig.tar.gz")
                   "http://pkgs.fedoraproject.org/repo/pkgs/libdaemon/libdaemon-0.14.tar.gz/509dc27107c21bcd9fbf2f95f5669563/libdaemon-0.14.tar.gz"

                   ;; This used to be the canonical URL but it vanished.
                   ;; See <http://bugs.gnu.org/18639>.
                   ;; (string-append
                   ;;  "http://0pointer.de/lennart/projects/libdaemon/libdaemon-"
                   ;;  version ".tar.gz")
                   ))
             (sha256
              (base32
               "0d5qlq5ab95wh1xc87rqrh1vx6i8lddka1w3f1zcqvcqdxgyn8zx"))
             (file-name (string-append name "-" version ".tar.gz"))))
    (build-system gnu-build-system)
    (native-inputs
     (if (or (and=> (%current-target-system) target-aarch64?)
             (and=> (%current-target-system) target-riscv64?))
         `(("config" ,config)) ; for config.sub
         '()))
    (arguments
     `(,@(if (%current-target-system)
             ;; The 'setpgrp' test cannot provide an answer when cross-compiling,
             ;; so provide the right one for glibc.
             `(#:configure-flags (list "ac_cv_func_setpgrp_void=yes"

                                       ;; TODO: Move this globally on the next
                                       ;; rebuild cycle.
                                       ;; Set a valid localstatedir for the
                                       ;; benefit of the default
                                       ;; 'daemon_pid_file_proc', used by the
                                       ;; Hurd's console client.
                                       "--localstatedir=/var"))
             '())
       ,@(if (or (and=> (%current-target-system) target-aarch64?)
                 (and=> (%current-target-system) target-riscv64?))
             `(#:phases
               (modify-phases %standard-phases
                 (add-before 'configure 'update-config.sub
                   (lambda _
                     ;; Replace outdated config.sub such that aarch64
                     ;; will be recognised as an architecture.
                     (delete-file "config.sub")
                     (symlink (which "config.sub") "config.sub")))))
             '())))
    ;; XXX: Stale URL, missing replacement.  See <http://bugs.gnu.org/18639>.
    (home-page "https://0pointer.de/lennart/projects/libdaemon/")

    (synopsis "Lightweight C library that eases the writing of UNIX daemons")
    (description
     "Libdaemon is a lightweight C library that eases the writing of UNIX
daemons.  It consists of the following parts:

  • A wrapper around fork() which does the correct daemonization procedure of
    a process

  • A wrapper around syslog() for simpler and compatible log output to Syslog
    or STDERR

  • An API for writing PID files

  • An API for serializing UNIX signals into a pipe for usage with select() or
    poll()

  • An API for running subprocesses with STDOUT and STDERR redirected to
    syslog.

APIs like these are used in most daemon software available.  It is not that
simple to get it done right and code duplication is not a goal.")
    (license lgpl2.1+)))
200'>2024-08-31gnu: guitarix: Remove native-search-paths....* gnu/packages/audio.scm (guitarix)[native-search-paths]: Remove 'LV2_PATH'. Change-Id: Ie68167853bd896872420a5047fdc36989a814e21 Signed-off-by: Ludovic Courtès <ludo@gnu.org> Nikita Domnitskii 2024-08-31gnu: calf: Remove native-search-paths....* gnu/packages/audio.scm (calf)[native-search-paths]: Remove 'LV2_PATH'. Change-Id: Ib9ca000aae75826bea7c43e1768fb92d555dc937 Signed-off-by: Ludovic Courtès <ludo@gnu.org> Nikita Domnitskii 2024-08-31gnu: webrtc-audio-processing: Fix build on i686 and powerpc64le....* gnu/packages/audio.scm (webrtc-audio-processing)[arguments]: New field. * gnu/packages/patches/webrtc-audio-processing-byte-order-pointer-size.patch, gnu/packages/patches/webrtc-audio-processing-x86-no-sse.patch: New files. * gnu/local.mk (dist_patch_DATA): Add them. Change-Id: I3a95e5e2794df0d51e005672b5d3e2d98f27b767 Co-authored-by: Ludovic Courtès <ludo@gnu.org> Kaelyn Takata 2024-08-31gnu: tenacity: Fix build....* gnu/packages/audio.scm (tenacity)[arguments]: Don't refer to nonexistent 'wrap-program' phase. Change-Id: I4fe48bce7cb48904f1f2f4d8685debbbf16c01e8 宋文武 2024-08-31gnu: audacity: Fix build....* gnu/package/audio.scm (audacity)[arguments]: Don't refer to nonexistent 'wrap-program' phase. Change-Id: I219afd9097ec731ba03c33a0c72bbc657a95486b 宋文武 2024-08-31gnu: openal: Update to 1.23.1....* gnu/packages/audio.scm (openal): Update to 1.23.1. Change-Id: I8403db8942a11b5260cf46ddbc1a584f83b452f8 Maxim Cournoyer 2024-08-31gnu: webrtc-audio-processing: Fix build....* gnu/packages/audio.scm (webrtc-audio-processing) [source]: Drop patch and snippet. [native-inputs]: Add pkg-config. * gnu/packages/patches/webrtc-audio-processing-big-endian.patch: Delete file. * gnu/local.mk (dist_patch_DATA): De-register it. Change-Id: I3340371a8d484a0ad1faddedc911169e29957281 Maxim Cournoyer 2024-08-31gnu: webrtc-audio-processing: Update to 1.3....* gnu/packages/audio.scm (webrtc-audio-processing): Update to 1.3. Change-Id: I00e216810cf4f93b05196b7912e80ebf5f063cb6 Maxim Cournoyer 2024-08-31gnu: webrtc-audio-processing: Update to 1.0....* gnu/packages/audio.scm (webrtc-audio-processing): Update to 1.0. [source]: Add snippet that fixes building on riscv and powerpc architectures. [arguments]: Remove patch-source phase. [build-system]: Update to meson-build-system. [inputs]: Add abseil-cpp as input. * gnu/packages/patches/webrtc-audio-processing-big-endian.patch: Update to 1.0. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Change-Id: I3e4a9e34aa23336ab09d4d5f098abe8c53f32f9d Adam Faiz 2024-08-31gnu: jack2: Add 'bash' input for 'wrap-program'....It is required for cross-compilation. * gnu/packages/audio.scm (jack-2)[inputs]: Add 'bash-minimal'. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Maxime Devos 2024-08-22gnu: easyeffects: Update to 7.1.7....* gnu/packages/audio.scm (easyeffects): Update to 7.1.7. [native-inputs]: Add gcc-12 and soundtouch, remove speex. [propagated-inputs]: Remove rubberband, add ladspa and change to the lv2 output of lsp-plugins. Signed-off-by: Christopher Baines <mail@cbaines.net> Change-Id: Iebd74f52dd4eae94f2dbdf7f5148e8d062b75807 Nikita Domnitskii 2024-08-02gnu: Add cyanrip....* gnu/packages/audio.scm (cyanrip): New variable. Signed-off-by: mio <stigma@disroot.org> Change-Id: If7059b47e5a9f968570af8617f28bbe9a8b30b93 Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Simon Streit 2024-06-30gnu: soundtouch: Update to 2.3.1....* gnu/packages/audio.scm (soundtouch): Update to 2.3.1. Change-Id: I0ca03186283d85f0ffa24c222ab2d1269fb94f63 Signed-off-by: Andreas Enge <andreas@enge.fr> hapster 2024-06-24gnu: python-pulsectl: Update to 24.4.0....* gnu/packages/audio.scm (python-pulsectl): Update to 24.4.0. Change-Id: I63f43377432d511dea7ffa6b235f8bcc770f1d93 Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Sergiu Ivanov 2024-06-13gnu: stargate-{sbsms,soundtouch}: Add source file name....* gnu/packages/audio.scm (stargate-sbsms)[source]: Add ‘file-name’. (stargate-soundtouch)[source]: Likewise. Change-Id: I57b6ae3a46e3cb569108783a951864a1ff43e038 Ludovic Courtès 2024-06-13gnu: stargate: Move libsbsms and soundtouch forks to audio.scm....This avoids generating new packages at run time and makes them visible to ‘fold-packages’. * gnu/packages/audio.scm (stargate-sbsms, stargate-soundtouch): New variables, taken from… * gnu/packages/music.scm (stargate)[inputs]: … here. Use them. Change-Id: I2344d82756b3b7295c505fbdb36886b74abe5d5d Ludovic Courtès 2024-05-31gnu: audacity: Re-add fallback to locate ffmpeg via pkg-config....This reintroduces the patch that was deleted by cf5f7a8bf9ca2288700fcf351bbca0fc341ec969, adjusting file names. * gnu/packages/patches/audacity-ffmpeg-fallback.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it here. * gnu/packages/audio.scm (audacity)[patches]: Use it here. Change-Id: I848df8a9762216eb2b02afc3843e0e9806db14be Signed-off-by: Ludovic Courtès <ludo@gnu.org> Kaelyn Takata 2024-05-15gnu: tenacity: Add support for ebml and matroska formats....* gnu/packages/audio.scm (tenacity)[inputs]: Add libeml and libmatroska. Change-Id: I40ccef47128197b174dd515eb144eb552507178b Signed-off-by: Christopher Baines <mail@cbaines.net> Nicolas Graves 2024-05-15gnu: tenacity: Update to 1.3.3....* gnu/packages/audio.scm (tenacity): Update to 1.3.3. Change-Id: I76722d59070be0bd75976b92afefc75f5ad75f91 Signed-off-by: Christopher Baines <mail@cbaines.net> Nicolas Graves 2024-05-09gnu: audacity: update to 3.5.1....* gnu/packages/audio.scm (audacity): Update to 3.5.1. [inputs]: Add opusfile and rapidjson. * gnu/packages/patches/audacity-ffmpeg-fallback.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Unregister it. Change-Id: I4245ba1fa21bb54c6b647b001ae9b5cea846c774 Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Andy Tai 2024-05-06gnu: darkice: Fix build....* gnu/packages/audio.scm (darkice)[arguments]: Add a make-flag to use an earlier C++ standard. Change-Id: I2b7be09be9deb4637e996a9a697e31efed5c5508 Efraim Flashner 2024-05-06gnu: tenacity: Update to 1.3.1....* gnu/packages/audio.scm (tenacity): Update to 1.3.1. Change-Id: Id06fb3e9283524341f30d961854d8e6f6df1543e Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr> Andy Tai 2024-05-04gnu: cava: Update to 0.10.1....* gnu/packages/audio.scm (cava)[version]: Update to 0.10.1. [native-inputs]: Add pkg-config. [inputs]: Add alsa-lib and pipewire. Change-Id: Iffa80b22199a032111ca06e8ed583139f35f2fab Oleg Pykhalov 2024-04-01gnu: ardour: Update to 8.4....* gnu/packages/audio.scm (ardour): Update to 8.4. [arguments]: Do not use bundled GTK2. Co-authored-by: Apoorv. Change-Id: I7c50ca8df14d2edec8bd9e862cb05dd455913b60 Ricardo Wurmus 2024-04-01gnu: qpwgraph: Update to 0.6.3....* gnu/packages/audio.scm (qpwgraph): Update to 0.6.3. Change-Id: Ic02d38ce90e5916e6a4b5dc459c98a817e85e652 Ricardo Wurmus 2024-03-23gnu: libdjinterop: Update to 0.20.2....* gnu/packages/audio.scm (libdjinterop): Update to 0.20.2. [build-system]: Use cmake-build-system. [arguments]: Delete the make-git-checkout-writable phase. Change-Id: I0e5c96834ce16d159479a30ab6089aa727a6d8d1 Vinicius Monego 2024-03-19gnu: Add alsa-midi-latency-test....* gnu/packages/audio.scm (alsa-midi-latency-test): New variable. Change-Id: I35d3047cb997c5787de515a38ae0a0eb8f12600d Signed-off-by: Ludovic Courtès <ludo@gnu.org> Giacomo Leidi 2024-02-25gnu: Add omins-lv2....* gnu/packages/audio.scm (omins-lv2): New Variable. Signed-off-by: Ricardo Wurmus <rekado@elephly.net> Change-Id: Ica6f11d66331476c65e2d971c6de5f8aacc46454 Thorsten Wilms 2024-02-05gnu: qpwgraph: Update to 0.6.2....* gnu/packages/audio.scm (qpwgraph): Update to 0.6.2. Change-Id: I4b05ea71f08dd4c5bcc59f2a86069ad068f4a84f Signed-off-by: Ludovic Courtès <ludo@gnu.org> Juliana Sims 2024-01-11gnu: rubberband: Propagate required libraries....* gnu/packages/audio.scm (rubberband)[inputs]: Move fftw and libsamplerate from here... [propagated-inputs]: ...to here. Change-Id: I0a2813fcad789b0609f1d300ec8508f4092665bf Ricardo Wurmus 2024-01-11gnu: Add easyeffects....* gnu/packages/audio.scm (easyeffects): New variable. Change-Id: Ie58da47abf7312708840fdec97f19f7aad3ea337 Brendan Tildesley 2024-01-11gnu: rubberband: Update to 3.3.0....* gnu/packages/audio.scm (rubberband): Update to 3.3.0. [build-system]: Use meson-build-system. [arguments]: Enable tests; use libsamplerate over builtin resampler; use Guix fftw over bundled version. [inputs]: Add fftw and lv2. [native-search-paths]: Add LV2 and LADSPA search paths. Co-authored-by: Ricardo Wurmus <rekado@elephly.net>. Change-Id: I0cf9e12147eaa8c747190cf305cbc209f86ee44a Brendan Tildesley 2024-01-11gnu: lilv: Update to 0.24.22....* gnu/packages/audio.scm (lilv): Update to 0.24.22. Change-Id: I290632adf5dacd41af9e7ca69dd12da7237d7237 Ricardo Wurmus 2024-01-11gnu: lilv: Enable tests....* gnu/packages/audio.scm (lilv)[arguments]: Use G-expression; enable tests. Change-Id: I22b36726caa903e26dc07806d7d57816f9841971 Ricardo Wurmus 2024-01-11gnu: lilv: Update to 0.24.20....* gnu/packages/audio.scm (lilv): Update to 0.24.20. [build-system]: Use meson. [arguments]: Remove.ldflag hack not needed with meson. [home-page]: Append ".html". Change-Id: Ia4edfe436d8bb45c937d77c385c3e472df335ca8 Brendan Tildesley 2024-01-11gnu: mda-lv2: Update to 1.2.10....* gnu/packages/audio.scm (mda-lv2): Update to 1.2.10. [build-system]: Use meson. [arguments]: Remove unnecessary flags Brendan Tildesley 2024-01-11gnu: sratom: Update to 0.6.16....* gnu/packages/audio.scm (sratom): Update to 0.6.16. Change-Id: I2ac0d532dcf2548cf80931e68b9a13782bfc1d9b Ricardo Wurmus 2024-01-11gnu: sratom: Enable tests....* gnu/packages/audio.scm (sratom)[arguments]: Remove. Change-Id: Ibf3bcf712b964d7e9470e338d76feede8c41fc15 Ricardo Wurmus 2024-01-11gnu: sratom: Update to 0.6.14....* gnu/packages/audio.scm (sratom): Update to 0.6.14. [build-system]: Use meson. Brendan Tildesley 2024-01-11gnu: lv2: Update to 1.18.10....* gnu/packages/audio.scm (lv2): Update to 1.18.10. [build-system]: Use meson. [arguments]: Enable tests. Brendan Tildesley 2024-01-11gnu: vamp: Update to 2.10.0....* gnu/packages/audio.scm (vamp): Update to 2.10.0. Brendan Tildesley