Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Duda sobre Yay (Read 2946 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

 

Re: Duda sobre Yay

Reply #31
Probé con ttyecho y estoy obteniendo este error:
Code: [Select]
makepkg -si
dirname: opción inválida -- 's'
Pruebe 'dirname --help' para más información.
basename: falta un operando
Pruebe 'basename --help' para más información.

Slackware package maker, version 3.14159.

Searching for symbolic links:

No symbolic links were found, so we won't make an installation script.
You can make your own later in ./install/doinst.sh and rebuild the
package if you like.

This next step is optional - you can set the directories in your package
to some sane permissions. If any of the directories in your package have
special permissions, then DO NOT reset them here!

Would you like to reset all directory permissions to 755 (drwxr-xr-x) and
directory ownerships to root.root ([y]es, [n]o)? y

el modo de '.' permanece como 0755 (rwxr-xr-x)
el modo de './.git' permanece como 0755 (rwxr-xr-x)
el modo de './.git/logs' permanece como 0755 (rwxr-xr-x)
el modo de './.git/logs/refs' permanece como 0755 (rwxr-xr-x)
el modo de './.git/logs/refs/heads' permanece como 0755 (rwxr-xr-x)
el modo de './.git/logs/refs/remotes' permanece como 0755 (rwxr-xr-x)
el modo de './.git/logs/refs/remotes/origin' permanece como 0755 (rwxr-xr-x)
el modo de './.git/objects' permanece como 0755 (rwxr-xr-x)
el modo de './.git/objects/info' permanece como 0755 (rwxr-xr-x)
el modo de './.git/objects/pack' permanece como 0755 (rwxr-xr-x)
el modo de './.git/refs' permanece como 0755 (rwxr-xr-x)
el modo de './.git/refs/remotes' permanece como 0755 (rwxr-xr-x)
el modo de './.git/refs/remotes/origin' permanece como 0755 (rwxr-xr-x)
el modo de './.git/refs/tags' permanece como 0755 (rwxr-xr-x)
el modo de './.git/refs/heads' permanece como 0755 (rwxr-xr-x)
el modo de './.git/info' permanece como 0755 (rwxr-xr-x)
el modo de './.git/hooks' permanece como 0755 (rwxr-xr-x)
el modo de './.git/branches' permanece como 0755 (rwxr-xr-x)
chown: warning: '.' should be ':': «root.root»
el propietario de '.' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/logs' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/logs/refs' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/logs/refs/heads' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/logs/refs/remotes' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/logs/refs/remotes/origin' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/objects' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/objects/info' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/objects/pack' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/refs' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/refs/remotes' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/refs/remotes/origin' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/refs/tags' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/refs/heads' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/info' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/hooks' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/branches' permanece como root:root
Creating Slackware package:  /.tgz.tgz

./
./PKGBUILD
./.SRCINFO
./.git/
./.git/index
./.git/config
./.git/HEAD
./.git/logs/
./.git/logs/HEAD
./.git/logs/refs/
./.git/logs/refs/heads/
./.git/logs/refs/heads/master
./.git/logs/refs/remotes/
./.git/logs/refs/remotes/origin/
./.git/logs/refs/remotes/origin/HEAD
./.git/packed-refs
./.git/objects/
./.git/objects/info/
./.git/objects/pack/
./.git/objects/pack/pack-b7bb7e3eefbd950c0a0540329c9a23324bc8871f.idx
./.git/objects/pack/pack-b7bb7e3eefbd950c0a0540329c9a23324bc8871f.rev
./.git/objects/pack/pack-b7bb7e3eefbd950c0a0540329c9a23324bc8871f.pack
./.git/refs/
./.git/refs/remotes/
./.git/refs/remotes/origin/
./.git/refs/remotes/origin/HEAD
./.git/refs/tags/
./.git/refs/heads/
./.git/refs/heads/master
./.git/info/
./.git/info/exclude
./.git/hooks/
./.git/hooks/update.sample
./.git/hooks/sendemail-validate.sample
./.git/hooks/push-to-checkout.sample
./.git/hooks/prepare-commit-msg.sample
./.git/hooks/pre-receive.sample
./.git/hooks/pre-rebase.sample
./.git/hooks/pre-push.sample
./.git/hooks/pre-merge-commit.sample
./.git/hooks/pre-commit.sample
./.git/hooks/pre-applypatch.sample
./.git/hooks/post-update.sample
./.git/hooks/fsmonitor-watchman.sample
./.git/hooks/commit-msg.sample
./.git/hooks/applypatch-msg.sample
./.git/description
./.git/branches/

Slackware package /.tgz.tgz created.

Si se sabe cómo solucionarlo me gustaría saberlo.


Re: Duda sobre Yay

Reply #33
Sí, hice todos esos pasos y el problema sigue:

Dejo la salida de la ayuda de dirname, quiero saber si es correcto, y cómo actualizar dirname si es posible.
Code: [Select]
dirname --help
Modo de empleo: dirname [OPCIÓN] NOMBRE...
Muestra NOMBRE eliminando las barras finales y la última componente que no sea
una barra; si NOMBRE no tiene /'s, el resultado es '.'  (representando el
directorio actual).

  -z, --zero     termina cada línea de salida con NUL, no con nueva línea

      --help        display this help and exit
      --version     output version information and exit

Ejemplos:
  dirname /usr/bin/          -> "/usr"
  dirname dir1/str dir2/str  -> "dir1" seguido por "dir2"
  dirname stdio.h            -> "."

ayuda en línea sobre GNU coreutils: <https://www.gnu.org/software/coreutils/>
Report any translation bugs to <https://translationproject.org/team/>
Full documentation <https://www.gnu.org/software/coreutils/dirname>
or available locally via: info '(coreutils) dirname invocation'

Re: Duda sobre Yay

Reply #34
Code: [Select]
[quote author=ArtEze link=msg=38606 date=1703520566]
Sí, hice todos esos pasos y el problema sigue:
[/quote]
¿Qué respondiste a esta pregunta?
=>> Edit key-mon/PKGBUILD? [y/N]:

Re: Duda sobre Yay

Reply #35
En ningún momento recibí esa pregunta, quisiera una explicación de qué tengo que hacer, y antes que nada, cómo reparo el comando dirname.


Re: Duda sobre Yay

Reply #37
Es probable que yo me haya distraído y me haya perdido de algún paso, prestaré más atención.

Este es el código de makepkg, quisiera que corrobores si es exactamente igual al tuyo.
Code: [Select]
#!/bin/sh
# Copyright 1994, 1998, 2008  Patrick Volkerding, Moorhead, Minnesota USA
# Copyright 2003  Slackware Linux, Inc.  Concord, CA USA
# Copyright 2009  Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
#  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
#  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
#  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
#  EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
#  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
#  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
#  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
#  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
#  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# Sun Apr  5 21:23:26 CDT 2009
# Support .tgz, .tbz, .tlz, and .txz packages.  <volkerdi>
#
# Wed Mar 18 15:32:33 CST 1998
# Patched to avoid possible symlink attacks in /tmp.
# James 2013 patched to make it work with GNU tar 1.26
# James 2015 patched to make it work with faster
# James comment: I could have made it work with spaces but that willb
#                break compatibility with Slackware, so I dropped it.

CWD=$(pwd)

# choose the best awk
type busybox > /dev/null && AWK='busybox awk'
type awk > /dev/null && AWK=awk
type gawk > /dev/null && AWK=gawk
type mawk > /dev/null && AWK=mawk

TAR=tar-1.13
umask 022
$TAR --help 1> /dev/null 2> /dev/null
if [ ! $? = 0 ]; then
  TAR="tar --transform s,^./,, "
fi
<< "EOF"
if [ ! "$(LC_MESSAGES=C $TAR --version)" = "tar (GNU tar) 1.13

Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 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.

Written by John Gilmore and Jay Fenlason." ]; then
  echo "WARNING: pkgtools are unstable with tar > 1.13."
  echo "         You should provide a \"tar-1.13\" in your \$PATH."
  sleep 5
fi

make_install_script() {
  COUNT=1
  LINE="$(sed -n "$COUNT p" $1)"
  while [ ! "$LINE" = "" ]; do
   LINKGOESIN="$(echo "$LINE" | cut -f 1 -d " ")"
   LINKGOESIN="$(dirname $LINKGOESIN)"
   LINKNAMEIS="$(echo "$LINE" | cut -f 1 -d ' ')"
   LINKNAMEIS="$(basename "$LINKNAMEIS")"
   LINKPOINTSTO="$(echo "$LINE" | cut -f 3 -d ' ')"
   echo "( cd $LINKGOESIN ; rm -rf $LINKNAMEIS )"
   echo "( cd $LINKGOESIN ; ln -sf $LINKPOINTSTO $LINKNAMEIS )"
   COUNT=$(expr $COUNT + 1)
   LINE="$(sed -n "$COUNT p" $1)"
  done
}
EOF

# $1-input file
make_install_script() {
< "$1" $AWK '
{
sub(/\.\//,"");
cmd="readlink \"" $0 "\""
while ( cmd | getline link ) {
#print "|" $0 "->" link "|"
dir=$0
base=$0
sub(/^.*\//,"",base)
dir=substr(dir,1,length(dir)-length(base))
sub("/$","",dir)
if (!dir) dir="."
#print $0 " + " dir " - " base
printf("( cd %s ; rm -rf %s )\n",dir,base)
printf("( cd %s ; ln -sf %s %s )\n",dir,link,base)
#space-resistant version
#printf("( cd \"%s\" ; rm -rf \"%s\" )\n",dir,base)
#printf("( cd \"%s\" ; ln -sf \"%s\" \"%s\" )\n",dir,link,base)
}
close(cmd)
}
'
}

usage() {
  cat << EOF

Usage: makepkg package_name.tgz
       (or: package_name.tbz, package_name.tlz, package_name.txz)

Makes a Slackware compatible package containing the contents of the current
and all subdirectories.  If symbolic links exist, they will be removed and
an installation script will be made to recreate them later. This script will
be called "install/doinst.sh". You may add any of your own ash-compatible
shell scripts to this file and rebuild the package if you wish.

options:  -l, --linkadd y|n (moves symlinks into doinst.sh: recommended)
          -p, --prepend (prepend rather than append symlinks to an existing
                         doinst.sh.  Useful to link libraries needed by
                         programs in the doinst.sh script)
          -c, --chown y|n (resets all permissions to root:root 755
                           - not generally recommended)

If these options are not set, makepkg will prompt as appropriate.
EOF
}

TMP=/tmp # This can be a hole, but I'm going to be careful about file
         # creation in there, so don't panic. :^)

# Parse options
while [ 0 ]; do
  if [ "$1" = "--linkadd" -o "$1" = "-l" ]; then
    if [ "$2" = "y" ]; then
      LINKADD=y
    elif [ "$2" = "n" ]; then
      LINKADD=n
    else
      usage
      exit 2
    fi
    shift 2
  elif [ "$1" = "--chown" -o "$1" = "-c" ]; then
    if [ "$2" = "y" ]; then
      CHOWN=y
    elif [ "$2" = "n" ]; then
      CHOWN=n
    else
      usage
      exit 2
    fi
    shift 2
  elif [ "$1" = "-p" -o "$1" = "--prepend" ]; then
    PREPEND=y
    shift 1
  elif [ "$1" = "-h" -o "$1" = "-H" -o "$1" = "--help" -o $# = 0 ]; then
    usage
    exit 0
  else
    break
  fi
done

PACKAGE_NAME="$1"
TARGET_NAME="$(dirname $PACKAGE_NAME)"
PACKAGE_NAME="$(basename $PACKAGE_NAME)"

# Identify package extension:
if [ ! "$(basename $PACKAGE_NAME .tgz)" = "$PACKAGE_NAME" ]; then
  EXTENSION="tgz"
elif [ ! "$(basename $PACKAGE_NAME .tar.gz)" = "$PACKAGE_NAME" ]; then
  # .tar.compression is also supported, although the resulting "packages" will
  # not be installable by installpkg without the correct 3 letter extension
  # instead.
  EXTENSION="tar.gz"
elif [ ! "$(basename $PACKAGE_NAME .tbz)" = "$PACKAGE_NAME" ]; then
  EXTENSION="tbz"
elif [ ! "$(basename $PACKAGE_NAME .tar.bz2)" = "$PACKAGE_NAME" ]; then
  EXTENSION="tar.bz2"
elif [ ! "$(basename $PACKAGE_NAME .tlz)" = "$PACKAGE_NAME" ]; then
  EXTENSION="tlz"
elif [ ! "$(basename $PACKAGE_NAME .tar.lzma)" = "$PACKAGE_NAME" ]; then
  EXTENSION="tar.lzma"
elif [ ! "$(basename $PACKAGE_NAME .txz)" = "$PACKAGE_NAME" ]; then
  EXTENSION="txz"
elif [ ! "$(basename $PACKAGE_NAME .tar.xz)" = "$PACKAGE_NAME" ]; then
  EXTENSION="tar.xz"
else
  EXTENSION="$(echo $PACKAGE_NAME | rev | cut -f 1 -d . | rev)"
  echo "ERROR:  Package extension .$EXTENSION is not supported."
  exit 1
fi

TAR_NAME="$(basename $PACKAGE_NAME .$EXTENSION)"

# Sanity check -- we can't make the package in the current directory:
if [ "$CWD" = "$TARGET_NAME" -o "." = "$TARGET_NAME" ]; then
  echo "ERROR: Can't make output package in current directory."
  exit 2
fi

# Make sure external compression utility is available:
case $EXTENSION in
'tgz' | 'tar.gz' )
  if ! which gzip 1> /dev/null 2> /dev/null ; then
    echo "ERROR:  gzip compression utility not found in \$PATH."
    exit 3
  fi
  ;;
'tbz' | 'tar.bz2' )
  if ! which bzip2 1> /dev/null 2> /dev/null ; then
    echo "ERROR:  bzip2 compression utility not found in \$PATH."
    exit 3
  fi
  ;;
'tlz' | 'tar.lzma' )
  if ! which lzma 1> /dev/null 2> /dev/null ; then
    echo "ERROR:  lzma compression utility not found in \$PATH."
    exit 3
  fi
  ;;
'txz' | 'tar.xz' )
  if ! which xz 1> /dev/null 2> /dev/null ; then
    echo "ERROR:  xz compression utility not found in \$PATH."
    exit 3
  fi
  ;;
esac

echo
echo "Slackware package maker, version 3.14159."
echo
echo "Searching for symbolic links:"
# Get rid of possible pre-existing trouble:
INST=$(mktemp $TMP/makepkg.XXXXXX)
# This requires the ls from coreutils-5.0 (or newer):
#find . -type l -exec ls -l --time-style=long-iso {} \; | while read foo ; do echo $foo ; done | cut -f 8- -d ' ' | cut -b3- | tee $INST
find . -type l > $INST
if [ ! "$(cat $INST)" = "" ]; then
  echo
  echo "Making symbolic link creation script:"
  make_install_script $INST | tee doinst.sh
fi
echo
if [ ! "$(cat $INST)" = "" ]; then
  if [ -r install/doinst.sh ]; then
    echo "Unless your existing installation script already contains the code"
    echo "to create these links, you should append these lines to your existing"
    echo "install script. Now's your chance. :^)"
    echo
    echo "Would you like to add this stuff to the existing install script and"
    echo -n "remove the symbolic links ([y]es, [n]o)? "
  else
    echo "It is recommended that you make these lines your new installation script."
    echo
    echo "Would you like to make this stuff the install script for this package"
    echo -n "and remove the symbolic links ([y]es, [n]o)? "
  fi
  if [ ! "$LINKADD" ]; then
    read LINKADD;
    echo
  else
    echo $LINKADD
    echo
  fi
  if [ "$LINKADD" = "y" ]; then
    if [ -r install/doinst.sh ]; then
      UPDATE="t"
      if [ "$PREPEND" = "y" ]; then
        touch install/doinst.sh
        mv install/doinst.sh install/doinst.sh.shipped
        cat doinst.sh > install/doinst.sh
        echo "" >> install/doinst.sh
        cat install/doinst.sh.shipped >> install/doinst.sh
        rm -f install/doinst.sh.shipped
      else
        cat doinst.sh >> install/doinst.sh
      fi
    else
      mkdir -p install
      cat doinst.sh > install/doinst.sh
    fi
    echo
    echo "Removing symbolic links:"
    find . -type l -exec rm -v {} \;
    echo
    if [ "$UPDATE" = "t" ]; then
      if [ "$PREPEND" = "y" ]; then
        echo "Updating your ./install/doinst.sh (prepending symlinks)..."
      else
        echo "Updating your ./install/doinst.sh..."
      fi
    else
      echo "Creating your new ./install/doinst.sh..."
    fi
  fi
else
  echo "No symbolic links were found, so we won't make an installation script."
  echo "You can make your own later in ./install/doinst.sh and rebuild the"
  echo "package if you like."
fi
rm -f doinst.sh $INST
echo
echo "This next step is optional - you can set the directories in your package"
echo "to some sane permissions. If any of the directories in your package have"
echo "special permissions, then DO NOT reset them here!"
echo
echo "Would you like to reset all directory permissions to 755 (drwxr-xr-x) and"
echo -n "directory ownerships to root.root ([y]es, [n]o)? "
if [ ! "$CHOWN" ]; then
  read CHOWN;
  echo
else
  echo $CHOWN
  echo
fi
if [ "$CHOWN" = "y" ]; then
  find . -type d -exec chmod -v 755 {} \;
  find . -type d -exec chown -v root.root {} \;
fi

echo "Creating Slackware package:  ${TARGET_NAME}/${TAR_NAME}.${EXTENSION}"
echo
rm -f ${TARGET_NAME}/${TAR_NAME}.${EXTENSION}
case $EXTENSION in
'tgz' | 'tar.gz' )
  $TAR -cvf - . | gzip -9c > ${TARGET_NAME}/${TAR_NAME}.${EXTENSION}
  ERRCODE=$?
  if [ ! $? = 0 ]; then
    echo "ERROR:  gzip returned error code $? -- makepkg failed."
  fi
  ;;
'tbz' | 'tar.bz2' )
  $TAR -cvf - . | bzip2 -9c > ${TARGET_NAME}/${TAR_NAME}.${EXTENSION}
  ERRCODE=$?
  if [ ! $ERRCODE = 0 ]; then
    echo "ERROR:  bzip2 returned error code $ERRCODE -- makepkg failed."
  fi
  ;;
'tlz' | 'tar.lzma' )
  $TAR -cvf - . | lzma -c > ${TARGET_NAME}/${TAR_NAME}.${EXTENSION}
  ERRCODE=$?
  if [ ! $ERRCODE = 0 ]; then
    echo "ERROR:  lzma returned error code $ERRCODE -- makepkg failed."
  fi
  ;;
'txz' | 'tar.xz' )
  $TAR -cvf - . | xz -c > ${TARGET_NAME}/${TAR_NAME}.${EXTENSION}
  ERRCODE=$?
  if [ ! $ERRCODE = 0 ]; then
    echo "ERROR:  xz returned error code $ERRCODE -- makepkg failed."
  fi
  ;;
esac

# Warn of zero-length files:
find . -type f -size 0c | while read file ; do
  echo "WARNING:  zero length file $(echo $file | cut -b3-)"
done

# Warn of corrupt or empty gzip files:
find . -type f -name '*.gz' | while read file ; do
  if ! gzip -t $file 1> /dev/null 2> /dev/null ; then
    echo "WARNING:  gzip test failed on $(echo $file | cut -b3-)"
  else
    if [ "$(gzip -l $file | tail -n 1 | tr -s ' ' | cut -f 3 -d ' ')" -eq 0 ]; then
      echo "WARNING:  $(echo $file | cut -b3-) is an empty gzipped file"
    fi
  fi
done

# Some more handy warnings:
if [ -d usr/share/man ]; then
  echo "WARNING:  /usr/share/man (with possibly not gzipped man pages) detected"
fi

if [ -d usr/share/info ]; then
  echo "WARNING:  /usr/share/info (with possibly not gzipped info pages) detected"
fi

if find . | grep site_perl 1> /dev/null ; then
  echo "WARNING:  site_perl directory detected (this is fine for a local package build)"
fi

echo
echo "Slackware package ${TARGET_NAME}/${TAR_NAME}.${EXTENSION} created."
echo

Re: Duda sobre Yay

Reply #38
Acabo de ver que el código que dio ####### es incorrecto, no hay que hacer makepkg -si porque eso le pasa la s a dirname.

Ejemplo de test rápido:
Code: [Select]
$ cd /tmp
$ git clone https://aur.archlinux.org/ttyecho-git.git
$ cd ttyecho-git
$ makepkg -si
$ ttyecho --help

Re: Duda sobre Yay

Reply #39
Aquí está el procedimiento completo (en francés):
Spoiler (click to show/hide)

Re: Duda sobre Yay

Reply #40
Respecto a la pregunta de si quiero editar el archivo, probé otra vez y le dije que no, no quiero editar el archivo.

Esta es la salida que estoy obteniendo:

Code: [Select]
 /initrd/mnt/tmpfs/tmp/ttyecho-git 
trizen ttyecho
1 aur/ttyecho-git r2.beb3ecc-1 [0+] [0.00%] [24 Jul 2016]
    Send commands or data to other terminals.

=>> Select packages to install
> 1
:: Cloning AUR package: ttyecho-git

--------------------------------------------------------------------------------
:: Content of /initrd/mnt/dev_save/root/.cache/trizen/sources/ttyecho-git/PKGBUILD
--------------------------------------------------------------------------------

# Maintainer: OSO <[email protected]>
pkgname=ttyecho-git
pkgver=r2.beb3ecc
pkgrel=1
pkgdesc="Send commands or data to other terminals."
arch=('any')
url="https://github.com/osospeed/ttyecho.git"
makedepends=('git')
sha1sums=('SKIP')

source=("$pkgname"::"git+${url}")

pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/$pkgname"
  make
}

package() {
  cd "$srcdir/$pkgname"
  make DESTDIR="${pkgdir}/usr/bin/" install
}

=>> Edit ttyecho-git/PKGBUILD? [y/N]:

dirname: unrecognized option '--printsrcinfo'
Pruebe 'dirname --help' para más información.
basename: unrecognized option '--printsrcinfo'
Pruebe 'basename --help' para más información.

./
./PKGBUILD
./.git/
./.git/hooks/
./.git/hooks/pre-merge-commit.sample
./.git/hooks/sendemail-validate.sample
./.git/hooks/applypatch-msg.sample
./.git/hooks/fsmonitor-watchman.sample
./.git/hooks/post-update.sample
./.git/hooks/commit-msg.sample
./.git/hooks/pre-receive.sample
./.git/hooks/pre-commit.sample
./.git/hooks/update.sample
./.git/hooks/pre-rebase.sample
./.git/hooks/pre-applypatch.sample
./.git/hooks/push-to-checkout.sample
./.git/hooks/pre-push.sample
./.git/hooks/prepare-commit-msg.sample
./.git/refs/
./.git/refs/heads/
./.git/refs/heads/master
./.git/refs/remotes/
./.git/refs/remotes/origin/
./.git/refs/remotes/origin/HEAD
./.git/refs/tags/
./.git/objects/
./.git/objects/pack/
./.git/objects/pack/pack-b7bb7e3eefbd950c0a0540329c9a23324bc8871f.idx
./.git/objects/pack/pack-b7bb7e3eefbd950c0a0540329c9a23324bc8871f.rev
./.git/objects/pack/pack-b7bb7e3eefbd950c0a0540329c9a23324bc8871f.pack
./.git/objects/info/
./.git/index
./.git/logs/
./.git/logs/refs/
./.git/logs/refs/heads/
./.git/logs/refs/heads/master
./.git/logs/refs/remotes/
./.git/logs/refs/remotes/origin/
./.git/logs/refs/remotes/origin/HEAD
./.git/logs/HEAD
./.git/config
./.git/HEAD
./.git/packed-refs
./.git/branches/
./.git/description
./.git/info/
./.git/info/exclude
./.SRCINFO
Repository      : AUR
Name            : ttyecho-git
Version         : r2.beb3ecc-1
Maintainer      : osospeed
URL             : https://github.com/osospeed/ttyecho.git
AUR URL         : https://aur.archlinux.org/packages/ttyecho-git
License         : None
Votes           : 0
Popularity      : 0%
Installed       : No
Out Of Date     : No
Depends On      : None
Make Deps       : None
Check Deps      : None
Optional Deps   : None
Provides        : None
Conflicts With  : None
Replaces        : None
Package Base    : ttyecho-git
Last Update     : Sun Jul 24 21:56:53 2016
Description     : Send commands or data to other terminals.

dirname -scf
dirname: opción inválida -- 's'
Pruebe 'dirname --help' para más información.
basename: falta un operando
Pruebe 'basename --help' para más información.

Slackware package maker, version 3.14159.

Searching for symbolic links:

No symbolic links were found, so we won't make an installation script.
You can make your own later in ./install/doinst.sh and rebuild the
package if you like.

This next step is optional - you can set the directories in your package
to some sane permissions. If any of the directories in your package have
special permissions, then DO NOT reset them here!

Would you like to reset all directory permissions to 755 (drwxr-xr-x) and
directory ownerships to root.root ([y]es, [n]o)? y

el modo de '.' permanece como 0755 (rwxr-xr-x)
el modo de './.git' permanece como 0755 (rwxr-xr-x)
el modo de './.git/hooks' permanece como 0755 (rwxr-xr-x)
el modo de './.git/refs' permanece como 0755 (rwxr-xr-x)
el modo de './.git/refs/heads' permanece como 0755 (rwxr-xr-x)
el modo de './.git/refs/remotes' permanece como 0755 (rwxr-xr-x)
el modo de './.git/refs/remotes/origin' permanece como 0755 (rwxr-xr-x)
el modo de './.git/refs/tags' permanece como 0755 (rwxr-xr-x)
el modo de './.git/objects' permanece como 0755 (rwxr-xr-x)
el modo de './.git/objects/pack' permanece como 0755 (rwxr-xr-x)
el modo de './.git/objects/info' permanece como 0755 (rwxr-xr-x)
el modo de './.git/logs' permanece como 0755 (rwxr-xr-x)
el modo de './.git/logs/refs' permanece como 0755 (rwxr-xr-x)
el modo de './.git/logs/refs/heads' permanece como 0755 (rwxr-xr-x)
el modo de './.git/logs/refs/remotes' permanece como 0755 (rwxr-xr-x)
el modo de './.git/logs/refs/remotes/origin' permanece como 0755 (rwxr-xr-x)
el modo de './.git/branches' permanece como 0755 (rwxr-xr-x)
el modo de './.git/info' permanece como 0755 (rwxr-xr-x)
chown: warning: '.' should be ':': «root.root»
el propietario de '.' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/hooks' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/refs' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/refs/heads' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/refs/remotes' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/refs/remotes/origin' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/refs/tags' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/objects' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/objects/pack' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/objects/info' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/logs' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/logs/refs' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/logs/refs/heads' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/logs/refs/remotes' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/logs/refs/remotes/origin' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/branches' permanece como root:root
chown: warning: '.' should be ':': «root.root»
el propietario de './.git/info' permanece como root:root
Creating Slackware package:  /.tgz.tgz

./
./PKGBUILD
./.git/
./.git/hooks/
./.git/hooks/pre-merge-commit.sample
./.git/hooks/sendemail-validate.sample
./.git/hooks/applypatch-msg.sample
./.git/hooks/fsmonitor-watchman.sample
./.git/hooks/post-update.sample
./.git/hooks/commit-msg.sample
./.git/hooks/pre-receive.sample
./.git/hooks/pre-commit.sample
./.git/hooks/update.sample
./.git/hooks/pre-rebase.sample
./.git/hooks/pre-applypatch.sample
./.git/hooks/push-to-checkout.sample
./.git/hooks/pre-push.sample
./.git/hooks/prepare-commit-msg.sample
./.git/refs/
./.git/refs/heads/
./.git/refs/heads/master
./.git/refs/remotes/
./.git/refs/remotes/origin/
./.git/refs/remotes/origin/HEAD
./.git/refs/tags/
./.git/objects/
./.git/objects/pack/
./.git/objects/pack/pack-b7bb7e3eefbd950c0a0540329c9a23324bc8871f.idx
./.git/objects/pack/pack-b7bb7e3eefbd950c0a0540329c9a23324bc8871f.rev
./.git/objects/pack/pack-b7bb7e3eefbd950c0a0540329c9a23324bc8871f.pack
./.git/objects/info/
./.git/index
./.git/logs/
./.git/logs/refs/
./.git/logs/refs/heads/
./.git/logs/refs/heads/master
./.git/logs/refs/remotes/
./.git/logs/refs/remotes/origin/
./.git/logs/refs/remotes/origin/HEAD
./.git/logs/HEAD
./.git/config
./.git/HEAD
./.git/packed-refs
./.git/branches/
./.git/description
./.git/info/
./.git/info/exclude
./.SRCINFO

Slackware package /.tgz.tgz created.

dirname: unrecognized option '--packagelist'
Pruebe 'dirname --help' para más información.
basename: unrecognized option '--packagelist'
Pruebe 'basename --help' para más información.

./
./PKGBUILD
./.git/
./.git/hooks/
./.git/hooks/pre-merge-commit.sample
./.git/hooks/sendemail-validate.sample
./.git/hooks/applypatch-msg.sample
./.git/hooks/fsmonitor-watchman.sample
./.git/hooks/post-update.sample
./.git/hooks/commit-msg.sample
./.git/hooks/pre-receive.sample
./.git/hooks/pre-commit.sample
./.git/hooks/update.sample
./.git/hooks/pre-rebase.sample
./.git/hooks/pre-applypatch.sample
./.git/hooks/push-to-checkout.sample
./.git/hooks/pre-push.sample
./.git/hooks/prepare-commit-msg.sample
./.git/refs/
./.git/refs/heads/
./.git/refs/heads/master
./.git/refs/remotes/
./.git/refs/remotes/origin/
./.git/refs/remotes/origin/HEAD
./.git/refs/tags/
./.git/objects/
./.git/objects/pack/
./.git/objects/pack/pack-b7bb7e3eefbd950c0a0540329c9a23324bc8871f.idx
./.git/objects/pack/pack-b7bb7e3eefbd950c0a0540329c9a23324bc8871f.rev
./.git/objects/pack/pack-b7bb7e3eefbd950c0a0540329c9a23324bc8871f.pack
./.git/objects/info/
./.git/index
./.git/logs/
./.git/logs/refs/
./.git/logs/refs/heads/
./.git/logs/refs/heads/master
./.git/logs/refs/remotes/
./.git/logs/refs/remotes/origin/
./.git/logs/refs/remotes/origin/HEAD
./.git/logs/HEAD
./.git/config
./.git/HEAD
./.git/packed-refs
./.git/branches/
./.git/description
./.git/info/
./.git/info/exclude
./.SRCINFO
:: Unable to find a built tarball for ttyecho-git
[/]

Re: Duda sobre Yay

Reply #41
Pienso que es imposible resolverlo, ¿Hay alguna alternativa a trizen?

Re: Duda sobre Yay

Reply #42
Ya lo solucioné, tuve que reinstalar pacman y trizen... Solo tengo problema en el último paso.

Tengo esta salida:

Code: [Select]
1 aur/ttyecho-git r2.beb3ecc-1 [installed] [0+] [0.00%] [24 Jul 2016]
    Send commands or data to other terminals.

=>> Select packages to install
> 1
:: Pulling AUR changes: ttyecho-git

--------------------------------------------------------------------------------
:: Content of /home/spot/.cache/trizen/sources/ttyecho-git/PKGBUILD
--------------------------------------------------------------------------------

# Maintainer: OSO <[email protected]>
pkgname=ttyecho-git
pkgver=r2.beb3ecc
pkgrel=1
pkgdesc="Send commands or data to other terminals."
arch=('any')
url="https://github.com/osospeed/ttyecho.git"
makedepends=('git')
sha1sums=('SKIP')

source=("$pkgname"::"git+${url}")

pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/$pkgname"
  make
}

package() {
  cd "$srcdir/$pkgname"
  make DESTDIR="${pkgdir}/usr/bin/" install
}

=>> Edit ttyecho-git/PKGBUILD? [y/N]:

Repository      : AUR
Name            : ttyecho-git
Version         : r2.beb3ecc-1
Maintainer      : osospeed
URL             : https://github.com/osospeed/ttyecho.git
AUR URL         : https://aur.archlinux.org/packages/ttyecho-git
License         : None
Votes           : 0
Popularity      : 0%
Installed       : Yes
Out Of Date     : No
Depends On      : None
Make Deps       : git
Check Deps      : None
Optional Deps   : None
Provides        : None
Conflicts With  : None
Replaces        : None
Package Base    : ttyecho-git
Last Update     : Sun Jul 24 21:56:53 2016
Description     : Send commands or data to other terminals.

:: makepkg_command /usr/bin/makepkg -scf
==> Making package: ttyecho-git r2.beb3ecc-1 (lun 25 dic 2023 15:55:56)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating ttyecho-git git repo...
==> Validating source files with sha1sums...
    ttyecho-git ... Skipped
==> Extracting sources...
  -> Creating working copy of ttyecho-git git repo...
Clonando en 'ttyecho-git'...
hecho.
==> Starting pkgver()...
==> Starting build()...
gcc  -o ttyecho ttyecho.c
==> Entering fakeroot environment...
==> Starting package()...
mkdir -p /home/spot/.cache/trizen/sources/ttyecho-git/pkg/ttyecho-git/usr/bin/
install -m 0755 ttyecho -t /home/spot/.cache/trizen/sources/ttyecho-git/pkg/ttyecho-git/usr/bin/
==> Tidying install...
  -> Purging unwanted files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "ttyecho-git"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: ttyecho-git r2.beb3ecc-1 (lun 25 dic 2023 15:56:05)
==> Cleaning up...
:: Pacman command: /usr/bin/sudo /usr/bin/pacman /home/spot/.cache/trizen/sources/ttyecho-git/ttyecho-git-r2.beb3ecc-1-any.pkg.tar.gz -U

Confiamos que haya recibido la charla habitual del administrador
de sistema local. Por lo general se reduce a estas tres cosas:

    #1) Respeta la privacidad de otros.
    #2) Piensa antes de escribir.
    #3) Un gran poder conlleva una gran responsabilidad.

For security reasons, the password you type will not be visible.

sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required
=>> Try again? [Y/n]:

Re: Duda sobre Yay

Reply #43
Ya lo solucioné. Solo quité estas líneas de código de /usr/bin/makepkg:

Code: [Select]
if (( ! INFAKEROOT )); then
if (( EUID == 0 )); then
error "$(gettext "Running %s as root is not allowed as it can cause permanent,\n\
catastrophic damage to your system.")" "makepkg"
exit $E_ROOT
fi
else
if [[ -z $FAKEROOTKEY ]]; then
error "$(gettext "Do not use the %s option. This option is only for internal use by %s.")" "'-F'" "makepkg"
exit $E_INVALID_OPTION
fi
fi

Re: Duda sobre Yay

Reply #44
Enhorabuena por haber conseguido que las cosas funcionen, es una noticia maravillosa, pero debo señalar que los comandos que escribí funcionan perfectamente en Artix, tuve la precaución de probarlos antes de publicar ese consejo. Sin embargo, ten en cuenta que $ significa "no como root" y # significa "como root" - por ejemplo, usando su , sudo o doas. Si ha ejecutado alguna de estas cosas como root cuando no debería, podría entonces desordenar la propiedad y los permisos de los archivos y directorios creados, causando así futuros problemas continuos. Y no estoy seguro de cómo funcionarán los mecanismos de escalada de privilegios si no tienes ni sudo ni doas, no lo he probado personalmente. Tambien el "makepkg" al que me refiero es el makepkg de Arch Linux, parte del paquete pacman, y no el comando makepkg de Slackware al que te refieres.