Wed Apr 13 20:51:01 UTC 2022

patches/packages/ruby-3.0.4-x86_64-1_slack15.0.txz:  Upgraded.
  This update fixes bugs and security issues:
  Double free in Regexp compilation.
  Buffer overrun in String-to-Float conversion.
  For more information, see:
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-28738
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-28739
  (* Security fix *)
This commit is contained in:
Patrick J Volkerding 2022-04-13 20:51:01 +00:00 committed by Eric Hameleers
parent c0c70f97c2
commit 799fadd352
6 changed files with 242 additions and 31 deletions

View file

@ -11,9 +11,27 @@
<description>Tracking Slackware development in git.</description>
<language>en-us</language>
<id xmlns="http://www.w3.org/2005/Atom">urn:uuid:c964f45e-6732-11e8-bbe5-107b4450212f</id>
<pubDate>Tue, 12 Apr 2022 21:56:14 GMT</pubDate>
<lastBuildDate>Wed, 13 Apr 2022 11:29:37 GMT</lastBuildDate>
<pubDate>Wed, 13 Apr 2022 20:51:01 GMT</pubDate>
<lastBuildDate>Thu, 14 Apr 2022 11:29:51 GMT</lastBuildDate>
<generator>maintain_current_git.sh v 1.17</generator>
<item>
<title>Wed, 13 Apr 2022 20:51:01 GMT</title>
<pubDate>Wed, 13 Apr 2022 20:51:01 GMT</pubDate>
<link>https://git.slackware.nl/current/tag/?h=20220413205101</link>
<guid isPermaLink="false">20220413205101</guid>
<description>
<![CDATA[<pre>
patches/packages/ruby-3.0.4-x86_64-1_slack15.0.txz: Upgraded.
This update fixes bugs and security issues:
Double free in Regexp compilation.
Buffer overrun in String-to-Float conversion.
For more information, see:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-28738
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-28739
(* Security fix *)
</pre>]]>
</description>
</item>
<item>
<title>Tue, 12 Apr 2022 21:56:14 GMT</title>
<pubDate>Tue, 12 Apr 2022 21:56:14 GMT</pubDate>

View file

@ -1,3 +1,13 @@
Wed Apr 13 20:51:01 UTC 2022
patches/packages/ruby-3.0.4-x86_64-1_slack15.0.txz: Upgraded.
This update fixes bugs and security issues:
Double free in Regexp compilation.
Buffer overrun in String-to-Float conversion.
For more information, see:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-28738
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-28739
(* Security fix *)
+--------------------------+
Tue Apr 12 21:56:14 UTC 2022
patches/packages/whois-5.5.13-x86_64-1_slack15.0.txz: Upgraded.
This update adds the .sd TLD server, updates the list of new gTLDs, and adds

View file

@ -1,20 +1,20 @@
Tue Apr 12 22:01:45 UTC 2022
Wed Apr 13 20:53:58 UTC 2022
Here is the file list for this directory. If you are using a
mirror site and find missing or extra files in the disk
subdirectories, please have the archive administrator refresh
the mirror.
drwxr-xr-x 12 root root 4096 2022-04-12 21:56 .
drwxr-xr-x 12 root root 4096 2022-04-13 20:51 .
-rw-r--r-- 1 root root 5767 2022-02-02 22:44 ./ANNOUNCE.15.0
-rw-r--r-- 1 root root 16609 2022-03-30 19:03 ./CHANGES_AND_HINTS.TXT
-rw-r--r-- 1 root root 1131489 2022-04-08 20:09 ./CHECKSUMS.md5
-rw-r--r-- 1 root root 163 2022-04-08 20:09 ./CHECKSUMS.md5.asc
-rw-r--r-- 1 root root 1131566 2022-04-12 22:02 ./CHECKSUMS.md5
-rw-r--r-- 1 root root 163 2022-04-12 22:02 ./CHECKSUMS.md5.asc
-rw-r--r-- 1 root root 17976 1994-06-10 02:28 ./COPYING
-rw-r--r-- 1 root root 35147 2007-06-30 04:21 ./COPYING3
-rw-r--r-- 1 root root 19573 2016-06-23 20:08 ./COPYRIGHT.TXT
-rw-r--r-- 1 root root 616 2006-10-02 04:37 ./CRYPTO_NOTICE.TXT
-rw-r--r-- 1 root root 1886870 2022-04-12 21:56 ./ChangeLog.txt
-rw-r--r-- 1 root root 1887304 2022-04-13 20:51 ./ChangeLog.txt
drwxr-xr-x 3 root root 4096 2013-03-20 22:17 ./EFI
drwxr-xr-x 2 root root 4096 2022-02-02 08:21 ./EFI/BOOT
-rw-r--r-- 1 root root 1187840 2021-06-15 19:16 ./EFI/BOOT/bootx64.efi
@ -25,7 +25,7 @@ drwxr-xr-x 2 root root 4096 2022-02-02 08:21 ./EFI/BOOT
-rwxr-xr-x 1 root root 2504 2019-07-05 18:54 ./EFI/BOOT/make-grub.sh
-rw-r--r-- 1 root root 10722 2013-09-21 19:02 ./EFI/BOOT/osdetect.cfg
-rw-r--r-- 1 root root 1273 2013-08-12 21:08 ./EFI/BOOT/tools.cfg
-rw-r--r-- 1 root root 1476807 2022-04-08 20:08 ./FILELIST.TXT
-rw-r--r-- 1 root root 1476901 2022-04-12 22:01 ./FILELIST.TXT
-rw-r--r-- 1 root root 1572 2012-08-29 18:27 ./GPG-KEY
-rw-r--r-- 1 root root 864745 2022-02-02 08:25 ./PACKAGES.TXT
-rw-r--r-- 1 root root 8034 2022-02-02 03:36 ./README.TXT
@ -737,13 +737,13 @@ drwxr-xr-x 2 root root 4096 2008-05-07 05:21 ./pasture/source/php/pear
-rwxr-xr-x 1 root root 9448 2018-05-16 22:38 ./pasture/source/php/php.SlackBuild
-rw-r--r-- 1 root root 775 2017-07-07 19:25 ./pasture/source/php/php.ini-development.diff.gz
-rw-r--r-- 1 root root 830 2005-12-09 05:18 ./pasture/source/php/slack-desc
drwxr-xr-x 4 root root 4096 2022-04-12 22:01 ./patches
-rw-r--r-- 1 root root 29506 2022-04-12 22:01 ./patches/CHECKSUMS.md5
-rw-r--r-- 1 root root 163 2022-04-12 22:01 ./patches/CHECKSUMS.md5.asc
-rw-r--r-- 1 root root 39442 2022-04-12 22:01 ./patches/FILE_LIST
-rw-r--r-- 1 root root 10977666 2022-04-12 22:01 ./patches/MANIFEST.bz2
-rw-r--r-- 1 root root 20754 2022-04-12 22:01 ./patches/PACKAGES.TXT
drwxr-xr-x 3 root root 12288 2022-04-12 22:01 ./patches/packages
drwxr-xr-x 4 root root 4096 2022-04-13 20:53 ./patches
-rw-r--r-- 1 root root 29936 2022-04-13 20:53 ./patches/CHECKSUMS.md5
-rw-r--r-- 1 root root 163 2022-04-13 20:53 ./patches/CHECKSUMS.md5.asc
-rw-r--r-- 1 root root 40039 2022-04-13 20:53 ./patches/FILE_LIST
-rw-r--r-- 1 root root 11152700 2022-04-13 20:53 ./patches/MANIFEST.bz2
-rw-r--r-- 1 root root 21309 2022-04-13 20:53 ./patches/PACKAGES.TXT
drwxr-xr-x 3 root root 12288 2022-04-13 20:53 ./patches/packages
-rw-r--r-- 1 root root 327 2022-02-15 05:07 ./patches/packages/aaa_base-15.0-x86_64-4_slack15.0.txt
-rw-r--r-- 1 root root 10716 2022-02-15 05:07 ./patches/packages/aaa_base-15.0-x86_64-4_slack15.0.txz
-rw-r--r-- 1 root root 163 2022-02-15 05:07 ./patches/packages/aaa_base-15.0-x86_64-4_slack15.0.txz.asc
@ -829,6 +829,9 @@ drwxr-xr-x 2 root root 4096 2022-03-09 04:17 ./patches/packages/linux-5.15
-rw-r--r-- 1 root root 260 2022-03-20 22:36 ./patches/packages/qt5-5.15.3_20220318_e507d3e5-x86_64-1_slack15.0.txt
-rw-r--r-- 1 root root 99025556 2022-03-20 22:36 ./patches/packages/qt5-5.15.3_20220318_e507d3e5-x86_64-1_slack15.0.txz
-rw-r--r-- 1 root root 163 2022-03-20 22:36 ./patches/packages/qt5-5.15.3_20220318_e507d3e5-x86_64-1_slack15.0.txz.asc
-rw-r--r-- 1 root root 385 2022-04-13 18:19 ./patches/packages/ruby-3.0.4-x86_64-1_slack15.0.txt
-rw-r--r-- 1 root root 7739784 2022-04-13 18:19 ./patches/packages/ruby-3.0.4-x86_64-1_slack15.0.txz
-rw-r--r-- 1 root root 163 2022-04-13 18:19 ./patches/packages/ruby-3.0.4-x86_64-1_slack15.0.txz.asc
-rw-r--r-- 1 root root 392 2022-03-25 18:20 ./patches/packages/seamonkey-2.53.11.1-x86_64-1_slack15.0.txt
-rw-r--r-- 1 root root 38092836 2022-03-25 18:20 ./patches/packages/seamonkey-2.53.11.1-x86_64-1_slack15.0.txz
-rw-r--r-- 1 root root 163 2022-03-25 18:20 ./patches/packages/seamonkey-2.53.11.1-x86_64-1_slack15.0.txz.asc
@ -847,7 +850,7 @@ drwxr-xr-x 2 root root 4096 2022-03-09 04:17 ./patches/packages/linux-5.15
-rw-r--r-- 1 root root 388 2022-03-28 19:09 ./patches/packages/zlib-1.2.12-x86_64-1_slack15.0.txt
-rw-r--r-- 1 root root 105204 2022-03-28 19:09 ./patches/packages/zlib-1.2.12-x86_64-1_slack15.0.txz
-rw-r--r-- 1 root root 163 2022-03-28 19:09 ./patches/packages/zlib-1.2.12-x86_64-1_slack15.0.txz.asc
drwxr-xr-x 29 root root 4096 2022-04-12 21:22 ./patches/source
drwxr-xr-x 30 root root 4096 2022-04-13 18:55 ./patches/source
drwxr-xr-x 2 root root 4096 2022-01-16 05:07 ./patches/source/aaa_base
-rw-r--r-- 1 root root 11041 2022-02-15 04:49 ./patches/source/aaa_base/_aaa_base.tar.gz
-rwxr-xr-x 1 root root 3894 2022-02-15 05:07 ./patches/source/aaa_base/aaa_base.SlackBuild
@ -1093,6 +1096,10 @@ drwxr-xr-x 2 root root 4096 2022-03-20 19:27 ./patches/source/qt5/profile.
-rw-r--r-- 1 root root 605682352 2022-03-18 23:04 ./patches/source/qt5/qt-everywhere-src-5.15.3_20220318_e507d3e5.tar.lz
-rwxr-xr-x 1 root root 11953 2022-03-20 20:23 ./patches/source/qt5/qt5.SlackBuild
-rw-r--r-- 1 root root 711 2020-11-28 01:00 ./patches/source/qt5/slack-desc
drwxr-xr-x 2 root root 4096 2022-04-13 18:15 ./patches/source/ruby
-rw-r--r-- 1 root root 15494036 2022-04-12 12:30 ./patches/source/ruby/ruby-3.0.4.tar.lz
-rwxr-xr-x 1 root root 4817 2022-04-13 18:14 ./patches/source/ruby/ruby.SlackBuild
-rw-r--r-- 1 root root 837 2019-03-13 16:43 ./patches/source/ruby/slack-desc
drwxr-xr-x 3 root root 4096 2022-03-25 17:54 ./patches/source/seamonkey
drwxr-xr-x 2 root root 4096 2016-07-03 18:05 ./patches/source/seamonkey/autoconf
-rw-r--r-- 1 root root 5869 2016-07-03 18:04 ./patches/source/seamonkey/autoconf/autoconf-2.13-consolidated_fixes-1.patch.gz
@ -2727,12 +2734,12 @@ drwxr-xr-x 2 root root 69632 2022-02-01 08:29 ./slackware64/kde
-rw-r--r-- 1 root root 163 2022-01-06 21:46 ./slackware64/kde/kpkpass-21.12.1-x86_64-1.txz.asc
-rw-r--r-- 1 root root 648 2022-01-08 22:25 ./slackware64/kde/kplotting-5.90.0-x86_64-1.txt
-rw-r--r-- 1 root root 49316 2022-01-08 22:25 ./slackware64/kde/kplotting-5.90.0-x86_64-1.txz
-rw-r--r-- 1 root root 163 2022-01-08 22:25 ./slackware64/kde/kplotting-5.90.0-x86_64-1.txz.asc
-rw-r--r-- 1 root root 328 2022-01-06 23:00 ./slackware64/kde/kpmcore-21.12.1-x86_64-1.txt
-rw-r--r-- 1 root root 625348 2022-01-06 23:00 ./slackware64/kde/kpmcore-21.12.1-x86_64-1.txz
-rw-r--r-- 1 root root 163 2022-01-06 23:00 ./slackware64/kde/kpmcore-21.12.1-x86_64-1.txz.asc
-rw-r--r-- 1 root root 281 2022-01-08 22:35 ./slackware64/kde/kpty-5.90.0-x86_64-1.txt
-rw-r--r-- 1 root root 51052 2022-01-08 22:35 ./slackware64/kde/kpty-5.90.0-x86_64-1.txz
-rw-r--r-- 1 root root 163 2022-01-08 22:25 ./slackware64/kde/kplotting-5.90.0-x86_64-1.txz.asc
-rw-r--r-- 1 root root 328 2022-01-06 23:00 ./slackware64/kde/kpmcore-21.12.1-x86_64-1.txt
-rw-r--r-- 1 root root 625348 2022-01-06 23:00 ./slackware64/kde/kpmcore-21.12.1-x86_64-1.txz
-rw-r--r-- 1 root root 163 2022-01-06 23:00 ./slackware64/kde/kpmcore-21.12.1-x86_64-1.txz.asc
-rw-r--r-- 1 root root 281 2022-01-08 22:35 ./slackware64/kde/kpty-5.90.0-x86_64-1.txt
-rw-r--r-- 1 root root 51052 2022-01-08 22:35 ./slackware64/kde/kpty-5.90.0-x86_64-1.txz
-rw-r--r-- 1 root root 163 2022-01-08 22:35 ./slackware64/kde/kpty-5.90.0-x86_64-1.txz.asc
-rw-r--r-- 1 root root 369 2022-01-06 22:56 ./slackware64/kde/kpublictransport-21.12.1-x86_64-1.txt
-rw-r--r-- 1 root root 582816 2022-01-06 22:56 ./slackware64/kde/kpublictransport-21.12.1-x86_64-1.txz
@ -5486,11 +5493,11 @@ drwxr-xr-x 2 root root 65536 2022-02-01 04:47 ./slackware64/x
-rw-r--r-- 1 root root 18200 2021-02-13 13:16 ./slackware64/x/xf86-input-void-1.4.1-x86_64-3.txz
-rw-r--r-- 1 root root 163 2021-02-13 13:16 ./slackware64/x/xf86-input-void-1.4.1-x86_64-3.txz.asc
-rw-r--r-- 1 root root 376 2021-02-13 13:16 ./slackware64/x/xf86-input-wacom-0.40.0-x86_64-2.txt
-rw-r--r-- 1 root root 105080 2021-02-13 13:16 ./slackware64/x/xf86-input-wacom-0.40.0-x86_64-2.txz
-rw-r--r-- 1 root root 163 2021-02-13 13:16 ./slackware64/x/xf86-input-wacom-0.40.0-x86_64-2.txz.asc
-rw-r--r-- 1 root root 452 2021-07-30 18:12 ./slackware64/x/xf86-video-amdgpu-21.0.0-x86_64-1.txt
-rw-r--r-- 1 root root 80164 2021-07-30 18:12 ./slackware64/x/xf86-video-amdgpu-21.0.0-x86_64-1.txz
-rw-r--r-- 1 root root 163 2021-07-30 18:12 ./slackware64/x/xf86-video-amdgpu-21.0.0-x86_64-1.txz.asc
-rw-r--r-- 1 root root 105080 2021-02-13 13:16 ./slackware64/x/xf86-input-wacom-0.40.0-x86_64-2.txz
-rw-r--r-- 1 root root 163 2021-02-13 13:16 ./slackware64/x/xf86-input-wacom-0.40.0-x86_64-2.txz.asc
-rw-r--r-- 1 root root 452 2021-07-30 18:12 ./slackware64/x/xf86-video-amdgpu-21.0.0-x86_64-1.txt
-rw-r--r-- 1 root root 80164 2021-07-30 18:12 ./slackware64/x/xf86-video-amdgpu-21.0.0-x86_64-1.txz
-rw-r--r-- 1 root root 163 2021-07-30 18:12 ./slackware64/x/xf86-video-amdgpu-21.0.0-x86_64-1.txz.asc
-rw-r--r-- 1 root root 424 2021-02-13 13:16 ./slackware64/x/xf86-video-apm-1.3.0-x86_64-3.txt
-rw-r--r-- 1 root root 34368 2021-02-13 13:16 ./slackware64/x/xf86-video-apm-1.3.0-x86_64-3.txz
-rw-r--r-- 1 root root 163 2021-02-13 13:16 ./slackware64/x/xf86-video-apm-1.3.0-x86_64-3.txz.asc
@ -15140,10 +15147,10 @@ drwxr-xr-x 2 root root 4096 2016-07-03 18:05 ./source/xap/mozilla-thunder
-rw-r--r-- 1 root root 5869 2016-07-03 18:04 ./source/xap/mozilla-thunderbird/autoconf/autoconf-2.13-consolidated_fixes-1.patch.gz
-rw-r--r-- 1 root root 300116 1999-01-15 21:03 ./source/xap/mozilla-thunderbird/autoconf/autoconf-2.13.tar.xz
-rwxr-xr-x 1 root root 2632 2016-07-03 18:50 ./source/xap/mozilla-thunderbird/autoconf/autoconf.build
drwxr-xr-x 5 root root 4096 2021-08-13 18:35 ./source/xap/mozilla-thunderbird/build-deps
-rwxr-xr-x 1 root root 1939 2019-08-27 19:18 ./source/xap/mozilla-thunderbird/build-deps.sh
drwxr-xr-x 2 root root 4096 2016-07-03 18:05 ./source/xap/mozilla-thunderbird/build-deps/autoconf
-rw-r--r-- 1 root root 5869 2016-07-03 18:04 ./source/xap/mozilla-thunderbird/build-deps/autoconf/autoconf-2.13-consolidated_fixes-1.patch.gz
drwxr-xr-x 5 root root 4096 2021-08-13 18:35 ./source/xap/mozilla-thunderbird/build-deps
-rwxr-xr-x 1 root root 1939 2019-08-27 19:18 ./source/xap/mozilla-thunderbird/build-deps.sh
drwxr-xr-x 2 root root 4096 2016-07-03 18:05 ./source/xap/mozilla-thunderbird/build-deps/autoconf
-rw-r--r-- 1 root root 5869 2016-07-03 18:04 ./source/xap/mozilla-thunderbird/build-deps/autoconf/autoconf-2.13-consolidated_fixes-1.patch.gz
-rw-r--r-- 1 root root 300116 1999-01-15 21:03 ./source/xap/mozilla-thunderbird/build-deps/autoconf/autoconf-2.13.tar.xz
-rwxr-xr-x 1 root root 2502 2019-08-27 19:46 ./source/xap/mozilla-thunderbird/build-deps/autoconf/autoconf.build
drwxr-xr-x 2 root root 4096 2021-06-25 04:15 ./source/xap/mozilla-thunderbird/build-deps/cbindgen

View file

@ -0,0 +1,11 @@
ruby: ruby (Interpreted object-oriented scripting language)
ruby:
ruby: Ruby is an interpreted scripting language for quick and easy
ruby: object-oriented programming. It has many features to process text
ruby: files and to do system management tasks (as in Perl). It is simple,
ruby: straight-forward, and extensible.
ruby:
ruby: Homepage: http://www.ruby-lang.org/
ruby:
ruby:
ruby:

View file

@ -0,0 +1,146 @@
#!/bin/bash
# Copyright 2008, 2009, 2010, 2011, 2012, 2013, 2015, 2018 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=ruby
if echo $PKGNAM-*.tar.?z | grep -q p ; then
# With patchlevel in tarball name:
VERSION=$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1,2 -d - | rev)
else
# Without patchlevel in tarball name:
VERSION=$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
fi
BUILD=${BUILD:-1_slack15.0}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) export ARCH=i586 ;;
arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;;
esac
fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PKGNAM-$(echo $VERSION | tr - _)-$ARCH-$BUILD.txz"
exit 0
fi
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
TMP=${TMP:-/tmp}
PKG=$TMP/package-ruby
if [ "$ARCH" = "i586" ]; then
# -O3 works around a compile failure due to a miniruby segfault
# when trying to build ruby with gcc-4.4 or newer. Evidently
# -O0 also works, but...
# other distributions also use -fno-strict-aliasing which helps stability
SLKCFLAGS="-march=i586 -mtune=i686 -O3 -fno-strict-aliasing"
OPTFLAGS=-O3
LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then
# Unknown if s390 also needs -O3. Check to see if it compiles with -O2.
SLKCFLAGS="-O3 -fno-strict-aliasing"
OPTFLAGS=-O3
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O3 -fPIC -fno-strict-aliasing"
OPTFLAGS=-O3
LIBDIRSUFFIX="64"
fi
rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP
rm -rf ruby-$VERSION
tar xvf $CWD/ruby-$VERSION.tar.?z || exit 1
cd ruby-$VERSION || exit 1
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \+
# Evidently certain things must be linked static.
# Seems suboptimal to me...
CFLAGS="$SLKCFLAGS" \
optflags=$OPTFLAGS \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
--datadir=/usr/share \
--docdir=/usr/doc/ruby-$VERSION \
--enable-shared \
--enable-pthread \
--disable-install-capi \
--build=$ARCH-slackware-linux || exit 1
make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG || exit 1
mkdir -p $PKG/usr/doc/ruby-$VERSION
cp -a \
BSDL* CONTRIBUTING* COPYING* ChangeLog *GPL* LEGAL* NEWS* README* \
$PKG/usr/doc/ruby-$VERSION
# The entire ChangeLog is excessive for most users:
cat $PKG/usr/doc/ruby-$VERSION/ChangeLog | head -n 1000 > $PKG/usr/doc/ruby-$VERSION/CL
mv $PKG/usr/doc/ruby-$VERSION/CL $PKG/usr/doc/ruby-$VERSION/ChangeLog
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find $PKG | xargs file | grep -e "current ar archive" \
| cut -f 1 -d : | xargs strip --strip-debug 2> /dev/null
# Compress and if needed symlink the man pages:
if [ -d $PKG/usr/man ]; then
( cd $PKG/usr/man
for manpagedir in $(find . -type d -name "man*") ; do
( cd $manpagedir
for eachpage in $( find . -type l -maxdepth 1) ; do
ln -s $( readlink $eachpage ).gz $eachpage.gz
rm $eachpage
done
gzip -9 *.?
)
done
)
fi
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $TMP/ruby-$(echo $VERSION | tr - _)-$ARCH-$BUILD.txz

View file

@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|' on
# the right side marks the last column you can put a character in. You must make
# exactly 11 lines for the formatting to be correct. It's also customary to
# leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
ruby: ruby (Interpreted object-oriented scripting language)
ruby:
ruby: Ruby is an interpreted scripting language for quick and easy
ruby: object-oriented programming. It has many features to process text
ruby: files and to do system management tasks (as in Perl). It is simple,
ruby: straight-forward, and extensible.
ruby:
ruby: Homepage: http://www.ruby-lang.org/
ruby:
ruby:
ruby: