diff options
| author | Andreas Enge <andreas@enge.fr> | 2025-08-28 12:47:02 +0200 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2025-08-28 12:47:19 +0200 |
| commit | 73d1cbd7290890ff46b693a86a703e1f98df9ee0 (patch) | |
| tree | daa826004cfe6ace6c830f2b804ad406a21d57b6 /gnu/packages/code.scm | |
| parent | 6f066e2d438a330ec39720c8cf2c948cafe93a52 (diff) | |
gnu: Remove cdecl.
* gnu/packages/code.scm (cdecl): Delete variable.
Fixes: guix/guix#1631
Change-Id: Ib7526935897348f7b644b795df755a8102d4d403
Diffstat (limited to 'gnu/packages/code.scm')
| -rw-r--r-- | gnu/packages/code.scm | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm index 7d081e3e3fa..d508f37730b 100644 --- a/gnu/packages/code.scm +++ b/gnu/packages/code.scm | |||
| @@ -15,7 +15,6 @@ | |||
| 15 | ;;; Copyright © 2020, 2021, 2023 Marius Bakke <marius@gnu.org> | 15 | ;;; Copyright © 2020, 2021, 2023 Marius Bakke <marius@gnu.org> |
| 16 | ;;; Copyright © 2020 Julien Lepiller <julien@lepiller.eu> | 16 | ;;; Copyright © 2020 Julien Lepiller <julien@lepiller.eu> |
| 17 | ;;; Copyright © 2021 lu hui <luhuins@163.com> | 17 | ;;; Copyright © 2021 lu hui <luhuins@163.com> |
| 18 | ;;; Copyright © 2021, 2022 Foo Chuan Wei <chuanwei.foo@hotmail.com> | ||
| 19 | ;;; Copyright © 2022 Michael Rohleder <mike@rohleder.de> | 18 | ;;; Copyright © 2022 Michael Rohleder <mike@rohleder.de> |
| 20 | ;;; Copyright © 2023 Fries <fries1234@protonmail.com> | 19 | ;;; Copyright © 2023 Fries <fries1234@protonmail.com> |
| 21 | ;;; Copyright © 2023 Zheng Junjie <873216071@qq.com> | 20 | ;;; Copyright © 2023 Zheng Junjie <873216071@qq.com> |
| @@ -950,88 +949,6 @@ extensions over the standard utility.") | |||
| 950 | (properties '((lint-hidden-cves . ("CVE-2023-40305" | 949 | (properties '((lint-hidden-cves . ("CVE-2023-40305" |
| 951 | "CVE-2024-0911"))))))) | 950 | "CVE-2024-0911"))))))) |
| 952 | 951 | ||
| 953 | (define-public cdecl | ||
| 954 | (package | ||
| 955 | (name "cdecl") | ||
| 956 | (version "2.5") | ||
| 957 | (source | ||
| 958 | (origin | ||
| 959 | (method url-fetch) | ||
| 960 | (uri (string-append "https://www.ibiblio.org/pub/linux/devel/lang/c/cdecl-" | ||
| 961 | version ".tar.gz")) | ||
| 962 | (sha256 | ||
| 963 | (base32 "0dm98bp186r4cihli6fmcwzjaadgwl1z3b0zdxfik8h7hkqawk5p")))) | ||
| 964 | (build-system gnu-build-system) | ||
| 965 | (arguments | ||
| 966 | `(#:make-flags | ||
| 967 | ,#~(list "LIBS=-lreadline" | ||
| 968 | (string-append "BINDIR=" #$output "/bin") | ||
| 969 | (string-append "MANDIR=" #$output "/share/man/man1")) | ||
| 970 | #:phases | ||
| 971 | (modify-phases %standard-phases | ||
| 972 | (delete 'configure) ; No configure script. | ||
| 973 | (add-after 'unpack 'fix-build | ||
| 974 | (lambda _ | ||
| 975 | (substitute* "Makefile" | ||
| 976 | (("lex cdlex.l") | ||
| 977 | "flex cdlex.l")) | ||
| 978 | (substitute* "cdecl.c" | ||
| 979 | ;; Fix "error: conflicting types for ‘getline’". | ||
| 980 | (("char \\* getline\\(\\)") | ||
| 981 | "char * our_getline(void)") | ||
| 982 | (("char \\* getline \\(\\)") | ||
| 983 | "char * our_getline(void)") | ||
| 984 | (("line = getline\\(\\)") | ||
| 985 | "line = our_getline()") | ||
| 986 | ;; Fix "error: conflicting types for ‘getopt’". | ||
| 987 | (("int getopt\\(int,char \\*\\*,char \\*\\);") | ||
| 988 | "") | ||
| 989 | ;; Fix invalid use of "restrict" as a variable name. | ||
| 990 | (("i, j, restrict") | ||
| 991 | "i, j, restriction") | ||
| 992 | (("restrict =") | ||
| 993 | "restriction =") | ||
| 994 | ;; Fix "warning: implicit declaration of function ‘add_history’". | ||
| 995 | (("# include <readline/readline.h>" all) | ||
| 996 | (string-append all "\n# include <readline/history.h>")) | ||
| 997 | ;; Fix "warning: implicit declaration of function ‘dotmpfile_from_string’". | ||
| 998 | (("void setprogname\\(char \\*\\);" all) | ||
| 999 | (string-append all "\nint dotmpfile_from_string(char *);")) | ||
| 1000 | ;; Fix "warning: implicit declaration of function ‘completion_matches’". | ||
| 1001 | (("matches = completion_matches\\(text, command_completion\\);") | ||
| 1002 | "matches = rl_completion_matches(text, command_completion);") | ||
| 1003 | (("char \\* command_completion\\(char \\*, int\\);") | ||
| 1004 | "char * command_completion(const char *, int);") | ||
| 1005 | (("char \\* command_completion\\(char \\*text, int flag\\)") | ||
| 1006 | "char * command_completion(const char *text, int flag)") | ||
| 1007 | ;; Fix "warning: ‘CPPFunction’ is deprecated". | ||
| 1008 | (("rl_attempted_completion_function = \\(CPPFunction \\*\\)attempt_completion;") | ||
| 1009 | "rl_attempted_completion_function = (rl_completion_func_t *)attempt_completion;") | ||
| 1010 | ;; Fix "warning: ‘Function’ is deprecated". | ||
| 1011 | (("rl_completion_entry_function = \\(Function \\*\\)keyword_completion;") | ||
| 1012 | "rl_completion_entry_function = (rl_compentry_func_t *)keyword_completion;")) | ||
| 1013 | ;; Fix typo in man page. | ||
| 1014 | (substitute* "cdecl.1" | ||
| 1015 | (("<storage>\t::= auto \\| extern \\| register \\| auto") | ||
| 1016 | "<storage>\t::= auto | extern | register | static")))) | ||
| 1017 | (add-before 'install 'create-directories | ||
| 1018 | (lambda* (#:key outputs #:allow-other-keys) | ||
| 1019 | (let* ((out (assoc-ref outputs "out")) | ||
| 1020 | (bin (string-append out "/bin")) | ||
| 1021 | (man (string-append out "/share/man/man1"))) | ||
| 1022 | (mkdir-p bin) | ||
| 1023 | (mkdir-p man))))) | ||
| 1024 | #:tests? #f)) ; No "check" target. | ||
| 1025 | (native-inputs (list bison flex)) | ||
| 1026 | (inputs (list readline)) | ||
| 1027 | (home-page "https://www.ibiblio.org/pub/linux/devel/lang/c/") | ||
| 1028 | (synopsis "Turn English phrases into C or C++ declarations and vice versa") | ||
| 1029 | (description "@code{cdecl} is a program that turns English-like phrases into C | ||
| 1030 | declarations. It can also translate C into pseudo-English. It also handles | ||
| 1031 | type casts and C++. It has command-line editing and history with the GNU | ||
| 1032 | Readline library.") | ||
| 1033 | (license license:public-domain))) | ||
| 1034 | |||
| 1035 | (define-public sourcetrail | 952 | (define-public sourcetrail |
| 1036 | (package | 953 | (package |
| 1037 | (name "sourcetrail") | 954 | (name "sourcetrail") |
