Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No package 'xf86miscproto' found #631

Open
1 task
sobitoks opened this issue Apr 28, 2020 · 6 comments
Open
1 task

No package 'xf86miscproto' found #631

sobitoks opened this issue Apr 28, 2020 · 6 comments

Comments

@sobitoks
Copy link

sobitoks commented Apr 28, 2020

Please follow the general troubleshooting steps first:

  • [ x] Ran brew update and retried your prior step?
  • [ x] Ran brew doctor, fixed as many issues as possible and retried your prior step?
  • If you're seeing permission errors tried running sudo chown -R $(whoami) $(brew --prefix)?

Bug reports:

I followed the instructions in the README.md
brew tap linuxbrew/xorg
brew install linuxbrew/xorg/xset

This is what I got:

==> Installing xset from linuxbrew/xorg
==> Installing dependencies for linuxbrew/xorg/xset: linuxbrew/xorg/libxxf86misc
==> Installing linuxbrew/xorg/xset dependency: linuxbrew/xorg/libxxf86misc
==> Downloading https://www.x.org/archive/individual/lib/libXxf86misc-1.0.4.tar.gz
Already downloaded: /Users/MYUSER/Library/Caches/Homebrew/downloads/506a91f4f9a54490a764bb071ff221d4b5923ae59b1d0ac4a68f2863782528d8--libXxf86misc-1.0.4.tar.gz
==> ./configure --prefix=/usr/local/Cellar/libxxf86misc/1.0.4 --sysconfdir=/usr/local/etc --localstatedir=/usr/local/var
Last 15 lines from /Users/MYUSER/Library/Logs/Homebrew/libxxf86misc/01.configure:
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for XXF86MISC... no
configure: error: Package requirements (xproto x11 xextproto xext xf86miscproto) were not met:

No package 'xf86miscproto' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables XXF86MISC_CFLAGS
and XXF86MISC_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/Linuxbrew/homebrew-xorg/issues

brew gist-logs xset
Gave me no logs.

This is my first ever issue so I'm sorry if it stinks. I just have no idea where to post this error. Thanks.

@maxim-belkin
Copy link
Owner

Thanks for the report, Gerard. Are you running it on Linux or Mac?
Could you please try rebuilding pkg-config from source and then try installing xset again? The following should do it:

brew reinstall -s pkg-config
brew install xset

@maxim-belkin
Copy link
Owner

maxim-belkin commented Apr 28, 2020

I can reproduce this bug by attempting to install linuxbrew/xorg/libxxf86misc from source. Let me have a closer look at this.

@sobitoks
Copy link
Author

I tried what you suggested

brew reinstall -s pkg-config
brew install xset

but sadly it didn't work either.

I can reproduce this bug by attempting to install linuxbrew/xorg/libxxf86misc from source. Let me have a closer look at this.

Okay, thanks for your time :)

@maxim-belkin
Copy link
Owner

It looks like xorgproto package has to be built with --enable-legacy flag in order to get missing header files. Here is what you need to do:

  1. Uninstall xorgproto:
brew remove linuxbrew/xorg/xorgproto
  1. Open xorgproto.rb file for editing:
brew edit linuxbrew/xorg/xorgproto
  1. Add --enable-legacy flag to args array in install method.
  2. Install xorgproto from source.
brew install -s linuxbrew/xorg/xorgproto

The linking step will fail.
5. Force-link xorgproto

brew link --overwrite xorgproto
  1. Build linuxbrew/xorg/libxxf86misc from source:
brew install -s linuxbrew/xorg/libxxf86misc
  1. Install xset.

Once done, undo changes to xorgproto formula:

git -C $(brew --repo linuxbrew/xorg) checkout -- Formula/

Let me know if you encounter any issues.

maxim-belkin added a commit to maxim-belkin/homebrew-core-macOS that referenced this issue Jan 2, 2023
Legacy protocol headers are required by some packages (e.g.,
libxxf86misc and, consequently, xset).

Related to maxim-belkin/homebrew-xorg#631
@xlla
Copy link

xlla commented Dec 27, 2023

@maxim-belkin thank you! it works.

@sobitoks
Copy link
Author

sobitoks commented Feb 1, 2024

@maxim-belkin sorry I never got back to you. I appreciate the time you took to investigate on the issue. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants