Dear pkgsrc folks, already some time ago I needed to patch devel/nbpatch to work with gcc 5.x, adding some #define _GNU_SOURCE to fix complaints about asprintf() on CentOS 7.x/x86-64 with gcc-5.2+. I am not sure how broadly that is needed, but it at least does not seem to hurt anyone … or maybe it is superfluous nowadays? Can someone comment on asprintf() usage? Alrighty then, Thomas -- Dr. Thomas Orgis Universität Hamburg RRZ / Basis-Infrastruktur / HPC Schlüterstr. 70 20146 Hamburg Tel.: 040/42838 8826 Fax: 040/428 38 6270
diff -ru ../../../pkgsrc/devel/nbpatch/files/backupfile.c pkgsrc/devel/nbpatch/files/backupfile.c --- ../../../pkgsrc/devel/nbpatch/files/backupfile.c 2008-09-10 20:48:01.000000000 +0200 +++ pkgsrc/devel/nbpatch/files/backupfile.c 2015-08-08 13:11:22.781454944 +0200 @@ -21,6 +21,9 @@ * David MacKenzie <djm%ai.mit.edu@localhost>. Some algorithms adapted from GNU Emacs. */ +/* asprintf() is a GNU extension */ +#define _GNU_SOURCE + #if HAVE_CONFIG_H #include "config.h" #endif diff -ru ../../../pkgsrc/devel/nbpatch/files/patch.c pkgsrc/devel/nbpatch/files/patch.c --- ../../../pkgsrc/devel/nbpatch/files/patch.c 2009-04-29 15:41:16.000000000 +0200 +++ pkgsrc/devel/nbpatch/files/patch.c 2015-08-08 13:12:59.963702048 +0200 @@ -30,6 +30,9 @@ * behaviour */ +/* asprintf() is a GNU extension */ +#define _GNU_SOURCE + #if HAVE_CONFIG_H #include "config.h" #endif
Attachment:
smime.p7s
Description: S/MIME cryptographic signature