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

Allow building recipes outside haikuports tree #197

Open
X547 opened this issue Jan 30, 2020 · 10 comments
Open

Allow building recipes outside haikuports tree #197

X547 opened this issue Jan 30, 2020 · 10 comments

Comments

@X547
Copy link

X547 commented Jan 30, 2020

It would be nice to allow haikuporter use system package info instead of info inside haikuports tree. It will allow use recipe files for various projects outside haikuports.

@pulkomandy
Copy link
Member

Just use the "package" tool directly if you are outside the tree. Cmake has support for it through cpack, for example.

What is the use of haikuporter in that situation?

@X547
Copy link
Author

X547 commented Jan 30, 2020

Many build systems can't build hpkg packages, for example Haiku makefile engine. haikuporter would simplify package generation.

Cmake has support for it through cpack, for example.

Is more info about building hpkg by cmake available?

@pulkomandy
Copy link
Member

You set cpack_binary_generator as explained in https://cmake.org/cmake/help/v3.12/module/CPack.html#variable:CPACK_GENERATOR and set the othervariables as documented there. Then use "make package"

@X547
Copy link
Author

X547 commented Jan 31, 2020

I can't see HPKG generator in cpack:

Generators
  7Z                           = 7-Zip file format
  DEB                          = Debian packages
  External                     = CPack External packages
  IFW                          = Qt Installer Framework
  NSIS                         = Null Soft Installer
  NSIS64                       = Null Soft Installer (64-bit)
  NuGet                        = NuGet packages
  STGZ                         = Self extracting Tar GZip compression
  TBZ2                         = Tar BZip2 compression
  TGZ                          = Tar GZip compression
  TXZ                          = Tar XZ compression
  TZ                           = Tar Compress compression
  TZST                         = Tar Zstandard compression
  ZIP                          = ZIP file format

Which generator should I use?
cmake version is 3.16.0.

@pulkomandy
Copy link
Member

Then it seems my work to add support for the hpkg format has been removed. I had even submitted them upstream: https://cmake.org/Bug/view.php?id=14788

@mmuman
Copy link
Member

mmuman commented Feb 1, 2020

Looks like they moved their bugtracker…
https://gitlab.kitware.com/cmake/cmake/issues/14788

@mmuman
Copy link
Member

mmuman commented Feb 1, 2020

But I don't see CPackHpkg mentionned in the history…

@X547
Copy link
Author

X547 commented Feb 2, 2020

Is it possible to include HPKG generator to haikuports patchset?

@pulkomandy
Copy link
Member

Yes, and it would be great if we can ping cmake team to upstream it again, and if people would not remove my patches when they update cmake versions because "the new one compiles without the patches"

@X547
Copy link
Author

X547 commented Feb 2, 2020

I uploaded fixed patch for cmake 3.16.0: haikuports/haikuports#4673.

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

No branches or pull requests

3 participants