[Debian-med-packaging] Please help building psychtoolbox-3 on loongarch

Santiago Vila sanvila at debian.org
Wed Jun 3 12:18:31 BST 2026


On Wed, Jun 03, 2026 at 06:50:15PM +0800, xiao sheng wen(肖盛文) wrote:

> After I remove "-lLexActivator" string in all source files, I build success in my local Loongarch64 machine.  

Great.

It would be nice to find the minimal patch which works.
Could anyone try the attached patch?

It seems that the code is using the pagesize (which is different on
loong64) as a poor proxy for architecture detection. Maybe somebody
should tell them to enable the library or not based on the library
actually existing for such architecture or not.

Thanks.
-------------- next part --------------
diff --git a/PsychSourceGL/Source/linuxmakeitoctave3.m b/PsychSourceGL/Source/linuxmakeitoctave3.m
index e99fc0cea..c7103a836 100644
--- a/PsychSourceGL/Source/linuxmakeitoctave3.m
+++ b/PsychSourceGL/Source/linuxmakeitoctave3.m
@@ -336,17 +336,6 @@ function mex(varargin)
     end
   end
 
-  [rc, pagesize] = system('getconf PAGESIZE');
-  if rc == 0
-      pagesize = str2num(pagesize);
-  else
-      pagesize = NaN;
-  end
-
-  if Is64Bit && (usewayland || (pagesize ~= 4096))
-    outargs = {outargs{:}, "-lLexActivator"};
-  end
-
   args = cellstr(char(outargs));
 
   % Try-Catch protect actual mkoctfile build, using customized LDFLAGS setting,


More information about the Debian-med-packaging mailing list