trusteddomainproject / OpenDKIM

Other
97 stars 52 forks source link

Add linux friendly implementations of strlcpy and strlcat #54

Closed TomasKorbar closed 4 years ago

TomasKorbar commented 5 years ago

Add implementations of strlcpy and strlcat to opendkim

Implementations were taken from libbsd to maintain compatibility.

List of changes and their justification:

configure

configure.ac

libopendkim/Makefile.am

opendkim/Makefile.am

*.c files

egberts commented 4 years ago

Wow... Thanks!

Accidentially filed same bug to SourceForge and Debian on this, but that configure has that inability to detect the file/file.h for strlcat/strlcpy C declarators and is still an issue with 2.11.0-alpha-8 (Debian variant).

Perhaps, updating the opendkim to point to a NEWER "bugzilla" location/URL?

References:

glts commented 4 years ago

@egberts This pull request does not fix a bug, it is a proposal to get rid of a dependency. It is a preference not something strictly necessary.

egberts commented 4 years ago

I fixed my issue by installing libbsd-dev, Debian package.

TomasKorbar commented 4 years ago

@egberts This pull request does not fix a bug, it is a proposal to get rid of a dependency. It is a preference not something strictly necessary.

Yes

I fixed my issue by installing libbsd-dev, Debian package.

Of course. This is just a way how to build OpenDKIM without that dependency:)

martinbogo commented 4 years ago

The dependency is there so that we don't have to maintain a separate implementation of these functions. Although we don't specifically target any distributions... the Trusted Domain Project does strive to maintain compatibility, maintainability, and security as much as possible.

The dependency on libbsd-dev is there as designed and will remain for now. If we need to change that in the future, this PR may help, but it will not be merged in.