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

Makefile: fix installheaders #5929

Closed
wants to merge 1 commit into from
Closed

Makefile: fix installheaders #5929

wants to merge 1 commit into from

Conversation

fufexan
Copy link
Member

@fufexan fufexan commented May 7, 2024

Describe your PR, what does it fix/add?

Attempts to fix the recent breakage of make installheaders, which breaks
hyprpm.

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

Untested. Please test.

Is it ready for merging, or does it need work?

Needs testing.

Closes #5896.

Copy link
Contributor

@LOSEARDES77 LOSEARDES77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and worked for me

@paulhaider
Copy link

tested but does not seem to fix it for me!

hyprpm output on 6ae4278 : hyprpm_5929.txt

(for comparison: hyprpm output on latest commit 70b5e6d : hyprpm_latest.txt)

@thamwangjun
Copy link

@fufexan The issue is not fixed for me as well, on arch:

Build targets in project: 136

wlroots 0.18.0-dev

    drm-backend     : YES
    x11-backend     : YES
    libinput-backend: YES
    xwayland        : YES
    gles2-renderer  : YES
    vulkan-renderer : NO
    gbm-allocator   : YES
    session         : YES
    xcb-errors      : YES
    egl             : YES
    libliftoff      : YES

  User defined options
    examples        : false
    renderers       : gles2

Found ninja-1.12.0 at /usr/bin/ninja
                                                 
✔ configured Hyprland                                                                                                                                                                                     
[v] installation will run: sed -i -e "s#PREFIX = /usr/local#PREFIX = /home/thamw/.local/share/hyprpm/headersRoot#" /tmp/hyprpm/hyprland-thamw/Makefile && cd /tmp/hyprpm/hyprland-thamw && make installheaders
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━  4 / 5  Installing sources[v] installer returned: rm -fr /home/thamw/.local/share/hyprpm/headersRoot/include/hyprland                                 
mkdir -p /home/thamw/.local/share/hyprpm/headersRoot/include/hyprland
mkdir -p /home/thamw/.local/share/hyprpm/headersRoot/include/hyprland/protocols
mkdir -p /home/thamw/.local/share/hyprpm/headersRoot/include/hyprland/wlroots-hyprland
mkdir -p /home/thamw/.local/share/hyprpm/headersRoot/share/pkgconfig
find src -name '*.h*' -print0 | cpio --quiet -0dump /home/thamw/.local/share/hyprpm/headersRoot/include/hyprland
cd subprojects/wlroots-hyprland/include && find . -name '*.h*' -print0 | cpio --quiet -0dump /home/thamw/.local/share/hyprpm/headersRoot/include/hyprland/wlroots-hyprland && cd ../../..
cd subprojects/wlroots-hyprland/build/include && find . -name '*.h*' -print0 | cpio --quiet -0dump /home/thamw/.local/share/hyprpm/headersRoot/include/hyprland/wlroots-hyprland && cd ../../../..
cp ./protocols/*.h /home/thamw/.local/share/hyprpm/headersRoot/include/hyprland/protocols
cp ./protocols/*.hpp /home/thamw/.local/share/hyprpm/headersRoot/include/hyprland/protocols
cp ./build/hyprland.pc /home/thamw/.local/share/hyprpm/headersRoot/share/pkgconfig
if [ -d /usr/share/pkgconfig ]; then cp ./build/hyprland.pc /usr/share/pkgconfig 2>/dev/null || true; fi
chmod -R 755 /home/thamw/.local/share/hyprpm/headersRoot/include/hyprland
chmod 755 /home/thamw/.local/share/hyprpm/headersRoot/share/pkgconfig

✖ failed to install headers with error code 2                                                                                                                                                             
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  5 / 5  Failed               

Let me know if you need more details on debugging this.

@vaxerski
Copy link
Member

vaxerski commented May 8, 2024

#5946

@vaxerski vaxerski closed this May 8, 2024
@vaxerski vaxerski deleted the fixhyprpm branch November 18, 2024 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hyprpm update - failed to install headers with error code 2
5 participants