Bug 1217236 - flux fails to build error: private item shadows public glob re-export
Summary: flux fails to build error: private item shadows public glob re-export
Status: NEW
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Other (show other bugs)
Version: Leap 15.6
Hardware: Other Other
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: Matwey Kornilov
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-16 15:12 UTC by Lubos Kocman
Modified: 2023-11-16 15:13 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lubos Kocman 2023-11-16 15:12:20 UTC
Hello

flux does not build on Leap 15.6 this should be fixed before Beta (Feb 2023)
https://en.opensuse.org/openSUSE:Roadmap#Schedule_for_openSUSE_Leap_15.6

Build log from Leap 15.6
https://build.opensuse.org/package/live_build_log/openSUSE:Backports:SLE-15-SP6/flux/standard/x86_64

[   74s]    Compiling flux v0.154.0 (/home/abuild/rpmbuild/BUILD/flux-0.193.0/libflux/flux)
[  153s] error: private item shadows public glob re-export
[  153s]   --> flux/src/lib.rs:12:16
[  153s]    |
[  153s] 12 | use fluxcore::{Database, Flux};
[  153s]    |                ^^^^^^^^
[  153s]    |
[  153s] note: the name `Database` in the type namespace is supposed to be publicly re-exported here
[  153s]   --> flux/src/lib.rs:16:46
[  153s]    |
[  153s] 16 | pub use fluxcore::{ast, formatter, semantic, *};
[  153s]    |                                              ^
[  153s] note: but the private item here shadows it
[  153s]   --> flux/src/lib.rs:12:16
[  153s]    |
[  153s] 12 | use fluxcore::{Database, Flux};
[  153s]    |                ^^^^^^^^
[  153s] note: the lint level is defined here
[  153s]   --> flux/src/lib.rs:1:38
[  153s]    |
[  153s] 1  | #![cfg_attr(feature = "strict", deny(warnings, missing_docs))]
[  153s]    |                                      ^^^^^^^^
[  153s]    = note: `#[deny(hidden_glob_reexports)]` implied by `#[deny(warnings)]`
[  153s] 
[  153s] error: private item shadows public glob re-export
[  153s]   --> flux/src/lib.rs:12:26
[  153s]    |
[  153s] 12 | use fluxcore::{Database, Flux};
[  153s]    |                          ^^^^
[  153s]    |
[  153s] note: the name `Flux` in the type namespace is supposed to be publicly re-exported here
[  153s]   --> flux/src/lib.rs:16:46
[  153s]    |
[  153s] 16 | pub use fluxcore::{ast, formatter, semantic, *};
[  153s]    |                                              ^
[  153s] note: but the private item here shadows it
[  153s]   --> flux/src/lib.rs:12:26
[  153s]    |
[  153s] 12 | use fluxcore::{Database, Flux};
[  153s]    |                          ^^^^
[  153s] 
[  153s] error: could not compile `flux` (lib) due to 2 previous errors
[  153s] error: Bad exit status from /var/tmp/rpm-tmp.M4Rm8A (%build)
[  153s] 
[  153s] 
[  153s] RPM build errors:
[  153s]     Bad exit status from /var/tmp/rpm-tmp.M4Rm8A (%build)