Package: scsitools
Severity: wishlist
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu precise ubuntu-patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


Dear maintainer,

In ubuntu, we can not compile scsitools because -D_FORTIFY_SOURCE=2 compiler 
flags is enabled,
please consider to enabling it. so Ubuntu can sync Debian instead of merge

In Ubuntu, the attached patch was applied to achieve the following:


 * Merge from Debian testing.  Remaining changes:
   - add debian/patches/01_ubuntu-toolchain.diff, fix FTBFS caused by
     -D_FORTIFY_SOURCE=2 compiler flag enabled in Ubuntu


Thanks for considering the patch.

- -- System Information:
Debian Release: wheezy/sid
  APT prefers oneiric-updates
  APT policy: (500, 'oneiric-updates'), (500, 'oneiric-security'), (500, 
'oneiric')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-14-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJPDC+DAAoJELmHbrCQs2xbBsIP/Ax7uANAcRfd880JdloaVThh
0ePAXoQtgGjuzKknbhX2MXSrTIMb93z8JDBPsmpCBL6lOJjhZq/zmax7ItH8wQB9
KKN50/46X83MoN8GjxMdTb59Td4ZpMAbCxlWVQuBqiClOOtPQYf88qOaL+1OhDXR
JZCyoch0VCDaWRNKqHUad2hs2FnbBABamR1Op4gzdX0iCTFHDVIeqNUFaRwSGute
PWmcsWN6KVgTq9Ov0EkguXOiLagQe5+AsAw5iZX8cKtjo80Af5a7tkZEn3jSjaUO
yL6+EqCZ5NZ9oHZQmmZWIdDTCpRfnt7bJj31ooTWm/qPeF3WCIZgvn3gAvyia3OD
vEw1nFcvB/tNcy++ql3aUiiOgFECSHn2zoHkFD8m1T73dpXNutJcMwJfAcf7dROf
jTpMn5Cvpl/ivYPHX0ZV+IVNcNY7n73Q3qmNTdtxiVMysyU7jFPGfbhBSpvAaLuB
7Twm9YGqPYqh2ln6CA/fV/m3W34FmAIMqU03NPRUOspaAxRTzP4/Nc2p9o3C4zyx
aAbKuzSZ1cSOKZiyhotOPAy4EHBVsjDwiVzxtPXwOih6MXOVsUfxbmUaduVDW3Tv
/XQNPcql3k4lElQhEb0tbD+FbophMbXRGvvRJO2A2MUEXe4Jn6EYobJU0BGxRQLS
9pzwYgh9fh4bZUTsnqM1
=Gzca
-----END PGP SIGNATURE-----
diff -Nru scsitools-0.12/debian/patches/01_ubuntu-toolchain.diff scsitools-0.12/debian/patches/01_ubuntu-toolchain.diff
--- scsitools-0.12/debian/patches/01_ubuntu-toolchain.diff	1970-01-01 07:00:00.000000000 +0700
+++ scsitools-0.12/debian/patches/01_ubuntu-toolchain.diff	2011-06-14 04:15:53.000000000 +0700
@@ -0,0 +1,11 @@
+--- a/scsidev/scsidev.c
++++ b/scsidev/scsidev.c
+@@ -747,7 +747,7 @@
+ 		return;
+ 	
+ 	if (status) {
+-		int fd = open (shadow, O_RDWR | O_CREAT | O_EXCL);
++		int fd = open (shadow, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
+ 		close (fd);
+ 	}
+ 	apply_perm (shadow, stbuf, 0);
diff -Nru scsitools-0.12/debian/patches/series scsitools-0.12/debian/patches/series
--- scsitools-0.12/debian/patches/series	2011-12-07 23:25:06.000000000 +0700
+++ scsitools-0.12/debian/patches/series	2012-01-10 17:56:31.000000000 +0700
@@ -2,4 +2,5 @@
 sraw.patch
 rescan-scsi-bus.patch
 scsidev.patch
+01_ubuntu-toolchain.diff
 rescan-scsi-bus_sleep.patch

Reply via email to