Control: tags 1057930 + pending -- Dear maintainer,
I've prepared an NMU for cunit (versioned as 2.1-3-dfsg-2.7) and uploaded it to DELAYED/5. Please feel free to tell me if I should delay it longer. -- Regards Sudip diff -Nru cunit-2.1-3-dfsg/debian/changelog cunit-2.1-3-dfsg/debian/changelog --- cunit-2.1-3-dfsg/debian/changelog 2023-04-01 07:01:17.000000000 +0100 +++ cunit-2.1-3-dfsg/debian/changelog 2024-01-11 16:36:37.000000000 +0000 @@ -1,3 +1,17 @@ +cunit (2.1-3-dfsg-2.7) unstable; urgency=medium + + * Non-maintainer upload. + + [ Mate Kukri ] + * d/p/curses_ftbfs.patch: + Fix FTBFS caused by incorrect use of WINDOW. (Closes: #1057930) + + [ Sudip Mukherjee ] + * Fixed the patch from Mate Kukri. + - Thanks to Sven Joachim for pointing out getmaxx and getmaxy. + + -- Sudip Mukherjee <sudipm.mukher...@gmail.com> Thu, 11 Jan 2024 16:36:37 +0000 + cunit (2.1-3-dfsg-2.6) unstable; urgency=medium * Non-maintainer upload. diff -Nru cunit-2.1-3-dfsg/debian/patches/curses_ftbfs.patch cunit-2.1-3-dfsg/debian/patches/curses_ftbfs.patch --- cunit-2.1-3-dfsg/debian/patches/curses_ftbfs.patch 1970-01-01 01:00:00.000000000 +0100 +++ cunit-2.1-3-dfsg/debian/patches/curses_ftbfs.patch 2024-01-11 16:36:37.000000000 +0000 @@ -0,0 +1,52 @@ +Description: Use getters for accessing fields of opaque type WINDOW in Curses.c +Author: Mate Kukri <mate.ku...@canonical.com> +Last-Update: 2024-01-04 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/CUnit/Sources/Curses/Curses.c ++++ b/CUnit/Sources/Curses/Curses.c +@@ -256,10 +256,10 @@ + + start_color(); + +- f_nLeft = application_windows.pMainWin->_begx; +- f_nTop = application_windows.pMainWin->_begy; +- f_nWidth = application_windows.pMainWin->_maxx; +- f_nHeight = application_windows.pMainWin->_maxy; ++ f_nLeft = getbegx(application_windows.pMainWin); ++ f_nTop = getbegy(application_windows.pMainWin); ++ f_nWidth = getmaxx(application_windows.pMainWin) - 1; ++ f_nHeight = getmaxy(application_windows.pMainWin) - 1; + + if (NULL == (application_windows.pTitleWin = newwin(3, f_nWidth, 0, 0))) { + goto title_fail; +@@ -358,10 +358,10 @@ + { + refresh(); + +- f_nLeft = application_windows.pMainWin->_begx; +- f_nTop = application_windows.pMainWin->_begy; +- f_nWidth = application_windows.pMainWin->_maxx; +- f_nHeight = application_windows.pMainWin->_maxy; ++ f_nLeft = getbegx(application_windows.pMainWin); ++ f_nTop = getbegy(application_windows.pMainWin); ++ f_nWidth = getmaxx(application_windows.pMainWin) - 1; ++ f_nHeight = getmaxy(application_windows.pMainWin) - 1; + + refresh_title_window(); + refresh_progress_window(); +@@ -907,10 +907,10 @@ + pPad->uiColumns = uiCols; + pPad->uiPadRow = 0; + pPad->uiPadCol = 0; +- pPad->uiWinLeft = application_windows.pDetailsWin->_begx + 1; +- pPad->uiWinTop = application_windows.pDetailsWin->_begy + 1; +- pPad->uiWinColumns = application_windows.pDetailsWin->_maxx - 2; +- pPad->uiWinRows = application_windows.pDetailsWin->_maxy - 2; ++ pPad->uiWinLeft = getbegx(application_windows.pDetailsWin) + 1; ++ pPad->uiWinTop = getbegy(application_windows.pDetailsWin) + 1; ++ pPad->uiWinColumns = getmaxx(application_windows.pDetailsWin) - 3; ++ pPad->uiWinRows = getmaxy(application_windows.pDetailsWin) - 3; + + bStatus = true; + diff -Nru cunit-2.1-3-dfsg/debian/patches/series cunit-2.1-3-dfsg/debian/patches/series --- cunit-2.1-3-dfsg/debian/patches/series 2023-03-31 14:53:05.000000000 +0100 +++ cunit-2.1-3-dfsg/debian/patches/series 2024-01-11 16:03:54.000000000 +0000 @@ -1,3 +1,4 @@ 0003-fix-warnings-in-man.patch 0004-doc-intorduction-fix-links-to-headers-4K-in-size.patch fix-string-format-errors-with-recent-ncu.patch +curses_ftbfs.patch