Magellan Linux

Annotation of /smage/branches/alx07x-stable/core/cpio/cpio-2.13-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14436 - (hide annotations) (download)
Wed Jul 15 11:22:31 2020 UTC (3 years, 10 months ago) by niro
Original Path: smage/trunk/core/cpio/cpio-2.13-r3.smage2
File size: 1013 byte(s)
-revert CVE-2015-1197 to fix shutdown issues with dracut
1 niro 14436 # $Id$
2    
3     PNAME="cpio"
4     PVER="2.13"
5     PBUILD="r3"
6    
7     PCAT="app-arch"
8    
9     DESCRIPTION="Archiver that handles various types of cpio and tar archives."
10     HOMEPAGE="http://www.gnu.org/software/cpio/"
11    
12     DEPEND=">= virtual/glibc"
13     SDEPEND=">= virtual/sed"
14     PROVIDE="virtual/cpio"
15    
16     SRCFILE="${PNAME}-${PVER}.tar.gz"
17     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18    
19     ALX_PKG_KEEP="usr/bin/cpio"
20     sminclude mbuild alx-split
21    
22     SRC_URI=(
23     gnu://${PNAME}/${SRCFILE}
24     mirror://${PNAME}/${SRCFILE}
25     mirror://${PNAME}/${PNAME}-2.13-revert-CVE-2015-1197-fix.patch
26     )
27    
28     UP2DATE="updatecmd_gnu ${PNAME}"
29    
30     src_prepare()
31     {
32     munpack ${SRCFILE} || die
33     cd ${SRCDIR}
34    
35     # revert patch to fix shutdown issues with dracut
36     # see: https://bugzilla.redhat.com/show_bug.cgi?id=1797163
37     # https://lists.gnu.org/archive/html/bug-cpio/2019-11/msg00016.html
38     mpatch ${PNAME}-2.13-revert-CVE-2015-1197-fix.patch || die
39     }
40    
41     src_compile()
42     {
43     cd ${SRCDIR}
44    
45     mconfigure \
46     --libexecdir=/usr/$(mlibdir)/cpio \
47     --with-rmt=/usr/bin/rmt \
48     --enable-nls \
49     || die
50    
51     mmake || die
52     }