A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

Untitled - Stikked
From Emerald Cassowary, 10 Years ago, written in Bash.
Embed
  1. # $Id: PKGBUILD 223919 2014-10-06 14:51:49Z tpowa $
  2. # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
  3. # Maintainer: Thomas Baechler <thomas@archlinux.org>
  4.  
  5. pkgbase=linux               # Build stock -ARCH kernel
  6. #pkgbase=linux-custom       # Build kernel with a different name
  7. _srcname=linux-3.16
  8. pkgver=3.16.4
  9. pkgrel=1
  10. arch=('i686' 'x86_64')
  11. url="http://www.kernel.org/"
  12. license=('GPL2')
  13. makedepends=('xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc')
  14. options=('!strip')
  15. source=("https://www.kernel.org/pub/linux/kernel/v3.x/${_srcname}.tar.xz"
  16.         "https://www.kernel.org/pub/linux/kernel/v3.x/patch-${pkgver}.xz"
  17.         # the main kernel config files
  18.         'config' 'config.x86_64'
  19.         # standard config files for mkinitcpio ramdisk
  20.         'linux.preset'
  21.         'change-default-console-loglevel.patch'
  22.         'compal-laptop-hwmon-fix.patch'
  23.         )
  24. sha256sums=('4813ad7927a7d92e5339a873ab16201b242b2748934f12cb5df9ba2cfe1d77a0'
  25.             'bfd65be726f596c0e46f472efa33c46c01be5d44ed93ef645c313a6823e6e6fb'
  26.             '441fddfd56c28efbf6b61f0f2777ce14e259b9215bae7729800507d98cc223ad'
  27.             'e47377279009637e95ae25858e195dc0654b647d4e30ad30f9880b46b74ec078'
  28.             'f0d90e756f14533ee67afda280500511a62465b4f76adcc5effa95a40045179c'
  29.             '1256b241cd477b265a3c2d64bdc19ffe3c9bbcee82ea3994c590c2c76e767d99'
  30.             'f36f61a0a72bcb0a9c04264343503bfbf927c9ea0db819e66734a3933b060588')
  31.  
  32. _kernelname=${pkgbase#linux}
  33.  
  34. prepare() {
  35.   cd "${srcdir}/${_srcname}"
  36.  
  37.   # add upstream patch
  38.   patch -p1 -i "${srcdir}/patch-${pkgver}"
  39.  
  40.   # add latest fixes from stable queue, if needed
  41.   # http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git
  42.  
  43.   # set DEFAULT_CONSOLE_LOGLEVEL to 4 (same value as the 'quiet' kernel param)
  44.   # remove this when a Kconfig knob is made available by upstream
  45.   # (relevant patch sent upstream: https://lkml.org/lkml/2011/7/26/227)
  46.   patch -p1 -i "${srcdir}/change-default-console-loglevel.patch"
  47.  
  48.   # #41458 fix hwmon for compal-laptop module
  49.   patch -p1 -i "${srcdir}/compal-laptop-hwmon-fix.patch"
  50.  
  51.   if [ "${CARCH}" = "x86_64" ]; then
  52.     cat "${srcdir}/config.x86_64" > ./.config
  53.   else
  54.     cat "${srcdir}/config" > ./.config
  55.   fi
  56.  
  57.   if [ "${_kernelname}" != "" ]; then
  58.     sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION="${_kernelname}"|g" ./.config
  59.     sed -i "s|CONFIG_LOCALVERSION_AUTO=.*|CONFIG_LOCALVERSION_AUTO=n|" ./.config
  60.   fi
  61.  
  62.   # set extraversion to pkgrel
  63.   sed -ri "s|^(EXTRAVERSION =).*|1 -${pkgrel}|" Makefile
  64.  
  65.   # don't run depmod on 'make install'. We'll do this ourselves in packaging
  66.   sed -i '2iexit 0' scripts/depmod.sh
  67.  
  68.   # get kernel version
  69.   make prepare
  70.  
  71.   # load configuration
  72.   # Configure the kernel. Replace the line below with one of your choice.
  73.   #make menuconfig # CLI menu for configuration
  74.   #make nconfig # new CLI menu for configuration
  75.   #make xconfig # X-based configuration
  76.   #make oldconfig # using old config from previous kernel version
  77.   # ... or manually edit .config
  78.  
  79.   # rewrite configuration
  80.   yes "" | make config >/dev/null
  81. }
  82.  
  83. build() {
  84.   cd "${srcdir}/${_srcname}"
  85.  
  86.   make ${MAKEFLAGS} LOCALVERSION= bzImage modules
  87. }
  88.  
  89. _package() {
  90.   pkgdesc="The ${pkgbase/linux/Linux} kernel and modules"
  91.   [ "${pkgbase}" = "linux" ] && groups=('base')
  92.   depends=('coreutils' 'linux-firmware' 'kmod' 'mkinitcpio>=0.7')
  93.   optdepends=('crda: to set the correct wireless channels of your country')
  94.   provides=("kernel26${_kernelname}=${pkgver}")
  95.   conflicts=("kernel26${_kernelname}")
  96.   replaces=("kernel26${_kernelname}")
  97.   backup=("etc/mkinitcpio.d/${pkgbase}.preset")
  98.   install=linux.install
  99.  
  100.   cd "${srcdir}/${_srcname}"
  101.  
  102.   KARCH=x86
  103.  
  104.   # get kernel version
  105.   _kernver="$(make LOCALVERSION= kernelrelease)"
  106.   _basekernel=${_kernver%%-*}
  107.   _basekernel=${_basekernel%.*}
  108.  
  109.   mkdir -p "${pkgdir}"/{lib/modules,lib/firmware,boot}
  110.   make LOCALVERSION= INSTALL_MOD_PATH="${pkgdir}" modules_install
  111.   cp arch/$KARCH/boot/bzImage "${pkgdir}/boot/vmlinuz-${pkgbase}"
  112.  
  113.   # set correct depmod command for install
  114.   cp -f "${startdir}/${install}" "${startdir}/${install}.pkg"
  115.   true && install=${install}.pkg
  116.   sed
  117.     -e  "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/"
  118.     -e  "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/"
  119.     -i "${startdir}/${install}"
  120.  
  121.   # install mkinitcpio preset file for kernel
  122.   install -D -m644 "${srcdir}/linux.preset" "${pkgdir}/etc/mkinitcpio.d/${pkgbase}.preset"
  123.   sed
  124.     -e "1s|'linux.*'|'${pkgbase}'|"
  125.     -e "s|ALL_kver=.*|ALL_kver="/boot/vmlinuz-${pkgbase}"|"
  126.     -e "s|default_image=.*|default_image="/boot/initramfs-${pkgbase}.img"|"
  127.     -e "s|fallback_image=.*|fallback_image="/boot/initramfs-${pkgbase}-fallback.img"|"
  128.     -i "${pkgdir}/etc/mkinitcpio.d/${pkgbase}.preset"
  129.  
  130.   # remove build and source links
  131.   rm -f "${pkgdir}"/lib/modules/${_kernver}/{source,build}
  132.   # remove the firmware
  133.   rm -rf "${pkgdir}/lib/firmware"
  134.   # gzip -9 all modules to save 100MB of space
  135.   find "${pkgdir}" -name '*.ko' -exec gzip -9 {} ;
  136.   # make room for external modules
  137.   ln -s "../extramodules-${_basekernel}${_kernelname:--ARCH}" "${pkgdir}/lib/modules/${_kernver}/extramodules"
  138.   # add real version for building modules and running depmod from post_install/upgrade
  139.   mkdir -p "${pkgdir}/lib/modules/extramodules-${_basekernel}${_kernelname:--ARCH}"
  140.   echo "${_kernver}" > "${pkgdir}/lib/modules/extramodules-${_basekernel}${_kernelname:--ARCH}/version"
  141.  
  142.   # Now we call depmod...
  143.   depmod -b "${pkgdir}" -F System.map "${_kernver}"
  144.  
  145.   # move module tree /lib -> /usr/lib
  146.   mkdir -p "${pkgdir}/usr"
  147.   mv "${pkgdir}/lib" "${pkgdir}/usr/"
  148.  
  149.   # add vmlinux
  150.   install -D -m644 vmlinux "${pkgdir}/usr/lib/modules/${_kernver}/build/vmlinux"
  151. }
  152.  
  153. _package-headers() {
  154.   pkgdesc="Header files and scripts for building modules for ${pkgbase/linux/Linux} kernel"
  155.   provides=("kernel26${_kernelname}-headers=${pkgver}")
  156.   conflicts=("kernel26${_kernelname}-headers")
  157.   replaces=("kernel26${_kernelname}-headers")
  158.  
  159.   install -dm755 "${pkgdir}/usr/lib/modules/${_kernver}"
  160.  
  161.   cd "${srcdir}/${_srcname}"
  162.   install -D -m644 Makefile
  163.     "${pkgdir}/usr/lib/modules/${_kernver}/build/Makefile"
  164.   install -D -m644 kernel/Makefile
  165.     "${pkgdir}/usr/lib/modules/${_kernver}/build/kernel/Makefile"
  166.   install -D -m644 .config
  167.     "${pkgdir}/usr/lib/modules/${_kernver}/build/.config"
  168.  
  169.   mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/include"
  170.  
  171.   for i in acpi asm-generic config crypto drm generated keys linux math-emu
  172.     media net pcmcia scsi sound trace uapi video xen; do
  173.     cp -a include/${i} "${pkgdir}/usr/lib/modules/${_kernver}/build/include/"
  174.   done
  175.  
  176.   # copy arch includes for external modules
  177.   mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/arch/x86"
  178.   cp -a arch/x86/include "${pkgdir}/usr/lib/modules/${_kernver}/build/arch/x86/"
  179.  
  180.   # copy files necessary for later builds, like nvidia and vmware
  181.   cp Module.symvers "${pkgdir}/usr/lib/modules/${_kernver}/build"
  182.   cp -a scripts "${pkgdir}/usr/lib/modules/${_kernver}/build"
  183.  
  184.   # fix permissions on scripts dir
  185.   chmod og-w -R "${pkgdir}/usr/lib/modules/${_kernver}/build/scripts"
  186.   mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/.tmp_versions"
  187.  
  188.   mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/arch/${KARCH}/kernel"
  189.  
  190.   cp arch/${KARCH}/Makefile "${pkgdir}/usr/lib/modules/${_kernver}/build/arch/${KARCH}/"
  191.  
  192.   if [ "${CARCH}" = "i686" ]; then
  193.     cp arch/${KARCH}/Makefile_32.cpu "${pkgdir}/usr/lib/modules/${_kernver}/build/arch/${KARCH}/"
  194.   fi
  195.  
  196.   cp arch/${KARCH}/kernel/asm-offsets.s "${pkgdir}/usr/lib/modules/${_kernver}/build/arch/${KARCH}/kernel/"
  197.  
  198.   # add docbook makefile
  199.   install -D -m644 Documentation/DocBook/Makefile
  200.     "${pkgdir}/usr/lib/modules/${_kernver}/build/Documentation/DocBook/Makefile"
  201.  
  202.   # add dm headers
  203.   mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/drivers/md"
  204.   cp drivers/md/*.h "${pkgdir}/usr/lib/modules/${_kernver}/build/drivers/md"
  205.  
  206.   # add inotify.h
  207.   mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/include/linux"
  208.   cp include/linux/inotify.h "${pkgdir}/usr/lib/modules/${_kernver}/build/include/linux/"
  209.  
  210.   # add wireless headers
  211.   mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/net/mac80211/"
  212.   cp net/mac80211/*.h "${pkgdir}/usr/lib/modules/${_kernver}/build/net/mac80211/"
  213.  
  214.   # add dvb headers for external modules
  215.   # in reference to:
  216.   # http://bugs.archlinux.org/task/9912
  217.   mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/drivers/media/dvb-core"
  218.   cp drivers/media/dvb-core/*.h "${pkgdir}/usr/lib/modules/${_kernver}/build/drivers/media/dvb-core/"
  219.   # and...
  220.   # http://bugs.archlinux.org/task/11194
  221.   mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/include/config/dvb/"
  222.   cp include/config/dvb/*.h "${pkgdir}/usr/lib/modules/${_kernver}/build/include/config/dvb/"
  223.  
  224.   # add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
  225.   # in reference to:
  226.   # http://bugs.archlinux.org/task/13146
  227.   mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/drivers/media/dvb-frontends/"
  228.   cp drivers/media/dvb-frontends/lgdt330x.h "${pkgdir}/usr/lib/modules/${_kernver}/build/drivers/media/dvb-frontends/"
  229.   mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/drivers/media/i2c/"
  230.   cp drivers/media/i2c/msp3400-driver.h "${pkgdir}/usr/lib/modules/${_kernver}/build/drivers/media/i2c/"
  231.  
  232.   # add dvb headers
  233.   # in reference to:
  234.   # http://bugs.archlinux.org/task/20402
  235.   mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/drivers/media/usb/dvb-usb"
  236.   cp drivers/media/usb/dvb-usb/*.h "${pkgdir}/usr/lib/modules/${_kernver}/build/drivers/media/usb/dvb-usb/"
  237.   mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/drivers/media/dvb-frontends"
  238.   cp drivers/media/dvb-frontends/*.h "${pkgdir}/usr/lib/modules/${_kernver}/build/drivers/media/dvb-frontends/"
  239.   mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/drivers/media/tuners"
  240.   cp drivers/media/tuners/*.h "${pkgdir}/usr/lib/modules/${_kernver}/build/drivers/media/tuners/"
  241.  
  242.   # add xfs and shmem for aufs building
  243.   mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/fs/xfs"
  244.   mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/mm"
  245.   cp fs/xfs/xfs_sb.h "${pkgdir}/usr/lib/modules/${_kernver}/build/fs/xfs/xfs_sb.h"
  246.  
  247.   # copy in Kconfig files
  248.   for i in $(find . -name "Kconfig*"); do
  249.     mkdir -p "${pkgdir}"/usr/lib/modules/${_kernver}/build/`echo ${i} | sed 's|/Kconfig.*||'`
  250.     cp ${i} "${pkgdir}/usr/lib/modules/${_kernver}/build/${i}"
  251.   done
  252.  
  253.   chown -R root.root "${pkgdir}/usr/lib/modules/${_kernver}/build"
  254.   find "${pkgdir}/usr/lib/modules/${_kernver}/build" -type d -exec chmod 755 {} ;
  255.  
  256.   # strip scripts directory
  257.   find "${pkgdir}/usr/lib/modules/${_kernver}/build/scripts" -type f -perm -u+w 2>/dev/null | while read binary ; do
  258.     case "$(file -bi "${binary}")" in
  259.       *application/x-sharedlib*) # Libraries (.so)
  260.         /usr/bin/strip ${STRIP_SHARED} "${binary}";;
  261.       *application/x-archive*) # Libraries (.a)
  262.         /usr/bin/strip ${STRIP_STATIC} "${binary}";;
  263.       *application/x-executable*) # Binaries
  264.         /usr/bin/strip ${STRIP_BINARIES} "${binary}";;
  265.     esac
  266.   done
  267.  
  268.   # remove unneeded architectures
  269.   rm -rf "${pkgdir}"/usr/lib/modules/${_kernver}/build/arch/{alpha,arc,arm,arm26,arm64,avr32,blackfin,c6x,cris,frv,h8300,hexagon,ia64,m32r,m68k,m68knommu,metag,mips,microblaze,mn10300,openrisc,parisc,powerpc,ppc,s390,score,sh,sh64,sparc,sparc64,tile,unicore32,um,v850,xtensa}
  270. }
  271.  
  272. _package-docs() {
  273.   pkgdesc="Kernel hackers manual - HTML documentation that comes with the ${pkgbase/linux/Linux} kernel"
  274.   provides=("kernel26${_kernelname}-docs=${pkgver}")
  275.   conflicts=("kernel26${_kernelname}-docs")
  276.   replaces=("kernel26${_kernelname}-docs")
  277.  
  278.   cd "${srcdir}/${_srcname}"
  279.  
  280.   mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build"
  281.   cp -al Documentation "${pkgdir}/usr/lib/modules/${_kernver}/build"
  282.   find "${pkgdir}" -type f -exec chmod 444 {} ;
  283.   find "${pkgdir}" -type d -exec chmod 755 {} ;
  284.  
  285.   # remove a file already in linux package
  286.   rm -f "${pkgdir}/usr/lib/modules/${_kernver}/build/Documentation/DocBook/Makefile"
  287. }
  288.  
  289. pkgname=("${pkgbase}" "${pkgbase}-headers" "${pkgbase}-docs")
  290. for _p in ${pkgname[@]}; do
  291.   eval "package_${_p}() {
  292.    $(declare -f "_package${_p#${pkgbase}}")
  293.    _package${_p#${pkgbase}}
  294.  }"
  295. done
  296.  
  297. # vim:set ts=8 sts=2 sw=2 et:
  298.