diff -Nru pd-unauthorized-0.1/debian/changelog pd-unauthorized-0.1/debian/changelog --- pd-unauthorized-0.1/debian/changelog 2013-01-18 04:27:14.000000000 +0000 +++ pd-unauthorized-0.1/debian/changelog 2015-06-03 19:03:04.000000000 +0000 @@ -1,3 +1,24 @@ +pd-unauthorized (0.1-2) unstable; urgency=medium + + [ IOhannes m zmölnig ] + * Ensure that functions return proper value (Closes: #743737) + * Enabled hardening + * Fixed build-errors with hardening flags + * Manually strip/fix permissions of binaries + * Unapply-patches on cleanup + * Updated debian/control + * Fixed long description (Closes: #781095) + * Added myself to Uploaders + * Removed deprecated "DM-Upload-Allowed" stanza + * Bumped standard version to 3.9.6 + * Fixed Vcs-Git URI + * Updated debian/copyright + * Updated to copyright-format/1.0 + * Proper multi-paragraph license text + * Fixed obsolete field names and license shortname + + -- IOhannes m zmölnig (Debian/GNU) Wed, 03 Jun 2015 21:01:26 +0200 + pd-unauthorized (0.1-1) unstable; urgency=low * Initial release (Closes: #636273) diff -Nru pd-unauthorized-0.1/debian/control pd-unauthorized-0.1/debian/control --- pd-unauthorized-0.1/debian/control 2013-01-18 04:23:47.000000000 +0000 +++ pd-unauthorized-0.1/debian/control 2015-06-03 18:49:15.000000000 +0000 @@ -2,15 +2,15 @@ Section: sound Priority: optional Maintainer: Debian Multimedia Maintainers -DM-Upload-Allowed: yes -Uploaders: Hans-Christoph Steiner +Uploaders: Hans-Christoph Steiner , + IOhannes m zmölnig (Debian/GNU) Build-Depends: debhelper (>= 7.0.50~), puredata-dev | puredata (<< 0.43), libmp3lame-dev, libspeex-dev -Standards-Version: 3.9.4 +Standards-Version: 3.9.6 Homepage: http://ydegoyon.free.fr/software.html -Vcs-Git: git://git.debian.org/pkg-multimedia/pd-unauthorized.git +Vcs-Git: git://anonscm.debian.org/pkg-multimedia/pd-unauthorized.git Vcs-Browser: http://git.debian.org/?p=pkg-multimedia/pd-unauthorized.git;a=summary Package: pd-unauthorized @@ -23,33 +23,31 @@ pd-zexy Description: library of Pd objects for streaming and GUI control unauthorized is a Pure Data library of GUI objects and a handful of objects - for working with streaming and mp3s. - . - audience~: 2-dimensional audience simulation - beatify~: modulate amplitude of a sound - blinkenlight: a blinken lights films player ( but also a pixel grid ) - compressor~: a compressor of audio signals - cooled: a micro sound editor - disto~: a kind of effect used in pop music, use it elsewhere - exciter: a bang-events sequencer - filterbank~: outputs frequency response for a range of filters - formant~ is a formant synthesis generator external for pd - grid: 2-dimensional control object, ala "kaospad" - mp3amp~ is a MPEG I Layer III (mp3) icecast/shoutcast client - mp3cast~ is a MPEG I Layer III (mp3) streaming external - mp3streamout~: peer-to-peer mp3 streaming out - mp3fileout~: peer-to-peer mp3 streaming to a file - mp3streamin~: peer-to-peer mp3 stream receiving - mp3write~ is a MPEG I Layer III (mp3) file writer. - pianoroll: a graphical sequencer controller - playlist: choose a file in 1 click with space, numeric, characters - probalizer: outputs integer values according to a drawn probability curve - samplebox~: an opaque box to record and playback a sound - scratcher~: records a sound and lets you scratch it with your mouse - scrolllist: displays and scrolls a text in a patch window - sonogram~: displays, plays back and lets you modify a recorded sonogram. - speexin~: a voice quality stream receiver using Speex library - speexout~: a voice quality streamer using Speex library - spigot~: a signal router. - wahwah~: a kind of effect used in psychedelic music, use it elsewhere - + for working with streaming and MP3s. + - audience~: a 2-dimensional audience simulation + - beatify~: modulates amplitude of a sound + - blinkenlight: a blinken lights films player (but also a pixel grid) + - compressor~: a compressor of audio signals + - cooled: a micro sound editor + - disto~: a kind of effect used in pop music, use it elsewhere + - exciter: a bang-events sequencer + - filterbank~: outputs frequency response for a range of filters + - formant~: a formant synthesis generator external for Pd + - grid: a 2-dimensional control object, ala "kaospad" + - mp3amp~: an MPEG-1 Layer III (MP3) Icecast/SHOUTcast client + - mp3cast~: an MPEG-1 Layer III (MP3) streaming external + - mp3streamout~: peer-to-peer MP3 streaming out + - mp3fileout~: peer-to-peer MP3 streaming to a file + - mp3streamin~: peer-to-peer MP3 stream receiving + - mp3write~: an MPEG-1 Layer III (MP3) file writer + - pianoroll: a graphical sequencer controller + - playlist: choose a file in 1 click with space, numeric, characters + - probalizer: outputs integer values according to a drawn probability curve + - samplebox~: an opaque box to record and playback a sound + - scratcher~: records a sound and lets you scratch it with your mouse + - scrolllist: displays and scrolls a text in a patch window + - sonogram~: displays, plays back and lets you modify a recorded sonogram + - speexin~: a voice quality stream receiver using Speex library + - speexout~: a voice quality streamer using Speex library + - spigot~: a signal router + - wahwah~: a kind of effect used in psychedelic music, use it elsewhere diff -Nru pd-unauthorized-0.1/debian/copyright pd-unauthorized-0.1/debian/copyright --- pd-unauthorized-0.1/debian/copyright 2012-12-12 03:18:01.000000000 +0000 +++ pd-unauthorized-0.1/debian/copyright 2015-06-03 18:58:29.000000000 +0000 @@ -1,6 +1,6 @@ -Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?rev=135 -Name: unauthorized -Maintainer: Hans-Christoph Steiner +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: unauthorized +Upstream-Contact: Hans-Christoph Steiner Source: http://sourceforge.net/projects/pure-data/files/libraries/unauthorized/ Files: * @@ -19,7 +19,13 @@ Files: grid.c pianoroll.c Copyright: 1997-1999 Miller Puckette. -License: Pd License +License: Pd-License + +Files: debian/* +Copyright: © 2013 Hans-Christoph Steiner + © 2015 IOhannes m zmölnig +License: GPL-2+ + License: GPL-2+ On Debian systems, the complete text of the GNU General @@ -29,7 +35,7 @@ On Debian systems, the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. -License: Pd License +License: Pd-License The authors hereby grant permission to use, copy, modify, distribute, and license this software and its documentation for any purpose, provided that existing copyright notices are retained in all copies and that this @@ -39,20 +45,20 @@ and need not follow the licensing terms described here, provided that the new terms are clearly indicated on the first page of each file where they apply. - + . IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - + . THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. - + . RESTRICTED RIGHTS: Use, duplication or disclosure by the government is subject to the restrictions as set forth in subparagraph (c) (1) (ii) of the Rights in Technical Data and Computer Software Clause as DFARS diff -Nru pd-unauthorized-0.1/debian/patches/fix_hardening.patch pd-unauthorized-0.1/debian/patches/fix_hardening.patch --- pd-unauthorized-0.1/debian/patches/fix_hardening.patch 1970-01-01 00:00:00.000000000 +0000 +++ pd-unauthorized-0.1/debian/patches/fix_hardening.patch 2015-06-03 18:32:49.000000000 +0000 @@ -0,0 +1,369 @@ +Description: fixed hardening errors + - supply a dummy format string '%s' for printf()-like functions +Author: IOhannes m zmölnig +Forwarded: https://sourceforge.net/p/pure-data/svn/17472/ +Last-Update: 2015-06-02 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- pd-unauthorized.orig/audience~.c ++++ pd-unauthorized/audience~.c +@@ -1038,7 +1038,7 @@ + + void audience_tilde_setup(void) + { +- logpost(NULL, 4, audience_version ); ++ logpost(NULL, 4, "%s", "%s", audience_version ); + audience_class_tilde = class_new(gensym("audience~"), (t_newmethod)audience_new, + (t_method)audience_free, sizeof(t_audience_tilde), 0, A_GIMME, 0); + CLASS_MAINSIGNALIN( audience_class_tilde, t_audience_tilde, x_f ); +--- pd-unauthorized.orig/beatify~.c ++++ pd-unauthorized/beatify~.c +@@ -171,7 +171,7 @@ + + void beatify_tilde_setup(void) + { +- logpost(NULL, 4, beatify_version ); ++ logpost(NULL, 4, "%s", beatify_version ); + beatify_class = class_new(gensym("beatify~"), (t_newmethod)beatify_new, 0, + sizeof(t_beatify), 0, 0); + CLASS_MAINSIGNALIN( beatify_class, t_beatify, x_f ); +--- pd-unauthorized.orig/blinkenlights.c ++++ pd-unauthorized/blinkenlights.c +@@ -867,7 +867,7 @@ + + void blinkenlights_setup(void) + { +- logpost(NULL, 4, blinkenlights_version); ++ logpost(NULL, 4, "%s", blinkenlights_version); + blinkenlights_class = class_new(gensym("blinkenlights"), (t_newmethod)blinkenlights_new, + (t_method)blinkenlights_free, + sizeof(t_blinkenlights), 0, A_DEFFLOAT, A_DEFFLOAT, A_DEFFLOAT, A_DEFFLOAT, 0); +--- pd-unauthorized.orig/compressor~.c ++++ pd-unauthorized/compressor~.c +@@ -97,7 +97,7 @@ + + void compressor_tilde_setup(void) + { +- logpost(NULL, 4, compressor_version ); ++ logpost(NULL, 4, "%s", compressor_version ); + compressor_class = class_new(gensym("compressor~"), (t_newmethod)compressor_new, 0, + sizeof(t_compressor), 0, 0); + CLASS_MAINSIGNALIN( compressor_class, t_compressor, x_f ); +--- pd-unauthorized.orig/cooled~.c ++++ pd-unauthorized/cooled~.c +@@ -1455,7 +1455,7 @@ + + void cooled_tilde_setup(void) + { +- logpost(NULL, 4, cooled_version); ++ logpost(NULL, 4, "%s", cooled_version); + cooled_class = class_new(gensym("cooled~"), (t_newmethod)cooled_new, (t_method)cooled_free, + sizeof(t_cooled), 0, A_GIMME, 0); + +--- pd-unauthorized.orig/countund.c ++++ pd-unauthorized/countund.c +@@ -115,7 +115,7 @@ + + void countund_setup(void) + { +- logpost(NULL, 4, countund_version); ++ logpost(NULL, 4, "%s", countund_version); + countund_class = class_new(gensym("countund"), (t_newmethod)countund_new, + (t_method)countund_free, + sizeof(t_countund), 0, A_DEFFLOAT, 0); +--- pd-unauthorized.orig/disto~.c ++++ pd-unauthorized/disto~.c +@@ -473,7 +473,7 @@ + + void disto_tilde_setup(void) + { +- logpost(NULL, 4, disto_version ); ++ logpost(NULL, 4, "%s", disto_version ); + disto_class = class_new(gensym("disto~"), (t_newmethod)disto_new, (t_method)disto_free, + sizeof(t_disto), 0, 0); + +--- pd-unauthorized.orig/exciter.c ++++ pd-unauthorized/exciter.c +@@ -789,7 +789,7 @@ + + void exciter_setup(void) + { +- logpost(NULL, 4, exciter_version ); ++ logpost(NULL, 4, "%s", exciter_version ); + exciter_class = class_new(gensym("exciter"), (t_newmethod)exciter_new, + (t_method)exciter_free, sizeof(t_exciter), 0, A_GIMME, 0); + class_addmethod(exciter_class, (t_method)exciter_dialog, gensym("dialog"), A_GIMME, 0); +--- pd-unauthorized.orig/filterbank~.c ++++ pd-unauthorized/filterbank~.c +@@ -653,7 +653,7 @@ + + void filterbank_tilde_setup(void) + { +- logpost(NULL, 4, filterbank_version ); ++ logpost(NULL, 4, "%s", filterbank_version ); + filterbank_class_tilde = class_new(gensym("filterbank~"), (t_newmethod)filterbank_new, + (t_method)filterbank_free, sizeof(t_filterbank_tilde), 0, A_GIMME, 0); + CLASS_MAINSIGNALIN( filterbank_class_tilde, t_filterbank_tilde, x_f ); +--- pd-unauthorized.orig/formant~.c ++++ pd-unauthorized/formant~.c +@@ -260,7 +260,7 @@ + + void formant_tilde_setup(void) + { +- logpost(NULL, 4, formant_version); ++ logpost(NULL, 4, "%s", formant_version); + formant_class = class_new(gensym("formant~"), (t_newmethod)formant_new, (t_method)formant_free, + sizeof(t_formant), 0, A_DEFFLOAT, A_DEFFLOAT, A_DEFFLOAT, A_DEFFLOAT, 0); + class_addmethod(formant_class, (t_method)formant_dsp, gensym("dsp"), 0); +--- pd-unauthorized.orig/grid.c ++++ pd-unauthorized/grid.c +@@ -690,7 +690,7 @@ + + void grid_setup(void) + { +- logpost(NULL, 4, grid_version ); ++ logpost(NULL, 4, "%s", grid_version ); + grid_class = class_new(gensym("grid"), (t_newmethod)grid_new, + (t_method)grid_free, sizeof(t_grid), 0, A_GIMME, 0); + class_addmethod(grid_class, (t_method)grid_click, gensym("click"), +--- pd-unauthorized.orig/mp3amp~.c ++++ pd-unauthorized/mp3amp~.c +@@ -1245,7 +1245,7 @@ + /* init mpg123 decoder */ + mp3amp_tilde_mpglib_init(x); + +- logpost(NULL, 4, mp3amp_version); ++ logpost(NULL, 4, "%s", mp3amp_version); + + return (x); + } +--- pd-unauthorized.orig/mp3cast~.c ++++ pd-unauthorized/mp3cast~.c +@@ -368,7 +368,7 @@ + #endif /* _WIN32 */ + { + const char *lameVersion = get_lame_version(); +- logpost(NULL, 4, "mp3cast~ : using lame version : %s", lameVersion ); ++ logpost(NULL, 4, "%s", "mp3cast~ : using lame version : %s", lameVersion ); + } + + +@@ -810,7 +810,7 @@ + static void mp3cast_print(t_mp3cast *x) + { + const char * buf = 0; +- logpost(NULL, 4, mp3cast_version); ++ logpost(NULL, 4, "%s", mp3cast_version); + post(" LAME mp3 settings:\n" + " output sample rate: %d Hz\n" + " bitrate: %d kbit/s", x->x_samplerate, x->x_bitrate); +@@ -972,7 +972,7 @@ + + void mp3cast_tilde_setup(void) + { +- logpost(NULL, 4, mp3cast_version); ++ logpost(NULL, 4, "%s", mp3cast_version); + mp3cast_class = class_new(gensym("mp3cast~"), (t_newmethod)mp3cast_new, (t_method)mp3cast_free, + sizeof(t_mp3cast), 0, 0); + CLASS_MAINSIGNALIN(mp3cast_class, t_mp3cast, x_f ); +--- pd-unauthorized.orig/mp3fileout~.c ++++ pd-unauthorized/mp3fileout~.c +@@ -549,7 +549,7 @@ + + void mp3fileout_tilde_setup(void) + { +- logpost(NULL, 4, mp3fileout_version ); ++ logpost(NULL, 4, "%s", mp3fileout_version ); + mp3fileout_class = class_new(gensym("mp3fileout~"), + (t_newmethod) mp3fileout_new, (t_method) mp3fileout_free, + sizeof(t_mp3fileout), 0, A_NULL); +--- pd-unauthorized.orig/mp3streamin~.c ++++ pd-unauthorized/mp3streamin~.c +@@ -669,7 +669,7 @@ + + void mp3streamin_tilde_setup(void) + { +- logpost(NULL, 4, mp3streamin_version ); ++ logpost(NULL, 4, "%s", mp3streamin_version ); + mp3streamin_class = class_new(gensym("mp3streamin~"), + (t_newmethod) mp3streamin_new, (t_method) mp3streamin_free, + sizeof(t_mp3streamin), CLASS_NOINLET, A_DEFFLOAT, A_DEFFLOAT, A_NULL); +--- pd-unauthorized.orig/mp3streamout~.c ++++ pd-unauthorized/mp3streamout~.c +@@ -376,7 +376,7 @@ + #endif + { + const char *lameVersion = get_lame_version(); +- logpost(NULL, 4, "mp3streamout~ : using lame version : %s", lameVersion ); ++ logpost(NULL, 4, "%s", "mp3streamout~ : using lame version : %s", lameVersion ); + } + + /* setting lame parameters */ +@@ -550,7 +550,7 @@ + { + const char * buf = 0; + +- logpost(NULL, 4, mp3streamout_version); ++ logpost(NULL, 4, "%s", mp3streamout_version); + post(" LAME mp3 settings:\n" + " output sample rate: %d Hz\n" + " bitrate: %d kbit/s", x->x_samplerate, x->x_bitrate); +@@ -629,7 +629,7 @@ + + void mp3streamout_tilde_setup(void) + { +- logpost(NULL, 4, mp3streamout_version); ++ logpost(NULL, 4, "%s", mp3streamout_version); + mp3streamout_class = class_new(gensym("mp3streamout~"), (t_newmethod)mp3streamout_new, (t_method)mp3streamout_free, + sizeof(t_mp3streamout), 0, 0); + CLASS_MAINSIGNALIN(mp3streamout_class, t_mp3streamout, x_f ); +--- pd-unauthorized.orig/mp3write~.c ++++ pd-unauthorized/mp3write~.c +@@ -369,7 +369,7 @@ + #endif + { + const char *lameVersion = get_lame_version(); +- logpost(NULL, 4, "mp3write~ : using lame version : %s", lameVersion ); ++ logpost(NULL, 4, "%s", "mp3write~ : using lame version : %s", lameVersion ); + } + + /* setting lame parameters */ +@@ -495,7 +495,7 @@ + static void mp3write_print(t_mp3write *x) + { + const char * buf = 0; +- logpost(NULL, 4, mp3write_version); ++ logpost(NULL, 4, "%s", mp3write_version); + post(" LAME mp3 settings:\n" + " output sample rate: %d Hz\n" + " bitrate: %d kbit/s", x->x_samplerate, x->x_bitrate); +@@ -627,7 +627,7 @@ + + void mp3write_tilde_setup(void) + { +- logpost(NULL, 4, mp3write_version); ++ logpost(NULL, 4, "%s", mp3write_version); + mp3write_class = class_new(gensym("mp3write~"), (t_newmethod)mp3write_new, (t_method)mp3write_free, + sizeof(t_mp3write), 0, 0); + CLASS_MAINSIGNALIN(mp3write_class, t_mp3write, x_f ); +--- pd-unauthorized.orig/pianoroll.c ++++ pd-unauthorized/pianoroll.c +@@ -793,7 +793,7 @@ + + void pianoroll_setup(void) + { +- logpost(NULL, 4, pianoroll_version ); ++ logpost(NULL, 4, "%s", pianoroll_version ); + pianoroll_class = class_new(gensym("pianoroll"), (t_newmethod)pianoroll_new, + (t_method)pianoroll_free, sizeof(t_pianoroll), 0, A_GIMME, 0); + class_addmethod(pianoroll_class, (t_method)pianoroll_float, &s_float, A_FLOAT, 0); +--- pd-unauthorized.orig/probalizer.c ++++ pd-unauthorized/probalizer.c +@@ -676,7 +676,7 @@ + + void probalizer_setup(void) + { +- logpost(NULL, 4, probalizer_version ); ++ logpost(NULL, 4, "%s", probalizer_version ); + probalizer_class = class_new(gensym("probalizer"), (t_newmethod)probalizer_new, + (t_method)probalizer_free, sizeof(t_probalizer), 0, A_GIMME, 0); + class_addmethod(probalizer_class, (t_method)probalizer_dialog, gensym("dialog"), A_GIMME, 0); +--- pd-unauthorized.orig/randomblock~.c ++++ pd-unauthorized/randomblock~.c +@@ -111,7 +111,7 @@ + + void randomblock_tilde_setup(void) + { +- logpost(NULL, 4, randomblock_version); ++ logpost(NULL, 4, "%s", randomblock_version); + randomblock_class = class_new(gensym("randomblock~"), (t_newmethod)randomblock_new, + (t_method)randomblock_free, + sizeof(t_randomblock), 0, A_DEFFLOAT, 0); +--- pd-unauthorized.orig/samplebox~.c ++++ pd-unauthorized/samplebox~.c +@@ -579,7 +579,7 @@ + + void samplebox_tilde_setup(void) + { +- logpost(NULL, 4, samplebox_version); ++ logpost(NULL, 4, "%s", samplebox_version); + samplebox_class = class_new(gensym("samplebox~"), (t_newmethod)samplebox_new, (t_method)samplebox_free, + sizeof(t_samplebox), 0, A_DEFFLOAT, 0); + CLASS_MAINSIGNALIN( samplebox_class, t_samplebox, x_f ); +--- pd-unauthorized.orig/scratcher~.c ++++ pd-unauthorized/scratcher~.c +@@ -805,7 +805,7 @@ + + void scratcher_tilde_setup(void) + { +- logpost(NULL, 4, scratcher_version); ++ logpost(NULL, 4, "%s", scratcher_version); + scratcher_class = class_new(gensym("scratcher~"), (t_newmethod)scratcher_new, (t_method)scratcher_free, + sizeof(t_scratcher), 0, A_GIMME, 0); + +--- pd-unauthorized.orig/scrolllist.c ++++ pd-unauthorized/scrolllist.c +@@ -1000,7 +1000,7 @@ + + void scrolllist_setup(void) + { +- logpost(NULL, 4, scrolllist_version ); ++ logpost(NULL, 4, "%s", scrolllist_version ); + scrolllist_class = class_new(gensym("scrolllist"), (t_newmethod)scrolllist_new, + (t_method)scrolllist_free, sizeof(t_scrolllist), + CLASS_DEFAULT, A_GIMME, 0); +--- pd-unauthorized.orig/sonogram~.c ++++ pd-unauthorized/sonogram~.c +@@ -2251,7 +2251,7 @@ + + void sonogram_tilde_setup(void) + { +- logpost(NULL, 4, sonogram_version); ++ logpost(NULL, 4, "%s", sonogram_version); + sonogram_class = class_new(gensym("sonogram~"), (t_newmethod)sonogram_new, (t_method)sonogram_free, + sizeof(t_sonogram), 0, A_DEFFLOAT, A_DEFFLOAT, A_DEFFLOAT, 0); + +--- pd-unauthorized.orig/speexin~.c ++++ pd-unauthorized/speexin~.c +@@ -608,7 +608,7 @@ + + void speexin_tilde_setup(void) + { +- logpost(NULL, 4, speexin_version ); ++ logpost(NULL, 4, "%s", speexin_version ); + speexin_class = class_new(gensym("speexin~"), + (t_newmethod) speexin_new, (t_method) speexin_free, + sizeof(t_speexin), CLASS_NOINLET, A_DEFFLOAT, A_DEFFLOAT, A_NULL); +--- pd-unauthorized.orig/speexout~.c ++++ pd-unauthorized/speexout~.c +@@ -444,7 +444,7 @@ + + void speexout_tilde_setup(void) + { +- logpost(NULL, 4, speexout_version); ++ logpost(NULL, 4, "%s", speexout_version); + speexout_class = class_new(gensym("speexout~"), (t_newmethod)speexout_new, (t_method)speexout_free, + sizeof(t_speexout), 0, A_GIMME, 0); + CLASS_MAINSIGNALIN(speexout_class, t_speexout, x_f ); +--- pd-unauthorized.orig/spigot~.c ++++ pd-unauthorized/spigot~.c +@@ -71,7 +71,7 @@ + + void spigot_tilde_setup(void) + { +- logpost(NULL, 4, spigot_version ); ++ logpost(NULL, 4, "%s", spigot_version ); + spigot_class = class_new(gensym("spigot~"), (t_newmethod)spigot_new, 0, + sizeof(t_spigot), 0, 0); + CLASS_MAINSIGNALIN( spigot_class, t_spigot, x_f ); +--- pd-unauthorized.orig/wahwah~.c ++++ pd-unauthorized/wahwah~.c +@@ -393,7 +393,7 @@ + + void wahwah_tilde_setup(void) + { +- logpost(NULL, 4, wahwah_version ); ++ logpost(NULL, 4, "%s", wahwah_version ); + wahwah_class = class_new(gensym("wahwah~"), (t_newmethod)wahwah_new, (t_method)wahwah_free, + sizeof(t_wahwah), 0, 0); + diff -Nru pd-unauthorized-0.1/debian/patches/fix_Wreturn.patch pd-unauthorized-0.1/debian/patches/fix_Wreturn.patch --- pd-unauthorized-0.1/debian/patches/fix_Wreturn.patch 1970-01-01 00:00:00.000000000 +0000 +++ pd-unauthorized-0.1/debian/patches/fix_Wreturn.patch 2015-06-03 18:42:35.000000000 +0000 @@ -0,0 +1,38 @@ +Description: fix FTBFS with clang instead of gcc + clang is more picky if a function is declared as returning + a value and then it doesn't. +Author: Nicolas Sévelin-Radiguet +Reviewed-by: IOhannes m zmölnig +Last-Update: 2014-04-05 + +--- pd-unauthorized.orig/countund.c ++++ pd-unauthorized/countund.c +@@ -80,7 +80,7 @@ + if ( flimit < 0 ) + { + post( "countund~: wrong count limit" ); +- return; ++ return NULL; + } + else + { +@@ -110,7 +110,7 @@ + } + } + outlet_float( x->x_obj.ob_outlet, x->x_value ); +- return; ++ return NULL; + } + + void countund_setup(void) +--- pd-unauthorized.orig/randomblock~.c ++++ pd-unauthorized/randomblock~.c +@@ -76,7 +76,7 @@ + if ( flimit < 0 || flimit > RAND_MAX ) + { + post( "randomblock~: wrong random limit" ); +- return; ++ return NULL; + } + else + { diff -Nru pd-unauthorized-0.1/debian/patches/series pd-unauthorized-0.1/debian/patches/series --- pd-unauthorized-0.1/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ pd-unauthorized-0.1/debian/patches/series 2015-06-03 18:40:49.000000000 +0000 @@ -0,0 +1,2 @@ +fix_hardening.patch +fix_Wreturn.patch diff -Nru pd-unauthorized-0.1/debian/rules pd-unauthorized-0.1/debian/rules --- pd-unauthorized-0.1/debian/rules 2012-12-12 03:18:01.000000000 +0000 +++ pd-unauthorized-0.1/debian/rules 2015-06-03 18:17:51.000000000 +0000 @@ -1,17 +1,55 @@ #!/usr/bin/make -f +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2013 Hans-Christoph Steiner +# Copyright © 2015 IOhannes m zmölnig +# Description: Main Debian packaging script for pd-unauthorized +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . LIBRARY_NAME = unauthorized PACKAGE = pd-$(LIBRARY_NAME) pkglibdir = /usr/lib/pd/extra +## use hardening flags +DPKG_EXPORT_BUILDFLAGS = 1 +export DEB_BUILD_MAINT_OPTIONS +include /usr/share/dpkg/buildflags.mk + %: dh $@ --buildsystem=makefile +override_dh_auto_build: + dh_auto_build -- \ + CFLAGS="$(CFLAGS) $(CPPFLAGS) -I/usr/include/pd" \ + LDFLAGS="$(LDFLAGS)" + override_dh_auto_install: dh_auto_install -- prefix=/usr pkglibdir=$(pkglibdir) # replace license file with link to the Debian license file rm -f -- $(CURDIR)/debian/$(PACKAGE)/$(pkglibdir)/$(LIBRARY_NAME)/LICENSE.txt override_dh_shlibdeps: - dpkg-shlibdeps $(CURDIR)/debian/$(PACKAGE)$(pkglibdir)/$(LIBRARY_NAME)/*.pd_linux \ - -T$(CURDIR)/debian/$(PACKAGE).substvars + dh_shlibdeps + find debian -name "*.pd_linux" -exec \ + dpkg-shlibdeps -Tdebian/$(PACKAGE).substvars {} + + +override_dh_strip: + dh_strip + find debian -name "*.pd_linux" -exec \ + strip --remove-section=.comment --remove-section=.note --strip-unneeded {} + + +override_dh_fixperms: + dh_fixperms + find debian -name '*.pd_linux' -exec \ + chmod 0644 {} +