other packaging stories..

I tried to make 2 packages.
The first one only contains a small shared library and a header.
the package was made successfully but when I try to install it, the
package filesystem gets corrupted.
It seems that it cannot restart it correctly, I get error messages about
/usr/photon/bin/launchmenunotify that cannot be found but in fact, no
more commands can be found and I have to reboot and choose a previous
package config (F8).
Parenthesis:
After hitting F8, it proposes me 9 packages all with the date and time.
Normal ?

The second package concern the tcl distribution. I install it to
/tmp/tcl, removing the local directory. So, I have tcl/usr/bin/tclsh8.3,
tcl/usr/lib/libtcl8.3.so and some others lib files, tcl/usr/include/*.h,
tcl/usr/man.
No problem to create the package but when I try to install it, it
complain about the dependency with the libtcl8.3.so.
Of course, this library is not yet installed but belongs to the package.
Why this warning?

Thanks,
Alain.

Alain Bonnefoy <alain.bonnefoy@icbt.com> wrote:

I tried to make 2 packages.
The first one only contains a small shared library and a header.
the package was made successfully but when I try to install it, the
package filesystem gets corrupted.

Can you email me the package, so that I can try to determine
what’s wrong that would corrupt the package filesystem?

The second package concern the tcl distribution. I install it to
/tmp/tcl, removing the local directory. So, I have tcl/usr/bin/tclsh8.3,
tcl/usr/lib/libtcl8.3.so and some others lib files, tcl/usr/include/*.h,
tcl/usr/man.
No problem to create the package but when I try to install it, it
complain about the dependency with the libtcl8.3.so.
Of course, this library is not yet installed but belongs to the package.
Why this warning?

The problem is that packager thinks .so files are DLLs, and not
shared libraries (please don’t ask me to make the distinction, I get
confused about this too). Anyway, if the file were a .so.1 then it
would work just fine.

To fix your case you can do any of the following:
(1) Change the .so filename to be .so.1 and rebuild/repackage.
(2) Make a QPG file (described in part 2 of my QDN article, to be
posted next week some time I hope), and add a filetype=“so”
qualifier to the QPG:Add line corresponding to your .so file, then
repackage.
(3) Modify the QPM that you have already got, to add the following
line in the QPM:ContentDescription block:
QPM:ContainsLibrarylibtcl8.3.so</QPM:ContainsLibrary>

Let me know if you have further problems.

Jerry Chappell
jchappell@qnx.com

Jerry Chappell a écrit :

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:
I tried to make 2 packages.
The first one only contains a small shared library and a header.
the package was made successfully but when I try to install it, the
package filesystem gets corrupted.

Can you email me the package, so that I can try to determine
what’s wrong that would corrupt the package filesystem?

unfortunately no because there is no problem with 1.2 version!

The second package concern the tcl distribution. I install it to
/tmp/tcl, removing the local directory. So, I have tcl/usr/bin/tclsh8.3,
tcl/usr/lib/libtcl8.3.so and some others lib files, tcl/usr/include/*.h,
tcl/usr/man.
No problem to create the package but when I try to install it, it
complain about the dependency with the libtcl8.3.so.
Of course, this library is not yet installed but belongs to the package.
Why this warning?

The problem is that packager thinks .so files are DLLs, and not
shared libraries (please don’t ask me to make the distinction, I get
confused about this too). Anyway, if the file were a .so.1 then it
would work just fine.

To fix your case you can do any of the following:
(1) Change the .so filename to be .so.1 and rebuild/repackage.
(2) Make a QPG file (described in part 2 of my QDN article, to be
posted next week some time I hope), and add a filetype=“so”
qualifier to the QPG:Add line corresponding to your .so file, then
repackage.
(3) Modify the QPM that you have already got, to add the following
line in the QPM:ContentDescription block:
QPM:ContainsLibrary>libtcl8.3.so</QPM:ContainsLibrary

Let me know if you have further problems.

same! my directory tre is:

tcl/:


usr
x86

tcl/usr:


include
lib
man

tcl/usr/include:


tcl.h
tclDecls.h

tcl/usr/lib:


tcl8.3
tclConfig.sh

tcl/usr/lib/tcl8.3:


auto.tcl
encoding
history.tcl
http1.0
http2.3
init.tcl
ldAix
ldAout.tcl
msgcat1.0
opt0.4
package.tcl
parray.tcl
safe.tcl
tclAppInit.c
tclIndex
tcltest1.0
word.tcl

tcl/usr/lib/tcl8.3/encoding:


ascii.enc
#and others files

tcl/usr/lib/tcl8.3/http1.0:


http.tcl
pkgIndex.tcl

tcl/usr/lib/tcl8.3/http2.3:


http.tcl
pkgIndex.tcl

tcl/usr/lib/tcl8.3/msgcat1.0:


msgcat.tcl
pkgIndex.tcl

tcl/usr/lib/tcl8.3/opt0.4:


optparse.tcl
pkgIndex.tcl

tcl/usr/lib/tcl8.3/tcltest1.0:


pkgIndex.tcl
tcltest.tcl

tcl/usr/man:


man1
man3
mann

tcl/usr/man/man1:


tclsh.1

tcl/usr/man/man3:


Access.3
#and other files

tcl/usr/man/mann:


Http.n
#and other files

tcl/x86:


bin
lib

tcl/x86/bin:


tclsh8.3

tcl/x86/lib:


libtcl8.3.so
libtcl8.3.so.1
libtclstub8.3.a


Jerry Chappell
jchappell@qnx.com

Jerry Chappell a écrit :

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:
I tried to make 2 packages.
The first one only contains a small shared library and a header.
the package was made successfully but when I try to install it, the
package filesystem gets corrupted.

Can you email me the package, so that I can try to determine
what’s wrong that would corrupt the package filesystem?

The second package concern the tcl distribution. I install it to
/tmp/tcl, removing the local directory. So, I have tcl/usr/bin/tclsh8.3,
tcl/usr/lib/libtcl8.3.so and some others lib files, tcl/usr/include/*.h,
tcl/usr/man.
No problem to create the package but when I try to install it, it
complain about the dependency with the libtcl8.3.so.
Of course, this library is not yet installed but belongs to the package.
Why this warning?

The problem is that packager thinks .so files are DLLs, and not
shared libraries (please don’t ask me to make the distinction, I get
confused about this too). Anyway, if the file were a .so.1 then it
would work just fine.

To fix your case you can do any of the following:
(1) Change the .so filename to be .so.1 and rebuild/repackage.
(2) Make a QPG file (described in part 2 of my QDN article, to be
posted next week some time I hope), and add a filetype=“so”
qualifier to the QPG:Add line corresponding to your .so file, then
repackage.
(3) Modify the QPM that you have already got, to add the following
line in the QPM:ContentDescription block:
QPM:ContainsLibrary>libtcl8.3.so</QPM:ContainsLibrary

Let me know if you have further problems.

Jerry Chappell
jchappell@qnx.com

now the package names are something like:
R-miscslib_x86-1.0-x86-Rieter.qpr

Why two x86?

Thanks,
Alain.

Jerry Chappell a écrit :

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:
I tried to make 2 packages.
The first one only contains a small shared library and a header.
the package was made successfully but when I try to install it, the
package filesystem gets corrupted.

Can you email me the package, so that I can try to determine
what’s wrong that would corrupt the package filesystem?

The second package concern the tcl distribution. I install it to
/tmp/tcl, removing the local directory. So, I have tcl/usr/bin/tclsh8.3,
tcl/usr/lib/libtcl8.3.so and some others lib files, tcl/usr/include/*.h,
tcl/usr/man.
No problem to create the package but when I try to install it, it
complain about the dependency with the libtcl8.3.so.
Of course, this library is not yet installed but belongs to the package.
Why this warning?

The problem is that packager thinks .so files are DLLs, and not
shared libraries (please don’t ask me to make the distinction, I get
confused about this too). Anyway, if the file were a .so.1 then it
would work just fine.

To fix your case you can do any of the following:
(1) Change the .so filename to be .so.1 and rebuild/repackage.
(2) Make a QPG file (described in part 2 of my QDN article, to be
posted next week some time I hope), and add a filetype=“so”
qualifier to the QPG:Add line corresponding to your .so file, then
repackage.
(3) Modify the QPM that you have already got, to add the following
line in the QPM:ContentDescription block:
QPM:ContainsLibrary>libtcl8.3.so</QPM:ContainsLibrary

Let me know if you have further problems.

Jerry Chappell
jchappell@qnx.com

Jerry Chappell a écrit :

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:
I tried to make 2 packages.
The first one only contains a small shared library and a header.
the package was made successfully but when I try to install it, the
package filesystem gets corrupted.

Can you email me the package, so that I can try to determine
what’s wrong that would corrupt the package filesystem?

The second package concern the tcl distribution. I install it to
/tmp/tcl, removing the local directory. So, I have tcl/usr/bin/tclsh8.3,
tcl/usr/lib/libtcl8.3.so and some others lib files, tcl/usr/include/*.h,
tcl/usr/man.
No problem to create the package but when I try to install it, it
complain about the dependency with the libtcl8.3.so.
Of course, this library is not yet installed but belongs to the package.
Why this warning?

The problem is that packager thinks .so files are DLLs, and not
shared libraries (please don’t ask me to make the distinction, I get
confused about this too). Anyway, if the file were a .so.1 then it
would work just fine.

To fix your case you can do any of the following:
(1) Change the .so filename to be .so.1 and rebuild/repackage.
(2) Make a QPG file (described in part 2 of my QDN article, to be
posted next week some time I hope), and add a filetype=“so”
qualifier to the QPG:Add line corresponding to your .so file, then
repackage.
(3) Modify the QPM that you have already got, to add the following
line in the QPM:ContentDescription block:
QPM:ContainsLibrary>libtcl8.3.so</QPM:ContainsLibrary

Let me know if you have further problems.

Jerry Chappell
jchappell@qnx.com

Ok for the tag:
QPM:ContainsLibrarylibtcl8.3.so</QPM:ContainsLibrary>
but I have to insert it by hand.


I wanted to add the tcl custom licence file to the package. This licence file
is in somewhere in my home directory.
I specified the path to packager. According to the doc, it would have been
include in the package.
The resulting tag is:

QPM:LicenseUrlrep://tcltk-qnx6_1-8.3.2-public.repdata/LicenseUrl/license.terms</QPM:LicenseUrl>

ok, Maybe but when I try to install the package, I get shortly a message
saying that the licence file is missing followed by a segmentation fault.

core file available but 4 Mb !!!

Thanks,
Alain.