dovecot: fix size of time_t for 64-bit cross.
configure_args hard coded the size of the time_t type, which means 64-bit cross compiled archs, such as aarch64, were using the wrong type. For little-endian, it would just break 2038-proofness, but BE machines could have bigger issues. A comment and commented out code were added to prepare for musl's time64 update.
This commit is contained in:
parent
dd0a18b000
commit
1026b735a7
1 changed files with 5 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
||||||
# revbump dovecot-plugin-pigeonhole when updating dovecot!
|
# revbump dovecot-plugin-pigeonhole when updating dovecot!
|
||||||
pkgname=dovecot
|
pkgname=dovecot
|
||||||
version=2.3.11.3
|
version=2.3.11.3
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-moduledir=/usr/lib/dovecot/modules --with-sql=plugin
|
configure_args="--with-moduledir=/usr/lib/dovecot/modules --with-sql=plugin
|
||||||
--disable-static --with-pam --with-mysql --with-pgsql --with-lucene
|
--disable-static --with-pam --with-mysql --with-pgsql --with-lucene
|
||||||
|
@ -22,14 +22,16 @@ distfiles="${homepage}/releases/2.3/${pkgname}-${version}.tar.gz"
|
||||||
checksum=d3d9ea9010277f57eb5b9f4166a5d2ba539b172bd6d5a2b2529a6db524baafdc
|
checksum=d3d9ea9010277f57eb5b9f4166a5d2ba539b172bd6d5a2b2529a6db524baafdc
|
||||||
keep_libtool_archives=yes
|
keep_libtool_archives=yes
|
||||||
|
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
_tsize=${XBPS_TARGET_WORDSIZE}
|
||||||
|
# FIXME: remove for time64 rebuild
|
||||||
|
#[ "$XBPS_TARGET_LIBC" = "musl" ] && _tsize=64
|
||||||
configure_args+="
|
configure_args+="
|
||||||
i_cv_epoll_works=yes
|
i_cv_epoll_works=yes
|
||||||
i_cv_inotify_works=yes
|
i_cv_inotify_works=yes
|
||||||
i_cv_posix_fallocate_works=yes
|
i_cv_posix_fallocate_works=yes
|
||||||
i_cv_signed_size_t=no
|
i_cv_signed_size_t=no
|
||||||
i_cv_gmtime_max_time_t=32
|
i_cv_gmtime_max_time_t=${_tsize}
|
||||||
i_cv_signed_time_t=yes
|
i_cv_signed_time_t=yes
|
||||||
i_cv_mmap_plays_with_write=yes
|
i_cv_mmap_plays_with_write=yes
|
||||||
i_cv_fd_passing=yes
|
i_cv_fd_passing=yes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue