Bug 220072 - [patch] mail/fdm: doesn't build
Summary: [patch] mail/fdm: doesn't build
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Dirk Meyer
Keywords: patch
Depends on:
Reported: 2017-06-17 04:30 UTC by Brad Sliger
Modified: 2017-06-23 08:12 UTC (History)
0 users

See Also:
dinoex: maintainer-feedback+

Proposed Workaround (289 bytes, patch)
2017-06-17 04:30 UTC, Brad Sliger
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brad Sliger 2017-06-17 04:30:48 UTC
Created attachment 183562 [details]
Proposed Workaround

The mail/fdm port, version 1.9_1, doesn't build for me.  The last output from the build is below.  Setting MAKE_JOBS_UNSAFE=yes allows the port to build and install.

It looks like upstream doesn't establish a lex.o: parse.h dependency their Makefile but lex.c includes parse.h.  The attached patch adds MAKE_JOBS_UNSAFE=yes to the port Makefile to keep lex.o from being built in parallel with parse.h.

--- parse.c ---
/bin/sh ./etc/ylwrap parse.y y.tab.c parse.c y.tab.h `echo parse.c | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/  -e s/c++$/h++/ -e s/c$/h/` y.output parse.output -- bison -y  -d
--- lex.o ---
depbase=`echo lex.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; cc -DPACKAGE_NAME=\"fdm\" -DPACKAGE_TARNAME=\"fdm\" -DPACKAGE_VERSION=\"1.9\" -DPACKAGE_STRING=\"fdm\ 1.9\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"fdm\" -DVERSION=\"1.9\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_QUEUE_H=1 -DHAVE_SYS_TREE_H=1 -DHAVE_SETPROCTITLE=1 -DHAVE_SETRESUID=1 -DHAVE_SETRESGID=1 -DHAVE_STRLCPY=1 -DHAVE_STRLCAT=1 -DHAVE_STRTONUM=1 -DHAVE_B64_NTOP=1 -I.    -I/usr/local/include -DSYSCONFFILE="\"/usr/local/etc/fdm.conf\""  -DSYSLOCKFILE="\"/var/run/fdm.lock\""    -O2 -pipe  -DPCRE -fstack-protector -fno-strict-aliasing -D_GNU_SOURCE -std=gnu99 -O2  -MT lex.o -MD -MP -MF $depbase.Tpo -c -o lex.o lex.c && mv -f $depbase.Tpo $depbase.Po
lex.c:30:10: fatal error: 'parse.h' file not found
#include "parse.h"
1 error generated.
*** [lex.o] Error code 1

make[2]: stopped in /usr/ports/mail/fdm/work/fdm-1.9
--- parse.c ---
updating parse.h
1 error

make[2]: stopped in /usr/ports/mail/fdm/work/fdm-1.9
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

make[1]: stopped in /usr/ports/mail/fdm
*** Error code 1

make: stopped in /usr/ports/mail/fdm
Comment 1 commit-hook freebsd_committer 2017-06-23 00:06:02 UTC
A commit references this bug:

Author: dinoex
Date: Fri Jun 23 00:05:56 UTC 2017
New revision: 444162
URL: https://svnweb.freebsd.org/changeset/ports/444162

  - fix build, add MAKE_JOBS_UNSAFE
  PR:		220072
  Submitted by:	Brad Sliger