-
Notifications
You must be signed in to change notification settings - Fork 53
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
[HELP] src/config.rs.ini vs src/config.rs #49
Comments
I'm not familiar with those gnome projects but looking at the source code of Amberol I see that it has some meson files. I suspect that the project cannot be built using just a standard cargo invocation and instead requires that it be built using Meson. Cargo-deb has no way of knowing how to handle non-standard build systems. What you could do is build it as it is supposed to built, then disable compilation via --no-build when invoking cargo-deb so that cargo-deb only packages already built artifacts. |
It worked, not necessarily with amberol but with Fragments, whose instruction is in the project readme in gitlab.
So no plan to support meson build system right? |
My brief, limited, impression of Meson is that it is intended to own the build process and so using Though I have contributed to Cargo-deb in the past, I'm not the maintainer of Cargo-deb so I can only give you my opinion: the most likely way in my experience to extend Cargo-deb is to submit a pull request yourself with arguments explaining why it is a good proposal. |
Hi, I need some help, I'm trying to create .deb files for the apps on circle.gnome.com. A particularity of those apps is that they use src/config.rs.ini instead of src/config.rs and the cargo-deb program fails to create .deb files despite all compiling going flawlessly.
For instant I'll post the error on Amberol app, but the same happens for Fragments and Podcast apps.
Compiling amberol v0.1.0 (/home/hamza/Downloads/amberol-0.9.1) error[E0432]: unresolved imports
crate::config::APPLICATION_ID,
crate::config::VERSION--> src/application.rs:14:14 | 14 | config::{APPLICATION_ID, VERSION}, | ^^^^^^^^^^^^^^ ^^^^^^^ no
VERSIONin
config| | | no
APPLICATION_IDin
config`error[E0432]: unresolved import
crate::config::APPLICATION_ID
--> src/audio/mpris_controller.rs:14:5
|
14 | config::APPLICATION_ID,
| ^^^^^^^^^^^^^^^^^^^^^^ no
APPLICATION_ID
inconfig
error[E0432]: unresolved import
crate::config::APPLICATION_ID
--> src/utils.rs:11:5
|
11 | use crate::config::APPLICATION_ID;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no
APPLICATION_ID
inconfig
error[E0432]: unresolved import
crate::config::APPLICATION_ID
--> src/window.rs:20:5
|
20 | config::APPLICATION_ID,
| ^^^^^^^^^^^^^^^^^^^^^^ no
APPLICATION_ID
inconfig
error[E0432]: unresolved imports
config::APPLICATION_ID
,config::GETTEXT_PACKAGE
,config::LOCALEDIR
,config::PKGDATADIR
,config::PROFILE
--> src/main.rs:23:14
|
23 | use config::{APPLICATION_ID, GETTEXT_PACKAGE, LOCALEDIR, PKGDATADIR, PROFILE};
| ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^ no
PROFILE
inconfig
| | | | |
| | | | no
PKGDATADIR
inconfig
| | | no
LOCALEDIR
inconfig
| | no
GETTEXT_PACKAGE
inconfig
| no
APPLICATION_ID
inconfig
For more information about this error, try
rustc --explain E0432
.error: could not compile
amberol
due to 5 previous errorscargo-deb: build failed
hamza@surface:~/Downloads/amberol-0.9.1$ `
the content of src/config.rs.ini is:
`// SPDX-FileCopyrightText: 2022 Emmanuele Bassi
// SPDX-License-Identifier: GPL-3.0-or-later
pub static VERSION: &str = @Version@;
pub static GETTEXT_PACKAGE: &str = @GETTEXT_PACKAGE@;
pub static LOCALEDIR: &str = @LOCALEDIR@;
pub static PKGDATADIR: &str = @PKGDATADIR@;
pub static APPLICATION_ID: &str = @APPLICATION_ID@;
pub static PROFILE: &str = @Profile@;
`
So I guess is pointing to somewhere, I just don't know.
I tried to create a empty src/config.rs there ended up with that error.
I tried to create a src/config.rs file with some contents trying to match those on src/config.rs.ini in fact it created the .deb file on the target, installed but the apps refused to start.
So first I think I should figure out is the best way to pass the first error i.e the app not being compiled with just it's original config.rs.ini.
So please help me on this.
I'm doing all this on Debian Testing.
The text was updated successfully, but these errors were encountered: