Package Update error for hplip-plugin

In response to an “Updates Available” notice updating hplip-piugin from version 3.23.12-1 to version 3.23.12-2 aborts and supplies the following I error: Trouble shooting and resolution is way above my pay grade.

Preparing...
Synchronizing package databases...
Refreshing AUR...
Cloning hplip-plugin build files...
Generating hplip-plugin information...
Checking hplip-plugin dependencies...
Resolving dependencies...
Checking inter-conflicts...
Edit hplip-plugin build files
Cloning hplip-plugin build files...
Generating hplip-plugin information...
Checking hplip-plugin dependencies...
Resolving dependencies...
Checking inter-conflicts...
Building hplip-plugin...
==> Making package: hplip-plugin 3.23.12-2 (Mon 22 Jan 2024 11:44:45 AM CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found hplip-3.23.12-plugin.run
-> Found hplip-3.23.12-plugin.run.asc
==> Validating source files with sha256sums...
hplip-3.23.12-plugin.run ... Passed
hplip-3.23.12-plugin.run.asc ... Skipped
==> Verifying source file signatures with gpg...
hplip-3.23.12-plugin.run ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
==> Starting prepare()...
xfce4-terminal: Unknown option "-title"
==> ERROR: A failure occurred in prepare().
Aborting.

Thanks in advance for assisting.
John


mod. edit for better readability

This looks like a package from AUR, right?

What command you used to update?

:arrow_right: Generally, dont’t abbreviate the output, we need the full picture from command to error message.

It’s an AUR package, so ask maintainer.

Hplip on stable branch is 3.23.12-1.
You did not pay attention with AUR, the plugin version needs to be the same as hplip. Look out if the matching version is still cached. Otherwise pull from HP

Can’t reproduce. It appears to be something on your end related to xfce-terminal or something in your .bashrc / .zshrc.

==> Starting prepare()...
Creating directory /mnt/storage/pkgbuilds/hplip-plugin/src/hplip-3.23.12-plugin
Verifying archive integrity...  100%   All good.
Uncompressing HPLIP 3.23.12 Plugin Self Extracting Archive  100%

This is from AUR. This update from the Add/Remove software in response to Updates Available prompt.

The entire error message follows.

Preparing...
Synchronizing package databases...
Refreshing AUR...
Cloning hplip-plugin build files...
Generating hplip-plugin information...
Checking hplip-plugin dependencies...
Resolving dependencies...
Checking inter-conflicts...

Building hplip-plugin...
==> Making package: hplip-plugin 3.23.12-2 (Tue 23 Jan 2024 05:40:42 PM CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found hplip-3.23.12-plugin.run
  -> Found hplip-3.23.12-plugin.run.asc
==> Validating source files with sha256sums...
    hplip-3.23.12-plugin.run ... Passed
    hplip-3.23.12-plugin.run.asc ... Skipped
==> Verifying source file signatures with gpg...
    hplip-3.23.12-plugin.run ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
==> Starting prepare()...
xfce4-terminal: Unknown option "-title"
==> ERROR: A failure occurred in prepare().
    Aborting...

John


Moderator edit: In the future, please use proper formatting: [HowTo] Post command output and file content as formatted text

This is your problem … and it is not coming from the package manage or the PKGBUILD.

Is still good advice, at least to check first.

ex;

grep title ~/.bashrc

or

grep title ~/.zshrc

PS.
It happens during the prepare portion . which in that PKGBUILD correlates to

  sh "hplip-$pkgver-plugin.run" --target "$srcdir/hplip-$pkgver-plugin" --noexec

so Im even further convinced it is in your shells configuration files and is being produced when sh is invoked.

1 Like

I’m a Manjaro newbie. Any guidance in further trouble shooting help.
Should I delete xfce-terminal and reinstall? How would I delete and reinstall the terminal?

I would not recognize any error or oddity in my .bashrc/.zshrc file. What would a proper version of the .bashrc/.zshrc look like?

Thanks
John

No, that wouldnt do anything for you.
(By design the package manager will not touch files in your $HOME, which we think is the likely source of this problem.)

But we would. Share it here.
The 2 commands above would explicitly search for ‘title’ in whichever rc file you have.

(.zshrc for users of zsh, .bashrc for users of bash)

Opened a terminal; to execute grep title ~/.bashrc

grep title of bashrc

The file hplip-$pkgver-plugin.run contains the line

exec $XTERM -title "$label" -e "$0" --xwin "$initargs"

So my guess is that it is not an issue on the user side. Instead, the .run file is trying to start a terminal with the option -title. But common terminals such as xfce4-terminal and konsole do not support that option (xfce4-terminal would accept -T or --title apparently).

1 Like

Ah, I didnt look at the run file. :sweat_smile:

I’m coming back for more assistance. I have been unable to contact the maintainer for the package
lip-plugin 3.23.12-3. The packager is unknown. The maintainer is: carsme. Checking GitHub for the packager or Maintainer provides no assistance.

I’m clueless for resolving the issue. Cut and pate form the last comment.
‘’’
The file hplip-$pkgver-plugin.run contains the line

exec $XTERM -title "$label" -e "$0" --xwin "$initargs"  ''''

Specifically, how do I fix? Is it enough to comment out or delete the "bad" command? Would I then need to repackage thew update?  How would I do this? How would i get the update onto AUR? The "captcha" is a line of code and I have no clue what this code means.  I am a user not software engineer!

I am really and truly stuck.
Please help.

Thanks
John

For xfce4-terminal, the option is either -T or --title (not -title)
so perhaps just fix what may be a typo?

Packager is you. Patch the provided PKGBUILD yourself.
Something like:

prepare() {
  sed -i 's/exec $XTERM -title/exec $XTERM --title/g' hplip-3.23.12-plugin.run
  sh "hplip-$pkgver-plugin.run" --target "$srcdir/hplip-$pkgver-plugin" --noexec
}

It’s on you to understand how package building process, and with that AUR, works. You are using it. And it’s not a rocket science, you just have to read few archwiki pages.

FYI, hplip-plugin in AUR was updated Jan. 28, 2024, I was able to successfully install it today.

I would suggest trying to install it again, but make sure to do a clean build, also accept the gpg key.

P.S. - I used yay but I doubt that makes much difference.