[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Ball fails its autopkgtest - how to properly deal with sip files?



Control: tags -1 - pending
Control: tags -1 + help

Hi Andreas,

Andreas Tille, on 2021-12-14:
> For whatever reason python3-sip did not ended up in the package
> dependencies. Thus I added it explicitly[3].  But the autopkg issue
> remains[4]:
> 
> autopkgtest [17:09:54]: test autodep8-python3: [-----------------------
> Testing with python3.9:
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
>   File "/usr/lib/python3/dist-packages/BALL.py", line 5, in <module>
>     from BALLCore import *
> ModuleNotFoundError: No module named 'BALLCore'
> autopkgtest [17:09:55]: test autodep8-python3: -----------------------]
> 
> and we have the sip file 
> 
>    /usr/lib/python3/dist-packages/BALL/BALLCore.sip
> 
> I have no idea why this is not found.

Trying to recollect what this was about: the BALLCore.sip
contains a sort of template which must be compiled by several
tools, the first being sip, before being usable by the python3
interpreter.  It is not built initially, due to a cmake file
using an old sip naming convention; see the first hunk in the
patch attached.

However, once the sip file is caught, the package fails to build
from source due to various errors in the generated code.  The
patch also addresses one of them in its second hunk.  I think I
was stuck on some "overrides" related errors, but they were
interleaved within sip output, I can send a proper log later
this week after an overnight build if needed.

Sorry I did not manage to go much further on that issue,
-- 
Étienne Mollier <emollier@emlwks999.eu>
Fingerprint:  8f91 b227 c7d6 f2b1 948c  8236 793c f67e 8f0d 11da
Sent from /dev/pts/1, please excuse my verbosity.
--- ball.orig/cmake/FindSIP.py
+++ ball/cmake/FindSIP.py
@@ -13,4 +13,4 @@
 print("sip_bin:%s" % sipcfg.sip_bin)
 print("default_sip_dir:%s" % sipcfg.default_sip_dir)
 print("sip_inc_dir:%s" % sipcfg.sip_inc_dir)
-print("sip_mod_dir:%s" % sipcfg.sip_mod_dir)
+print("sip_mod_dir:%s" % sipcfg.sip_module_dir)
--- ball.orig/source/PYTHON/EXTENSIONS/VIEW/dockWidget.sip
+++ ball/source/PYTHON/EXTENSIONS/VIEW/dockWidget.sip
@@ -9,12 +9,13 @@
 	static Size countInstances();
 	static DockWidget* getInstance(Position);
 
-	DockWidget();
-	~DockWidget() throw();
-
 	void applyPreferences() throw();
 	void setWidgetVisible(bool);
 
+	protected:
+	DockWidget();
+	~DockWidget() throw();
+
 	private:
 	DockWidget(const DockWidget&);
 };

Attachment: signature.asc
Description: PGP signature


Reply to: