Re: Installation of printer driver for HP smarttank 570 (hplip-3.20.5.run/hplip-3.20.6.run)

2020-07-29 Thread Ben Elliston
Hi Jan

On Wed, Jul 29, 2020 at 12:10:52PM +, jaqu2030_pm wrote:

> The question is may be only where to include the downloaded files
> timestamped 2020-07-12 & 2020-07-10 (config.guess & config.sub) ??
> The config.guess and config.sub files from 2011-05-xx are obviously
> copied into current dir (./) from somewhere when executing
> hplip-3.20.5.run/hplip-3.20.6.run... As you see, I have included the
> downloaded files in the ./ directory and they where overwritten by
> the config files timestamped with 2011-05-xx (config.guess &
> config.sub).

I took a look at hplip-3.20.6.run. It's one of these self-extractors
made using Makeself: a shell script followed by a tarfile (in binary
form).

It looks like the shell script just runs hplip-install after
extracting the tarfile. As a starting point, I would run
hplip-3.20.6.run, let it unpack the tarfile, overwrite the
config.guess and .sub it created in the target directory it creates,
and then run hplip-install by hand.

You might also like to report this problem to the hplip maintianers so
that they may update the versions of config.guess/sub they ship.

Cheers,
Ben


signature.asc
Description: PGP signature


Installation of printer driver for HP smarttank 570 (hplip-3.20.5.run/hplip-3.20.6.run)

2020-07-29 Thread jaqu2030_pm
Hi,
I have a Raspberrypi 4B with 2 GB and installed Ubuntu server 20.04 and ubuntu 
Mate desktop 1.24.0. Swap-file is 2GB as well. See attached copy of stdout in 
terminal window(200729_cli_stdout.

I Try to install driver for HP Smarttank 570. Problem with config.guess and 
config.sub files from 2011-05-xx. New downloaded files timestamped 2020-07-12 & 
2020-07-10 are overwritten in ./ directory during startup of the script 
(hplip-3.20.5.run / hplip-3.20.6.run). See attached downloaded files from 
"https://sourceforge.net/projects/hplip/; and terminal 
stdout(200729_cli_stdout).

The question is may be only where to include the downloaded files timestamped 
2020-07-12 & 2020-07-10 (config.guess & config.sub) ?? The config.guess and 
config.sub files from 2011-05-xx are obviously copied into current dir (./) 
from somewhere when executing hplip-3.20.5.run/hplip-3.20.6.run... As you see, 
I have included the downloaded files in the ./ directory and they where 
overwritten by the config files timestamped with 2011-05-xx (config.guess & 
config.sub).

Looking forward to rapid solution/work around.

Best regards
Jan Hallquist (Norway)

200729_cli_stdout
Description: Binary data


config.guess
Description: Binary data
#! /bin/sh
# Configuration validation subroutine script.
#   Copyright 1992-2020 Free Software Foundation, Inc.

timestamp='2020-07-10'

# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see .
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that
# program.  This Exception is an additional permission under section 7
# of the GNU General Public License, version 3 ("GPLv3").


# Please send patches to .
#
# Configuration subroutine to validate and canonicalize a configuration type.
# Supply the specified configuration type as an argument.
# If it is invalid, we print an error message on stderr and exit with code 1.
# Otherwise, we print the canonical config type on stdout and succeed.

# You can get the latest version of this script from:
# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub

# This file is supposed to be the same for all GNU packages
# and recognize all the CPU types, system types and aliases
# that are meaningful with *any* GNU software.
# Each package is responsible for reporting which valid configurations
# it does not support.  The user should be able to distinguish
# a failure to support a valid configuration from a meaningless
# configuration.

# The goal of this file is to map all the various variations of a given
# machine specification into a single specification in the form:
#	CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
# or in some cases, the newer four-part form:
#	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
# It is wrong to echo any other type of specification.

me=`echo "$0" | sed -e 's,.*/,,'`

usage="\
Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS

Canonicalize a configuration name.

Options:
  -h, --help print this help, then exit
  -t, --time-stamp   print date of last modification, then exit
  -v, --version  print version number, then exit

Report bugs and patches to ."

version="\
GNU config.sub ($timestamp)

Copyright 1992-2020 Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."

help="
Try \`$me --help' for more information."

# Parse command line
while test $# -gt 0 ; do
  case $1 in
--time-stamp | --time* | -t )
   echo "$timestamp" ; exit ;;
--version | -v )
   echo "$version" ; exit ;;
--help | --h* | -h )
   echo "$usage"; exit ;;
-- ) # Stop option processing
   shift; break ;;
- )	# Use stdin as input.
   break ;;
-* )
   echo "$me: invalid option $1$help" >&2
   exit 1 ;;

*local*)
   # First pass through any local machine types.
   echo "$1"
   exit ;;

* )
   break ;;
  esac
done

case $# in
 0) echo "$me: missing argument$help" >&2
exit 1;;
 1) ;;
 *) echo "$me: too many arguments$help" >&2
exit 1;;
esac

# Split fields of configuration type
# shellcheck disable=SC2162
IFS="-" read field1 field2 field3 field4 <&2
		exit 1
		;;