diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000000..e960504315 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,476 @@ +mruby (3.4.0-2) unstable; urgency=medium + + * Fix CVE-2025-7207 (Closes: #1109338) + Add CVE-2025-7207.patch to d/patches/series. + + -- Nobuhiro Iwamatsu Sat, 16 Aug 2025 09:18:10 +0900 + +mruby (3.4.0-1) unstable; urgency=medium + + * Upload to unstable. + * Fix CVE-2025-7207 (Closes: #1109338) + Add d/patches/CVE-2025-7207.patch. + + -- Nobuhiro Iwamatsu Sat, 16 Aug 2025 07:14:20 +0900 + +mruby (3.4.0-1~exp2) experimental; urgency=medium + + * d/patches: Add fix-bigint-on-raspberry-pi.patch. + Fix test on arm64 and others. + + -- Nobuhiro Iwamatsu Fri, 15 Aug 2025 12:08:48 +0900 + +mruby (3.4.0-1~exp1) experimental; urgency=medium + + * New upstream release. + * d/control: Bumped Standards-Version to 4.7.2. + * d/copyright: Update copyright year. + * d/copyright: Drop license for mrbgems/mruby-compiler/core/y.tab.c. + + -- Nobuhiro Iwamatsu Fri, 11 Jul 2025 13:22:37 +0900 + +mruby (3.3.0-1) unstable; urgency=medium + + * New upstream release. + + -- Nobuhiro Iwamatsu Wed, 03 Apr 2024 13:19:27 +0900 + +mruby (3.3.0~rc2-1) experimental; urgency=medium + + * New upstream release. + + -- Nobuhiro Iwamatsu Wed, 07 Feb 2024 16:29:54 +0900 + +mruby (3.2.0-2) unstable; urgency=medium + + * d/clean: Add build_config/default.rb.lock. (Closes: #1046416) + + -- Nobuhiro Iwamatsu Wed, 06 Sep 2023 14:23:11 +0900 + +mruby (3.2.0-1) unstable; urgency=medium + + * New upstream release. + * d/copyright: Update copyright year + * d/control: Bump Standards-Version to 4.6.2 + + -- Nobuhiro Iwamatsu Sun, 25 Jun 2023 14:39:17 +0900 + +mruby (3.1.0-3) unstable; urgency=medium + + * Revert "d/rules: Build using host-m32.rb when architecture is i386" + * d/rules: Fix FTBFS on i386. (Closes: #1031321) + Add '-ffloat-store' to DEB_CFLAGS_MAINT_APPEND if architecture are i386 or + m68k. Thanks to Adrian Bunk . + + -- Nobuhiro Iwamatsu Mon, 13 Mar 2023 16:53:46 +0900 + +mruby (3.1.0-2) experimental; urgency=medium + + * d/rules: Build using host-m32.rb when architecture is i386. + + -- Nobuhiro Iwamatsu Sat, 11 Feb 2023 09:19:05 +0900 + +mruby (3.1.0-1) unstable; urgency=medium + + * New upstream release. + * Fix CVE-2021-46020, CVE-2022-0240, CVE-2022-0481, CVE-2022-0890, + CVE-2022-1071, CVE-2022-1427, CVE-2022-1201. (Closes: #1014968) + + -- Nobuhiro Iwamatsu Mon, 08 Aug 2022 11:39:09 +0900 + +mruby (3.0.0-4) unstable; urgency=medium + + * Fix CVE-2022-1212. (Closes: #1009044) + Add d/patches/CVE-2022-1212.patch. Fix Use-After-Free in str_escape. + * Fix CVE-2022-1286. + Add d/patches/CVE-2022-1286.patch. Fix heap-buffer-overflow in mrb_vm_exe. + * Add 'DEB_BUILD_MAINT_OPTIONS = hardening=+all' to d/rules. + + -- Nobuhiro Iwamatsu Sat, 07 May 2022 17:09:06 +0900 + +mruby (3.0.0-3) unstable; urgency=medium + + * Fix vulnerable to Heap-based Buffer Overflow (Fix CVE-2022-0080). + Add d/patches/CVE-2022-0080.patch. + + -- Nobuhiro Iwamatsu Thu, 06 Jan 2022 11:21:13 +0900 + +mruby (3.0.0-2) unstable; urgency=medium + + * Fix vulnerable to NULL Pointer Dereference (Fix CVE-2021-4110). + Add d/patches/CVE-2021-4110.patch. (Closes: #1001768) + * Update d/copyright + - Get rid of lintian 'superfluous-file-pattern'. + + -- Nobuhiro Iwamatsu Thu, 06 Jan 2022 10:46:45 +0900 + +mruby (3.0.0-1) unstable; urgency=medium + + * New upstream release. + * Update d/control + - Bump Standards-Version to 4.6.0. + - Add "Rules-Requires-Root: no". + - Add Homepage field. + * Update d/gbp.conf + - Set debian-branch to debian/sid for DEP-14 conformance. + * Update d/patches + - add_fpic_amd64.patch: Update to latest version. + - Drop unnecessary patches. + - Add Fix-typo.patch. + * Update d/rules + - Remove whitespace + * Update d/copyright. + + -- Nobuhiro Iwamatsu Thu, 23 Sep 2021 07:12:02 +0900 + +mruby (2.1.2-3) unstable; urgency=medium + + * Fix CVE-2020-36401. + Fixed the use-after-free problem. Add d/patches/Fix-CVE-2020-36401.patch. + This patch is included 9cdf439db5 and 97319697c8 from upstream. + + -- Nobuhiro Iwamatsu Mon, 12 Jul 2021 16:23:01 +0900 + +mruby (2.1.2-2) unstable; urgency=medium + + * Add d/upstream/metadata. + + -- Nobuhiro Iwamatsu Sun, 27 Dec 2020 14:14:43 +0900 + +mruby (2.1.2-1) unstable; urgency=medium + + * New upstream release (2.1.2). (Closes: #972051) + * Update d/control. + - Bump Standards-Version to 4.5.0. + - Use debhelper-compat instead of debhelper and compat. + * Remove some debian specific patches. + + -- Nobuhiro Iwamatsu Wed, 09 Dec 2020 13:24:45 +0900 + +mruby (2.0.1-1) experimental; urgency=medium + + * New upstream release (2.0.1). + + -- Nobuhiro Iwamatsu Sat, 04 May 2019 06:39:54 +0900 + +mruby (2.0.0-1) unstable; urgency=medium + + [ Akira Mitsui ] + * New upstream release (2.0.0). + + [ Nobuhiro Iwamatsu ] + * Update patches. + * Bump Standards-Version to 4.3.0. + + -- Akira Mitsui Sat, 15 Dec 2018 11:55:05 +0900 + +mruby (1.4.1+20180922+git8fc56f06-1) unstable; urgency=medium + + * Snapshot, taken from the master (20180922). + + -- Akira Mitsui Sat, 22 Sep 2018 15:39:05 +0900 + +mruby (1.4.1+20180622+git640fca32-1) unstable; urgency=medium + + * Snapshot, taken from the master (20180622). + - Fix CVE-2018-11743, CVE-2018-12249 CVE-2018-12248. + Closes: #900845 #901652 #901653 + * Remove patches/Fix-test-on-big-endian-CPUs.patch. + Applied to upstream. + + -- Nobuhiro Iwamatsu Fri, 22 Jun 2018 07:59:03 +0900 + +mruby (1.4.1+20180527+git14c21793-1) UNRELEASED; urgency=medium + + * Snapshot, taken from the master (20180527). + + -- Akira Mitsui Sun, 27 May 2018 14:41:01 +0900 + +mruby (1.4.1-2) unstable; urgency=medium + + * Fix test on big-endian (Closes: #897087) + Add Fix-test-on-big-endian-CPUs.patch, Add-set_endian-function.patch and + Add-check-function-for-endian.patch and + Move-function-of-endian-from-Crossbuild-to-build.patch + + -- Nobuhiro Iwamatsu Thu, 10 May 2018 13:13:40 +0900 + +mruby (1.4.1-1) unstable; urgency=medium + + * New upstream release (1.4.1). + + -- Nobuhiro Iwamatsu Tue, 08 May 2018 08:07:23 +0900 + +mruby (1.4.0+20180418+git54905e98-3) unstable; urgency=medium + + * Fix FTBFS RuntimeError: IO#isatty => open /dev/tty (mrbgems: mruby-io) + Remove patches/Skip-mruby-io-test-if-there-is-no-dev-tty.patch, and + add patches/Skip-mruby-tty-test-in-io.patch. + (Closes: #896162) + + -- Nobuhiro Iwamatsu Mon, 23 Apr 2018 10:27:32 +0900 + +mruby (1.4.0+20180418+git54905e98-2) unstable; urgency=medium + + * Fix FTBFS RuntimeError: IO#isatty => open /dev/tty (mrbgems: mruby-io) + Add patches/Skip-mruby-io-test-if-there-is-no-dev-tty.patch. + (Closes: #896162) + + -- Nobuhiro Iwamatsu Sun, 22 Apr 2018 12:17:43 +0900 + +mruby (1.4.0+20180418+git54905e98-1) unstable; urgency=medium + + * Update from stable branch(20180418). + - Fix CVE-2018-10191 (Closes: #896020) + Use after free caused by integer overflow in environment stack + - Fix CVE-2018-10199.(Closes: #896021) + Use after free in File#initilialize_copy + * Bump Standards-Version to 4.1.4. + + -- Nobuhiro Iwamatsu Fri, 20 Apr 2018 08:29:33 +0900 + +mruby (1.4.0-1) unstable; urgency=medium + + * New upstream release(1.4.0). + * Change Vcs-Git to use https. + * Update copyright. + - Update secure copyright format URI. + - Update License from MIT to Expat. + + -- Akira Mitsui Sun, 04 Feb 2018 11:08:22 +0900 + +mruby (1.3.0+20171124+git0ab21a9a-1) unstable; urgency=medium + + * Snapshot, taken from the master (20171124). + + -- Akira Mitsui Fri, 24 Nov 2017 23:23:15 +0900 + +mruby (1.3.0+20171029+git77edafb0-1) unstable; urgency=medium + + * Snapshot, taken from the master (20171029). + * Change priority from extra to optional. + + -- Nobuhiro Iwamatsu Mon, 30 Oct 2017 17:58:41 +0900 + +mruby (1.3.0+20170925+git38185028-1) unstable; urgency=medium + + * Snapshot, taken from the master (20170925). + * Update Standards-Version to 4.1.0. + + -- Nobuhiro Iwamatsu Tue, 26 Sep 2017 04:22:21 +0900 + +mruby (1.3.0-1) unstable; urgency=medium + + * New upstream release(1.3.0). + * Update Standards-Version to 4.0.0. + + -- Akira Mitsui Wed, 05 Jul 2017 01:11:06 +0900 + +mruby (1.2.0+20170601+git51e0e690-1) experimental; urgency=medium + + * Snapshot, taken from the master (20170601). + + -- Nobuhiro Iwamatsu Fri, 02 Jun 2017 10:45:38 +0900 + +mruby (1.2.0+20170504+git964a02f1-1) unstable; urgency=medium + + * Snapshot, taken from the master (20170504). + + -- Akira Mitsui Thu, 04 May 2017 03:34:02 +0900 + +mruby (1.2.0+20170226+gitfecbde32-1) unstable; urgency=medium + + * Snapshot, taken from the master (20170226). + + -- Akira Mitsui Mon, 27 Feb 2017 13:28:02 +0900 + +mruby (1.2.0+20161228+git30d5424a-1) unstable; urgency=medium + + * Snapshot, taken from the master (20161228). + + -- Nobuhiro Iwamatsu Wed, 28 Dec 2016 06:42:26 +0900 + +mruby (1.2.0+20161009+git8488425e-1) unstable; urgency=medium + + * Snapshot, taken from the master (20161009). + * Update Standards-Version to 3.9.8. + + -- Nobuhiro Iwamatsu Sat, 15 Oct 2016 06:01:22 +0900 + +mruby (1.2.0+20160804+git501e1ef2-1) unstable; urgency=medium + + * Snapshot, taken from the master (20160804). + + -- Akira Mitsui Thu, 04 Aug 2016 00:25:55 +0900 + +mruby (1.2.0+20160527+git6b0299f7-1) unstable; urgency=medium + + * Snapshot, taken from the master (20160527). + + -- Akira Mitsui Fri, 27 May 2016 00:10:50 +0900 + +mruby (1.2.0+20160426+git8f0c1c7d-1) unstable; urgency=medium + + * Snapshot, taken from the master (20160426). + + -- Nobuhiro Iwamatsu Tue, 26 Apr 2016 09:35:09 +0900 + +mruby (1.2.0+20160315+git4f20d58a-1) unstable; urgency=medium + + * Snapshot, taken from the master (20160315). + * Bump Standards-Version to 3.9.7. + + -- Nobuhiro Iwamatsu Tue, 15 Mar 2016 03:29:36 +0900 + +mruby (1.2.0+20160220+gitcf5ca036-1) unstable; urgency=medium + + * Snapshot, taken from the master (20160220). + + -- Akira Mitsui Sat, 12 Mar 2016 00:27:24 +0900 + +mruby (1.2.0+20151223+git7e4a7abf-1) unstable; urgency=medium + + * Snapshot, taken from the master (20151223). + + -- Akira Mitsui Wed, 23 Dec 2015 13:32:13 +0900 + +mruby (1.2.0-1) unstable; urgency=medium + + * New upstream release(1.2.0). + * Remove patch. because it fixed in upstream + + -- Akira Mitsui Tue, 17 Nov 2015 22:47:07 +0900 + +mruby (1.1.0+20151021+git68ba3862-1) unstable; urgency=medium + + * Snapshot, taken from the master (20151021). + * Add patches/fix_bintest_for_debuild.patch. + + -- Akira Mitsui Wed, 21 Oct 2015 21:21:18 +0900 + +mruby (1.1.0+20150906+git1cbbb7e1-1) unstable; urgency=medium + + * Snapshot, taken from the master (20150906). + + -- Akira Mitsui Sun, 06 Sep 2015 09:55:36 +0900 + +mruby (1.1.0+20150817+gita1731254-1) unstable; urgency=medium + + * Snapshot, taken from the master (20150817). + * Add patches/change_optimize_O2.patch. (Closes: #795367) + * Add patches/add_fpic_amd64.patch. (Closes: #795407) + + -- Nobuhiro Iwamatsu Mon, 17 Aug 2015 19:53:07 +0900 + +mruby (1.1.0+20150807+git4fdf4922-1) unstable; urgency=medium + + * Snapshot, taken from the master (20150807). (Closes: #793296) + + -- Nobuhiro Iwamatsu Fri, 07 Aug 2015 07:08:54 +0900 + +mruby (1.1.0+20150601+gitbd2686d8-1) unstable; urgency=medium + + * Snapshot, taken from the master (20150601). + * Bump Standards-Version to 3.9.6. + + -- Nobuhiro Iwamatsu Mon, 01 Jun 2015 14:33:47 +0900 + +mruby (1.1.0+20150416+gitfa824e32-1) unstable; urgency=medium + + * Snapshot, taken from the master (20150416). + + -- Akira Mitsui Thu, 16 Apr 2015 00:39:10 +0900 + +mruby (1.1.0+20150131+git089f1f6c-1) unstable; urgency=medium + + * Snapshot, taken from the master (20150131). + * Remove patch. because it fixed in upstream + + -- Akira Mitsui Sat, 31 Jan 2015 16:58:37 +0900 + +mruby (1.1.0-1) unstable; urgency=low + + * New upstream release(1.1.0). + * Update man pages + + -- Akira Mitsui Tue, 25 Nov 2014 22:06:20 +0900 + +mruby (1.0.0+20141109+gitfbadd660-1) unstable; urgency=medium + + * Snapshot, taken from the master (20141109). + + -- Akira Mitsui Sun, 09 Nov 2014 23:26:31 +0900 + +mruby (1.0.0+20141015+gitb4cc962c-1) unstable; urgency=medium + + * Snapshot, taken from the master (20141015). + + -- Nobuhiro Iwamatsu Wed, 15 Oct 2014 19:49:36 +0900 + +mruby (1.0.0+20140919+git5f7b0580-1) unstable; urgency=medium + + * Snapshot, taken from the master (20140919). + + -- Nobuhiro Iwamatsu Fri, 19 Sep 2014 08:40:31 +0900 + +mruby (1.0.0+20140623+gitc938b2f6-1) unstable; urgency=medium + + * Snapshot, taken from the master (20140623). + + -- Akira Mitsui Mon, 23 Jun 2014 18:58:59 +0900 + +mruby (1.0.0-1) unstable; urgency=low + + * New upstream release(1.0.0). + * Update Standards-Version to 3.9.5. + + -- Akira Mitsui Thu, 2 Jan 2014 14:24:54 +0900 + +mruby (0.0.0~20131214+git882afdea-1) unstable; urgency=medium + + * Snapshot, taken from the master (20131214). + + -- Nobuhiro Iwamatsu Sat, 14 Dec 2013 10:56:42 +0900 + +mruby (0.0.0~20131107+gitf80401de-1) unstable; urgency=low + + * Snapshot, taken from the master (20131107). + + -- Nobuhiro Iwamatsu Thu, 07 Nov 2013 12:23:24 +0900 + +mruby (0.0.0~20131011+git480e3297-1) unstable; urgency=low + + * Snapshot, taken from the master (20131011). + * Upload to unstable. + + -- Nobuhiro Iwamatsu Fri, 11 Oct 2013 13:34:59 +0900 + +mruby (0.0.0~20130903+gitad5c408c-1) experimental; urgency=low + + * New upstream release. + + -- Nobuhiro Iwamatsu Tue, 03 Sep 2013 07:49:24 +0900 + +mruby (0.0.0~20130801+gitc550a0f8-1) experimental; urgency=low + + * New upstream release. + + -- Nobuhiro Iwamatsu Thu, 01 Aug 2013 07:43:27 +0900 + +mruby (0.0.0~20130704+git4c8fd521-1) experimental; urgency=low + + * New upstream release. + + -- Nobuhiro Iwamatsu Thu, 04 Jul 2013 08:27:16 +0900 + +mruby (0.0.0~20130531+git5c6d2818-1) experimental; urgency=low + + * New upstream release. + + -- Nobuhiro Iwamatsu Fri, 31 May 2013 17:33:04 +0900 + +mruby (0.0.0~20130515+git95fb1fd8-1) experimental; urgency=low + + * Initial release. (Closes: #697835) + + -- Nobuhiro Iwamatsu Wed, 15 May 2013 07:29:35 +0900 diff --git a/debian/clean b/debian/clean new file mode 100644 index 0000000000..98f71f74c2 --- /dev/null +++ b/debian/clean @@ -0,0 +1 @@ +build_config/default.rb.lock diff --git a/debian/control b/debian/control new file mode 100644 index 0000000000..dd67fb9891 --- /dev/null +++ b/debian/control @@ -0,0 +1,37 @@ +Source: mruby +Section: ruby +Priority: optional +Maintainer: Nobuhiro Iwamatsu +Uploaders: Akira Mitsui +Build-Depends: debhelper-compat (= 13), ruby, bison +Standards-Version: 4.7.2 +Homepage: https://mruby.org/ +Vcs-Git: https://github.com/mruby-debian/mruby.git +Vcs-Browser: https://github.com/mruby-debian/mruby +Rules-Requires-Root: no + +Package: mruby +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: lightweight implementation of the Ruby language + mruby is the lightweight implementation of the Ruby language complying to + the ISO standard. + This can be linked and embedded within your application. + . + This package contains the following tools: + * mirb: Embeddable interactive ruby shell + * mrbc: mruby compiler + * mruby: mruby interpreter + * mrdb: mruby debugger + * mruby-strip: mruby strip + +Package: libmruby-dev +Architecture: any +Section: libdevel +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: lightweight implementation of the Ruby language (development files) + mruby is the lightweight implementation of the Ruby language complying to + the ISO standard. + This can be linked and embedded within your application. + . + This package contains the development files. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000000..aa2fcbbec9 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,51 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: mruby +Source: https://github.com/mruby/mruby + +Files: * +Copyright: Copyright (c) 2010-2021, mruby developers +License: Expat + +Files: mrbgems/mruby-io/README.md + mrbgems/mruby-pack/README.md + mrbgems/mruby-socket/README.md +Copyright: 2012, Internet Initiative Japan Inc. + 2013, Internet Initiative Japan Inc. + 2017, mruby developers +License: Expat + +Files: src/fmt_fp.c +Copyright: 2005-2014, Rich Felker, et al. +License: Expat + +Files: mrbgems/mruby-sleep/src/sleep.c +Copyright: mod_mruby developers 2012 + mruby developers 2018 +License: Expat + +Files: doc/guides/debugger.md +Copyright: 2014, Specified Non-Profit Corporation mruby Forum +License: Expat + +Files: debian/* +Copyright: 2013, 2022 - 2025 Nobuhiro Iwamatsu +License: Expat + +License: Expat + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000000..03fc40b621 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,4 @@ +[DEFAULT] +debian-branch = debian/sid +dist = DEP14 +pristine-tar = True diff --git a/debian/libmruby-dev.install b/debian/libmruby-dev.install new file mode 100644 index 0000000000..77924fba3c --- /dev/null +++ b/debian/libmruby-dev.install @@ -0,0 +1,2 @@ +include/* usr/include/ +build/host/lib/*.a usr/lib/ diff --git a/debian/man/mirb.1 b/debian/man/mirb.1 new file mode 100644 index 0000000000..45b8484978 --- /dev/null +++ b/debian/man/mirb.1 @@ -0,0 +1,29 @@ +.TH "MIRB" 1 "2013-02-09" "MIRB" "MIRB" + +.SH NAME +mirb \- Embeddable Interactive Ruby Shell + +.SH SYNOPSIS +.B mirb +[ potions ] + +.SH DESCRIPTION +This manual page documents briefly the \fBmirb\fP. + +.PP +.SH OPTIONS +.B \-v +Print version number, then trun on verbose mode. +.TP +.B \-\-verbose +Run in verbose mode. +.TP +.B \-\-version +Print the version. +.TP +.B \-\-copyright +Print the copyright. + +.SH AUTHOR +This manual page was written by Nobuhiro Iwamatsu +for the Debian GNU/Linux system (but may be used by others). diff --git a/debian/man/mrbc.1 b/debian/man/mrbc.1 new file mode 100644 index 0000000000..14846d5bac --- /dev/null +++ b/debian/man/mrbc.1 @@ -0,0 +1,42 @@ +.TH "MRBC" 1 "2013-02-09" "MRBC" "MRBC" + +.SH NAME +mrbc \- mruby compiler + +.SH SYNOPSIS +.B mrbc +[ potions ] programfile + +.SH DESCRIPTION +This manual page documents briefly the \fBmrbc\fP. + +.PP +.SH OPTIONS +.TP +.B \-c +Check check syntax input programfile. +.TP +.B \-o +Set place the output into . +.TP +.B \-v +Print version number, then trun on verbose mode. +.TP +.B \-g +produce debugging information +.TP +.B \-B +Output binary in C language format. +.TP +.B \-\-verbose +Run in verbose mode. +.TP +.B \-\-version +Print the version. +.TP +.B \-\-copyright +Print the copyright. + +.SH AUTHOR +This manual page was written by Nobuhiro Iwamatsu +for the Debian GNU/Linux system (but may be used by others). diff --git a/debian/man/mrdb.1 b/debian/man/mrdb.1 new file mode 100644 index 0000000000..2465b75cec --- /dev/null +++ b/debian/man/mrdb.1 @@ -0,0 +1,30 @@ +.TH "MRDB" "1" "2014-12-08" "MRDB" "MRDB" + +.SH NAME +mrdb \- mruby debugger + +.SH SYNOPSIS +.B mrdb +[ potions ] programfile + +.SH DESCRIPTION +This manual page documents briefly the \fBmrdb\fP. + +.PP +.SH OPTIONS +.TP +.B \-b +load and execute RiteBinary (mrb) file +.TP +.B \-d +specify source directory +.TP +.B \-\-version +Print the version. +.TP +.B \-\-copyright +Print the copyright. + +.SH AUTHOR +This manual page was written by Akira Mitsui +for the Debian GNU/Linux system (but may be used by others). diff --git a/debian/man/mruby-strip.1 b/debian/man/mruby-strip.1 new file mode 100644 index 0000000000..822c01dcaa --- /dev/null +++ b/debian/man/mruby-strip.1 @@ -0,0 +1,22 @@ +.TH "MRUBY-STRIP" 1 "2014-12-08" "MRUBY-STRIP" "MRUBY-STRIP" + +.SH NAME +mruby-strip \- Discard symbols from object files. + +.SH SYNOPSIS +.B mruby-strip +[ potions ] irepfiles + +.SH DESCRIPTION +This manual page documents briefly the \fBmruby-strip\fP. + +.PP +.SH OPTIONS +.TP +.B \-l, \-\-lvar +remove LVAR section too. + +.SH AUTHOR +This manual page was written by Akira Mitsui +for the Debian GNU/Linux system (but may be used by others). + diff --git a/debian/man/mruby.1 b/debian/man/mruby.1 new file mode 100644 index 0000000000..00f34ed52f --- /dev/null +++ b/debian/man/mruby.1 @@ -0,0 +1,39 @@ +.TH "MRUBY" 1 "2013-02-09" "MRUBY" "MRUBY" + +.SH NAME +mruby \- Lightweight implementation of the Ruby language + +.SH SYNOPSIS +.B mruby +[ potions ] programfile + +.SH DESCRIPTION +This manual page documents briefly the \fBmruby\fP. + +.PP +.SH OPTIONS +.TP +.B \-b +Load and execute RiteBinary (mrb) file +.TP +.B \-c +Check check syntax input programfile. +.TP +.B \-e 'command' +one line of script +.TP +.B \-v +Print version number, then trun on verbose mode. +.TP +.B \-\-verbose +Run in verbose mode. +.TP +.B \-\-version +Print the version. +.TP +.B \-\-copyright +Print the copyright. + +.SH AUTHOR +This manual page was written by Nobuhiro Iwamatsu +for the Debian GNU/Linux system (but may be used by others). diff --git a/debian/mruby.install b/debian/mruby.install new file mode 100644 index 0000000000..b6b3c13cd6 --- /dev/null +++ b/debian/mruby.install @@ -0,0 +1 @@ +build/host/bin/* usr/bin/ diff --git a/debian/mruby.manpages b/debian/mruby.manpages new file mode 100644 index 0000000000..13cdaf4b24 --- /dev/null +++ b/debian/mruby.manpages @@ -0,0 +1 @@ +debian/man/*.1 diff --git a/debian/patches/CVE-2025-7207.patch b/debian/patches/CVE-2025-7207.patch new file mode 100644 index 0000000000..0131e485d1 --- /dev/null +++ b/debian/patches/CVE-2025-7207.patch @@ -0,0 +1,28 @@ +From 1fdd96104180cc0fb5d3cb086b05ab6458911bb9 Mon Sep 17 00:00:00 2001 +From: "Yukihiro \"Matz\" Matsumoto" +Date: Mon, 7 Apr 2025 11:35:19 +0900 +Subject: [PATCH] mruby-compiler (scope_new): need to initialize nregs; fix + #6509 + +`nregs` should not be smaller than `nlocals`. + +--- + mrbgems/mruby-compiler/core/codegen.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/mrbgems/mruby-compiler/core/codegen.c b/mrbgems/mruby-compiler/core/codegen.c +index be0bf875a..9deaa7fec 100644 +--- a/mrbgems/mruby-compiler/core/codegen.c ++++ b/mrbgems/mruby-compiler/core/codegen.c +@@ -4012,7 +4012,7 @@ scope_new(mrb_state *mrb, codegen_scope *prev, node *nlv) + + s->lv = nlv; + s->sp += node_len(nlv)+1; /* add self */ +- s->nlocals = s->sp; ++ s->nlocals = s->nregs = s->sp; + if (nlv) { + mrb_sym *lv; + node *n = nlv; +-- +2.50.1 + diff --git a/debian/patches/Change-optimize-O2-on-build-system-of-Debian.patch b/debian/patches/Change-optimize-O2-on-build-system-of-Debian.patch new file mode 100644 index 0000000000..9203edc48c --- /dev/null +++ b/debian/patches/Change-optimize-O2-on-build-system-of-Debian.patch @@ -0,0 +1,26 @@ +From a60e73484000ba107b3f7d50c622244cd9ac4c55 Mon Sep 17 00:00:00 2001 +From: Nobuhiro Iwamatsu +Date: Wed, 7 Feb 2024 16:32:52 +0900 +Subject: [PATCH] Change optimize O2 on build system of Debian + +Signed-off-by: Nobuhiro Iwamatsu +--- + tasks/toolchains/gcc.rake | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tasks/toolchains/gcc.rake b/tasks/toolchains/gcc.rake +index 675c26880..81d0302d5 100644 +--- a/tasks/toolchains/gcc.rake ++++ b/tasks/toolchains/gcc.rake +@@ -22,7 +22,7 @@ MRuby::Toolchain.new(:gcc) do |conf, params| + compiler.cxx_invalid_flags = c_mandatory_flags + cxx_invalid_flags + + def compiler.setup_debug(conf) +- self.flags << %w(-g3 -O0) ++ self.flags << %w(-g3 -O2) + end + end + +-- +2.43.0 + diff --git a/debian/patches/Fix-typo.patch b/debian/patches/Fix-typo.patch new file mode 100644 index 0000000000..366678cb62 --- /dev/null +++ b/debian/patches/Fix-typo.patch @@ -0,0 +1,28 @@ +From 33940d9e90645174c62b102181d7a0bcc9e86883 Mon Sep 17 00:00:00 2001 +From: Nobuhiro Iwamatsu +Date: Thu, 23 Sep 2021 06:47:56 +0900 +Subject: [PATCH] Fix typo + +Fix from parenthesed to parenthesized. + +Signed-off-by: Nobuhiro Iwamatsu +--- + test/t/syntax.rb | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/test/t/syntax.rb b/test/t/syntax.rb +index 3b6de6c18..24f52fef0 100644 +--- a/test/t/syntax.rb ++++ b/test/t/syntax.rb +@@ -416,7 +416,7 @@ assert('External command execution.') do + true + end + +-assert('parenthesed do-block in cmdarg') do ++assert('parenthesized do-block in cmdarg') do + class ParenDoBlockCmdArg + def test(block) + block.call +-- +2.33.0 + diff --git a/debian/patches/Skip-mruby-tty-test-in-io.patch b/debian/patches/Skip-mruby-tty-test-in-io.patch new file mode 100644 index 0000000000..c7070ed407 --- /dev/null +++ b/debian/patches/Skip-mruby-tty-test-in-io.patch @@ -0,0 +1,25 @@ +From c3f0b088f36b76ab31337890f47bffcdfa54f47c Mon Sep 17 00:00:00 2001 +From: Nobuhiro Iwamatsu +Date: Sat, 4 May 2019 06:46:13 +0900 +Subject: [PATCH] Skip mruby tty test in io + +Signed-off-by: Nobuhiro Iwamatsu +--- + mrbgems/mruby-io/test/io.rb | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/mrbgems/mruby-io/test/io.rb b/mrbgems/mruby-io/test/io.rb +index 85852c17..2aea935e 100644 +--- a/mrbgems/mruby-io/test/io.rb ++++ b/mrbgems/mruby-io/test/io.rb +@@ -308,6 +308,7 @@ end + + assert('IO#isatty') do + skip "isatty is not supported on this platform" if MRubyIOTestUtil.win? ++ skip "Ignore this test in Debian" + begin + f = File.open("/dev/tty") + rescue RuntimeError => e +-- +2.20.1 + diff --git a/debian/patches/add_fpic_amd64.patch b/debian/patches/add_fpic_amd64.patch new file mode 100644 index 0000000000..e608f78c8a --- /dev/null +++ b/debian/patches/add_fpic_amd64.patch @@ -0,0 +1,12 @@ +diff --git a/tasks/toolchains/gcc.rake b/tasks/toolchains/gcc.rake +index 51bda6517..fc20fef2f 100644 +--- a/tasks/toolchains/gcc.rake ++++ b/tasks/toolchains/gcc.rake +@@ -13,6 +13,7 @@ MRuby::Toolchain.new(:gcc) do |conf, params| + compiler.command = ENV['CC'] || default_command + compiler.flags = [c_mandatory_flags, ENV['CFLAGS'] || [compiler_flags, cxx_invalid_flags, %w(-Wwrite-strings)]] + end ++ compiler.flags += %w(-fPIC) if ENV['DEB_TARGET_ARCH'] == 'amd64' + compiler.option_include_path = %q[-I"%s"] + compiler.option_define = '-D%s' + compiler.compile_options = "-MMD -c #{compile_opt}" diff --git a/debian/patches/fix-bigint-on-raspberry-pi.patch b/debian/patches/fix-bigint-on-raspberry-pi.patch new file mode 100644 index 0000000000..cac418f5dd --- /dev/null +++ b/debian/patches/fix-bigint-on-raspberry-pi.patch @@ -0,0 +1,26 @@ +From d7edd3dbc1529f3334ba1da01e59c93056fb263d Mon Sep 17 00:00:00 2001 +From: Hendrik +Date: Sun, 10 Aug 2025 09:21:38 +0200 +Subject: [PATCH] fix bigint on raspberry pi + +this fixes an issue where base can be out of range on a raspberry pi. +--- + src/vm.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/vm.c b/src/vm.c +index 95eec8041..2772b09b7 100644 +--- a/src/vm.c ++++ b/src/vm.c +@@ -1718,7 +1718,7 @@ RETRY_TRY_BLOCK: + #ifdef MRB_USE_BIGINT + { + const char *s = irep->pool[b].u.str; +- regs[a] = mrb_bint_new_str(mrb, s+2, (uint8_t)s[0], s[1]); ++ regs[a] = mrb_bint_new_str(mrb, s+2, (uint8_t)s[0], (int8_t)s[1]); + } + break; + #else +-- +2.50.1 + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000000..3e2ba92bc5 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,6 @@ +Change-optimize-O2-on-build-system-of-Debian.patch +add_fpic_amd64.patch +Skip-mruby-tty-test-in-io.patch +Fix-typo.patch +fix-bigint-on-raspberry-pi.patch +CVE-2025-7207.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000000..bbccf14c98 --- /dev/null +++ b/debian/rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +ifneq (,$(filter $(DEB_HOST_ARCH_CPU),i386 m68k)) + export DEB_CFLAGS_MAINT_APPEND += -ffloat-store +endif + +RAKE="rake --verbose" + +%: + dh $@ + +override_dh_auto_build: + dh_auto_build -- RAKE=$(RAKE) diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000000..163aaf8d82 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000000..dde74f0d28 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,5 @@ +Name: mruby +Repository: https://github.com/mruby/mruby.git +Repository-Browse: ihttps://github.com/mruby/mruby +Bug-Database: https://github.com/mruby/mruby/issues +Bug-Submit: ttps://github.com/mruby/mruby/issues/new