Re: Re: dh-cmake writing to /usr instead of fakeroot?

2024-02-19 Thread Elliana May
This did the trick, thank you!

Turns out using ExternalProject_Add in a CMakeLists.txt to build the
binaries defaulted to running the installation as part of the build stage,
which is obviously not what I wanted

Many thanks,
Elliana


Re: dh-cmake writing to /usr instead of fakeroot?

2024-02-19 Thread Niels Thykier

Elliana May:

Sorry, I have a few tabs open, this is the correct one:

https://launchpadlibrarian.net/715071071/buildlog_ubuntu-jammy-amd64.duckdb_0.10.0-10_BUILDING.txt.gz

I've tried now overriding the override_dh_auto_configure rule in the
debian/rules file, but even that seems to not be making a difference:

[2/3] Install the project...
-- Install configuration: "Release"
CMake Error at cmake_install.cmake:66 (file):
   file cannot create directory: /usr/local/lib/cmake/DuckDB.  Maybe need
   administrative privileges.

Many thanks,
Elliana



The upstream code seems to be installing during the "build" 
(dh_auto_build), whereas the Debian tooling expects this to happen in a 
separate "install" step (dh_auto_install). This may be related since 
dh_auto_build does not set any form of dest-dir but dh_auto_install does.


Consider it a possible hint for what to look for. That is what I can 
give you from the 5 minutes I had to look at this.


Best regards,
Niels



Re: Re: dh-cmake writing to /usr instead of fakeroot?

2024-02-19 Thread Elliana May
Sorry, I have a few tabs open, this is the correct one:

https://launchpadlibrarian.net/715071071/buildlog_ubuntu-jammy-amd64.duckdb_0.10.0-10_BUILDING.txt.gz

I've tried now overriding the override_dh_auto_configure rule in the
debian/rules file, but even that seems to not be making a difference:

[2/3] Install the project...
-- Install configuration: "Release"
CMake Error at cmake_install.cmake:66 (file):
  file cannot create directory: /usr/local/lib/cmake/DuckDB.  Maybe need
  administrative privileges.

Many thanks,
Elliana


Re: dh-cmake writing to /usr instead of fakeroot?

2024-02-18 Thread Sune Vuorela
On 2024-02-19, Elliana May  wrote:
> You can see a failure here:
> https://launchpadlibrarian.net/714820377/buildlog_ubuntu-jammy-arm64.duckdb_0.10.0_BUILDING.txt.gz

That build log is pointing to a missing debhelper build-dependency.

/Sune



dh-cmake writing to /usr instead of fakeroot?

2024-02-18 Thread Elliana May
Hey folks,

I'm currently trying to package DuckDB for a PPA on launchpad, and though
I've been able to get it building via buildsystem=cmake+ninja, the install
steps fail with permission errors regardless of what I try.
Right now, it seems to try to install to /usr regardless of what settings I
pass, and Launchpad seems to leave CMAKE_INSTALL_PREFIX set to /usr (as
does fakeroot?).

You can see a failure here:
https://launchpadlibrarian.net/714820377/buildlog_ubuntu-jammy-arm64.duckdb_0.10.0_BUILDING.txt.gz

I haven't done any packaging like this before, so any help is very
appreciated

Many thanks,
Elliana