Bug 191507 - build failure with graphics/dia
Summary: build failure with graphics/dia
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-30 06:24 UTC by Justin Hibbits
Modified: 2018-01-15 04:27 UTC (History)
6 users (show)

See Also:


Attachments
poudriere build log for graphics/dia (794.61 KB, text/plain)
2014-06-30 06:24 UTC, Justin Hibbits
no flags Details
Exclude doc dir from build when DOCS option is off (1.92 KB, patch)
2014-08-28 14:05 UTC, Andriy Voskoboinyk
no flags Details | Diff
patch-docs.diff (1.55 KB, patch)
2014-10-24 21:42 UTC, Andriy Voskoboinyk
no flags Details | Diff
patch-docs.diff (1.47 KB, patch)
2014-10-24 22:47 UTC, Andriy Voskoboinyk
no flags Details | Diff
Remove docs from SUBDIRS when DOCS option is off (1.47 KB, patch)
2014-12-18 14:57 UTC, Andriy Voskoboinyk
no flags Details | Diff
Restore workaround for DOCS option (which was removed in r350986) (573 bytes, patch)
2014-12-19 19:36 UTC, Andriy Voskoboinyk
no flags Details | Diff
patch-sheets_checktrans.py (9.00 KB, patch)
2016-07-04 11:02 UTC, Ilia Skalozubov
no flags Details | Diff
Makefile.patch (464 bytes, patch)
2016-07-04 11:09 UTC, Ilia Skalozubov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Hibbits freebsd_committer freebsd_triage 2014-06-30 06:24:56 UTC
Created attachment 144285 [details]
poudriere build log for graphics/dia

graphics/dia fails to build in poudriere (current test, arch powerpc.powerpc64), with a series of errors in translations and docs.  Log is attached.
Comment 1 Tilman Keskinoz freebsd_committer freebsd_triage 2014-07-02 14:21:33 UTC
over to maintainers
Comment 2 Andriy Voskoboinyk freebsd_committer freebsd_triage 2014-08-28 14:05:31 UTC
Created attachment 146450 [details]
Exclude doc dir from build when DOCS option is off
Comment 3 Andriy Voskoboinyk freebsd_committer freebsd_triage 2014-08-28 14:14:16 UTC
Comment on attachment 146450 [details]
Exclude doc dir from build when DOCS option is off

>Index: graphics/dia/Makefile
>===================================================================
>--- graphics/dia/Makefile	(revision 366396)
>+++ graphics/dia/Makefile	(working copy)
>@@ -32,6 +32,10 @@
> DOCS_BUILD_DEPENDS=	${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl
> .include <bsd.port.options.mk>
> 
>+.if !${PORT_OPTIONS:MDOCS}
>+EXTRA_PATCHES=		${FILESDIR}/extra-doc
>+.endif
>+
> .if ${ARCH} == "i386"
> LIB_DEPENDS+=		libEMF.so:${PORTSDIR}/graphics/libemf
> CONFIGURE_ARGS+=	--enable-libemf
>Index: graphics/dia/files/extra-doc
>===================================================================
>--- graphics/dia/files/extra-doc	(revision 0)
>+++ graphics/dia/files/extra-doc	(working copy)
>@@ -0,0 +1,11 @@
>+--- Makefile.in	2014-08-28 14:59:33.851569012 +0300
>++++ Makefile.in	2014-08-28 14:54:49.747589247 +0300
>+@@ -276,7 +276,7 @@
>+ top_builddir = @top_builddir@
>+ top_srcdir = @top_srcdir@
>+ uidatadir = @uidatadir@
>+-SUBDIRS = lib objects plug-ins shapes app bindings samples po sheets data doc tests installer
>++SUBDIRS = lib objects plug-ins shapes app bindings samples po sheets data tests installer
>+ gnomedatadir = $(datadir)
>+ 
>+ #desktop_in_in_files = dia.desktop.in.in
>
>Property changes on: graphics/dia/files/extra-doc
>___________________________________________________________________
>Added: svn:mime-type
>## -0,0 +1 ##
>+text/plain
>\ No newline at end of property
>Added: svn:eol-style
>## -0,0 +1 ##
>+native
>\ No newline at end of property
>Index: graphics/dia/pkg-plist
>===================================================================
>--- graphics/dia/pkg-plist	(revision 366396)
>+++ graphics/dia/pkg-plist	(working copy)
>@@ -1812,6 +1812,6 @@
> @dirrm share/dia/shapes/Assorted
> @dirrm share/dia/shapes
> @dirrm share/dia
>-@dirrmtry man/fr/man1
>-@dirrmtry man/fr
>+%%PORTDOCS%%@dirrmtry man/fr/man1
>+%%PORTDOCS%%@dirrmtry man/fr
> @dirrm lib/dia
Comment 4 Andriy Voskoboinyk freebsd_committer freebsd_triage 2014-10-24 21:42:37 UTC
Created attachment 148629 [details]
patch-docs.diff

update patch
Comment 5 Andriy Voskoboinyk freebsd_committer freebsd_triage 2014-10-24 22:47:19 UTC
Created attachment 148630 [details]
patch-docs.diff

use DOCS_EXTRA_PATCHES_OFF
Comment 6 Andriy Voskoboinyk freebsd_committer freebsd_triage 2014-12-18 14:57:05 UTC
Created attachment 150721 [details]
Remove docs from SUBDIRS when DOCS option is off

Rebase patch.
Comment 7 Jan Beich freebsd_committer freebsd_triage 2014-12-18 15:55:31 UTC
Why the option is named DOCS and not MANPAGES ? Nothing is installed under ${DOCSDIR}.

Otherwise, restoring REINPLACE_CMD from before ports r350986 maybe better. I cannot add |regression| keyword for some reason.
Comment 8 Jan Beich freebsd_committer freebsd_triage 2014-12-18 15:59:52 UTC
(In reply to Jan Beich from comment #7)
> Why the option is named DOCS and not MANPAGES ? Nothing is installed under
> ${DOCSDIR}.

Nevermind, I forgot share/doc/dia would be %%DOCSDIR%% in pkg-plist.
Comment 9 Andriy Voskoboinyk freebsd_committer freebsd_triage 2014-12-19 19:36:59 UTC
Created attachment 150788 [details]
Restore workaround for DOCS option (which was removed in r350986)

(In reply to Jan Beich from comment #7)
> Otherwise, restoring REINPLACE_CMD from before ports r350986 maybe better.

I think so, too (it was overlooked by me).
Comment 10 Ilia Skalozubov 2016-07-04 11:02:01 UTC
Created attachment 172096 [details]
patch-sheets_checktrans.py

I rewrote checktrans.py to support new version of xml.sax.

Just put this patch to "files/" folder.
Comment 11 Ilia Skalozubov 2016-07-04 11:09:20 UTC
Created attachment 172097 [details]
Makefile.patch

Also, this port has a missing dependencies. This patch fixes it.
Comment 12 Walter Schwarzenfeld 2018-01-13 21:36:58 UTC
Is this still relevant?
Comment 13 Justin Hibbits freebsd_committer freebsd_triage 2018-01-14 04:30:23 UTC
I stopped building ports with non-default options (where able) long ago, so this is no longer relevant to me, but the bug likely still exists.  I wouldn't oppose closing it, though.