[Tex/LaTex] After MiKTeX update when using LuaLaTeX: Package pgf Error: Driver file “pgfsys-luatex.def” not found

errorsexternal filesluatexmiktextikz-pgf

I just updated my MiKTeX instance to the latest packages and am using the LuaLaTeX compiler. Whenever a document relies on pgf I get the following error:

! Package pgf Error: Driver file ``pgfsys-luatex.def'' not found..

I found this Bug report, https://sourceforge.net/p/pgf/bugs/384/, where someone provides the missing file (he simply renamed another driver and did little changes apparently), but this really doesn't solve my problems. The missing file error goes away with this driver, but for example setting aspectratio=169 as a beamer option is fully ignored while it worked perfectly fine with LuaLaTeX before the MiKTeX update.

A minimal example would be:

\documentclass{article}
\usepackage{pgf}

\begin{document}
Compile me with lualatex.exe
\end{document}

With the driver from the linked bug report and the following MWE:

\documentclass[aspectratio=169]{beamer}

\begin{document}
Foo
\end{document}

I only get the default Aspect Ratio of 4:3. Before the MiKTeX update I correctly got 16:9, even with LuaLaTeX.

I tried purging and reinstalling MiKTeX. It did not help.

How can I compile pgf-based documents with LuaLaTeX correctly again?

Best Answer

As an alternative to \RequirePackage{luatex85} I opted to try out the experimental miktex packages (enabled with the checkbox on the main screen of Update (Admin) for MikTeX as described and illustrated: http://miktex.org/kb/miktex-next). Then in order to ensure everything was successfully registered(?) I went to Settings (Admin) for MikTeX and on the "General" tab, I clicked RefreshFNDB.

Despite using the new experimental package of LuaTeX 0.95 I still had to copy the contents of https://sourceforge.net/p/pgf/bugs/_discuss/thread/44f8dcf2/9dc8/attachment/pgfsys-luatex.def to my texmf structure (I placed it in a secondary structure in texmf\tex and re-scanned the roots from Settings (Admin) for MikTeX on the "Roots" tab.