Bug#646978: easytag: crashes when applying tags loaded from TXT file

2011-10-28 Thread Julian Taylor
Package: easytag
Version: 2.1.6+git20110423-3
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch

easytag crashes when you try to apply tags loaded from a text file
(misc - Load filenames from TXT)
See also the ubuntu bug:
https://bugs.launchpad.net/ubuntu/+source/easytag-aac/+bug/883019

The fix appears to be simple:

Description: fix loading tags from txt file
 use correct function to free the tree path
Origin: http://ubuntuforums.org/archive/index.php/t-1239078.html
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+bug/883019
--- easytag-2.1.6+git20110423.orig/src/misc.c
+++ easytag-2.1.6+git20110423/src/misc.c
@@ -3355,7 +3355,7 @@ void Load_Filename_Set_Filenames (void)
 g_free(list_text);
 }
 
-g_free(currentPath);
+gtk_tree_path_free(currentPath);
 
 Browser_List_Refresh_Whole_List();
 ET_Display_File_Data_To_UI(ETCore-ETFileDisplayed);




signature.asc
Description: OpenPGP digital signature
___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Bug#646348: mixxx: FTBFS with -Werror=format-security

2011-10-23 Thread Julian Taylor
Source: mixxx
Version: 1.9.0+dfsg0-5
Severity: normal
User: debian...@lists.debian.org
Usertags: hardening-format-security hardening

the package mixxx fails to compile with the new hardened compiler
flags dpkg-buildflag outputs [0].
The problematic flag is: -Werror=format-security
See the ubuntu buildlog:
https://launchpadlibrarian.net/83074185/buildlog_ubuntu-precise-i386.mixxx_1.9.0%2Bdfsg0-5_FAILEDTOBUILD.txt.gz
Snippet:
g++ -o lin32_build/main.o -c -g -O2 -fstack-protector
--param=ssp-buffer-size=4 -Wformat -Wformat-security
-Werror=format-security -g -O2 -fstack-protector
--param=ssp-buffer-size=4 -Wformat -Wformat-security
-Werror=format-security -pipe -Wall -Wextra -g -O3 -fomit-frame-pointer
-ffast-math -funroll-loops -DQT_GUI_LIB -Damd64 -D__LINUX__ -D__UNIX__
-DSETTINGS_PATH=\.mixxx/\ -DBPMSCHEME_FILE=\mixxxbpmscheme.xml\
-DSETTINGS_FILE=\mixxx.cfg\ -DTRACK_FILE=\mixxxtrack.xml\
-DUNIX_SHARE_PATH=\/usr/share/mixxx\ -D__PORTAUDIO__
-DQT_TABLET_SUPPORT -DQT_SHARED -D__SNDFILE__ -D__MIDISCRIPT__
-D__VINYLCONTROL__ -D__SHOUTCAST__ -I/usr/share/qt4/include
-Ilin32_build -Isrc -I/usr/include/soundtouch -Ilib/kissfft
-Ilib/replaygain -I/usr/include/qt4 -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL
-I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSvg
-I/usr/include/qt4/QtSql -I/usr/include/qt4/QtScript
-I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4/QtNetwork
-I/usr/include/qt4/QtWebKit -I/usr/share/qt4/include/QtCore
-I/usr/share/qt4/include/QtGui -I/usr/share/qt4/include/QtXml
-I/usr/share/qt4/include/QtNetwork -I/usr/share/qt4/include/QtSql
-I/usr/share/qt4/include/QtOpenGL -I/usr/share/qt4/include/QtWebKit
-I/usr/share/qt4/include/Qt -Ilib/fidlib-0.9.9 -I/usr/include/taglib
-I/usr/share/qt4/include/QtScript -Ilib/xwax -Ilib/scratchlib src/main.cpp
src/main.cpp: In function 'int main(int, char**)':
src/main.cpp:206:36: error: format not a string literal and no format
arguments [-Werror=format-security]


The buildflags are not exported in debian, but can be enabled e.g. by
adding this to debian/rules:

 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk

Please fix the issues and maybe also enable the hardened build in debian.

[0] http://lists.debian.org/debian-devel-announce/2011/09/msg1.html



signature.asc
Description: OpenPGP digital signature
___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Bug#632229: ftbs with ld --as-needed

2011-06-30 Thread Julian Taylor
Package: hydrogen
Version: 0.9.5-2
Severity: wishlist
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch

the package hydrogen fails to build when using the linker flag --as-needed
This is caused by the libraries being placed before the objects which
need the symbols on the command line. So the library symbols are not
registered as needed.
Combined with the --no-copy-dt-needed flag, which is default in debian
now too, this causes missing linkage with libporttime
See the log ubuntu bug:
https://bugs.launchpad.net/ubuntu/+source/hydrogen/+bug/803182

Attached patch fixes this issue by using the correct scons variables for
libraries.
The static libhydrogen should not go in LIBS as it is an object file but
I am unfamiliar with scons so I don't know where it goes. So I prepended
it to LIBS to ensure the shared libraries are placed behind it on the
commandline.
Description: fix build with ld --as-needed
 libraries must be added to LIBS instead of ldflags so they are
 ordered correctly on the command line.
 With ld --as-needed the object files must be before the libraries providing
 the symbols they need.
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/hydrogen/+bug/803182
Author: Julian Taylor jtaylor.deb...@googlemail.com
Index: hydrogen-0.9.5/Sconstruct
===
--- hydrogen-0.9.5.orig/Sconstruct	2011-06-30 18:58:48.010629098 +0200
+++ hydrogen-0.9.5/Sconstruct	2011-06-30 18:59:14.640629115 +0200
@@ -44,6 +44,7 @@
 	includes = []
 	cppflags = []
 	ldflags = []
+	libs = []
 
 	env = Environment( options = opts )
 
@@ -92,10 +93,10 @@
 		includes.append( '/usr/local/include/jack' )
 
 	elif sys.platform[:6] == 'linux2':
-		ldflags.append('-lpthread')
-		ldflags.append('-lasound')
-		ldflags.append('-lporttime')
-	#	ldflags.append('-lrubberband')
+		libs.append('-lpthread')
+		libs.append('-lasound')
+		libs.append('-lporttime')
+	#	libs.append('-lrubberband')
 
 	elif sys.platform == win32:
 		includes.append( '3rdparty\libsndfile-1_0_17' )
@@ -106,7 +107,7 @@
 	else:
 		raise Exception( Platform '%s' not supported % sys.platform )
 
-	return (includes, cppflags, ldflags)
+	return (includes, cppflags, ldflags, libs)
 
 
 
@@ -175,7 +176,7 @@
 
 
 def get_hydrogen_lib( opts ):
-	includes, cppflags, ldflags = get_platform_flags( opts )
+	includes, cppflags, ldflags, libs = get_platform_flags( opts )
 
 	includes.append( libs/hydrogen/include )
 	
@@ -185,7 +186,7 @@
 	#location of qt4.py
 	qt4ToolLocation=.
 
-	env = Environment(options = opts , tools=['default','qt4'], toolpath=[qt4ToolLocation], ENV=os.environ, CPPPATH = includes, CPPFLAGS = cppflags, CCFLAGS = , LINKFLAGS=ldflags )
+	env = Environment(options = opts , tools=['default','qt4'], toolpath=[qt4ToolLocation], ENV=os.environ, CPPPATH = includes, CPPFLAGS = cppflags, CCFLAGS = , LINKFLAGS=ldflags, LIBS=libs )
 	env.EnableQt4Modules( ['QtCore', 'QtGui','QtXml'], debug=False)
 	env.CacheDir( scons_cache )
 	
@@ -223,7 +224,7 @@
 			env.Alias(target=install, source=env.Install(dir= env['DESTDIR'] + env['prefix'] + '/share/hydrogen/' + dname, source= dir + / + file))
 
 def get_hydrogen_gui( lib_hydrogen , opts ):
-	includes, cppflags, ldflags = get_platform_flags( opts )
+	includes, cppflags, ldflags, libs = get_platform_flags( opts )
 
 	includes.append( libs/hydrogen/include )
 	includes.append( gui/src/UI )
@@ -231,7 +232,7 @@
 	#location of qt4.py
 	qt4ToolLocation=.
 
-	env = Environment(options = opts , tools=['default','qt4'], toolpath=[qt4ToolLocation], ENV=os.environ, CPPPATH = includes, CPPFLAGS = cppflags, CCFLAGS = , LINKFLAGS=ldflags )
+	env = Environment(options = opts , tools=['default','qt4'], toolpath=[qt4ToolLocation], ENV=os.environ, CPPPATH = includes, CPPFLAGS = cppflags, CCFLAGS = , LINKFLAGS=ldflags, LIBS=libs )
 	
 	if str(env['gui']) == 1:
 	env.EnableQt4Modules( ['QtCore', 'QtGui','QtNetwork','QtXml'], debug=False)
@@ -259,7 +260,7 @@
 
 	src = scanFiles( directory, ['*.cpp', '*.cc', '*.c' ], [ 'moc_'] )
 
-	env.Append( LIBS = lib_hydrogen )
+	env.Prepend( LIBS = lib_hydrogen )
 	
 	if sys.platform != win32:
 		env.Append( LIBS = [sndfile] )
@@ -378,7 +379,7 @@
 
 #get includes ( important if you compile on non-standard envorionments)
 
-includes, a , b = get_platform_flags( opts )
+includes, a , b, c = get_platform_flags( opts )
 
 env = Environment(options = opts, CPPPATH = includes)
 


signature.asc
Description: OpenPGP digital signature
___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers