Opened 5 years ago

Last modified 5 years ago

#58045 closed defect

logrotate @3.15.0 fails to build on High Sierra — at Initial Version

Reported by: Schamschula (Marius Schamschula) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: logrotate

Description

While upgrading logrotate on my High Sierra machine is get:

/usr/bin/clang -DHAVE_CONFIG_H -I.  -include config.h -I/opt/local/include -Wall -Wextra -Wmissing-format-attribute -Wmissing-noreturn -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef -Wunused -Wwrite-strings -pipe -Os -arch x86_64 -MT logrotate.o -MD -MP -MF .deps/logrotate.Tpo -c -o logrotate.o logrotate.c
logrotate.c:478:38: warning: unused parameter 'acl' [-Wunused-parameter]
                            acl_type acl, int force_mode)
                                     ^
logrotate.c:694:17: error: no member named 'st_atim' in 'struct stat'
    ts[0] = sb->st_atim;
            ~~  ^
logrotate.c:695:17: error: no member named 'st_mtim' in 'struct stat'
    ts[1] = sb->st_mtim;
            ~~  ^
1 warning and 2 errors generated.

Ryan ran into a similar problem with optipng: see https://sourceforge.net/p/optipng/bugs/47/, so I patched logrotate.c, see attached files.

Change History (2)

Changed 5 years ago by Schamschula (Marius Schamschula)

Attachment: Portfile added

Changed 5 years ago by Schamschula (Marius Schamschula)

Attachment: patch-logrotate.c.diff added
Note: See TracTickets for help on using tickets.