LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Closed Thread
  Search this Thread
Old 10-18-2017, 12:57 AM   #3031
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,215

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001

xfce4-notifyd-0.4.0:

https://git.xfce.org/apps/xfce4-notifyd/tree/NEWS
http://archive.xfce.org/src/apps/xfc...-0.4.0.tar.bz2
 
Old 10-19-2017, 12:26 AM   #3032
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Original Poster
Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
Originally Posted by allend View Post
This is cool!
I suggest a patch to the lookkernel() function in the /usr/libexec/slackpkg/functions.d/post-functions.sh in slackpkg that will prompt a generic kernel user to update their initrd before the prompt to run lilo when the kernel is upgraded.
Code:
--- lookkernel	2017-10-14 01:58:41.754972512 +1100
+++ lookkernel.new	2017-10-14 02:02:00.990952059 +1100
@@ -1,6 +1,21 @@
 lookkernel() {
         NEWKERNELMD5=$(md5sum /boot/vmlinuz 2>/dev/null)
         if [ "$KERNELMD5" != "$NEWKERNELMD5" ]; then
+                if $(readlink /boot/vmlinuz | grep -q generic); then
+                       echo -e "\n
+Your kernel image was updated to a generic kernel. You need a new initrd."
+                        NEWKERNELVERSION=$(readlink /boot/vmlinuz | sed 's/.*-\([1-9]\)/\1/')
+                        if [ -d /lib/modules/$NEWKERNELVERSION ] && [ -f /boot/initrd-tree/command_line ]; then
+                               MKINITRD_CMD=$(sed 's/-k *[^ ]\+/-k '$NEWKERNELVERSION'/' /boot/initrd-tree/command_line)
+                               echo -e "\n
+$MKINITRD_CMD
+Do you want slackpkg to run the above command? (Y/n)"
+                               answer
+                               if [ "$ANSWER" != "n" ] && [ "$ANSWER" != "N" ]; then
+                                        $MKINITRD_CMD
+                               fi
+                        fi
+                fi
                 if [ -x /sbin/lilo ]; then
                         echo -e "\n
 Your kernel image was updated.  We highly recommend you run: lilo
Also, while slackpkg is getting some love, perhaps another patch to /usr/libexec/slackpkg/functions.d/post-functions.sh in slackpkg that will allow the use of vimdiff when handling .new files.
Code:
--- runvimdiff	2017-10-14 02:40:20.459715999 +1100
+++ runvimdiff.new	2017-10-14 02:34:44.424750496 +1100
@@ -1,3 +1,15 @@
+runvimdiff() {
+	BASENAME=$(basename $i .new)
+	FILEPATH=$(dirname $i)
+	FULLNAME="${FILEPATH}/${BASENAME}"
+
+	if [ -e ${FULLNAME} ]; then
+	    vimdiff ${FULLNAME} ${FULLNAME}.new
+	else
+	    echo "file $FULLNAME doesn't exist"
+	fi
+}
+
 looknew() {
 
 	# with ONLY_NEW_DOTNEW set, slackpkg will search only for
@@ -53,7 +65,7 @@
 					GOEX=0
 					while [ $GOEX -eq 0 ]; do
 						echo
-						showmenu $i "(K)eep" "(O)verwrite" "(R)emove" "(D)iff" "(M)erge"
+						showmenu $i "(K)eep" "(O)verwrite" "(R)emove" "(D)iff" "(M)erge" "(V)imdiff [dp put, do obtain, ^W^W switch]"
 						read ANSWER
 						case $ANSWER in
 							O|o)
@@ -70,6 +82,9 @@
 							M|m)
 								mergenew $1
 							;;
+							V|v)
+								runvimdiff $1
+							;;
 							K|k|*)
 								GOEX=1
 							;;
Okay, so I'm on the fence about the bootloader patch, but maybe.
However, I like the vimdiff one - if you will regenerate it against the present slackpkg source file and email it to me, I'll definitely look into applying that for the next release.
 
Old 10-19-2017, 06:58 AM   #3033
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,215

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001
libinput-1.9.0:

(need meson, ninja)
https://www.freedesktop.org/software...t-1.9.0.tar.xz

ModemManager-1.6.10
https://www.freedesktop.org/software...-1.6.10.tar.xz
 
Old 10-19-2017, 06:59 AM   #3034
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,372

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Quote:
Okay, so I'm on the fence about the bootloader patch, but maybe.
If anybody wants this, they can simply create an executable file /usr/libexec/slackpkg/functions.d/runmkinitrd.sh containing
Code:
lookkernel() {
        NEWKERNELMD5=$(md5sum /boot/vmlinuz 2>/dev/null)
        if [ "$KERNELMD5" != "$NEWKERNELMD5" ]; then
                if $(readlink /boot/vmlinuz | grep -q generic); then
                       echo -e "\n
Your kernel image was updated to a generic kernel. You need a new initrd."
                        NEWKERNELVERSION=$(readlink /boot/vmlinuz | sed 's/.*-\([1-9]\)/\1/')
                        if [ -d /lib/modules/$NEWKERNELVERSION ] && [ -f /boot/initrd-tree/command_line ]; then
                               MKINITRD_CMD=$(sed 's/-k *[^ ]\+/-k '$NEWKERNELVERSION'/' /boot/initrd-tree/command_line)
                               if [ grep -q -- -F /boot/initrd-tree/command_line ] \
                                   && [ ! grep -q -- -k /boot/initrd-tree/command_line ]; then
                                       MKINITRD_CMD=$(sed 's/-F/-F -k '$NEWKERNELVERSION'/' /boot/initrd-tree/command_line)
                               fi
                               echo -e "\n
$MKINITRD_CMD
Do you want slackpkg to run the above command? (Y/n)"
                               answer
                               if [ "$ANSWER" != "n" ] && [ "$ANSWER" != "N" ]; then
                                        $MKINITRD_CMD
                               fi
                        fi
                fi
                if [ -x /sbin/lilo ]; then
                        echo -e "\n
Your kernel image was updated.  We highly recommend you run: lilo
Do you want slackpkg to run lilo now? (Y/n)"
                        answer
                        if [ "$ANSWER" != "n" ] && [ "$ANSWER" != "N" ]; then
                                /sbin/lilo
                        fi
                else
                        echo -e "\n
Your kernel image was updated and lilo is not found on your system.
You may need to adjust your boot manager (like GRUB) to boot appropriate
kernel."
                fi
        fi
}
and the original lookkernel() function will be replaced when /usr/sbin/slackpkg is run due to
Code:
#========================================================================
#
# READ EXTRA FUNCTIONS 
#

# If you want a new function or need a rewrite of an existing
# feature, you can put your new function in a shell script under
# /usr/libexec/slackpkg/functions.d/
#
# Remember - the new function scripts need to be executable
#
for i in /usr/libexec/slackpkg/functions.d/*.sh; do
        if [ -x $i ]; then
                . $i
        fi
done
The only trick is to ensure that the file is named so that it lexicographically sorts after the file containing the original code.
Quote:
However, I like the vimdiff one - if you will regenerate it against the present slackpkg source file and email it to me, I'll definitely look into applying that for the next release.
Should be in your inbox at slackware,com.

Last edited by allend; 10-19-2017 at 08:52 PM.
 
1 members found this post helpful.
Old 10-19-2017, 07:56 AM   #3035
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,372

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Quote:
Okay, so I'm on the fence about the bootloader patch, but maybe.
Forgot to mention. Your reservation on the booloader patch is well founded. I have realised that the patch can fail if the user last made the initrd using 'mkinitrd -F'. The command_line file does not retain the kernel version in this case. If /etc/mkinitrd.conf sets an incorrect KERNEL_VERSION, that does not match the incoming kernel version, then running 'mkinitrd -F' will result in problems.

[EDIT]I have slept on this and have added code to the lookkernel() function in post#3034 to perform an additional check and add the -k option to override the settings in /etc/mkinitrd.conf[/EDIT]

Last edited by allend; 10-19-2017 at 08:12 PM.
 
Old 10-19-2017, 09:37 AM   #3036
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,215

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001
Quote:
Originally Posted by gmgf View Post
I'm not a specialist, but it works (for libinput)

mkdir -p build
cd build
meson setup \
--prefix=/usr \
--libdir=lib${LIBDIRSUFFIX} \
--libexecdir /usr/libexec \
--bindir /usr/bin \
--sbindir /usr/sbin \
--includedir /usr/include \
--datadir /usr/share \
--mandir /usr/man \
--sysconfdir /etc \
--localstatedir /var \
--buildtype=release \
-Dudev-dir=/lib \
-Dtests=false \
../

ninja
DESTDIR=$PKG ninja install

cd ..
 
Old 10-19-2017, 10:35 AM   #3037
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,215

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001
util-linux-2.31:

(The package build-system follows GNU Coding Standards and uses --runstatedir
instead of --localstatedir. The default is /run. Please, review your distribution
build scripts (spec files etc.) to be sure that this change does not introduce
any regression to your distribution)

CVE-2016-2779 fix

https://www.kernel.org/pub/linux/uti...1-ReleaseNotes
https://www.kernel.org/pub/linux/uti...ux-2.31.tar.xz

Last edited by gmgf; 10-19-2017 at 11:30 AM.
 
Old 10-19-2017, 11:07 AM   #3038
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,215

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001
Package bash-completion contain /usr/share/bash-completion/completions/mount, this file is also present in the utils-linux package,

if you update util-linux (2.31) it probably contain /usr/share/bash-completion/completions/rfkill, this file will be probably present in the new util-linux-2.31, and also in the bash-completion package.

also /usr/share/bash-completion/completions/umount is present in this two packages

Last edited by gmgf; 10-20-2017 at 06:29 AM.
 
Old 10-19-2017, 11:38 AM   #3039
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,215

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001
mesa-17.2.3:

https://www.mesa3d.org/relnotes/17.2.3.html
ftp://ftp.freedesktop.org/pub/mesa/mesa-17.2.3.tar.xz
 
Old 10-20-2017, 02:00 AM   #3040
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,215

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001
libXfont-1.5.3:

ftp://ftp.x.org/pub/individual/lib/l...t-1.5.3.tar.gz


just for info:
scons-3.0.0 (production version,):

https://bitbucket.org/scons/scons/sr...e-view-default
http://scons.org/pages/download.html
http://prdownloads.sourceforge.net/s...s-3.0.0.tar.gz
 
Old 10-20-2017, 01:09 PM   #3041
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,215

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001
atk-2.26.1:

http://ftp.gnome.org/pub/gnome/sourc...tk-2.26.1.news
http://ftp.gnome.org/pub/gnome/sourc...-2.26.1.tar.xz

lxc-2.1.1:

https://linuxcontainers.org/download...c-2.1.1.tar.gz

expect-5.45.3:

https://sourceforge.net/projects/exp...Expect/5.45.3/
 
1 members found this post helpful.
Old 10-20-2017, 01:55 PM   #3042
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
This fixes a meson build. Not sure it matters for Slackware (yet). Expect others to come. For instance see this post.

Last edited by Didier Spaier; 10-20-2017 at 02:09 PM.
 
Old 10-20-2017, 03:21 PM   #3043
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,215

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001
Quote:
Originally Posted by Didier Spaier View Post
This fixes a meson build. Not sure it matters for Slackware (yet). Expect others to come. For instance see this post.
meson is include in slackware-current now
 
Old 10-20-2017, 03:26 PM   #3044
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
It looks like they've removed schroedinger from ffmpeg-3.4 because "yes" to enabling it generates an error:
Code:
ffmpeg-3.4/CONTRIBUTING.md
Unknown option "--enable-libschroedinger".
See ./configure --help for available options.
 
Old 10-20-2017, 08:59 PM   #3045
Pixxt
Member
 
Registered: May 2008
Distribution: Slackware, Debian,
Posts: 284

Rep: Reputation: 185Reputation: 185
Quote:
Originally Posted by RadicalDreamer View Post
It looks like they've removed schroedinger from ffmpeg-3.4 because "yes" to enabling it generates an error:
Code:
ffmpeg-3.4/CONTRIBUTING.md
Unknown option "--enable-libschroedinger".
See ./configure --help for available options.
looks like it https://github.com/FFmpeg/FFmpeg/blob/master/Changelog

Last edited by Pixxt; 10-20-2017 at 09:01 PM.
 
1 members found this post helpful.
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how to show the current time at the top in the current shell Always ? rohitchauhan Linux - General 5 04-09-2014 03:05 PM
Slackware ARM (current) epic mistake: the current Android kernels are kicked out! Darth Vader Slackware 16 08-25-2013 04:36 PM
[SOLVED] setup fails on most current Slackware-current March 26, 2012 AlleyTrotter Slackware 15 04-09-2012 06:05 AM
Observation of Feb -current vs March -current Hangaber Slackware 14 03-12-2010 08:26 AM
cvs diff the most current and second last current version powah Linux - Software 1 03-30-2006 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration