Package: opensmtpd Severity: serious Tags: upstream patch Justification: fails to build from source
When building this package a shitload of repeated warnings about a redefined macro scroll by exhausting my precious console backlog unnecessarily. The attached patch fixes this issue. Kind regards, Benny Baumann -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (900, 'testing'), (800, 'stable'), (750, 'experimental'), (700, 'unstable'), (500, 'oldstable') Architecture: amd64 (x86_64) Kernel: Linux 3.13-1-amd64 (SMP w/8 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
Description: Removes a shitload of stupid warnings due to redefining some macro unnecessarily Author: Benny Baumann <be...@geshi.org> --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: <other>, <url of original patch> Bug: <url in upstream bugtracker> Bug-Debian: http://bugs.debian.org/<bugnumber> Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber> Forwarded: <no|not-needed|url proving that it has been forwarded> Reviewed-By: <name and email of someone who approved the patch> Last-Update: <YYYY-MM-DD> --- opensmtpd-5.4.1p1.orig/openbsd-compat/defines.h +++ opensmtpd-5.4.1p1/openbsd-compat/defines.h @@ -373,13 +373,13 @@ struct winsize { #endif /* user may have set a different path */ -#if defined(_PATH_MAILDIR) && defined(MAIL_DIRECTORY) +#if !defined(_PATH_MAILDIR) && defined(MAILDIR) # define _PATH_MAILDIR MAILDIR -#endif /* defined(_PATH_MAILDIR) && defined(MAIL_DIRECTORY) */ +#endif /* !defined(_PATH_MAILDIR) && defined(MAIL_DIRECTORY) */ -#ifdef MAIL_DIRECTORY +#if !defined(_PATH_MAILDIR) && defined(MAIL_DIRECTORY) # define _PATH_MAILDIR MAIL_DIRECTORY -#endif +#endif /* !defined(_PATH_MAILDIR) && defined(MAIL_DIRECTORY) */ #ifdef MAILDIR # undef MAILDIR