From 9d01bc26ecb2e533732065e94da19ecb55fb672d Mon Sep 17 00:00:00 2001 From: mid-kid Date: Mon, 12 Dec 2016 22:19:00 +0100 Subject: [PATCH] Initial commit --- binutils-ROCKET.TXT | 2 + glib2-ROCKET.TXT | 2 + gtk+2-ROCKET.TXT | 2 + kernel.SlackBuild | 128 ++++++++++++++++++++++++++++++++++++++++++++ readme.txt | 8 +++ 5 files changed, 142 insertions(+) create mode 100644 binutils-ROCKET.TXT create mode 100644 glib2-ROCKET.TXT create mode 100644 gtk+2-ROCKET.TXT create mode 100755 kernel.SlackBuild create mode 100644 readme.txt diff --git a/binutils-ROCKET.TXT b/binutils-ROCKET.TXT new file mode 100644 index 0000000..eee4558 --- /dev/null +++ b/binutils-ROCKET.TXT @@ -0,0 +1,2 @@ +Modifications: +- Apply a fix for https://sourceware.org/bugzilla/show_bug.cgi?id=19775. diff --git a/glib2-ROCKET.TXT b/glib2-ROCKET.TXT new file mode 100644 index 0000000..729b3e1 --- /dev/null +++ b/glib2-ROCKET.TXT @@ -0,0 +1,2 @@ +Modifications: +- Applied glib-thumbnailer.patch which is required by the patched gtk+2. Requires tumbler. diff --git a/gtk+2-ROCKET.TXT b/gtk+2-ROCKET.TXT new file mode 100644 index 0000000..754f6b1 --- /dev/null +++ b/gtk+2-ROCKET.TXT @@ -0,0 +1,2 @@ +Modifications: +- Applied gtk2-filechooser-icon-view.patch which adds support for an icon view. diff --git a/kernel.SlackBuild b/kernel.SlackBuild new file mode 100755 index 0000000..5019a49 --- /dev/null +++ b/kernel.SlackBuild @@ -0,0 +1,128 @@ +#!/bin/sh -e + +PKGNAM=${PKGNAM:-linux} +BASEVER=${BASEVER:-4.4.29} +VERSION=${VERSION:-4.4.29} +ARCH=${ARCH:-x86_64} +KARCH=${KARCH:-x86} +BUILD=${BUILD:-1_slack14.2} + +CWD=$(pwd) +TMP=${TMP:-/tmp/kernel} +PKG=$TMP/package + +NUMJOBS=${NUMJOBS:-" -j7 "} + +export VERSION ARCH BUILD TMP + +mkdir -p $TMP + +cd $TMP +rm -rf $PKGNAM-$BASEVER $PKGNAM-$VERSION +tar xvf $CWD/$PKGNAM-$BASEVER.tar.xz + +# Apply incremental patches +#mv $PKGNAM-$BASEVER $PKGNAM-$VERSION +#cd $PKGNAM-$VERSION +#xz -cd $CWD/patch-4.4.29-30.xz | patch -p1 --verbose + +# Build kernel-headers +cd $TMP/$PKGNAM-$VERSION +rm -rf $PKG +mkdir -p $PKG/usr +make $NUMJOBS INSTALL_HDR_PATH=$PKG/usr headers_install + +find $PKG/usr -type f -a ! -name '*.h' -delete +rm -rf $PKG/usr/include/drm +mv $PKG/usr/include/asm{,-x86} +ln -sf asm-x86 $PKG/usr/include/asm + +mkdir -p $PKG/install +cat $CWD/kernel-headers/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $TMP/kernel-headers-$VERSION-$KARCH-$BUILD.txz + +# Build kernel-huge +cd $TMP/$PKGNAM-$VERSION +make $NUMJOBS mrproper +cat $CWD/config-$ARCH/config-huge-* > .config +make $NUMJOBS oldconfig +make $NUMJOBS bzImage + +rm -rf $PKG +mkdir -p $PKG +cp arch/$KARCH/boot/bzImage $PKG +cp System.map $PKG +cp .config $PKG/config +cp $CWD/packaging-$ARCH/kernel-huge/kernel-huge.SlackBuild $PKG +cp $CWD/packaging-$ARCH/kernel-huge/slack-desc $PKG + +cd $PKG +./kernel-huge.SlackBuild + +# Build kernel-generic +cd $TMP/$PKGNAM-$VERSION +make $NUMJOBS mrproper +cat $CWD/config-$ARCH/config-generic-* > .config +make $NUMJOBS oldconfig +make $NUMJOBS bzImage + +rm -rf $PKG +mkdir -p $PKG +cp arch/$KARCH/boot/bzImage $PKG +cp System.map $PKG +cp .config $PKG/config +cp $CWD/packaging-$ARCH/kernel-generic/kernel-generic.SlackBuild $PKG +cp $CWD/packaging-$ARCH/kernel-generic/slack-desc $PKG + +cd $PKG +./kernel-generic.SlackBuild + +# Build kernel-modules +cd $TMP/$PKGNAM-$VERSION +make $NUMJOBS modules + +rm -rf $PKG +mkdir -p $PKG +make $NUMJOBS INSTALL_MOD_PATH=$PKG modules_install + +rm -f $PKG/lib/modules/$VERSION/{build,source} +ln -s /usr/src/$PKGNAM-$VERSION $PKG/lib/modules/$VERSION/build +ln -s /usr/src/$PKGNAM-$VERSION $PKG/lib/modules/$VERSION/source + +cp $CWD/packaging-$ARCH/kernel-modules/kernel-modules.SlackBuild $PKG +cp $CWD/packaging-$ARCH/kernel-modules/slack-desc $PKG +sed -i -e 's@/lib/modules/${KERNELRELEASE}@$CWD&@' $PKG/kernel-modules.SlackBuild + +cd $PKG +KERNELRELEASE=$VERSION ./kernel-modules.SlackBuild + +# Build kernel-source +cd $TMP/$PKGNAM-$VERSION +make $NUMJOBS clean +make $NUMJOBS prepare +rm .version .config.old + +rm -rf $PKG +mkdir -p $PKG/usr/src +ln -s $PKGNAM-$VERSION $PKG/usr/src/$PKGNAM +mkdir -p $PKG/install +cat $CWD/kernel-source/slack-desc > $PKG/install/slack-desc + +cd $PKG +mv $TMP/$PKGNAM-$VERSION usr/src +/sbin/makepkg -l y -c n $TMP/kernel-source-$VERSION-noarch-$BUILD.txz + +# Build kernel-firmware +exit + +cd $TMP +rm -rf $PKG +mkdir -p $PKG +cp -a $CWD/kernel-firmware $PKG +sed -i -e 's/git clone/& --depth=1/' $PKG/kernel-firmware/kernel-firmware.SlackBuild + +cd $PKG/kernel-firmware +unset VERSION +./kernel-firmware.SlackBuild diff --git a/readme.txt b/readme.txt new file mode 100644 index 0000000..d3ef128 --- /dev/null +++ b/readme.txt @@ -0,0 +1,8 @@ +This repo contains all my slackware modifications of the base install. +Additional packages are contained in RocketLinux and built in a non-standard manner. + + +This branch contains general bookkeeping information about the entire repo. + +Right now, it's populated by .TXT files, containing ideas I will later implement. +There's also a kernel.SlackBuild, which I could use to build a new, nearly-identical slackware kernel.