Don't crash when creating .tar.7z archives
This commit is contained in:
		
							parent
							
								
									2557ab6fc2
								
							
						
					
					
						commit
						81a24e1084
					
				| @ -11,7 +11,7 @@ | ||||
| Summary:	Tool for viewing and creating archives | ||||
| Name:		file-roller | ||||
| Version:	2.30.1.1 | ||||
| Release: 	1%{?dist} | ||||
| Release: 	2%{?dist} | ||||
| License:	GPLv2+ | ||||
| Group:		Applications/Archiving | ||||
| URL:		http://download.gnome.org/sources/file-roller/ | ||||
| @ -40,12 +40,16 @@ Requires: GConf2 | ||||
| # The context menu API changed in 2.2.0: | ||||
| Conflicts: nautilus < 2.2.0 | ||||
| 
 | ||||
| # https://bugzilla.gnome.org/show_bug.cgi?id=617840 | ||||
| Patch0: tar7z.patch | ||||
| 
 | ||||
| %description | ||||
| File Roller is an application for creating and viewing archives files, | ||||
| such as tar or zip files. | ||||
| 
 | ||||
| %prep | ||||
| %setup -q | ||||
| %patch0 -p1 -b .tarz7 | ||||
| 
 | ||||
| %build | ||||
| %configure 	--disable-scrollkeeper 		\ | ||||
| @ -57,8 +61,6 @@ export tagname=CC | ||||
| make LIBTOOL=/usr/bin/libtool | ||||
| 
 | ||||
| %install | ||||
| rm -rf $RPM_BUILD_ROOT | ||||
| 
 | ||||
| export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 | ||||
| export tagname=CC | ||||
| make install DESTDIR=$RPM_BUILD_ROOT | ||||
| @ -75,9 +77,6 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache | ||||
| 
 | ||||
| %find_lang %{name} --with-gnome | ||||
| 
 | ||||
| %clean | ||||
| rm -rf $RPM_BUILD_ROOT | ||||
| 
 | ||||
| %post | ||||
| update-desktop-database &> /dev/null || : | ||||
| %gconf_schema_upgrade file-roller | ||||
| @ -112,6 +111,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : | ||||
| %{_datadir}/icons/hicolor/scalable/apps/file-roller.svg | ||||
| 
 | ||||
| %changelog | ||||
| * Wed May  5 2010 Matthias Clasen <mclasen@redhat.com> 2.30.1.1-2 | ||||
| - Don't crash when creating .tar.7z archives | ||||
| 
 | ||||
| * Tue Apr 27 2010 Matthias Clasen <mclasen@redhat.com> 2.30.1.1-1 | ||||
| - Update to 2.30.1.1 | ||||
| - Spec file cleanups | ||||
|  | ||||
							
								
								
									
										22
									
								
								tar7z.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								tar7z.patch
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,22 @@ | ||||
| --- file-roller-2.30.1.1/src/fr-process.h	2009-04-30 04:47:42.000000000 -0400
 | ||||
| +++ foo/src/fr-process.h	2010-05-05 22:05:23.097517483 -0400
 | ||||
| @@ -97,7 +97,7 @@
 | ||||
|  					     const char   *arg); | ||||
|  void        fr_process_add_arg_concat       (FrProcess    *fr_proc, | ||||
|  					     const char   *arg, | ||||
| -					     ...);
 | ||||
| +					     ...) G_GNUC_NULL_TERMINATED;
 | ||||
|  void        fr_process_add_arg_printf       (FrProcess    *fr_proc, | ||||
|  					     const char   *format, | ||||
|  					     ...) G_GNUC_PRINTF (2, 3); | ||||
| --- file-roller-2.30.1.1/src/fr-command-tar.c	2010-04-27 02:42:13.000000000 -0400
 | ||||
| +++ foo/src/fr-command-tar.c	2010-05-05 22:06:39.920522861 -0400
 | ||||
| @@ -661,7 +661,7 @@
 | ||||
|  		fr_process_add_arg (comm->process, "-l"); | ||||
|   | ||||
|  		new_name = g_strconcat (c_tar->uncomp_filename, ".7z", NULL); | ||||
| -		fr_process_add_arg_concat (comm->process, new_name);
 | ||||
| +		fr_process_add_arg_concat (comm->process, new_name, NULL);
 | ||||
|   | ||||
|  		fr_process_add_arg (comm->process, c_tar->uncomp_filename); | ||||
|  		fr_process_end_command (comm->process); | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user