Bug 238887 - devel/py-llfuse: Fix build (warning=error), remove -Werror
Summary: devel/py-llfuse: Fix build (warning=error), remove -Werror
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Piotr Kubaj
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-29 22:58 UTC by Piotr Kubaj
Modified: 2019-08-04 03:56 UTC (History)
3 users (show)

See Also:
koobs: merge-quarterly+


Attachments
patch (1.15 KB, patch)
2019-06-29 22:58 UTC, Piotr Kubaj
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Kubaj freebsd_committer freebsd_triage 2019-06-29 22:58:42 UTC
Created attachment 205425 [details]
patch

Upstream commit has removed -Werror outside of developer mode. Backport that commit to fix build when using GCC.
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2019-06-29 22:58:42 UTC
Maintainer informed via mail
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2019-06-30 04:09:19 UTC
Reporter is committer, assign accordingly

@Piotr -Werror should be patched out here too (it shouldn't be used/enabled in packaged/distributed/released code.

setup.py does the following:

DEVELOPER_MODE = os.path.exists(os.path.join(basedir, 'MANIFEST.in'))
if DEVELOPER_MODE:
    print('found MANIFEST.in, running in developer mode')

<snip>

compile_args.append('-Werror')
compile_args.append('-Wfatal-errors')

The conditional for DEVELOPER_MODE is too widely-scoped, as source distributions (sdists) are released to end-users, and the presence of a MANIFEST.in shouldn't mean DEVELOPER_MODE.

A slightly better form might be to check for the presence of a git checkout, though this is also problematic, as users can depend on packages via their git URL's. 

The check should probably be an explicit opt-in via the presence of an environment variable DEVELOPER_MODE=yes or similar.

Either way, I'd patch the conditional to be False, along with the patch provided fixing the warning.

If you can, please report this '-Werror should be opt-in, not based on MANIFEST.in' issue upstream, with a PR if you can manage it

Note also, both the build (warning=error) fix, and the -Werror removal are:

Approved by: portmgr (blanket(s): build fix, ports compliance)
Comment 3 commit-hook freebsd_committer freebsd_triage 2019-07-30 12:43:44 UTC
A commit references this bug:

Author: pkubaj
Date: Tue Jul 30 12:43:05 UTC 2019
New revision: 507639
URL: https://svnweb.freebsd.org/changeset/ports/507639

Log:
  devel/py-llfuse: Fix build (warning=error), remove -Werror

  -Werror is added to flags by default, breaking build for example with GCC.

  Follow upstream and remove it. Also disable DEVELOPER_MODE since it's enabled too widely.

  PR:		238887
  Approved by:	portmgr (blanket(s): build fix, ports compliance), linimon (mentor)
  Differential Revision:	https://reviews.freebsd.org/D21067

Changes:
  head/devel/py-llfuse/Makefile
  head/devel/py-llfuse/files/files/
  head/devel/py-llfuse/files/files/patch-setup.py
  head/devel/py-llfuse/files/patch-setup.py
Comment 4 Kubilay Kocak freebsd_committer freebsd_triage 2019-07-31 03:18:25 UTC
@Piotr Is quarterly affected? If so, please MFH. If not, set merge-quarterly to - and close

Thanks!
Comment 5 Piotr Kubaj freebsd_committer freebsd_triage 2019-08-03 19:29:12 UTC
(In reply to Kubilay Kocak from comment #4)
MFH'd.
Comment 6 commit-hook freebsd_committer freebsd_triage 2019-08-03 19:29:52 UTC
A commit references this bug:

Author: pkubaj
Date: Sat Aug  3 19:28:53 UTC 2019
New revision: 507990
URL: https://svnweb.freebsd.org/changeset/ports/507990

Log:
  MFH: r507639

  devel/py-llfuse: Fix build (warning=error), remove -Werror

  -Werror is added to flags by default, breaking build for example with GCC.

  Follow upstream and remove it. Also disable DEVELOPER_MODE since it's enabled too widely.

  PR:		238887
  Approved by:	portmgr (blanket(s): build fix, ports compliance), linimon (mentor)
  Differential Revision:	https://reviews.freebsd.org/D21067

Changes:
_U  branches/2019Q3/
  branches/2019Q3/devel/py-llfuse/Makefile
  branches/2019Q3/devel/py-llfuse/files/files/
  branches/2019Q3/devel/py-llfuse/files/patch-setup.py