From 6d57f3ac471a46cb89b4cd0107c6e726cc756c6c Mon Sep 17 00:00:00 2001 From: Patrick J Volkerding Date: Sun, 20 Feb 2022 05:13:20 +0000 Subject: Sun Feb 20 05:13:20 UTC 2022 patches/packages/expat-2.4.5-x86_64-1_slack15.0.txz: Upgraded. Fixed security issues that could lead to denial of service or potentially arbitrary code execution. For more information, see: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25235 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25236 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25313 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25314 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25315 (* Security fix *) --- ChangeLog.rss | 24 ++++- ChangeLog.txt | 12 +++ FILELIST.TXT | 78 ++++++++------- .../packages/expat-2.4.5-x86_64-1_slack15.0.txt | 11 +++ patches/source/expat/expat.SlackBuild | 107 +++++++++++++++++++++ patches/source/expat/slack-desc | 19 ++++ 6 files changed, 214 insertions(+), 37 deletions(-) create mode 100644 patches/packages/expat-2.4.5-x86_64-1_slack15.0.txt create mode 100755 patches/source/expat/expat.SlackBuild create mode 100644 patches/source/expat/slack-desc diff --git a/ChangeLog.rss b/ChangeLog.rss index 3d7411a2f..79f5b064b 100644 --- a/ChangeLog.rss +++ b/ChangeLog.rss @@ -11,9 +11,29 @@ Tracking Slackware development in git. en-us urn:uuid:c964f45e-6732-11e8-bbe5-107b4450212f - Fri, 18 Feb 2022 05:29:00 GMT - Sat, 19 Feb 2022 12:29:51 GMT + Sun, 20 Feb 2022 05:13:20 GMT + Mon, 21 Feb 2022 12:29:48 GMT maintain_current_git.sh v 1.17 + + Sun, 20 Feb 2022 05:13:20 GMT + Sun, 20 Feb 2022 05:13:20 GMT + https://git.slackware.nl/current/tag/?h=20220220051320 + 20220220051320 + + +patches/packages/expat-2.4.5-x86_64-1_slack15.0.txz: Upgraded. + Fixed security issues that could lead to denial of service or potentially + arbitrary code execution. + For more information, see: + https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25235 + https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25236 + https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25313 + https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25314 + https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25315 + (* Security fix *) + ]]> + + Fri, 18 Feb 2022 05:29:00 GMT Fri, 18 Feb 2022 05:29:00 GMT diff --git a/ChangeLog.txt b/ChangeLog.txt index 71c6896b9..047d74246 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,15 @@ +Sun Feb 20 05:13:20 UTC 2022 +patches/packages/expat-2.4.5-x86_64-1_slack15.0.txz: Upgraded. + Fixed security issues that could lead to denial of service or potentially + arbitrary code execution. + For more information, see: + https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25235 + https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25236 + https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25313 + https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25314 + https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25315 + (* Security fix *) ++--------------------------+ Fri Feb 18 05:29:00 UTC 2022 patches/packages/mozilla-thunderbird-91.6.1-x86_64-1_slack15.0.txz: Upgraded. This release contains security fixes and improvements. diff --git a/FILELIST.TXT b/FILELIST.TXT index e2cee8075..ff5887df9 100644 --- a/FILELIST.TXT +++ b/FILELIST.TXT @@ -1,20 +1,20 @@ -Fri Feb 18 05:33:07 UTC 2022 +Sun Feb 20 05:18:16 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-02-18 05:29 . +drwxr-xr-x 12 root root 4096 2022-02-20 05:13 . -rw-r--r-- 1 root root 5767 2022-02-02 22:44 ./ANNOUNCE.15.0 -rw-r--r-- 1 root root 16617 2022-02-02 23:27 ./CHANGES_AND_HINTS.TXT --rw-r--r-- 1 root root 1107874 2022-02-15 20:03 ./CHECKSUMS.md5 --rw-r--r-- 1 root root 163 2022-02-15 20:03 ./CHECKSUMS.md5.asc +-rw-r--r-- 1 root root 1109010 2022-02-18 05:33 ./CHECKSUMS.md5 +-rw-r--r-- 1 root root 163 2022-02-18 05:33 ./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 1869042 2022-02-18 05:29 ./ChangeLog.txt +-rw-r--r-- 1 root root 1869648 2022-02-20 05:13 ./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 1445794 2022-02-15 20:03 ./FILELIST.TXT +-rw-r--r-- 1 root root 1447223 2022-02-18 05:33 ./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,19 +737,22 @@ 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-02-18 05:33 ./patches --rw-r--r-- 1 root root 10348 2022-02-18 05:33 ./patches/CHECKSUMS.md5 --rw-r--r-- 1 root root 163 2022-02-18 05:33 ./patches/CHECKSUMS.md5.asc --rw-r--r-- 1 root root 13938 2022-02-18 05:33 ./patches/FILE_LIST --rw-r--r-- 1 root root 5125455 2022-02-18 05:33 ./patches/MANIFEST.bz2 --rw-r--r-- 1 root root 4330 2022-02-18 05:33 ./patches/PACKAGES.TXT -drwxr-xr-x 2 root root 4096 2022-02-18 05:32 ./patches/packages +drwxr-xr-x 4 root root 4096 2022-02-20 05:18 ./patches +-rw-r--r-- 1 root root 10858 2022-02-20 05:18 ./patches/CHECKSUMS.md5 +-rw-r--r-- 1 root root 163 2022-02-20 05:18 ./patches/CHECKSUMS.md5.asc +-rw-r--r-- 1 root root 14780 2022-02-20 05:18 ./patches/FILE_LIST +-rw-r--r-- 1 root root 5125656 2022-02-20 05:18 ./patches/MANIFEST.bz2 +-rw-r--r-- 1 root root 4790 2022-02-20 05:18 ./patches/PACKAGES.TXT +drwxr-xr-x 2 root root 4096 2022-02-20 05:18 ./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 -rw-r--r-- 1 root root 326 2022-02-07 18:56 ./patches/packages/at-3.2.3-x86_64-1_slack15.0.txt -rw-r--r-- 1 root root 43124 2022-02-07 18:56 ./patches/packages/at-3.2.3-x86_64-1_slack15.0.txz -rw-r--r-- 1 root root 163 2022-02-07 18:56 ./patches/packages/at-3.2.3-x86_64-1_slack15.0.txz.asc +-rw-r--r-- 1 root root 301 2022-02-20 04:46 ./patches/packages/expat-2.4.5-x86_64-1_slack15.0.txt +-rw-r--r-- 1 root root 128692 2022-02-20 04:46 ./patches/packages/expat-2.4.5-x86_64-1_slack15.0.txz +-rw-r--r-- 1 root root 163 2022-02-20 04:46 ./patches/packages/expat-2.4.5-x86_64-1_slack15.0.txz.asc -rw-r--r-- 1 root root 369 2022-02-13 23:57 ./patches/packages/mariadb-10.5.15-x86_64-1_slack15.0.txt -rw-r--r-- 1 root root 29256640 2022-02-13 23:57 ./patches/packages/mariadb-10.5.15-x86_64-1_slack15.0.txz -rw-r--r-- 1 root root 163 2022-02-13 23:57 ./patches/packages/mariadb-10.5.15-x86_64-1_slack15.0.txz.asc @@ -765,7 +768,7 @@ drwxr-xr-x 2 root root 4096 2022-02-18 05:32 ./patches/packages -rw-r--r-- 1 root root 354 2022-02-15 18:37 ./patches/packages/util-linux-2.37.4-x86_64-1_slack15.0.txt -rw-r--r-- 1 root root 2805300 2022-02-15 18:37 ./patches/packages/util-linux-2.37.4-x86_64-1_slack15.0.txz -rw-r--r-- 1 root root 163 2022-02-15 18:37 ./patches/packages/util-linux-2.37.4-x86_64-1_slack15.0.txz.asc -drwxr-xr-x 9 root root 4096 2022-02-18 05:11 ./patches/source +drwxr-xr-x 10 root root 4096 2022-02-20 05:11 ./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 @@ -781,6 +784,11 @@ drwxr-xr-x 2 root root 4096 2022-02-07 18:45 ./patches/source/at -rw-r--r-- 1 root root 428 2018-06-13 02:51 ./patches/source/at/doinst.sh.gz -rw-r--r-- 1 root root 669 2018-06-14 18:38 ./patches/source/at/rc.atd -rw-r--r-- 1 root root 776 2019-10-17 17:50 ./patches/source/at/slack-desc +drwxr-xr-x 2 root root 4096 2022-02-20 04:30 ./patches/source/expat +-rw-r--r-- 1 root root 450542 2022-02-18 22:47 ./patches/source/expat/expat-2.4.5.tar.lz +-rw-r--r-- 1 root root 833 2022-02-18 22:47 ./patches/source/expat/expat-2.4.5.tar.lz.asc +-rwxr-xr-x 1 root root 3363 2022-02-20 04:33 ./patches/source/expat/expat.SlackBuild +-rw-r--r-- 1 root root 754 2018-08-16 17:16 ./patches/source/expat/slack-desc drwxr-xr-x 2 root root 4096 2022-02-13 23:42 ./patches/source/mariadb -rw-r--r-- 1 root root 461 2021-11-20 19:14 ./patches/source/mariadb/doinst.sh.gz -rw-r--r-- 1 root root 59735933 2022-02-10 20:12 ./patches/source/mariadb/mariadb-10.5.15.tar.lz @@ -2721,13 +2729,13 @@ drwxr-xr-x 2 root root 69632 2022-02-01 08:29 ./slackware64/kde -rw-r--r-- 1 root root 163 2022-01-06 22:12 ./slackware64/kde/okular-21.12.1-x86_64-1.txz.asc -rw-r--r-- 1 root root 155 2022-01-04 21:40 ./slackware64/kde/oxygen-5.23.5-x86_64-1.txt -rw-r--r-- 1 root root 4726556 2022-01-04 21:40 ./slackware64/kde/oxygen-5.23.5-x86_64-1.txz --rw-r--r-- 1 root root 163 2022-01-04 21:40 ./slackware64/kde/oxygen-5.23.5-x86_64-1.txz.asc --rw-r--r-- 1 root root 252 2021-09-30 18:58 ./slackware64/kde/oxygen-fonts-5.4.3-noarch-4.txt --rw-r--r-- 1 root root 62304 2021-09-30 18:58 ./slackware64/kde/oxygen-fonts-5.4.3-noarch-4.txz --rw-r--r-- 1 root root 163 2021-09-30 18:58 ./slackware64/kde/oxygen-fonts-5.4.3-noarch-4.txz.asc --rw-r--r-- 1 root root 645 2021-09-30 20:17 ./slackware64/kde/oxygen-gtk2-1.4.6-x86_64-4.txt --rw-r--r-- 1 root root 415700 2021-09-30 20:17 ./slackware64/kde/oxygen-gtk2-1.4.6-x86_64-4.txz --rw-r--r-- 1 root root 163 2021-09-30 20:17 ./slackware64/kde/oxygen-gtk2-1.4.6-x86_64-4.txz.asc +-rw-r--r-- 1 root root 163 2022-01-04 21:40 ./slackware64/kde/oxygen-5.23.5-x86_64-1.txz.asc +-rw-r--r-- 1 root root 252 2021-09-30 18:58 ./slackware64/kde/oxygen-fonts-5.4.3-noarch-4.txt +-rw-r--r-- 1 root root 62304 2021-09-30 18:58 ./slackware64/kde/oxygen-fonts-5.4.3-noarch-4.txz +-rw-r--r-- 1 root root 163 2021-09-30 18:58 ./slackware64/kde/oxygen-fonts-5.4.3-noarch-4.txz.asc +-rw-r--r-- 1 root root 645 2021-09-30 20:17 ./slackware64/kde/oxygen-gtk2-1.4.6-x86_64-4.txt +-rw-r--r-- 1 root root 415700 2021-09-30 20:17 ./slackware64/kde/oxygen-gtk2-1.4.6-x86_64-4.txz +-rw-r--r-- 1 root root 163 2021-09-30 20:17 ./slackware64/kde/oxygen-gtk2-1.4.6-x86_64-4.txz.asc -rw-r--r-- 1 root root 260 2022-01-08 22:32 ./slackware64/kde/oxygen-icons5-5.90.0-noarch-1.txt -rw-r--r-- 1 root root 31605400 2022-01-08 22:32 ./slackware64/kde/oxygen-icons5-5.90.0-noarch-1.txz -rw-r--r-- 1 root root 163 2022-01-08 22:32 ./slackware64/kde/oxygen-icons5-5.90.0-noarch-1.txz.asc @@ -5488,13 +5496,13 @@ drwxr-xr-x 2 root root 12288 2022-01-29 19:26 ./slackware64/xap -rw-r--r-- 1 root root 2738724 2021-04-18 18:11 ./slackware64/xap/MPlayer-20210418-x86_64-1.txz -rw-r--r-- 1 root root 163 2021-04-18 18:11 ./slackware64/xap/MPlayer-20210418-x86_64-1.txz.asc -rw-r--r-- 1 root root 524 2021-09-29 17:02 ./slackware64/xap/NetworkManager-openvpn-1.8.16-x86_64-1.txt --rw-r--r-- 1 root root 248964 2021-09-29 17:02 ./slackware64/xap/NetworkManager-openvpn-1.8.16-x86_64-1.txz --rw-r--r-- 1 root root 163 2021-09-29 17:02 ./slackware64/xap/NetworkManager-openvpn-1.8.16-x86_64-1.txz.asc --rw-r--r-- 1 root root 591 2021-11-18 20:43 ./slackware64/xap/audacious-4.1-x86_64-3.txt --rw-r--r-- 1 root root 563712 2021-11-18 20:43 ./slackware64/xap/audacious-4.1-x86_64-3.txz --rw-r--r-- 1 root root 163 2021-11-18 20:43 ./slackware64/xap/audacious-4.1-x86_64-3.txz.asc --rw-r--r-- 1 root root 403 2021-07-13 19:10 ./slackware64/xap/audacious-plugins-4.1-x86_64-3.txt --rw-r--r-- 1 root root 1486532 2021-07-13 19:10 ./slackware64/xap/audacious-plugins-4.1-x86_64-3.txz +-rw-r--r-- 1 root root 248964 2021-09-29 17:02 ./slackware64/xap/NetworkManager-openvpn-1.8.16-x86_64-1.txz +-rw-r--r-- 1 root root 163 2021-09-29 17:02 ./slackware64/xap/NetworkManager-openvpn-1.8.16-x86_64-1.txz.asc +-rw-r--r-- 1 root root 591 2021-11-18 20:43 ./slackware64/xap/audacious-4.1-x86_64-3.txt +-rw-r--r-- 1 root root 563712 2021-11-18 20:43 ./slackware64/xap/audacious-4.1-x86_64-3.txz +-rw-r--r-- 1 root root 163 2021-11-18 20:43 ./slackware64/xap/audacious-4.1-x86_64-3.txz.asc +-rw-r--r-- 1 root root 403 2021-07-13 19:10 ./slackware64/xap/audacious-plugins-4.1-x86_64-3.txt +-rw-r--r-- 1 root root 1486532 2021-07-13 19:10 ./slackware64/xap/audacious-plugins-4.1-x86_64-3.txz -rw-r--r-- 1 root root 163 2021-07-13 19:10 ./slackware64/xap/audacious-plugins-4.1-x86_64-3.txz.asc -rw-r--r-- 1 root root 431 2021-08-05 05:16 ./slackware64/xap/blackbox-0.77-x86_64-1.txt -rw-r--r-- 1 root root 393060 2021-08-05 05:16 ./slackware64/xap/blackbox-0.77-x86_64-1.txz @@ -15188,13 +15196,13 @@ drwxr-xr-x 2 root root 4096 2021-02-22 01:27 ./source/xfce/xfce4-panel-pr -rw-r--r-- 1 root root 63201 2021-02-22 01:26 ./source/xfce/xfce4-panel-profiles/xfce4-panel-profiles-1.0.13.tar.lz -rwxr-xr-x 1 root root 3834 2021-02-22 01:27 ./source/xfce/xfce4-panel-profiles/xfce4-panel-profiles.SlackBuild -rw-r--r-- 1 root root 896 2018-02-27 06:13 ./source/xfce/xfce4-panel/slack-desc --rw-r--r-- 1 root root 1122531 2021-05-06 07:53 ./source/xfce/xfce4-panel/xfce4-panel-4.16.3.tar.lz --rwxr-xr-x 1 root root 4782 2021-02-25 19:35 ./source/xfce/xfce4-panel/xfce4-panel.SlackBuild --rw-r--r-- 1 root root 78 2021-05-06 19:15 ./source/xfce/xfce4-panel/xfce4-panel.url -drwxr-xr-x 2 root root 4096 2021-02-13 05:32 ./source/xfce/xfce4-power-manager --rw-r--r-- 1 root root 172 2009-05-30 01:47 ./source/xfce/xfce4-power-manager/doinst.sh.gz --rw-r--r-- 1 root root 880 2020-11-25 21:10 ./source/xfce/xfce4-power-manager/slack-desc --rw-r--r-- 1 root root 933744 2020-12-22 23:18 ./source/xfce/xfce4-power-manager/xfce4-power-manager-4.16.0.tar.lz +-rw-r--r-- 1 root root 1122531 2021-05-06 07:53 ./source/xfce/xfce4-panel/xfce4-panel-4.16.3.tar.lz +-rwxr-xr-x 1 root root 4782 2021-02-25 19:35 ./source/xfce/xfce4-panel/xfce4-panel.SlackBuild +-rw-r--r-- 1 root root 78 2021-05-06 19:15 ./source/xfce/xfce4-panel/xfce4-panel.url +drwxr-xr-x 2 root root 4096 2021-02-13 05:32 ./source/xfce/xfce4-power-manager +-rw-r--r-- 1 root root 172 2009-05-30 01:47 ./source/xfce/xfce4-power-manager/doinst.sh.gz +-rw-r--r-- 1 root root 880 2020-11-25 21:10 ./source/xfce/xfce4-power-manager/slack-desc +-rw-r--r-- 1 root root 933744 2020-12-22 23:18 ./source/xfce/xfce4-power-manager/xfce4-power-manager-4.16.0.tar.lz -rwxr-xr-x 1 root root 4138 2021-02-13 05:32 ./source/xfce/xfce4-power-manager/xfce4-power-manager.SlackBuild drwxr-xr-x 2 root root 4096 2021-02-13 05:32 ./source/xfce/xfce4-pulseaudio-plugin -rw-r--r-- 1 root root 1101 2018-02-27 06:13 ./source/xfce/xfce4-pulseaudio-plugin/slack-desc diff --git a/patches/packages/expat-2.4.5-x86_64-1_slack15.0.txt b/patches/packages/expat-2.4.5-x86_64-1_slack15.0.txt new file mode 100644 index 000000000..e5f720d42 --- /dev/null +++ b/patches/packages/expat-2.4.5-x86_64-1_slack15.0.txt @@ -0,0 +1,11 @@ +expat: expat (C library for parsing XML) +expat: +expat: This is Expat, a C library for parsing XML, written by James Clark. +expat: Expat is a stream-oriented XML parser used by Python, GNOME, Xft2, +expat: and other things. +expat: +expat: Homepage: https://libexpat.github.io +expat: +expat: +expat: +expat: diff --git a/patches/source/expat/expat.SlackBuild b/patches/source/expat/expat.SlackBuild new file mode 100755 index 000000000..6542aa105 --- /dev/null +++ b/patches/source/expat/expat.SlackBuild @@ -0,0 +1,107 @@ +#!/bin/bash + +# Copyright 2008, 2009, 2010, 2011, 2013, 2017, 2018, 2022 Patrick J. Volkerding, Sebeka, Minnesota, 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=expat +VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} +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-$VERSION-$ARCH-$BUILD.txz" + exit 0 +fi + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "s390" ]; then + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} + +TMP=${TMP:-/tmp} +PKG=$TMP/package-expat + +rm -rf $PKG +mkdir -p $TMP $PKG +cd $TMP +rm -rf expat-$VERSION +tar xvf $CWD/expat-$VERSION.tar.?z || exit 1 +cd expat-$VERSION || exit 1 + +chown -R root:root . +find . -perm 777 -exec chmod 755 {} \+ +find . -perm 664 -exec chmod 644 {} \+ + +CFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --mandir=/usr/man \ + --docdir=/usr/doc/expat-$VERSION \ + --disable-static \ + --build=$ARCH-slackware-linux || exit 1 + +make $NUMJOBS || exit 1 +make install DESTDIR=$PKG || exit 1 + +# Don't ship .la files: +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) + +mkdir -p $PKG/usr/doc/expat-$VERSION +cp -a \ + COPYING* README* doc/reference.html \ + $PKG/usr/doc/expat-$VERSION +gzip -9 $PKG/usr/man/man?/*.? +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +makepkg -l y -c n $TMP/expat-$VERSION-$ARCH-$BUILD.txz + diff --git a/patches/source/expat/slack-desc b/patches/source/expat/slack-desc new file mode 100644 index 000000000..114a13754 --- /dev/null +++ b/patches/source/expat/slack-desc @@ -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------------------------------------------------------| +expat: expat (C library for parsing XML) +expat: +expat: This is Expat, a C library for parsing XML, written by James Clark. +expat: Expat is a stream-oriented XML parser used by Python, GNOME, Xft2, +expat: and other things. +expat: +expat: Homepage: https://libexpat.github.io +expat: +expat: +expat: +expat: -- cgit v1.2.3