OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../musl/pkg/procps/procps.conf
  5. # Copyright (C) 2014 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- SDE-COPYRIGHT-NOTE-END ---
  14. # approach taken from sabotage linux
  15. musl_procps_addmissing() {
  16. # add minimal internal error.h
  17. cat << EOF > include/error.h
  18. #include <stdio.h>
  19. #include <string.h>
  20. #define PROGRAM_NAME "procps"
  21. #define error(status, errnum, ...) \
  22. do { fflush(stdout); \
  23. dprintf(2, PROGRAM_NAME ": "); \
  24. dprintf(2, __VA_ARGS__); \
  25. if(errnum) dprintf(2, ": %s", strerror(errnum)); \
  26. dprintf(2, "\n"); \
  27. if(status) exit(status); \
  28. } while(0)
  29. #define error_at_line(status, errnum, fn, line, ...) \
  30. do { fflush(stdout); \
  31. dprintf(2, PROGRAM_NAME ": %s:%d", fn, (int) line); \
  32. dprintf(2, __VA_ARGS__); \
  33. if(errnum) dprintf(2, ": %s", strerror(errnum)); \
  34. dprintf(2, "\n"); \
  35. if(status) exit(status); \
  36. } while(0)
  37. EOF
  38. mkdir -p include/sys
  39. # add minimal sys/dir.h
  40. cat << EOF > include/sys/dir.h
  41. #include <dirent.h>
  42. #define direct dirent
  43. EOF
  44. }
  45. hook_add preconf 5 'musl_procps_addmissing'
  46. # sysctl.c: error: 'GLOB_TILDE' undeclared
  47. #var_append CFLAGS ' ' '-DGLOB_TILDE=0'
  48. var_append configprefix ' ' 'CFLAGS="-DGLOB_TILDE=0"'