[FITS] Created: (FL-2925) mkpasswd (part of expect) does not work due to how tcl is configured to live in %(datadir)s instead of %(libdir)s

35 views
Skip to first unread message

ermo | Rune Morling (FITS)

unread,
Nov 9, 2013, 3:18:15 PM11/9/13
to foresigh...@googlegroups.com
mkpasswd (part of expect) does not work due to how tcl is configured to live in %(datadir)s instead of %(libdir)s
-----------------------------------------------------------------------------------------------------------------

Key: FL-2925
URL: https://issues.foresightlinux.org/jira/browse/FL-2925
Project: Foresight Linux
Issue Type: Bug
Security Level: Public (Everyone can see this issue)
Components: Base Operating System
Affects Versions: 2.5.3
Reporter: ermo | Rune Morling
Assignee: Michael K. Johnson


{noformat}
[ermo@mrwing tcl]$ mkpasswd
couldn't load file "/usr/share/tcl8.5/expect5.45/../../libexpect5.45.so": /usr/share/tcl8.5/expect5.45/../../libexpect5.45.so: cannot open shared object file: No such file or directory
while executing
"load /usr/share/tcl8.5/expect5.45/../../libexpect5.45.so"
("package ifneeded Expect 5.45" script)
invoked from within
"package require Expect"
(file "/usr/bin/mkpasswd" line 6)
[ermo@mrwing tcl]$ ls -la /usr/share/tcl8.5 /usr/lib64/tcl8.5
lrwxrwxrwx 1 root root 15 2013-04-12 18:04 /usr/lib64/tcl8.5 -> ../share/tcl8.5

/usr/share/tcl8.5:
total 332
drwxr-xr-x 8 root root 4096 2013-11-09 19:45 .
drwxr-xr-x 270 root root 12288 2013-08-11 13:45 ..
-rw-r--r-- 1 root root 20577 2011-04-12 16:39 auto.tcl
-rw-r--r-- 1 root root 130055 2011-04-12 16:39 clock.tcl
drwxr-xr-x 2 root root 4096 2013-04-12 18:04 encoding
drwxr-xr-x 2 root root 4096 2013-11-09 19:45 expect5.45
-rw-r--r-- 1 root root 9032 2011-04-12 16:39 history.tcl
drwxr-xr-x 2 root root 4096 2013-04-12 18:04 http1.0
-rw-r--r-- 1 root root 24855 2011-04-12 16:39 init.tcl
drwxr-xr-x 2 root root 4096 2013-04-12 18:04 msgs
drwxr-xr-x 2 root root 4096 2013-04-12 18:04 opt0.4
-rw-r--r-- 1 root root 23643 2011-04-12 16:39 package.tcl
-rw-r--r-- 1 root root 869 2011-04-12 16:39 parray.tcl
-rw-r--r-- 1 root root 32812 2011-04-12 16:39 safe.tcl
drwxr-xr-x 2 root root 4096 2013-10-01 07:37 sqlite3
-rw-r--r-- 1 root root 4721 2007-04-16 15:36 tclAppInit.c
-rw-r--r-- 1 root root 6379 2011-04-12 16:39 tclIndex
-rw-r--r-- 1 root root 11432 2011-04-12 16:39 tm.tcl
-rw-r--r-- 1 root root 4724 2011-04-12 16:39 word.tcl
[ermo@mrwing tcl]$ ls -la /usr/lib64/libexpect*
-rwxr-xr-x 1 root root 187784 2011-11-16 19:46 /usr/lib64/libexpect5.45.so
lrwxrwxrwx 1 root root 16 2013-11-09 19:45 /usr/lib64/libexpect.so -> libexpect5.45.so
[ermo@mrwing tcl]$
{noformat}

The problem is that, being a c-library, expect *thinks* it lives in {{/usr/lib64/tcl8.5/expect5.45/}} when in fact it lives under {{/usr/share/tcl8.5/expect5.45/}} due to the symlink shown above.

I am proposing that we change the tcl recipe to configure tcl to use %(libdir)s instead of %(datadir)s like in the attached {{tcl.recipe.diff}}

Thoughts?

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.foresightlinux.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



ermo | Rune Morling (FITS)

unread,
Nov 9, 2013, 3:24:15 PM11/9/13
to foresigh...@googlegroups.com

[ https://issues.foresightlinux.org/jira/browse/FL-2925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ermo | Rune Morling reassigned FL-2925:
---------------------------------------

Assignee: António Meireles [aka doniphon] (was: Michael K. Johnson)

> mkpasswd (part of expect) does not work due to how tcl is configured to live in %(datadir)s instead of %(libdir)s
> -----------------------------------------------------------------------------------------------------------------
>
> Key: FL-2925
> URL: https://issues.foresightlinux.org/jira/browse/FL-2925
> Project: Foresight Linux
> Issue Type: Bug
> Security Level: Public(Everyone can see this issue)
> Components: Base Operating System
> Affects Versions: 2.5.3
> Reporter: ermo | Rune Morling
> Assignee: António Meireles [aka doniphon]
> Attachments: tcl.recipe.diff

ermo | Rune Morling (FITS)

unread,
Nov 9, 2013, 3:24:14 PM11/9/13
to foresigh...@googlegroups.com

[ https://issues.foresightlinux.org/jira/browse/FL-2925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ermo | Rune Morling updated FL-2925:
------------------------------------

Attachment: tcl.recipe.diff

tcl builds with these changes.

> mkpasswd (part of expect) does not work due to how tcl is configured to live in %(datadir)s instead of %(libdir)s
> -----------------------------------------------------------------------------------------------------------------
>
> Key: FL-2925
> URL: https://issues.foresightlinux.org/jira/browse/FL-2925
> Project: Foresight Linux
> Issue Type: Bug
> Security Level: Public(Everyone can see this issue)
> Components: Base Operating System
> Affects Versions: 2.5.3
> Reporter: ermo | Rune Morling
> Assignee: Michael K. Johnson
> Attachments: tcl.recipe.diff

ermo | Rune Morling (FITS)

unread,
Nov 9, 2013, 3:30:15 PM11/9/13
to foresigh...@googlegroups.com

[ https://issues.foresightlinux.org/jira/browse/FL-2925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ermo | Rune Morling updated FL-2925:
------------------------------------

Attachment: expect.recipe.diff

expect builds and mkpasswd works with the attached diff when running on the modified tcl installed in %(libdir)s

> mkpasswd (part of expect) does not work due to how tcl is configured to live in %(datadir)s instead of %(libdir)s
> -----------------------------------------------------------------------------------------------------------------
>
> Key: FL-2925
> URL: https://issues.foresightlinux.org/jira/browse/FL-2925
> Project: Foresight Linux
> Issue Type: Bug
> Security Level: Public(Everyone can see this issue)
> Components: Base Operating System
> Affects Versions: 2.5.3
> Reporter: ermo | Rune Morling
> Assignee: António Meireles [aka doniphon]
> Attachments: expect.recipe.diff, tcl.recipe.diff

ermo | Rune Morling (FITS)

unread,
Nov 9, 2013, 3:35:14 PM11/9/13
to foresigh...@googlegroups.com

[ https://issues.foresightlinux.org/jira/browse/FL-2925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ermo | Rune Morling updated FL-2925:
------------------------------------

Attachment: (was: tcl.recipe.diff)

> mkpasswd (part of expect) does not work due to how tcl is configured to live in %(datadir)s instead of %(libdir)s
> -----------------------------------------------------------------------------------------------------------------
>
> Key: FL-2925
> URL: https://issues.foresightlinux.org/jira/browse/FL-2925
> Project: Foresight Linux
> Issue Type: Bug
> Security Level: Public(Everyone can see this issue)
> Components: Base Operating System
> Affects Versions: 2.5.3
> Reporter: ermo | Rune Morling
> Assignee: António Meireles [aka doniphon]
> Attachments: expect.recipe.diff
>
>

ermo | Rune Morling (FITS)

unread,
Nov 9, 2013, 3:37:14 PM11/9/13
to foresigh...@googlegroups.com

[ https://issues.foresightlinux.org/jira/browse/FL-2925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ermo | Rune Morling updated FL-2925:
------------------------------------

Attachment: tcl.recipe.diff

Updated version which removes an unnecessary symlink command

> mkpasswd (part of expect) does not work due to how tcl is configured to live in %(datadir)s instead of %(libdir)s
> -----------------------------------------------------------------------------------------------------------------
>
> Key: FL-2925
> URL: https://issues.foresightlinux.org/jira/browse/FL-2925
> Project: Foresight Linux
> Issue Type: Bug
> Security Level: Public(Everyone can see this issue)
> Components: Base Operating System
> Affects Versions: 2.5.3
> Reporter: ermo | Rune Morling
> Assignee: António Meireles [aka doniphon]
> Attachments: expect.recipe.diff, tcl.recipe.diff

ermo | Rune Morling (FITS)

unread,
Nov 9, 2013, 3:46:14 PM11/9/13
to foresigh...@googlegroups.com

[ https://issues.foresightlinux.org/jira/browse/FL-2925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17963#action_17963 ]

ermo | Rune Morling commented on FL-2925:
-----------------------------------------

In an ideal world, the recipe would install the non-arch specific stuff in %(datadir)s and the arch-specific stuff in %(libdir)s. This is how fedora does it.

> mkpasswd (part of expect) does not work due to how tcl is configured to live in %(datadir)s instead of %(libdir)s
> -----------------------------------------------------------------------------------------------------------------
>
> Key: FL-2925
> URL: https://issues.foresightlinux.org/jira/browse/FL-2925
> Project: Foresight Linux
> Issue Type: Bug
> Security Level: Public(Everyone can see this issue)
> Components: Base Operating System
> Affects Versions: 2.5.3
> Reporter: ermo | Rune Morling
> Assignee: António Meireles [aka doniphon]
> Attachments: expect.recipe.diff, tcl.recipe.diff
>
>

ermo | Rune Morling (FITS)

unread,
Nov 9, 2013, 7:06:15 PM11/9/13
to foresigh...@googlegroups.com

[ https://issues.foresightlinux.org/jira/browse/FL-2925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ermo | Rune Morling updated FL-2925:
------------------------------------

Attachment: (was: expect.recipe.diff)

> mkpasswd (part of expect) does not work due to how tcl is configured to live in %(datadir)s instead of %(libdir)s
> -----------------------------------------------------------------------------------------------------------------
>
> Key: FL-2925
> URL: https://issues.foresightlinux.org/jira/browse/FL-2925
> Project: Foresight Linux
> Issue Type: Bug
> Security Level: Public(Everyone can see this issue)
> Components: Base Operating System
> Affects Versions: 2.5.3
> Reporter: ermo | Rune Morling
> Assignee: António Meireles [aka doniphon]

ermo | Rune Morling (FITS)

unread,
Nov 9, 2013, 7:06:16 PM11/9/13
to foresigh...@googlegroups.com

[ https://issues.foresightlinux.org/jira/browse/FL-2925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ermo | Rune Morling updated FL-2925:
------------------------------------

Attachment: (was: tcl.recipe.diff)

> mkpasswd (part of expect) does not work due to how tcl is configured to live in %(datadir)s instead of %(libdir)s
> -----------------------------------------------------------------------------------------------------------------
>
> Key: FL-2925
> URL: https://issues.foresightlinux.org/jira/browse/FL-2925
> Project: Foresight Linux
> Issue Type: Bug
> Security Level: Public(Everyone can see this issue)
> Components: Base Operating System
> Affects Versions: 2.5.3
> Reporter: ermo | Rune Morling
> Assignee: António Meireles [aka doniphon]

ermo | Rune Morling (FITS)

unread,
Nov 9, 2013, 7:16:14 PM11/9/13
to foresigh...@googlegroups.com

[ https://issues.foresightlinux.org/jira/browse/FL-2925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ermo | Rune Morling updated FL-2925:
------------------------------------

Attachment: expect.recipe.diff
tcl.recipe.diff

Use a differenct approach -- create a %(libdir)s/tcl8.5 directory and touch a .empty file in it so it won't get ignored by conary.

Rely on this in the expect recipe, which makes things work again.

It seems that sqlite3 has a tcl component which still gets installed in /usr/share -- we might need to look into that as well...

> mkpasswd (part of expect) does not work due to how tcl is configured to live in %(datadir)s instead of %(libdir)s
> -----------------------------------------------------------------------------------------------------------------
>
> Key: FL-2925
> URL: https://issues.foresightlinux.org/jira/browse/FL-2925
> Project: Foresight Linux
> Issue Type: Bug
> Security Level: Public(Everyone can see this issue)
> Components: Base Operating System
> Affects Versions: 2.5.3
> Reporter: ermo | Rune Morling
> Assignee: António Meireles [aka doniphon]
> Attachments: expect.recipe.diff, tcl.recipe.diff
>
>
Reply all
Reply to author
Forward
0 new messages