Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Emerge error: cannot create directory, file exists
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
f1tz
n00b
n00b


Joined: 27 Aug 2020
Posts: 55

PostPosted: Mon Sep 28, 2020 11:39 am    Post subject: [SOLVED]Emerge error: cannot create directory, file exists Reply with quote

EDIT: The overlay has fixed the issue (cmake installs libraries by itself since lately).

Hello Gentoo people,

Emerging "ydotool" from pg_overlay (http://gpo.zugaina.org/gui-apps/ydotool) results in the following error:

Code:

-- Installing: /var/tmp/portage/gui-apps/ydotool-9999/image/usr/lib64/libydotool.so
-- Installing: /var/tmp/portage/gui-apps/ydotool-9999/image/usr/bin/ydotoold
-- Set runtime path of "/var/tmp/portage/gui-apps/ydotool-9999/image/usr/bin/ydotoold" to ""
-- Installing: /var/tmp/portage/gui-apps/ydotool-9999/image/usr/bin/ydotool
-- Set runtime path of "/var/tmp/portage/gui-apps/ydotool-9999/image/usr/bin/ydotool" to ""
mkdir: cannot create directory '/var/tmp/portage/gui-apps/ydotool-9999/image/usr/lib64': File exists
mv: cannot stat '/var/tmp/portage/gui-apps/ydotool-9999/image/usr/bin/libydotool.so': No such file or directory
 * ERROR: gui-apps/ydotool-9999::pg_overlay failed (install phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line 125:  Called src_install
 *   environment, line 2572:  Called die
 * The specific snippet of code:
 *       mv ${D}/usr/bin/libydotool.so ${D}/usr/$(get_libdir)/ || die
 *
 * If you need support, post the output of 'emerge --info '=gui-apps/ydotool-9999::pg_overlay'


package.accept:
Code:
gui-apps/ydotool* **
dev-libs/libevdevplus ~amd64
dev-libs/libuinputplus ~amd64


package.accept:
Code:
gui-apps/ydotool* **
dev-libs/libevdevplus ~amd64
dev-libs/libuinputplus ~amd64


output of emerge -pqv '=gui-apps/ydotool-9999::pg_overlay'
https://dpaste.com/3HGP7WGHD

output of emerge --info '=gui-apps/ydotool-9999::pg_overlay':
https://dpaste.com/F53X2AGPJ

build.log
https://dpaste.com/4ALCD4XXH

Ebuild environment from /var/tmp/portage/gui-apps/ydotool-9999/temp/environment:
https://dpaste.com/CG9KTE83X

Any idea where this error might come from?

Thanks for support.

f1tz


Last edited by f1tz on Wed Sep 30, 2020 5:06 pm; edited 2 times in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24792
Location: here

PostPosted: Mon Sep 28, 2020 11:56 am    Post subject: Reply with quote

You can post tree /var/tmp/portage/gui-apps/ydotool-9999/image/ output
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
xaviermiller
Administrator
Administrator


Joined: 23 Jul 2004
Posts: 8535
Location: ~Brussels - Belgique

PostPosted: Mon Sep 28, 2020 12:05 pm    Post subject: Reply with quote

Moved from Portage & Programming to Unsupported Software.
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
f1tz
n00b
n00b


Joined: 27 Aug 2020
Posts: 55

PostPosted: Mon Sep 28, 2020 2:39 pm    Post subject: Emerge error: cannot create directory, file exists Reply with quote

Good evening,

Compilation of ydotools from pg_overlay (http://gpo.zugaina.org/gui-apps/ydotool) results in the following error:

Quote:

mkdir: cannot create directory ‘/var/tmp/portage/gui-apps/ydotool-9999/image/usr/lib64’: File exists
mv: cannot stat '/var/tmp/portage/gui-apps/ydotool-9999/image/usr/bin/libydotool.so': No such file or directory

ERROR: gui-apps/ydotool-9999::pg_overlay failed (install phase):
(no error message)
Call stack:

ebuild.sh, line 125: Called src_install

environment, line 2572: Called die
The specific snippet of code:

mv ${D}/usr/bin/libydotool.so ${D}/usr/$(get_libdir)/ || die

If you need support, post the output of 'emerge --info '=gui-apps/ydotool-9999::pg_overlay'


package.accept:
gui-apps/ydotool* **
dev-libs/libevdevplus ~amd64
dev-libs/libuinputplus ~amd64

output of emerge -pqv '=gui-apps/ydotool-9999::pg_overlay'
Quote:
[ebuild N ] gui-apps/ydotool-9999


output of emerge --info '=gui-apps/ydotool-9999::pg_overlay':
https://dpaste.com/F53X2AGPJ

build.log
https://dpaste.com/4ALCD4XXH

Ebuild environment from /var/tmp/portage/gui-apps/ydotool-9999/temp/environment:
https://dpaste.com/CG9KTE83X

Any idea where this error comes from?

Thanks for support.

f1tz
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24792
Location: here

PostPosted: Mon Sep 28, 2020 2:42 pm    Post subject: Reply with quote

[Moderator note: the immediately preceding post was originally posted as a separate duplicate thread in a different forum, and this post was made as a response to that duplicate thread. They were moved here to keep the conversation together. -Hu]

Your thread is moved in Unsupported Software forum
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
f1tz
n00b
n00b


Joined: 27 Aug 2020
Posts: 55

PostPosted: Mon Sep 28, 2020 3:20 pm    Post subject: Reply with quote

Code:
/var/tmp/portage/gui-apps/ydotool-9999/image/
└── usr
    ├── bin
    │   ├── ydotool
    │   └── ydotoold
    ├── lib64
    │   ├── libydotool.so -> libydotool.so.0
    │   ├── libydotool.so.0 -> libydotool.so.0.1.5
    │   └── libydotool.so.0.1.5
    └── share
        └── doc
            └── ydotool-9999
                └── README.md



/var/tmp/portage/gui-apps/ydotool-9999/image/usr/bin/libydotool.so

Is it a a runtime env problem? This line looks like it adds "/usr/bin/libydotool.so" on top of "/var/tmp/portage/gui-apps/ydotool-9999/image/" instead of changing the directory to "usr/bin".
Back to top
View user's profile Send private message
Ionen
Veteran
Veteran


Joined: 06 Dec 2018
Posts: 1438

PostPosted: Mon Sep 28, 2020 3:29 pm    Post subject: Reply with quote

Seems cmake installs libraries by itself (now?), so the `mkdir ${D}/usr/$(get_libdir)` that follows will fail and manually copying the library is unnecessary. Looks like a bug in the ebuild and should be reported to the overlay.

Edit: Tried it quick and removing the last two lines from src_install() yields a working ebuild that installs everything.
Back to top
View user's profile Send private message
f1tz
n00b
n00b


Joined: 27 Aug 2020
Posts: 55

PostPosted: Mon Sep 28, 2020 3:45 pm    Post subject: Reply with quote

i created an issue there.

Though it seems to be a known bug already.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum