Bug 236554 - sysutils/openipmi doesn't package with python
Summary: sysutils/openipmi doesn't package with python
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: Vinícius Zavam
URL: https://reviews.freebsd.org/D20058
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-15 17:02 UTC by gergely.czuczy
Modified: 2019-04-30 08:48 UTC (History)
6 users (show)

See Also:
egypcio: maintainer-feedback+


Attachments
ports_r499247_PATCH__sysutils_openipmi.diff (20.74 KB, patch)
2019-04-25 17:13 UTC, Vinícius Zavam
no flags Details | Diff
ports_r499247_PATCH__sysutils_openipmi.diff (20.72 KB, patch)
2019-04-26 08:24 UTC, Vinícius Zavam
no flags Details | Diff
ports_r500086_PATCH__sysutils_openipmi.diff (13.99 KB, patch)
2019-04-26 11:40 UTC, Vinícius Zavam
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description gergely.czuczy 2019-03-15 17:02:34 UTC
Options:
# cat /var/db/ports/sysutils_openipmi/options
# This file is auto-generated by 'make config'.
# Options for openipmi-2.0.27
_OPTIONS_READ=openipmi-2.0.27
_FILE_COMPLETE_OPTIONS_LIST=GDBM GLIB20 PERL PYTHON SNMP SSL TCL TKINTER
OPTIONS_FILE_UNSET+=GDBM
OPTIONS_FILE_UNSET+=GLIB20
OPTIONS_FILE_UNSET+=PERL
OPTIONS_FILE_SET+=PYTHON
OPTIONS_FILE_UNSET+=SNMP
OPTIONS_FILE_SET+=SSL
OPTIONS_FILE_UNSET+=TCL
OPTIONS_FILE_UNSET+=TKINTER

# cat /etc/make.conf
DEFAULT_VERSIONS+= python=3.6 python3=3.6
WITH_SAMBA4_PYTHON3=3.6

Error at target package:
===>  Building package for openipmi-2.0.27
pkg-static: Unable to access file /usr/ports/sysutils/openipmi/work/stage/usr/local/lib/python3.6/site-packages/OpenIPMI.pyc:No such file or directory
pkg-static: Unable to access file /usr/ports/sysutils/openipmi/work/stage/usr/local/lib/python3.6/site-packages/OpenIPMI.pyo:No such file or directory
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/sysutils/openipmi
*** Error code 1
Comment 1 gergely.czuczy 2019-03-15 17:03:23 UTC
egypcio@, could you please take a look at it?
Comment 2 Vinícius Zavam freebsd_committer freebsd_triage 2019-03-21 20:15:32 UTC
(In reply to gergely.czuczy from comment #1)

Hey, thanks for the report! Appreciated.
I started to test it already, btw.

Just to be sure: are you using the most recent ports tree revision from head? which FreeBSD version are you running, and which arch? is this a poudriere bulk output, or did you manually ran it (how?)?

KR,
Comment 3 gergely.czuczy 2019-03-22 05:20:26 UTC
Sorry for missing out those details, I usually include them by default:
It's a 12-STABLE checkout, with ports HEAD, roughly from 2 or 3 days before this report  was made. And it's amd64.
Comment 4 tech-lists 2019-04-03 21:01:23 UTC
Hello,

I get the same error and I'm using poudriere-devel

Log output is from poudriere testport -c -o sysutils/openipmi

https://pkg.zyxst.net/data/120R-mon-default/2019-04-03_21h54m16s/logs/errors/openipmi-2.0.27.log

ports is https://svn.freebsd.org/ports/head@497752
Comment 5 Vinícius Zavam freebsd_committer freebsd_triage 2019-04-05 12:59:25 UTC
(In reply to tech-lists from comment #4)

nice! thanks for sharing, 
I should take time to site and review/compare all builds ASAP!

KR,
Comment 6 Vinícius Zavam freebsd_committer freebsd_triage 2019-04-17 14:22:57 UTC
quick feedback; I did not forget to have a look here, but still busy looking into other issues (also day$job related) and updating old ports.
Comment 7 Vinícius Zavam freebsd_committer freebsd_triage 2019-04-18 11:15:23 UTC
(In reply to Vinícius Zavam from comment #6)

working on it!
Comment 8 Vinícius Zavam freebsd_committer freebsd_triage 2019-04-24 08:46:27 UTC
got the trick, and now I am testing it for both python flavors (should someone still needs python27 in any production env).

the root cause of this issue was the update of FreeBSD's default Python version in the ports framework. Makefile for the particular port needs adjustments in order to deliver the .pyc files accordingly.

again, thanks for reporting it!
Comment 9 Vinícius Zavam freebsd_committer freebsd_triage 2019-04-25 17:13:56 UTC
Created attachment 204016 [details]
ports_r499247_PATCH__sysutils_openipmi.diff


here is the patch :)
Comment 10 Vinícius Zavam freebsd_committer freebsd_triage 2019-04-26 08:24:27 UTC
Created attachment 204034 [details]
ports_r499247_PATCH__sysutils_openipmi.diff

updating patch to reflect changes applied to D20058.
Comment 11 Vinícius Zavam freebsd_committer freebsd_triage 2019-04-26 11:40:25 UTC
Created attachment 204039 [details]
ports_r500086_PATCH__sysutils_openipmi.diff

D20058
Comment 12 commit-hook freebsd_committer freebsd_triage 2019-04-29 12:41:48 UTC
A commit references this bug:

Author: egypcio
Date: Mon Apr 29 12:41:14 UTC 2019
New revision: 500408
URL: https://svnweb.freebsd.org/changeset/ports/500408

Log:
  sysutils/openipmi: fix packaging with Python

  PR:		236554
  Reported by:	gergely.czuczy % harmless.hu
  Reviewed by:	antoine, garga
  Approved by:	araujo (mentor), rene (mentor)
  Differential Revision:	https://reviews.freebsd.org/D20058

Changes:
  head/sysutils/openipmi/Makefile
  head/sysutils/openipmi/pkg-plist
Comment 13 gergely.czuczy 2019-04-29 12:52:38 UTC
Thanks for fixing this issue.
Comment 14 tech-lists 2019-04-30 08:48:41 UTC
+1 thanks