Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 796260 - sys-devel/binutils-config-5.4: mv: cannot stat '//etc/env.d/05binutils.tmp': No such file or directory
Summary: sys-devel/binutils-config-5.4: mv: cannot stat '//etc/env.d/05binutils.tmp': ...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-15 22:36 UTC by Joakim Tjernlund
Modified: 2021-11-02 21:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Fixes problem (file_796260.txt,921 bytes, patch)
2021-10-05 09:32 UTC, Joakim Tjernlund
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joakim Tjernlund 2021-06-15 22:36:00 UTC
Switching to powerpc-unknown-linux-gnu-2.34 ...mv: cannot stat '//etc/env.d/05binutils.tmp': No such file or directory

binutils-config has:
                                                                                                                                                 
                                                                                                                                                                              
                DATAPATH="${EPREFIX}"/usr/share/binutils-data/${TARGET}/${VER}                                                                                                
                local e="${EROOT}"/etc/env.d/05binutils                                                                                                                       
                local ee="${e}.tmp"                                                                                                                                           
                rm -f "${ee}"                                                                                                                                                 
                [[ -d ${ROOT}/${DATAPATH}/man  ]] && echo "MANPATH=${DATAPATH}/man"   >> "${ee}"                                                                              
                [[ -d ${ROOT}/${DATAPATH}/info ]] && echo "INFOPATH=${DATAPATH}/info" >> "${ee}"                                                                              
                mv_if_diff "${ee}" "${e}"                                                                                                                                     
 
If there is no info nor man dirs no 05binutils.tmp will be created.
Adding a touch "${ee}" fixes it:
 rm -f "${ee}"
+touch "${ee}"
 [[ -d ${ROOT}/${DATAPATH}/man  ]] && echo "MANPATH=${DATAPATH}/man"   >> "${ee}"
Comment 1 Joakim Tjernlund 2021-07-04 12:52:57 UTC
ping? This is a simple fix
Comment 2 Joakim Tjernlund 2021-07-15 13:31:17 UTC
ping?
Comment 3 Joakim Tjernlund 2021-08-05 21:37:21 UTC
ping?
Comment 4 Matt Turner gentoo-dev 2021-08-06 23:33:43 UTC
Maybe write and attach a git am'able patch?
Comment 5 Joakim Tjernlund 2021-10-05 09:32:25 UTC
Created attachment 743100 [details, diff]
Fixes problem

Lets hope this gets things moving
Comment 6 SpanKY gentoo-dev 2021-10-09 05:14:03 UTC
(In reply to Joakim Tjernlund from comment #5)

seems like it'd be easier to do an -e check on $ee and not emit anything.
an empty env.d file isn't that useful after all.

is there something that needs this to exist that i'm forgetting about ?
Comment 7 Joakim Tjernlund 2021-11-02 21:49:03 UTC
(In reply to SpanKY from comment #6)
> (In reply to Joakim Tjernlund from comment #5)
> 
> seems like it'd be easier to do an -e check on $ee and not emit anything.
> an empty env.d file isn't that useful after all.
> 
> is there something that needs this to exist that i'm forgetting about ?

Any conclusion w.r.t above?