[gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: rip-headers.sh

2018-04-14 Thread Sergei Trofimovich (slyfox)
slyfox  18/04/14 19:01:13

  Modified: rip-headers.sh
  Log:
  rip-headers.sh: add ripping of missing 'kernel/syscalls' directory for s390

Revision  ChangesPath
1.19 src/patchsets/gentoo-headers/rip-headers.sh

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.19=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.19=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?r1=1.18=1.19

Index: rip-headers.sh
===
RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/rip-headers.sh,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- rip-headers.sh  28 Dec 2017 15:53:55 -  1.18
+++ rip-headers.sh  14 Apr 2018 19:01:13 -  1.19
@@ -68,12 +68,12 @@
done
fi
 done
-# handle x86 unique cruft
+# handle x86 unique headers
 if [[ -e ${src}/arch/x86/entry/syscalls ]] ; then
mkdir -p ${dst}/arch/x86/entry
cp -r ${src}/arch/x86/entry/syscalls ${dst}/arch/x86/entry/
 fi
-# mips has some stupid unique bs
+# mips has some unique headers as well
 if [[ -e ${src}/arch/mips/Kbuild.platforms ]] ; then
for f in "${src}"/arch/mips/*/Platform ; do
f=${f#${src}}
@@ -85,6 +85,11 @@
mkdir -p ${dst}/arch/mips/boot
cp -r ${src}/arch/mips/boot/tools ${dst}/arch/mips/boot/
 fi
+# s390 has special sauce starting from 4.16
+if [[ -d ${src}/arch/s390/kernel/syscalls ]] ; then
+   mkdir -p ${dst}/arch/s390/kernel
+   cp -r ${src}/arch/s390/kernel/syscalls ${dst}/arch/s390/kernel/
+fi
 find ${dst}/ -name .gitignore -delete
 
 cp README.ripped-headers rip-headers.sh ${dst}/






[gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: rip-headers.sh

2017-12-28 Thread Sergei Trofimovich (slyfox)
slyfox  17/12/28 15:53:55

  Modified: rip-headers.sh
  Log:
  rip-headers.sh: add tiny 'usage' banner

Revision  ChangesPath
1.18 src/patchsets/gentoo-headers/rip-headers.sh

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.18=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.18=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?r1=1.17=1.18

Index: rip-headers.sh
===
RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/rip-headers.sh,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- rip-headers.sh  28 Dec 2017 15:50:53 -  1.17
+++ rip-headers.sh  28 Dec 2017 15:53:55 -  1.18
@@ -1,7 +1,10 @@
 #!/bin/bash -ex
 
 ver=$1
-[[ -z $ver ]] && exit 1
+if [[ -z $ver ]]; then
+   echo "Usage: $0 "
+   exit 1
+fi
 [[ ${ver} == linux-* ]] && ver=${ver#linux-}
 ver=${ver%/}
 






[gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: rip-headers.sh

2017-12-28 Thread Sergei Trofimovich (slyfox)
slyfox  17/12/28 15:50:53

  Modified: rip-headers.sh
  Log:
  rip-headers.sh: try DISTDIR from portage before falling back to /usr/portage

Revision  ChangesPath
1.17 src/patchsets/gentoo-headers/rip-headers.sh

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.17=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.17=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?r1=1.16=1.17

Index: rip-headers.sh
===
RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/rip-headers.sh,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- rip-headers.sh  10 Sep 2017 23:54:57 -  1.16
+++ rip-headers.sh  28 Dec 2017 15:50:53 -  1.17
@@ -9,7 +9,7 @@
 dst=gentoo-headers-base-${ver}
 
 if [ ! -d ${src} ] ; then
-   for srcdir in . /usr/portage/distfiles ; do
+   for srcdir in . "$(portageq distdir)" /usr/portage/distfiles ; do
for ext in bz2 xz ; do
srctar=${srcdir}/${src}.tar.${ext}
if [ -e ${srctar} ] ; then






[gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: rip-headers.sh

2017-09-10 Thread Matt Turner (mattst88)
mattst8817/09/10 23:54:57

  Modified: rip-headers.sh
  Log:
  Update rip-headers.sh to handle kernels >= 4.12
  
  Upstream kernel commit fcc8487d477a3452a1d0ccbdd4c5e0e1e3cb8bed ("uapi: export
  all headers under uapi directories") removed include/Kbuild and the Kbuild
  files from most directories within include/, thus breaking rip-headers.sh.
  
  I have modified rip-headers.sh to simply rip all of include/ if it cannot find
  the Kbuild files. This increase the size of gentoo-headers-base-*.tar.xz from
  ~4M to ~8M, but that's still significantly better than the size of the whole
  kernel.

Revision  ChangesPath
1.16 src/patchsets/gentoo-headers/rip-headers.sh

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.16=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.16=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?r1=1.15=1.16

Index: rip-headers.sh
===
RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/rip-headers.sh,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- rip-headers.sh  2 Aug 2016 15:22:58 -   1.15
+++ rip-headers.sh  10 Sep 2017 23:54:57 -  1.16
@@ -28,8 +28,13 @@
 mkdir ${dst}
 cp ${src}/Makefile ${dst}/
 mkdir ${dst}/include
-cp ${src}/include/Kbuild ${dst}/include/
-cp -r $(find ${src}/include -mindepth 2 -maxdepth 2 -name 'Kbuild*' -printf 
%h' ') ${dst}/include/
+[ -f ${src}/include/Kbuild ] && cp ${src}/include/Kbuild ${dst}/include/
+directories=$(find ${src}/include -mindepth 2 -maxdepth 2 -name 'Kbuild*' 
-printf %h' ')
+if [ -n "${directories}" ] ; then
+   cp -r ${directories} ${dst}/include/
+else
+   cp -r ${src}/include/* ${dst}/include
+fi
 mkdir ${dst}/scripts
 cp -r \
${src}/scripts/{Makefile,Kbuild}* \






[gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: rip-headers.sh

2016-08-02 Thread Mike Frysinger (vapier)
vapier  16/08/02 15:22:58

  Modified: rip-headers.sh
  Log:
  pull in some more mips cruft

Revision  ChangesPath
1.15 src/patchsets/gentoo-headers/rip-headers.sh

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.15=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.15=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?r1=1.14=1.15

Index: rip-headers.sh
===
RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/rip-headers.sh,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- rip-headers.sh  1 Sep 2015 02:38:06 -   1.14
+++ rip-headers.sh  2 Aug 2016 15:22:58 -   1.15
@@ -73,6 +73,11 @@
cp ${src}/${f} ${dst}/${f}
done
 fi
+if [[ -d ${src}/arch/mips/boot/tools ]] ; then
+   mkdir -p ${dst}/arch/mips/boot
+   cp -r ${src}/arch/mips/boot/tools ${dst}/arch/mips/boot/
+fi
+find ${dst}/ -name .gitignore -delete
 
 cp README.ripped-headers rip-headers.sh ${dst}/
 






[gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: rip-headers.sh

2015-08-31 Thread Mike Frysinger (vapier)
vapier  15/09/01 02:38:06

  Modified: rip-headers.sh
  Log:
  pull in x86 dirs starting w/4.2

Revision  ChangesPath
1.14 src/patchsets/gentoo-headers/rip-headers.sh

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.14=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.14=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?r1=1.13=1.14

Index: rip-headers.sh
===
RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/rip-headers.sh,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- rip-headers.sh  14 Apr 2015 22:15:43 -  1.13
+++ rip-headers.sh  1 Sep 2015 02:38:06 -   1.14
@@ -60,6 +60,11 @@
done
fi
 done
+# handle x86 unique cruft
+if [[ -e ${src}/arch/x86/entry/syscalls ]] ; then
+   mkdir -p ${dst}/arch/x86/entry
+   cp -r ${src}/arch/x86/entry/syscalls ${dst}/arch/x86/entry/
+fi
 # mips has some stupid unique bs
 if [[ -e ${src}/arch/mips/Kbuild.platforms ]] ; then
for f in "${src}"/arch/mips/*/Platform ; do






[gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: rip-headers.sh

2015-04-14 Thread Mike Frysinger (vapier)
vapier  15/04/14 22:15:43

  Modified: rip-headers.sh
  Log:
  support 2.x/3.x/4.x URIs

Revision  ChangesPath
1.13 src/patchsets/gentoo-headers/rip-headers.sh

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.13view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.13content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?r1=1.12r2=1.13

Index: rip-headers.sh
===
RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/rip-headers.sh,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- rip-headers.sh  4 Aug 2014 08:59:23 -   1.12
+++ rip-headers.sh  14 Apr 2015 22:15:43 -  1.13
@@ -20,7 +20,7 @@
done
 fi
 if [ ! -d ${src} ] ; then
-   wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-${ver}.tar.xz 
-P /usr/portage/distfiles/
+   wget 
https://www.kernel.org/pub/linux/kernel/v${ver:0:1}.x/linux-${ver}.tar.xz -P 
/usr/portage/distfiles/
exec $0 $@
 fi
 






[gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: rip-headers.sh

2014-08-04 Thread Mike Frysinger (vapier)
vapier  14/08/04 08:59:23

  Modified: rip-headers.sh
  Log:
  autofetch new releases

Revision  ChangesPath
1.12 src/patchsets/gentoo-headers/rip-headers.sh

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.12view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.12content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?r1=1.11r2=1.12

Index: rip-headers.sh
===
RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/rip-headers.sh,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- rip-headers.sh  16 Aug 2013 17:50:42 -  1.11
+++ rip-headers.sh  4 Aug 2014 08:59:23 -   1.12
@@ -19,6 +19,10 @@
done
done
 fi
+if [ ! -d ${src} ] ; then
+   wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-${ver}.tar.xz 
-P /usr/portage/distfiles/
+   exec $0 $@
+fi
 
 rm -rf ${dst}
 mkdir ${dst}