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: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on: 836217
Blocks:
  Show dependency tree
 
Reported: 2021-06-15 22:36 UTC by Joakim Tjernlund
Modified: 2022-03-26 20:13 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
Alt. fix (file_796260.txt,949 bytes, patch)
2022-01-04 09:21 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?
Comment 8 Joakim Tjernlund 2022-01-04 09:21:56 UTC
Created attachment 761275 [details, diff]
Alt. fix
Comment 9 Larry the Git Cow gentoo-dev 2022-01-13 07:43:07 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/binutils-config.git/commit/?id=b3d5707738167a15b9a12d73b855d16784f63d05

commit b3d5707738167a15b9a12d73b855d16784f63d05
Author:     Joakim Tjernlund <Joakim.Tjernlund@infinera.com>
AuthorDate: 2022-01-04 09:19:06 +0000
Commit:     Mike Frysinger <vapier@gentoo.org>
CommitDate: 2022-01-13 07:42:52 +0000

    binutils-config: skip updating empty env.d files
    
    If the package doesn't have any info or man pages, we won't create
    an env.d file, so don't try moving it.
    
    Closes: https://bugs.gentoo.org/796260
    Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@infinera.com>
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>

 src/binutils-config | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 10 Larry the Git Cow gentoo-dev 2022-02-20 06:07:41 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f28899642a1158c227faacf2c0a0d1bc8132598c

commit f28899642a1158c227faacf2c0a0d1bc8132598c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-02-20 06:07:08 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-02-20 06:07:08 +0000

    sys-devel/binutils-config: add 5.4.1
    
    Bug: https://bugs.gentoo.org/796260
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/binutils-config/Manifest                 |  1 +
 .../binutils-config/binutils-config-5.4.1.ebuild   | 43 ++++++++++++++++++++++
 .../binutils-config/binutils-config-9999.ebuild    |  2 +-
 3 files changed, 45 insertions(+), 1 deletion(-)