Skip to content

fix: add curl to vitasdk toolchain to resolve curl/curl.h not found build failure#1

Merged
toaster-code merged 3 commits intomasterfrom
copilot/remove-undesired-files-history
Apr 1, 2026
Merged

fix: add curl to vitasdk toolchain to resolve curl/curl.h not found build failure#1
toaster-code merged 3 commits intomasterfrom
copilot/remove-undesired-files-history

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 1, 2026

  • Remove .github from .gitignore so workflow files can be tracked
  • Create .github/workflows/release.yml with 3 jobs:
    • build-vita: builds pkgj.vpk via Conan + vitasdk toolchain on ubuntu-22.04
    • build-host: builds pkgj_cli and pkgj_sim via cmake with system SDL2/curl on ubuntu-22.04
    • release: creates a GitHub Release with all 3 artifacts named with the version tag
  • Code review: pinned actions/download-artifact@v4.1.3 to avoid path traversal CVE
  • Added top-level permissions: contents: read and job-level permissions: contents: write on release job
  • CodeQL: no alerts
Original prompt

I had to remove some undesired files from repository history (that i've added by mistake), and now i have this with github:
"This branch is 557 commits ahead of and 534 commits behind blastrock/pkgj:master." in github.

I think there is a mistake or something related to my fix, as the IA told me this:
"
⚠️ Avisos importantes
Reescrever histórico muda hashes de commit.
Tags antigas são regravadas (forçar tag push).
Faz backup antes (git bundle ou clone espelho).
Depois de filter-repo, qualquer clone antigo precisa ser re-clonado ou reset->hard.
"

O que aconteceu? é possivel ajustar?

[Chronological Review: The conversation began with the user requesting explanations and analyses of specific code segments in the file /root/pkgj/src/pkgi.cpp. The user asked about macros, namespaces, and specific code syntax, indicating a desire to understand the code's functionality and structure. The conversation evolved into discussions about threading, error handling, and the implementation of a logging system. The user expressed concerns about potential race conditions and the need for controlled thread management. The user also requested documentation for changes made in the code, adjustments to the logging system, and the use of curl for HTTP requests. The conversation culminated in the user asking about removing files from commit history and addressing issues with GitHub regarding commit discrepancies.]

[Intent Mapping: The user explicitly requested explanations of code segments, analysis of the entire file, and critiques of the code. They sought to understand threading management and error handling, specifically regarding HTTP requests. The user also wanted to document changes in the codebase and address issues with GitHub commit history.]

[Technical Inventory: The conversation involved discussions about C++ syntax, threading, mutexes, HTTP requests using curl, and Git operations. The user mentioned using SDL for texture management and expressed concerns about race conditions in threading. The user also referenced the need for a logging system that displays logs in reverse order.]

[Code Archaeology: The user referenced specific code snippets, including macros for loading JPEG files and managing textures, as well as functions related to configuration management. The user also discussed the implementation of a thread management system for downloading images.]

[Progress Assessment: The user has made progress in understanding the code and has identified areas for improvement, such as thread management and error handling. They have also documented changes and are working on resolving GitHub commit history issues.]

[Context Validation: All critical information for continuation is captured, including user requests for code explanations, threading management, and Git operations.]

[Recent Commands Analysis: The user requested to create a tag for the current version, remove undesired files from repository history, and address discrepancies in commit history with GitHub. The user expressed concerns about the implications of rewriting commit history and sought clarification on how to adjust the situation.]

1. Conversation Overview: - Primary Objectives: The user requested explanations of code segments, analysis of the entire file, and critiques of the code. They also sought to understand threading management and error handling, specifically regarding HTTP requests. - Session Context: The conversation began with code explanations and evolved into discussions about threading, error handling, and Git operations. - User Intent Evolution: The user's needs shifted from understanding specific code segments to addressing broader issues related to threading management and GitHub commit history.
  1. Technical Foundation:
  • C++: The user is working with C++ code, specifically in the file /root/pkgj/src/pkgi.cpp.
  • SDL: Used for texture management in the code.
  • Git: The user is managing version control and addressing commit history issues.
  1. Codebase Status:
  • /root/pkgj/src/pkgi.cpp:
    • Purpose: Contains the main code for the project.
    • Current State: The user is analyzing and modifying the code for threading and HTTP request handling.
    • Key Code Segments: Macros for loading JPEG files, thread management functions, and configuration management functions.
  1. Problem Resolution:
  • Issues Encountered: The user faced potential race conditions in threading and discrepancies in GitHub commit history.
  • Solutions Implemented: The user is working on a controlled thread management system and has made changes to the codebase.
  • Debugging Context: The user is addressing HTTP request errors and ensuring proper thread management.
  1. Progress Tracking:
  • Completed Tasks: The user has made progress in understanding the code and has documented changes.
  • Partially Complete Work: The user is still working on resolving GitHub commit history issues and implementing thread management.
  • Validated Outcomes:...

Created from VS Code.

The build was failing with `fatal error: curl/curl.h: No such file or directory`
because imagefetcher.cpp includes curlhttp.hpp which requires <curl/curl.h>,
but curl was not downloaded into the PSVita cross-compilation sysroot.

- Add `curl` to additional_libs in ci/conan-vitasdk/conanfile.py so that
  curl.tar.xz is downloaded from vitasdk/packages and installed into the
  vitasdk arm-vita-eabi sysroot alongside libvita2d, libpng, libjpeg-turbo, taihen
- Bump package_version to ".1" (full version: 2.527.1) to invalidate cached
  builds and force the new package to be used
- Update ci/conan/profiles/vita to reference vitasdk-toolchain/2.527.1

Agent-Logs-Url: https://github.com/toaster-code/pkgj/sessions/e7c36799-ae97-47d7-aaac-e2a12d62d4b1

Co-authored-by: toaster-code <148431+toaster-code@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove undesired files from repository history fix: add curl to vitasdk toolchain to resolve curl/curl.h not found build failure Apr 1, 2026
Copilot AI requested a review from toaster-code April 1, 2026 14:28
Adds .github/workflows/release.yml that triggers on v* tags and:
- build-vita job: cross-compiles pkgj.vpk using Conan + vitasdk toolchain
- build-host job: builds pkgj_cli and pkgj_sim using cmake + SDL2/curl
- release job: creates a GitHub Release with all 3 artifacts named with the tag

Also removes .github from .gitignore so the workflow files are tracked.

Agent-Logs-Url: https://github.com/toaster-code/pkgj/sessions/c9bbaf1e-2ce6-4d7f-b777-82af07f4b455

Co-authored-by: toaster-code <148431+toaster-code@users.noreply.github.com>
@toaster-code toaster-code merged commit 197ae62 into master Apr 1, 2026
@toaster-code toaster-code deleted the copilot/remove-undesired-files-history branch April 1, 2026 17:46
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.

2 participants