SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
the "git clone git://git.code.sf.net/p/net-tools/code net-tools-code"
goes into net-tools-1.60.20160710git.tar.xz
net-tools.config.h:
Code:
/*
* config.h Automatically generated configuration includefile
*
* NET-TOOLS A collection of programs that form the base set of the
* NET-3 Networking Distribution for the LINUX operating
* system.
*
* DO NOT EDIT DIRECTLY
*
*/
/*
*
* Internationalization
*
* The net-tools package has currently been translated to French,
* German and Brazilian Portugese. Other translations are, of
* course, welcome. Answer `n' here if you have no support for
* internationalization on your system.
*
*/
#define I18N 1
/*
*
* Protocol Families.
*
*/
#define HAVE_AFUNIX 1
#define HAVE_AFINET 1
#define HAVE_AFINET6 1
#define HAVE_AFIPX 1
#define HAVE_AFATALK 1
#define HAVE_AFAX25 1
#define HAVE_AFNETROM 1
#define HAVE_AFROSE 0
#define HAVE_AFX25 1
#define HAVE_AFECONET 0
#define HAVE_AFDECnet 0
#define HAVE_AFASH 0
#define HAVE_AFBLUETOOTH 1
/*
*
* Device Hardware types.
*
*/
#define HAVE_HWETHER 1
#define HAVE_HWARC 1
#define HAVE_HWSLIP 1
#define HAVE_HWPPP 1
#define HAVE_HWTUNNEL 1
#define HAVE_HWSTRIP 0
#define HAVE_HWTR 0
#define HAVE_HWAX25 1
#define HAVE_HWROSE 0
#define HAVE_HWNETROM 1
#define HAVE_HWX25 1
#define HAVE_HWFR 1
#define HAVE_HWSIT 0
#define HAVE_HWFDDI 1
#define HAVE_HWHIPPI 1
#define HAVE_HWASH 0
#define HAVE_HWHDLCLAPB 0
#define HAVE_HWIRDA 1
#define HAVE_HWEC 0
#define HAVE_HWEUI64 1
#define HAVE_HWIB 1
/*
*
* Other Features.
*
*/
#define HAVE_FW_MASQUERADE 1
#define HAVE_IP_TOOLS 1
#define HAVE_MII 1
#define HAVE_SELINUX 0
setserial-all.diff:
Code:
diff -Nur setserial-2.17.orig/setserial.c setserial-2.17/setserial.c
--- setserial-2.17.orig/setserial.c 2000-01-27 16:40:52.000000000 +0100
+++ setserial-2.17/setserial.c 2016-08-16 22:15:20.027389477 +0200
@@ -10,6 +10,7 @@
* Last modified: [tytso:19940520.0036EDT]
*/
+#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <termios.h>
@@ -26,6 +27,9 @@
#include "version.h"
+/* http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=f53a2ade0bb9f2a81f473e6469155172a96b7c38 */
+#undef TIOCGHAYESESP
+
static char version_str[] = "setserial version " SETSERIAL_VERSION ", "
SETSERIAL_DATE;
diff -Nur setserial-2.17.orig/setserial.8.in setserial-2.17/setserial.8.in
--- setserial-2.17.orig/setserial.8.in 2000-01-27 15:58:49.000000000 +0100
+++ setserial-2.17/setserial.8.in 2016-08-17 00:46:24.365473771 +0200
@@ -40,7 +40,7 @@
.I device
argument or arguments specifies the serial device which should be configured or
interrogated. It will usually have the following form:
-.BR /dev/cua[0-3] .
+.BR /dev/ttyS[0-3] .
If no parameters are specified,
.B setserial
@@ -264,7 +264,7 @@
the closing_wait may need to be larger.
.TP
.B session_lockout
-Lock out callout port (/dev/cuaXX) accesses across different sessions.
+Lock out callout port (/dev/ttySXX) accesses across different sessions.
That is, once a process has opened a port, do not allow a process with
a different session ID to open that port until the first process has
closed it.
@@ -273,7 +273,7 @@
Do not lock out callout port accesses across different sessions.
.TP
.B pgrp_lockout
-Lock out callout port (/dev/cuaXX) accesses across different process groups.
+Lock out callout port (/dev/ttySXX) accesses across different process groups.
That is, once a process has opened a port, do not allow a process in a
different process group to open that port until the first process has
closed it.
@@ -338,10 +338,10 @@
.nf
.RS
-/dev/ttys0 (COM1), port 0x3f8, irq 4
-/dev/ttys1 (COM2), port 0x2f8, irq 3
-/dev/ttys2 (COM3), port 0x3e8, irq 4
-/dev/ttys3 (COM4), port 0x2e8, irq 3
+/dev/ttyS0 (COM1), port 0x3f8, irq 4
+/dev/ttyS1 (COM2), port 0x2f8, irq 3
+/dev/ttyS2 (COM3), port 0x3e8, irq 4
+/dev/ttyS3 (COM4), port 0x2e8, irq 3
.RE
.fi
@@ -505,7 +505,7 @@
can lock up your machine.
.SH FILES
.BR /etc/rc.local
-.BR /etc/rc.serial
+.BR /etc/rc.d/rc.serial
.SH "SEE ALSO"
.BR tty (4),
.BR ttys (4),
diff -u5raN setserial-2.17.orig/rc.serial setserial-2.17/rc.serial
--- setserial-2.17.orig/rc.serial 2000-01-27 16:47:30.000000000 +0100
+++ setserial-2.17/rc.serial 2011-02-16 07:34:55.000000000 +0100
@@ -12,12 +12,10 @@
# file with a newer one.
#
# XXXX For now, the autosave feature doesn't work if you are
# using the multiport feature; it doesn't save the multiport configuration
# (for now). Autosave also doesn't work for the hayes devices.
-# Will fix later...
-#
#
RCLOCKFILE=/var/lock/subsys/serial
DIRS="/lib/modules/`uname -r`/misc /lib/modules /usr/lib/modules ."
PATH=/bin:/sbin:/usr/bin
@@ -85,11 +83,11 @@
${SETSERIAL} -G -g ${ALLDEVS} >> /etc/.serial.conf.new
mv /etc/serial.conf /etc/.serial.conf.old
mv /etc/.serial.conf.new /etc/serial.conf
echo "done."
fi
- if test -n $MODULE ; then
+ if test -n "$MODULE" ; then
module=`grep $MODULE_REGEXP /proc/modules | awk '{print $1}'`
if test -z "$module" ; then
echo "The $DRIVER_NAME driver is not loaded."
rm -f ${RCLOCKFILE}
exit 0
@@ -106,26 +104,26 @@
#
# If not stop, it must be a start....
#
-if test -n $MODULE -a "$LOADED" != "yes" ; then
- if insmod -fm $MODULE $DRIVER_ARG \
- > /tmp/$DRIVER.map 2> /tmp/$DRIVER.$$; then :;
+if test -n "$MODULE" -a "$LOADED" != "yes" ; then
+ if insmod -f $MODULE $DRIVER_ARG ; then
+ true
else
echo "Couldn't load $DRIVER_NAME driver."
- echo "See error logs in /tmp/$DRIVER.$$"
exit 1
fi
- /bin/rm -f /tmp/$DRIVER.$$
fi
if test -f /etc/serial.conf ; then
if test -n ${SETSERIAL} ; then
grep -v ^# < /etc/serial.conf | while read device args
do
- ${SETSERIAL} -z $device $args
+ if [ ! "$device" = "" -a ! "$args" = "" ]; then
+ ${SETSERIAL} -z $device $args
+ fi
done
fi
else
echo "###AUTOSAVE###" > /etc/serial.conf
fi
... and if you have had a view into libtool-2.4.6-x86_64-4.txz package ... and into the changelog of the source u can see that these configs are gone to /usr/share/libtool/build-aux/
so i don't know how u did build yours ... but if you took the clean 14.2 install - with all packages - it will not compile cleanly ... you may need to log the compiletime messages to investigate what is going wrong ... as i did before posting these things ...
My apologies, when you said "can't be built", I assumed your build errored out. Mine did not and completed providing me a package. However, as you noted, those files are no longer there, and I did notice that in my build log.
Quote:
Originally Posted by Wiser Slacker
thats funny to read ... i just realize that the last grabed version from net tools is also "just" an git release ... lol
net-tools-1.60.20120726git.tar.xz
Yes, it was a git release, but he doesn't tend to update those unless there's a reason. It might be beneficial to provide some reasons on why a newer git release would be beneficial.
Based on your observations, it would probably be worth notifying Pat of these issues, and your suggested corrections, in the stickied "Requests for -current". While I do know he reads the forum, I don't know if he reads every topic. However, I know he, and the other Slackware devs, pays attention to that one.
No SlackBuild script contains that line. Both util-linux and net-tools don't have that. There is a file, net-tools.url, in the net-tools source folder that contains that line (commented out), probably as a reference for how that source was obtained. But it is never run in the process of building net-tools.
But, you don't have to convince me to go to a newer git revision, you have to convince Pat, and this isn't the thread to do that in.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.