#11458: Invoking jam from subdirectories does not work ----------------------------+---------------------------- Reporter: pulkomandy | Owner: bonefish Type: bug | Status: new Priority: normal | Milestone: Unscheduled Component: Build System | Version: R1/Development Resolution: | Keywords: Blocked By: | Blocking: Has a Patch: 0 | Platform: All ----------------------------+---------------------------- Comment (by bonefish): That has to do with `package_repo`. If a different directory is given via "-C", it [http://cgit.haiku- os.org/haiku/tree/src/bin/package_repo/command_create.cpp?id=8068b64b5c33e0c8bd6d3fcabfd3ebac3a422d2b#n203 changes the working directory] before interpreting the given package file paths, which in this case are relative ones. I'm not sure, if that is a bug or a feature. It doesn't seem like any other path is interpreted in the context of the changed current working directory, so it might be a feature and the "-C ..." can be omitted in [http://cgit.haiku- os.org/haiku/tree/build/scripts/build_haiku_repository?id=8068b64b5c33e0c8bd6d3fcabfd3ebac3a422d2b#n40 build/scripts/build_haiku_repository]. But the command line option may as well just be a copy and paste left-over from the `package` command and isn't really needed for `package_repo`. Maybe Oliver has a clue. At any rate, the error message isn't particularly helpful. It stems from [http://cgit.haiku- os.org/haiku/tree/src/kits/package/hpkg/RepositoryWriterImpl.cpp?id=8068b64b5c33e0c8bd6d3fcabfd3ebac3a422d2b#n328 RepositoryWriterImpl::_AddPackage()], where we only know the invalid `BEntry`. A check and a better error message should be added [http://cgit .haiku- os.org/haiku/tree/src/bin/package_repo/command_create.cpp?id=8068b64b5c33e0c8bd6d3fcabfd3ebac3a422d2b#n216 where the BEntry is initialized]. -- Ticket URL: <https://dev.haiku-os.org/ticket/11458#comment:8> Haiku <https://dev.haiku-os.org> Haiku - the operating system.