You are not logged in.
Hi to all,
I had wrote a PKGBUILD for compile and install a custom linux kernel, but when i run makepkg it fail at prepare function time after a "patch" command, the patch was applied but makepkg fails.
this is the PKGBUILD:
pkgbase=linux-mod-rt
_srcname=linux-4.14.8
pkgver=4.14.8_rt
_linuxver=4.14.8
pkgrel=1
arch=('x86_64')
url="https://www.kernel.org/"
license=('GPL2')
makedepends=('xmlto' 'kmod' 'inetutils' 'bc' 'libelf')
options=('!strip')
source=(
"https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.14.8.tar.xz"
"https://www.kernel.org/pub/linux/kernel/projects/rt/4.14/patch-4.14.6-rt7.patch.gz" # rt patch
'config' # the main kernel config file
'60-linux.hook' # pacman hook for depmod
'90-linux.hook' # pacman hook for initramfs regeneration
'linux-rt.preset' # standard config files for mkinitcpio ramdisk
0001-add-sysctl-to-disallow-unprivileged-CLONE_NEWUSER-by.patch
0001-e1000e-Fix-e1000_check_for_copper_link_ich8lan-retur.patch
0002-dccp-CVE-2017-8824-use-after-free-in-DCCP-code.patch
)
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
)
_kernelname=${pkgbase#linux}
NUMOFCORE=`grep -c ^processor /proc/cpuinfo`
prepare() {
msg "Preparing the kernel source..."
msg2 "Getting the rt patch..."
if [ -d "gcc_patch/" ]; then
rm -rf "gcc_patch/"
fi
git clone https://github.com/graysky2/kernel_gcc_patch gcc_patch
cd ${_srcname}
msg2 "Patching kernel"
# add rt patch
patch -p1 -i ../patch-4.14.6-rt7.patch
# security patches
# add latest fixes from stable queue, if needed
# http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git
# disable USER_NS for non-root users by default
patch -Np1 -i ../0001-add-sysctl-to-disallow-unprivileged-CLONE_NEWUSER-by.patch
# https://bugs.archlinux.org/task/56575
patch -Np1 -i ../0001-e1000e-Fix-e1000_check_for_copper_link_ich8lan-retur.patch
# https://nvd.nist.gov/vuln/detail/CVE-2017-8824
patch -Np1 -i ../0002-dccp-CVE-2017-8824-use-after-free-in-DCCP-code.patch
# gcc optimization patch
patch -p1 -i../gcc_patch/enable_additional_cpu_optimizations_for_gcc_v4.9+_kernel_v4.13+.patch
msg2 "Setting up some stuff in the .config"
cp -Tf ../config .config
msg2 "Setting the name of kernel oin config"
if [ "${_kernelname}" != "" ]; then
sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
sed -i "s|CONFIG_LOCALVERSION_AUTO=.*|CONFIG_LOCALVERSION_AUTO=n|" ./.config
fi
msg2 "Setting config to rt"
sed -i "s|CONFIG_PREEMPT_RT_FULL=*|CONFIG_PREEMPT_RT_FULL=y|g" ./.config
# set extraversion to pkgrel
sed -ri "s|^(EXTRAVERSION =).*|\1 -${pkgrel}|" Makefile
# don't run depmod on 'make install'. We'll do this ourselves in packaging
sed -i '2iexit 0' scripts/depmod.sh
# get kernel version
make prepare
msg2 "Setting of the kernel is complete, do you want to edit the config manually?(y/n):"
read reponse
if [ $reponse == "y" ]; then
make xconfig
fi
# load configuration
# Configure the kernel. Replace the line below with one of your choice.
#make menuconfig # CLI menu for configuration
#make nconfig # new CLI menu for configuration
#make xconfig # X-based configuration
#make oldconfig # using old config from previous kernel version
# ... or manually edit .config
# rewrite configuration
yes "" | make config >/dev/null
}
build() {
cd ${_srcname}
msg "Building the kernel"
make -j$NUMOFCORE ${MAKEFLAGS} LOCALVERSION= bzImage modules
}
_package() {
msg "Creating the package"
pkgdesc="The ${pkgbase/linux/Linux} kernel and modules"
[ "${pkgbase}" = "linux" ] && groups=('base')
depends=('coreutils' 'linux-firmware' 'kmod' 'mkinitcpio>=0.7')
optdepends=('crda: to set the correct wireless channels of your country')
backup=("etc/mkinitcpio.d/${pkgbase}.preset")
install=linux.install
cd ${_srcname}
# get kernel version
_kernver="$(make LOCALVERSION= kernelrelease)"
_basekernel=${_kernver%%-*}
_basekernel=${_basekernel%.*}
mkdir -p "${pkgdir}"/{boot,usr/lib/modules}
make LOCALVERSION= INSTALL_MOD_PATH="${pkgdir}/usr" modules_install
cp arch/x86/boot/bzImage "${pkgdir}/boot/vmlinuz-${pkgbase}"
# make room for external modules
local _extramodules="extramodules-${_basekernel}${_kernelname:--ARCH}"
ln -s "../${_extramodules}" "${pkgdir}/usr/lib/modules/${_kernver}/extramodules"
# add real version for building modules and running depmod from hook
echo "${_kernver}" |
install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modules/${_extramodules}/version"
# remove build and source links
rm "${pkgdir}"/usr/lib/modules/${_kernver}/{source,build}
# now we call depmod...
depmod -b "${pkgdir}/usr" -F System.map "${_kernver}"
# add vmlinux
install -Dt "${pkgdir}/usr/lib/modules/${_kernver}/build" -m644 vmlinux
# sed expression for following substitutions
local _subst="
s|%PKGBASE%|${pkgbase}|g
s|%KERNVER%|${_kernver}|g
s|%EXTRAMODULES%|${_extramodules}|g
"
# hack to allow specifying an initially nonexisting install file
sed "${_subst}" "${startdir}/${install}" > "${startdir}/${install}.pkg"
true && install=${install}.pkg
# install mkinitcpio preset file
sed "${_subst}" ../linux-rt.preset |
install -Dm644 /dev/stdin "${pkgdir}/etc/mkinitcpio.d/${pkgbase}.preset"
# install pacman hooks
sed "${_subst}" ../60-linux.hook |
install -Dm644 /dev/stdin "${pkgdir}/usr/share/libalpm/hooks/60-${pkgbase}.hook"
sed "${_subst}" ../90-linux.hook |
install -Dm644 /dev/stdin "${pkgdir}/usr/share/libalpm/hooks/90-${pkgbase}.hook"
}
_package-headers() {
msg2 "Building kernel-headers"
pkgdesc="Header files and scripts for building modules for ${pkgbase/linux/Linux} kernel"
cd ${_srcname}
local _builddir="${pkgdir}/usr/lib/modules/${_kernver}/build"
install -Dt "${_builddir}" -m644 Makefile .config Module.symvers
install -Dt "${_builddir}/kernel" -m644 kernel/Makefile
mkdir "${_builddir}/.tmp_versions"
cp -t "${_builddir}" -a include scripts
install -Dt "${_builddir}/arch/x86" -m644 arch/x86/Makefile
install -Dt "${_builddir}/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s
cp -t "${_builddir}/arch/x86" -a arch/x86/include
install -Dt "${_builddir}/drivers/md" -m644 drivers/md/*.h
install -Dt "${_builddir}/net/mac80211" -m644 net/mac80211/*.h
# http://bugs.archlinux.org/task/9912
install -Dt "${_builddir}/drivers/media/dvb-core" -m644 drivers/media/dvb-core/*.h
# http://bugs.archlinux.org/task/13146
install -Dt "${_builddir}/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h
# http://bugs.archlinux.org/task/20402
install -Dt "${_builddir}/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h
install -Dt "${_builddir}/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h
install -Dt "${_builddir}/drivers/media/tuners" -m644 drivers/media/tuners/*.h
# add xfs and shmem for aufs building
mkdir -p "${_builddir}"/{fs/xfs,mm}
# copy in Kconfig files
find . -name Kconfig\* -exec install -Dm644 {} "${_builddir}/{}" \;
# add objtool for external module building and enabled VALIDATION_STACK option
install -Dt "${_builddir}/tools/objtool" tools/objtool/objtool
# remove unneeded architectures
local _arch
for _arch in "${_builddir}"/arch/*/; do
[[ ${_arch} == */x86/ ]] && continue
rm -r "${_arch}"
done
# remove files already in linux-docs package
rm -r "${_builddir}/Documentation"
# Fix permissions
chmod -R u=rwX,go=rX "${_builddir}"
# strip scripts directory
local _binary _strip
while read -rd '' _binary; do
case "$(file -bi "${_binary}")" in
*application/x-sharedlib*) _strip="${STRIP_SHARED}" ;; # Libraries (.so)
*application/x-archive*) _strip="${STRIP_STATIC}" ;; # Libraries (.a)
*application/x-executable*) _strip="${STRIP_BINARIES}" ;; # Binaries
*) continue ;;
esac
/usr/bin/strip ${_strip} "${_binary}"
done < <(find "${_builddir}/scripts" -type f -perm -u+w -print0 2>/dev/null)
}
_package-docs() {
pkgdesc="Kernel hackers manual - HTML documentation that comes with the ${pkgbase/linux/Linux} kernel"
cd ${_srcname}
local _builddir="${pkgdir}/usr/lib/modules/${_kernver}/build"
mkdir -p "${_builddir}"
cp -t "${_builddir}" -a Documentation
# Fix permissions
chmod -R u=rwX,go=rX "${_builddir}"
}
pkgname=("${pkgbase}" "${pkgbase}-headers" "${pkgbase}-docs")
for _p in ${pkgname[@]}; do
eval "package_${_p}() {
$(declare -f "_package${_p#${pkgbase}}")
_package${_p#${pkgbase}}
}"
done
# vim:set ts=8 sts=2 sw=2 et:and this is the makepkg out:
==> Making package: linux-mod-rt 4.14.8_rt-1 (Fri Dec 22 15:03:12 CET 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found linux-4.14.8.tar.xz
-> Found patch-4.14.6-rt7.patch.gz
-> Found config
-> Found 60-linux.hook
-> Found 90-linux.hook
-> Found linux-rt.preset
-> Found 0001-add-sysctl-to-disallow-unprivileged-CLONE_NEWUSER-by.patch
-> Found 0001-e1000e-Fix-e1000_check_for_copper_link_ich8lan-retur.patch
-> Found 0002-dccp-CVE-2017-8824-use-after-free-in-DCCP-code.patch
==> Validating source files with sha256sums...
linux-4.14.8.tar.xz ... Skipped
patch-4.14.6-rt7.patch.gz ... Skipped
config ... Skipped
60-linux.hook ... Skipped
90-linux.hook ... Skipped
linux-rt.preset ... Skipped
0001-add-sysctl-to-disallow-unprivileged-CLONE_NEWUSER-by.patch ... Skipped
0001-e1000e-Fix-e1000_check_for_copper_link_ich8lan-retur.patch ... Skipped
0002-dccp-CVE-2017-8824-use-after-free-in-DCCP-code.patch ... Skipped
==> Extracting sources...
-> Extracting linux-4.14.8.tar.xz with bsdtar
-> Extracting patch-4.14.6-rt7.patch.gz with gzip
==> Starting prepare()...
==> Preparing the kernel source...
-> Getting the rt patch...
Cloning into 'gcc_patch'...
remote: Counting objects: 274, done.
remote: Total 274 (delta 0), reused 0 (delta 0), pack-reused 274
Receiving objects: 100% (274/274), 74.32 KiB | 16.00 KiB/s, done.
Resolving deltas: 100% (128/128), done.
-> Patching kernel
patching file Documentation/admin-guide/sysrq.rst
patching file Documentation/trace/events.txt
patching file Documentation/trace/ftrace.txt
patching file Documentation/trace/histogram.txt
patching file arch/Kconfig
patching file arch/alpha/include/asm/spinlock_types.h
patching file arch/arm/Kconfig
patching file arch/arm/include/asm/irq.h
patching file arch/arm/include/asm/spinlock_types.h
patching file arch/arm/include/asm/switch_to.h
patching file arch/arm/include/asm/thread_info.h
patching file arch/arm/kernel/asm-offsets.c
patching file arch/arm/kernel/entry-armv.S
patching file arch/arm/kernel/entry-common.S
patching file arch/arm/kernel/patch.c
patching file arch/arm/kernel/process.c
patching file arch/arm/kernel/signal.c
patching file arch/arm/kernel/smp.c
patching file arch/arm/kernel/unwind.c
patching file arch/arm/mach-exynos/platsmp.c
patching file arch/arm/mach-hisi/platmcpm.c
patching file arch/arm/mach-omap2/omap-smp.c
patching file arch/arm/mach-prima2/platsmp.c
patching file arch/arm/mach-qcom/platsmp.c
patching file arch/arm/mach-spear/platsmp.c
patching file arch/arm/mach-sti/platsmp.c
patching file arch/arm/mm/fault.c
patching file arch/arm/mm/highmem.c
patching file arch/arm/plat-versatile/platsmp.c
patching file arch/arm64/Kconfig
patching file arch/arm64/crypto/Kconfig
patching file arch/arm64/crypto/crc32-ce-glue.c
patching file arch/arm64/include/asm/spinlock_types.h
patching file arch/arm64/include/asm/thread_info.h
patching file arch/arm64/kernel/asm-offsets.c
patching file arch/arm64/kernel/entry.S
patching file arch/arm64/kernel/signal.c
patching file arch/blackfin/include/asm/spinlock_types.h
patching file arch/hexagon/include/asm/spinlock_types.h
patching file arch/ia64/include/asm/spinlock_types.h
patching file arch/ia64/kernel/mca.c
patching file arch/m32r/include/asm/spinlock_types.h
patching file arch/metag/include/asm/spinlock_types.h
patching file arch/mips/Kconfig
patching file arch/mips/include/asm/switch_to.h
patching file arch/mips/kernel/mips-mt-fpaff.c
patching file arch/mips/kernel/traps.c
patching file arch/mn10300/include/asm/spinlock_types.h
patching file arch/powerpc/Kconfig
patching file arch/powerpc/include/asm/spinlock_types.h
patching file arch/powerpc/include/asm/thread_info.h
patching file arch/powerpc/kernel/asm-offsets.c
patching file arch/powerpc/kernel/entry_32.S
patching file arch/powerpc/kernel/entry_64.S
patching file arch/powerpc/kernel/irq.c
patching file arch/powerpc/kernel/misc_32.S
patching file arch/powerpc/kernel/misc_64.S
patching file arch/powerpc/kvm/Kconfig
patching file arch/powerpc/platforms/cell/spufs/sched.c
patching file arch/powerpc/platforms/ps3/device-init.c
patching file arch/s390/include/asm/spinlock_types.h
patching file arch/sh/include/asm/spinlock_types.h
patching file arch/sh/kernel/irq.c
patching file arch/sparc/Kconfig
patching file arch/sparc/kernel/irq_64.c
patching file arch/tile/include/asm/setup.h
patching file arch/tile/include/asm/spinlock_types.h
patching file arch/tile/kernel/hardwall.c
patching file arch/x86/Kconfig
patching file arch/x86/crypto/aesni-intel_glue.c
patching file arch/x86/crypto/camellia_aesni_avx2_glue.c
patching file arch/x86/crypto/camellia_aesni_avx_glue.c
patching file arch/x86/crypto/cast5_avx_glue.c
patching file arch/x86/crypto/cast6_avx_glue.c
patching file arch/x86/crypto/chacha20_glue.c
patching file arch/x86/crypto/glue_helper.c
patching file arch/x86/crypto/serpent_avx2_glue.c
patching file arch/x86/crypto/serpent_avx_glue.c
patching file arch/x86/crypto/serpent_sse2_glue.c
patching file arch/x86/crypto/twofish_avx_glue.c
patching file arch/x86/entry/common.c
patching file arch/x86/entry/entry_32.S
patching file arch/x86/entry/entry_64.S
patching file arch/x86/include/asm/fpu/api.h
patching file arch/x86/include/asm/preempt.h
patching file arch/x86/include/asm/signal.h
patching file arch/x86/include/asm/stackprotector.h
patching file arch/x86/include/asm/thread_info.h
patching file arch/x86/include/asm/uv/uv_bau.h
patching file arch/x86/kernel/apic/io_apic.c
patching file arch/x86/kernel/asm-offsets.c
patching file arch/x86/kernel/cpu/mcheck/dev-mcelog.c
patching file arch/x86/kernel/cpu/mcheck/mce.c
patching file arch/x86/kernel/fpu/core.c
patching file arch/x86/kernel/irq_32.c
patching file arch/x86/kernel/process_32.c
patching file arch/x86/kvm/lapic.c
patching file arch/x86/kvm/x86.c
patching file arch/x86/mm/highmem_32.c
patching file arch/x86/mm/iomap_32.c
patching file arch/x86/platform/uv/tlb_uv.c
patching file arch/x86/platform/uv/uv_time.c
patching file arch/xtensa/include/asm/spinlock_types.h
patching file block/blk-core.c
Hunk #3 succeeded at 785 (offset 1 line).
Hunk #4 succeeded at 805 (offset 1 line).
Hunk #5 succeeded at 881 (offset 1 line).
Hunk #6 succeeded at 3294 (offset 1 line).
Hunk #7 succeeded at 3342 (offset 1 line).
Hunk #8 succeeded at 3361 (offset 1 line).
Hunk #9 succeeded at 3373 (offset 1 line).
Hunk #10 succeeded at 3400 (offset 1 line).
patching file block/blk-ioc.c
patching file block/blk-mq.c
patching file block/blk-mq.h
patching file block/blk-softirq.c
patching file block/bounce.c
patching file crypto/algapi.c
patching file crypto/api.c
patching file crypto/internal.h
patching file crypto/mcryptd.c
patching file drivers/acpi/acpica/acglobal.h
patching file drivers/acpi/acpica/hwregs.c
patching file drivers/acpi/acpica/hwxface.c
patching file drivers/acpi/acpica/utmutex.c
patching file drivers/ata/libata-sff.c
patching file drivers/block/zram/zcomp.c
patching file drivers/block/zram/zcomp.h
patching file drivers/block/zram/zram_drv.c
patching file drivers/block/zram/zram_drv.h
patching file drivers/char/random.c
patching file drivers/char/tpm/tpm_tis.c
patching file drivers/clocksource/tcb_clksrc.c
patching file drivers/clocksource/timer-atmel-pit.c
patching file drivers/clocksource/timer-atmel-st.c
patching file drivers/connector/cn_proc.c
patching file drivers/cpufreq/Kconfig.x86
patching file drivers/gpu/drm/i915/i915_gem_timeline.c
patching file drivers/gpu/drm/i915/i915_irq.c
patching file drivers/gpu/drm/i915/intel_sprite.c
patching file drivers/gpu/drm/radeon/radeon_display.c
patching file drivers/hv/vmbus_drv.c
patching file drivers/ide/alim15x3.c
patching file drivers/ide/hpt366.c
patching file drivers/ide/ide-io-std.c
patching file drivers/ide/ide-io.c
patching file drivers/ide/ide-iops.c
patching file drivers/ide/ide-probe.c
patching file drivers/ide/ide-taskfile.c
patching file drivers/infiniband/hw/hfi1/affinity.c
patching file drivers/infiniband/hw/hfi1/sdma.c
patching file drivers/infiniband/hw/qib/qib_file_ops.c
patching file drivers/infiniband/ulp/ipoib/ipoib_multicast.c
patching file drivers/input/gameport/gameport.c
patching file drivers/iommu/amd_iommu.c
patching file drivers/iommu/iova.c
patching file drivers/leds/trigger/Kconfig
patching file drivers/md/bcache/Kconfig
patching file drivers/md/dm-rq.c
patching file drivers/md/raid5.c
Hunk #3 succeeded at 2067 (offset 3 lines).
Hunk #4 succeeded at 2128 (offset 3 lines).
Hunk #5 succeeded at 6798 (offset 3 lines).
Hunk #6 succeeded at 6809 (offset 3 lines).
patching file drivers/md/raid5.h
patching file drivers/mfd/atmel-smc.c
patching file drivers/misc/Kconfig
patching file drivers/mmc/host/mmci.c
patching file drivers/net/ethernet/3com/3c59x.c
patching file drivers/net/ethernet/marvell/mvpp2.c
patching file drivers/net/ethernet/realtek/8139too.c
patching file drivers/net/wireless/intersil/orinoco/orinoco_usb.c
patching file drivers/net/wireless/mac80211_hwsim.c
patching file drivers/pci/switch/switchtec.c
patching file drivers/scsi/fcoe/fcoe.c
patching file drivers/scsi/fcoe/fcoe_ctlr.c
patching file drivers/scsi/libfc/fc_exch.c
patching file drivers/scsi/libsas/sas_ata.c
patching file drivers/scsi/qla2xxx/qla_inline.h
patching file drivers/staging/greybus/audio_manager.c
patching file drivers/thermal/x86_pkg_temp_thermal.c
patching file drivers/tty/Kconfig
patching file drivers/tty/goldfish.c
patching file drivers/tty/serial/8250/8250_core.c
patching file drivers/tty/serial/8250/8250_port.c
patching file drivers/tty/serial/amba-pl011.c
patching file drivers/tty/serial/omap-serial.c
patching file drivers/usb/core/hcd.c
patching file drivers/usb/gadget/function/f_fs.c
patching file drivers/usb/gadget/function/f_ncm.c
patching file drivers/usb/gadget/legacy/inode.c
patching file fs/aio.c
patching file fs/autofs4/autofs_i.h
patching file fs/autofs4/expire.c
patching file fs/buffer.c
patching file fs/cifs/readdir.c
patching file fs/dcache.c
patching file fs/eventpoll.c
patching file fs/exec.c
patching file fs/ext4/page-io.c
patching file fs/fuse/dir.c
patching file fs/inode.c
patching file fs/libfs.c
patching file fs/locks.c
patching file fs/namei.c
patching file fs/namespace.c
patching file fs/nfs/delegation.c
patching file fs/nfs/dir.c
patching file fs/nfs/inode.c
patching file fs/nfs/nfs4_fs.h
patching file fs/nfs/nfs4proc.c
patching file fs/nfs/nfs4state.c
patching file fs/nfs/unlink.c
patching file fs/ntfs/aops.c
patching file fs/proc/array.c
patching file fs/proc/base.c
patching file fs/proc/proc_sysctl.c
patching file fs/timerfd.c
patching file fs/xfs/xfs_aops.c
patching file include/acpi/platform/aclinux.h
patching file include/asm-generic/bug.h
patching file include/crypto/mcryptd.h
patching file include/linux/blk-mq.h
patching file include/linux/blkdev.h
patching file include/linux/bottom_half.h
patching file include/linux/buffer_head.h
patching file include/linux/cgroup-defs.h
patching file include/linux/completion.h
patching file include/linux/cpu.h
patching file include/linux/dcache.h
patching file include/linux/delay.h
patching file include/linux/delayacct.h
patching file include/linux/fs.h
patching file include/linux/highmem.h
patching file include/linux/hrtimer.h
patching file include/linux/idr.h
patching file include/linux/init_task.h
patching file include/linux/interrupt.h
patching file include/linux/irq.h
patching file include/linux/irq_work.h
patching file include/linux/irqdesc.h
patching file include/linux/irqflags.h
patching file include/linux/jbd2.h
patching file include/linux/kdb.h
patching file include/linux/kernel.h
patching file include/linux/list_bl.h
patching file include/linux/locallock.h
patching file include/linux/mm_types.h
patching file include/linux/mutex.h
patching file include/linux/mutex_rt.h
patching file include/linux/netdevice.h
patching file include/linux/netfilter/x_tables.h
patching file include/linux/nfs_fs.h
patching file include/linux/nfs_xdr.h
patching file include/linux/notifier.h
patching file include/linux/percpu-rwsem.h
patching file include/linux/percpu.h
patching file include/linux/pid.h
patching file include/linux/preempt.h
patching file include/linux/printk.h
patching file include/linux/radix-tree.h
patching file include/linux/random.h
patching file include/linux/rbtree.h
patching file include/linux/rbtree_augmented.h
patching file include/linux/rbtree_latch.h
patching file include/linux/rcu_assign_pointer.h
patching file include/linux/rcupdate.h
patching file include/linux/rcutree.h
patching file include/linux/ring_buffer.h
patching file include/linux/rtmutex.h
patching file include/linux/rwlock_rt.h
patching file include/linux/rwlock_types.h
patching file include/linux/rwlock_types_rt.h
patching file include/linux/rwsem.h
patching file include/linux/rwsem_rt.h
patching file include/linux/sched.h
patching file include/linux/sched/mm.h
patching file include/linux/sched/task.h
patching file include/linux/sched/wake_q.h
patching file include/linux/seqlock.h
patching file include/linux/signal.h
patching file include/linux/skbuff.h
Hunk #2 succeeded at 1671 (offset 2 lines).
patching file include/linux/smp.h
patching file include/linux/spinlock.h
patching file include/linux/spinlock_api_smp.h
patching file include/linux/spinlock_rt.h
patching file include/linux/spinlock_types.h
patching file include/linux/spinlock_types_nort.h
patching file include/linux/spinlock_types_raw.h
patching file include/linux/spinlock_types_rt.h
patching file include/linux/spinlock_types_up.h
patching file include/linux/srcutiny.h
patching file include/linux/srcutree.h
patching file include/linux/suspend.h
patching file include/linux/swait.h
patching file include/linux/swap.h
patching file include/linux/swork.h
patching file include/linux/thread_info.h
patching file include/linux/timer.h
patching file include/linux/trace_events.h
patching file include/linux/uaccess.h
patching file include/linux/vmstat.h
patching file include/linux/wait.h
patching file include/net/gen_stats.h
patching file include/net/neighbour.h
patching file include/net/net_seq_lock.h
patching file include/net/netns/ipv4.h
patching file include/net/sch_generic.h
patching file include/net/xfrm.h
patching file include/trace/events/timer.h
patching file init/Kconfig
patching file init/Makefile
patching file init/main.c
patching file kernel/Kconfig.locks
patching file kernel/Kconfig.preempt
patching file kernel/cgroup/cgroup.c
patching file kernel/cgroup/cpuset.c
patching file kernel/cpu.c
patching file kernel/debug/kdb/kdb_io.c
patching file kernel/delayacct.c
patching file kernel/events/core.c
patching file kernel/exit.c
patching file kernel/fork.c
patching file kernel/futex.c
patching file kernel/irq/handle.c
patching file kernel/irq/manage.c
patching file kernel/irq/settings.h
patching file kernel/irq/spurious.c
patching file kernel/irq_work.c
patching file kernel/ksysfs.c
patching file kernel/locking/Makefile
patching file kernel/locking/lockdep.c
patching file kernel/locking/locktorture.c
patching file kernel/locking/mutex-rt.c
patching file kernel/locking/rtmutex.c
patching file kernel/locking/rtmutex_common.h
patching file kernel/locking/rwlock-rt.c
patching file kernel/locking/rwsem-rt.c
patching file kernel/locking/spinlock.c
patching file kernel/locking/spinlock_debug.c
patching file kernel/panic.c
patching file kernel/power/hibernate.c
patching file kernel/power/suspend.c
Hunk #2 succeeded at 445 (offset -1 lines).
patching file kernel/printk/printk.c
patching file kernel/ptrace.c
patching file kernel/rcu/Kconfig
patching file kernel/rcu/rcu.h
patching file kernel/rcu/rcu_segcblist.c
patching file kernel/rcu/rcutorture.c
patching file kernel/rcu/srcutree.c
patching file kernel/rcu/tree.c
patching file kernel/rcu/tree.h
patching file kernel/rcu/tree_plugin.h
patching file kernel/rcu/update.c
patching file kernel/sched/Makefile
patching file kernel/sched/completion.c
patching file kernel/sched/core.c
patching file kernel/sched/cpudeadline.c
patching file kernel/sched/cpupri.c
patching file kernel/sched/deadline.c
patching file kernel/sched/debug.c
patching file kernel/sched/fair.c
patching file kernel/sched/features.h
patching file kernel/sched/rt.c
patching file kernel/sched/sched.h
patching file kernel/sched/swait.c
patching file kernel/sched/swork.c
patching file kernel/sched/topology.c
patching file kernel/signal.c
patching file kernel/softirq.c
patching file kernel/stop_machine.c
patching file kernel/time/hrtimer.c
patching file kernel/time/itimer.c
patching file kernel/time/jiffies.c
patching file kernel/time/ntp.c
patching file kernel/time/posix-cpu-timers.c
patching file kernel/time/posix-timers.c
Hunk #1 succeeded at 433 with fuzz 2.
Hunk #2 FAILED at 442.
Hunk #3 succeeded at 795 (offset 5 lines).
Hunk #4 succeeded at 903 (offset 5 lines).
Hunk #5 succeeded at 912 (offset 5 lines).
Hunk #6 succeeded at 999 (offset 5 lines).
Hunk #7 succeeded at 1033 (offset 5 lines).
1 out of 7 hunks FAILED -- saving rejects to file kernel/time/posix-timers.c.rej
patching file kernel/time/tick-broadcast-hrtimer.c
patching file kernel/time/tick-common.c
patching file kernel/time/tick-internal.h
patching file kernel/time/tick-sched.c
patching file kernel/time/timekeeping.c
patching file kernel/time/timekeeping.h
patching file kernel/time/timer.c
patching file kernel/trace/Kconfig
patching file kernel/trace/ring_buffer.c
patching file kernel/trace/trace.c
Hunk #7 succeeded at 4537 (offset -11 lines).
Hunk #8 succeeded at 4716 (offset -11 lines).
Hunk #9 succeeded at 6228 (offset -11 lines).
Hunk #10 succeeded at 6308 (offset -11 lines).
Hunk #11 succeeded at 6620 (offset -11 lines).
Hunk #12 succeeded at 7769 (offset -11 lines).
Hunk #13 succeeded at 7802 (offset -11 lines).
Hunk #14 succeeded at 7826 (offset -11 lines).
Hunk #15 succeeded at 7838 (offset -11 lines).
Hunk #16 succeeded at 7851 (offset -11 lines).
Hunk #17 succeeded at 7897 (offset -11 lines).
Hunk #18 succeeded at 7955 (offset -11 lines).
Hunk #19 succeeded at 8367 (offset -11 lines).
Hunk #20 succeeded at 8553 (offset -11 lines).
patching file kernel/trace/trace.h
patching file kernel/trace/trace_events.c
patching file kernel/trace/trace_events_hist.c
patching file kernel/trace/trace_events_trigger.c
patching file kernel/trace/trace_hwlat.c
patching file kernel/trace/trace_kprobe.c
patching file kernel/trace/trace_output.c
patching file kernel/trace/trace_probe.c
patching file kernel/trace/trace_probe.h
patching file kernel/trace/trace_uprobe.c
patching file kernel/trace/tracing_map.c
patching file kernel/trace/tracing_map.h
patching file kernel/user.c
patching file kernel/watchdog.c
patching file kernel/watchdog_hld.c
patching file kernel/workqueue.c
patching file kernel/workqueue_internal.h
patching file lib/Kconfig
patching file lib/Kconfig.debug
patching file lib/debugobjects.c
patching file lib/irq_poll.c
patching file lib/locking-selftest.c
patching file lib/percpu_ida.c
patching file lib/radix-tree.c
patching file lib/scatterlist.c
patching file lib/smp_processor_id.c
patching file localversion-rt
patching file mm/Kconfig
patching file mm/backing-dev.c
patching file mm/compaction.c
patching file mm/filemap.c
patching file mm/highmem.c
patching file mm/memcontrol.c
patching file mm/mmu_context.c
patching file mm/page_alloc.c
patching file mm/slab.h
patching file mm/slub.c
patching file mm/swap.c
patching file mm/truncate.c
patching file mm/vmalloc.c
patching file mm/vmstat.c
patching file mm/workingset.c
patching file mm/zsmalloc.c
patching file net/9p/trans_xen.c
patching file net/Kconfig
patching file net/bluetooth/hci_sock.c
patching file net/can/bcm.c
patching file net/core/dev.c
Hunk #10 succeeded at 3165 (offset 1 line).
Hunk #11 succeeded at 3232 (offset 1 line).
Hunk #12 succeeded at 3476 (offset 1 line).
Hunk #13 succeeded at 3486 (offset 1 line).
Hunk #14 succeeded at 3869 (offset 1 line).
Hunk #15 succeeded at 4022 (offset 1 line).
Hunk #16 succeeded at 4032 (offset 1 line).
Hunk #17 succeeded at 4073 (offset 1 line).
Hunk #18 succeeded at 4593 (offset 1 line).
Hunk #19 succeeded at 4603 (offset 1 line).
Hunk #20 succeeded at 5120 (offset 1 line).
Hunk #21 succeeded at 5157 (offset 1 line).
Hunk #22 succeeded at 5167 (offset 1 line).
Hunk #23 succeeded at 5207 (offset 1 line).
Hunk #24 succeeded at 5244 (offset 1 line).
Hunk #25 succeeded at 5256 (offset 1 line).
Hunk #26 succeeded at 5611 (offset 1 line).
Hunk #27 succeeded at 5655 (offset 1 line).
Hunk #28 succeeded at 8422 (offset 1 line).
Hunk #29 succeeded at 8436 (offset 1 line).
Hunk #30 succeeded at 8746 (offset 1 line).
patching file net/core/filter.c
patching file net/core/gen_estimator.c
patching file net/core/gen_stats.c
patching file net/core/pktgen.c
patching file net/core/skbuff.c
patching file net/core/sock.c
patching file net/ipv4/icmp.c
Hunk #6 succeeded at 924 (offset 9 lines).
Hunk #7 succeeded at 975 (offset 9 lines).
patching file net/ipv4/sysctl_net_ipv4.c
patching file net/ipv4/tcp_ipv4.c
patching file net/mac80211/rx.c
patching file net/netfilter/core.c
patching file net/packet/af_packet.c
patching file net/rds/ib_rdma.c
patching file net/rxrpc/security.c
patching file net/sched/sch_api.c
patching file net/sched/sch_generic.c
patching file net/sunrpc/svc_xprt.c
patching file net/xfrm/xfrm_state.c
patching file samples/trace_events/trace-events-sample.c
patching file scripts/mkcompile_h
patching file security/apparmor/include/path.h
patching file security/apparmor/lsm.c
patching file sound/core/pcm_native.c
patching file sound/drivers/dummy.c
patching file tools/testing/selftests/ftrace/test.d/functions
patching file tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-extended-error-support.tc
patching file tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-field-variable-support.tc
patching file tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-inter-event-combined-hist.tc
patching file tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onmatch-action-hist.tc
patching file tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onmatch-onmax-action-hist.tc
patching file tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onmax-action-hist.tc
patching file tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-synthetic-event-createremove.tc
patching file virt/kvm/arm/arm.c
==> ERROR: A failure occurred in prepare().
Aborting...can someone help me or explain why makepkg return a failure?
Thanks, regard
rez_23
Last edited by rez_23 (2017-12-22 14:14:35)
Offline
can someone help me or explain why makepkg return a failure?
The patching failed:
patching file kernel/time/posix-timers.c Hunk #1 succeeded at 433 with fuzz 2. Hunk #2 FAILED at 442. Hunk #3 succeeded at 795 (offset 5 lines). Hunk #4 succeeded at 903 (offset 5 lines). Hunk #5 succeeded at 912 (offset 5 lines). Hunk #6 succeeded at 999 (offset 5 lines). Hunk #7 succeeded at 1033 (offset 5 lines). 1 out of 7 hunks FAILED -- saving rejects to file kernel/time/posix-timers.c.rejpatching file kernel/time/posix-timers.c
Please actually check the output when you get a build failure, It will usually tell you exactly what caused the failure, or at least hint at what did.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
yeah I've noted that's, but the kernel, if I build it manually, build succesfully and work great,so,is it possible to force makepkg to continue the build process, without deleting the patch command from the PKGBUILD?
Regard rez23
Offline
Why is the PKGBUILD applying patch-4.14.6-rt7.patch.gz to linux-4.14.8.tar.xz instead of linux-4.14.tar.xz ?
https://aur.archlinux.org/packages/linux-rt-bfq/
https://aur.archlinux.org/packages/linux-rt/
Offline
yeah I've seen the update little bit ago, no problem with it.
however, I am yet interested to know if exist some method for do that.
let's say that I'm interested at academic purpose
Offline
Sorted of unrelated to your problem, why is this
git clone https://github.com/graysky2/kernel_gcc_patch gcc_patchnot in the sources array?
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
Not for use in this case as applying a downloaded patch to a downloaded source failing is an indicator there of issues with the build but
commandthatmayfail || trueEdit:
Also
Please do not not do
make -j$NUMOFCORE ${MAKEFLAGS} LOCALVERSION= bzImage modulesinstead set Makepkg#MAKEFLAGS
Last edited by loqs (2017-12-23 18:02:26)
Offline