diff -Nru billard-gl-1.75/debian/changelog billard-gl-1.75/debian/changelog --- billard-gl-1.75/debian/changelog 2013-06-21 07:51:00.000000000 +0000 +++ billard-gl-1.75/debian/changelog 2013-08-10 00:54:39.000000000 +0000 @@ -1,3 +1,13 @@ +billard-gl (1.75-15) unstable; urgency=low + + [ Evgeni Golov ] + * Correct Vcs-* URLs to point to anonscm.debian.org + + [ Barry deFreese ] + * Add patch to fix null HOME var. (Closes: #715681). + + -- Barry deFreese Fri, 09 Aug 2013 11:54:47 -0400 + billard-gl (1.75-13) unstable; urgency=low * Use override_dh_fixperms-indep. diff -Nru billard-gl-1.75/debian/control billard-gl-1.75/debian/control --- billard-gl-1.75/debian/control 2013-06-21 07:51:00.000000000 +0000 +++ billard-gl-1.75/debian/control 2013-08-10 00:54:39.000000000 +0000 @@ -5,8 +5,8 @@ Uploaders: Bartosz Fenski , Barry deFreese Build-Depends: debhelper (>= 9), freeglut3-dev, dpkg-dev (>= 1.16.1~) Standards-Version: 3.9.4 -Vcs-Svn: svn://svn.debian.org/svn/pkg-games/packages/trunk/billard-gl/ -Vcs-Browser: http://svn.debian.org/wsvn/pkg-games/packages/trunk/billard-gl/?op=log +Vcs-Svn: svn://anonscm.debian.org/pkg-games/packages/trunk/billard-gl/ +Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-games/packages/trunk/billard-gl/ Homepage: http://www.billardgl.de/index-en.html Package: billard-gl diff -Nru billard-gl-1.75/debian/patches/07_segfault_no_home.patch billard-gl-1.75/debian/patches/07_segfault_no_home.patch --- billard-gl-1.75/debian/patches/07_segfault_no_home.patch 1970-01-01 00:00:00.000000000 +0000 +++ billard-gl-1.75/debian/patches/07_segfault_no_home.patch 2013-08-10 00:54:39.000000000 +0000 @@ -0,0 +1,48 @@ +Description: billard-gl tries to get the HOME dir but doesn't fail gracefully + if it is not set in the environment. This patch addresses that. +Author: Barry deFreese +Debian-Bug: http://bugs.debian.org/715681 +Index: billard-gl-1.75/src/KommandoZeilenParameter.cpp +=================================================================== +--- billard-gl-1.75.orig/src/KommandoZeilenParameter.cpp 2013-08-09 11:52:05.000000000 -0400 ++++ billard-gl-1.75/src/KommandoZeilenParameter.cpp 2013-08-09 20:25:45.906456954 -0400 +@@ -2,6 +2,9 @@ + #include + #include + #include ++#include ++#include ++#include + #include "Namen.h" + #include "KommandoZeilenParameter.h" + +@@ -9,7 +12,13 @@ + FILE *f; + #ifndef _WIN32 + char dateiname[512]; +- snprintf(dateiname,sizeof(dateiname),"%s/.BillardGL.conf.v7",getenv("HOME")); ++ const char *homedir = getenv("HOME"); ++ if (!homedir) { ++ struct passwd *pw; ++ pw = getpwuid(getuid()); ++ homedir = pw->pw_dir; ++ } ++ snprintf(dateiname,sizeof(dateiname),"%s/.BillardGL.conf.v7",homedir); + f=fopen(dateiname,"w+"); + #endif + #ifdef _WIN32 +@@ -66,7 +75,13 @@ + FILE *f; + #ifndef _WIN32 + char dateiname[512]; +- snprintf(dateiname,sizeof(dateiname),"%s/.BillardGL.conf.v7",getenv("HOME")); ++ const char *homedir = getenv("HOME"); ++ if (!homedir) { ++ struct passwd *pw; ++ pw = getpwuid(getuid()); ++ homedir = pw->pw_dir; ++ } ++ snprintf(dateiname,sizeof(dateiname),"%s/.BillardGL.conf.v7",homedir); + f=fopen(dateiname,"r"); + #endif + #ifdef _WIN32 diff -Nru billard-gl-1.75/debian/patches/series billard-gl-1.75/debian/patches/series --- billard-gl-1.75/debian/patches/series 2013-06-21 07:51:00.000000000 +0000 +++ billard-gl-1.75/debian/patches/series 2013-08-10 00:55:13.000000000 +0000 @@ -5,3 +5,4 @@ 05_Makefile.patch 06_language_pack.patch 99_cosmetic_fixes.patch +07_segfault_no_home.patch