aMSN Forums
August 25, 2019, 04:49:29 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New forum for aMSN !!
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  Development / Amsn development related issues / 2 Patches to fix broken rpm generation on: August 31, 2012, 11:46:45 pm
Hello,

I updated aMSN from subversion tree at revision r12413 and it appears that rpm package generation has been broken for a long time (and is still broken).
I am using  these 2 commands to build aMSN packages :

./configure --prefix=/usr --libdir=/usr/lib
make rpm

[...]

Check for unpackaged rpm: /usr/lib/rpm/check-files /usr/src/packages/BUILDROOT/amsn-0.99b-svn12412.x86_64
error: installed but unpackaged file(s):
   /usr/lib/amsn/utils/TkCximage/TkCximage.so
   /usr/lib/amsn/utils/TkCximage/pkgIndex.tcl
   /usr/lib/amsn/utils/asyncresolver/asyncresolver.tcl
   /usr/lib/amsn/utils/asyncresolver/libasyncresolver.so
   /usr/lib/amsn/utils/asyncresolver/pkgIndex.tcl
   /usr/lib/amsn/utils/farsight/pkgIndex.tcl
   /usr/lib/amsn/utils/farsight/tcl_farsight.so
   /usr/lib/amsn/utils/gupnp/gupnp.so
   /usr/lib/amsn/utils/gupnp/pkgIndex.tcl
   /usr/lib/amsn/utils/linux/capture/capture.so
   /usr/lib/amsn/utils/linux/capture/libng/libng.so
   /usr/lib/amsn/utils/linux/capture/libng/plugins/conv-mjpeg.so
   /usr/lib/amsn/utils/linux/capture/libng/plugins/drv0-v4l2.so
   /usr/lib/amsn/utils/linux/capture/libng/plugins/drv1-v4l.so
   /usr/lib/amsn/utils/linux/capture/libng/plugins/sn9c10x.so
   /usr/lib/amsn/utils/linux/capture/pkgIndex.tcl
   /usr/lib/amsn/utils/linux/linflash/flash.so
   /usr/lib/amsn/utils/linux/linflash/pkgIndex.tcl
   /usr/lib/amsn/utils/linux/traydock/libtray.so
   /usr/lib/amsn/utils/linux/traydock/pkgIndex.tcl
   /usr/lib/amsn/utils/tclISF/pkgIndex.tcl
   /usr/lib/amsn/utils/tclISF/tclISF.so
   /usr/lib/amsn/utils/tcl_siren/pkgIndex.tcl
   /usr/lib/amsn/utils/tcl_siren/tcl_siren.so
   /usr/lib/amsn/utils/webcamsn/pkgIndex.tcl
   /usr/lib/amsn/utils/webcamsn/webcamsn.so


rpm build error:
   installed but unpackaged file(s):
   /usr/lib/amsn/utils/TkCximage/TkCximage.so
   /usr/lib/amsn/utils/TkCximage/pkgIndex.tcl
   /usr/lib/amsn/utils/asyncresolver/asyncresolver.tcl
   /usr/lib/amsn/utils/asyncresolver/libasyncresolver.so
   /usr/lib/amsn/utils/asyncresolver/pkgIndex.tcl
   /usr/lib/amsn/utils/farsight/pkgIndex.tcl
   /usr/lib/amsn/utils/farsight/tcl_farsight.so
   /usr/lib/amsn/utils/gupnp/gupnp.so
   /usr/lib/amsn/utils/gupnp/pkgIndex.tcl
   /usr/lib/amsn/utils/linux/capture/capture.so
   /usr/lib/amsn/utils/linux/capture/libng/libng.so
   /usr/lib/amsn/utils/linux/capture/libng/plugins/conv-mjpeg.so
   /usr/lib/amsn/utils/linux/capture/libng/plugins/drv0-v4l2.so
   /usr/lib/amsn/utils/linux/capture/libng/plugins/drv1-v4l.so
   /usr/lib/amsn/utils/linux/capture/libng/plugins/sn9c10x.so
   /usr/lib/amsn/utils/linux/capture/pkgIndex.tcl
   /usr/lib/amsn/utils/linux/linflash/flash.so
   /usr/lib/amsn/utils/linux/linflash/pkgIndex.tcl
   /usr/lib/amsn/utils/linux/traydock/libtray.so
   /usr/lib/amsn/utils/linux/traydock/pkgIndex.tcl
   /usr/lib/amsn/utils/tclISF/pkgIndex.tcl
   /usr/lib/amsn/utils/tclISF/tclISF.so
   /usr/lib/amsn/utils/tcl_siren/pkgIndex.tcl
   /usr/lib/amsn/utils/tcl_siren/tcl_siren.so
   /usr/lib/amsn/utils/webcamsn/pkgIndex.tcl
   /usr/lib/amsn/utils/webcamsn/webcamsn.so
make: *** [rpm] Error 1

Older amsn packages used wrongly to install libraries in _datadir which is defined as /usr/share/amsn/<subdirs> but they should be installed in _libdir defined as /usr/lib/amsn/<subdirs>.
So, I added _libdir definition in Makefile.in and used it in file section of amsn.spec, and i got a new amsn package.

Here's come two patches. Please apply them in the subversion tree :

--- amsn/amsn.spec.old  2012-08-19 08:52:52.163567012 +0200                                                                                                                                                   
+++ amsn/amsn.spec      2012-08-20 18:15:19.624826085 +0200                                                                                                                                                   
@@ -102,6 +102,7 @@                                                                                                                                                                                           
 %{_bindir}                                                                                                                                                                                                   
 %{_desk_icons}/amsn.png                                                                                                                                                                                       
 %{_datadir}                                                                                                                                                                                                   
+%{_libdir}                                                                                                                                                                                                   
 %{_desk_applnk}/*.desktop                                                                                                                                                                                     
                                                                                                                                                                                                               
 %changelog
--- amsn/Makefile.in.old        2012-08-19 08:52:52.150564943 +0200
+++ amsn/Makefile.in    2012-08-20 18:15:55.795122962 +0200
@@ -299,6 +299,7 @@
        echo "%define _tmppath /tmp" >> THIS.AMSN.SPEC
        echo "%define _datadir $(dstdir)/$(PACKAGE)" >> THIS.AMSN.SPEC
        echo "%define _bindir $(slnkdir)" >> THIS.AMSN.SPEC
+       echo "%define _libdir $(libdir)/$(PACKAGE)" >> THIS.AMSN.SPEC
        echo "%define _doc_files $(doc_files)" >> THIS.AMSN.SPEC
        echo "%define _platform `uname -m`" >> THIS.AMSN.SPEC
        echo "%define _version $(BASEVERSION)" >> THIS.AMSN.SPEC
2  aMSN Support / Linux / Re: rpm package generation is broken on: August 20, 2012, 09:57:54 am
Older amsn packages used wrongly to install libraries in _datadir which is defined as /usr/share/amsn/<subdirs> but they should be installed in _libdir defined as /usr/lib/amsn/<subdirs>.
So, I added _libdir definition in Makefile.in and used it in file section of amsn.spec, and i got a new amsn package.

Here's come two patches. Please apply them in the subversion tree :

--- amsn.spec.old       2011-02-06 16:28:52.084346001 +0100
+++ amsn.spec   2012-08-20 10:34:57.640656235 +0200
@@ -102,6 +102,7 @@
 %{_bindir}
 %{_desk_icons}/amsn.png
 %{_datadir}
+%{_libdir}
 %{_desk_applnk}/*.desktop
 
 %changelog
--- Makefile.in.old     2012-08-20 10:40:27.816523338 +0200
+++ Makefile.in 2012-08-20 10:34:04.252268733 +0200
@@ -299,6 +299,7 @@
        echo "%define _tmppath /tmp" >> THIS.AMSN.SPEC
        echo "%define _datadir $(dstdir)/$(PACKAGE)" >> THIS.AMSN.SPEC
        echo "%define _bindir $(slnkdir)" >> THIS.AMSN.SPEC
+       echo "%define _libdir $(libdir)/$(PACKAGE)" >> THIS.AMSN.SPEC
        echo "%define _doc_files $(doc_files)" >> THIS.AMSN.SPEC
        echo "%define _platform `uname -m`" >> THIS.AMSN.SPEC
        echo "%define _version $(BASEVERSION)" >> THIS.AMSN.SPEC
3  aMSN Support / Linux / rpm package generation is broken on: August 19, 2012, 08:07:50 am
Hello,

I updated aMSN from subversion tree today again and it appears that rpm package generation has been broken for a long time (and it is still).
I am using  these 2 commands to build aMSN packages :

./configure --prefix=/usr --libdir=/usr/lib
make rpm

[...]

Check for unpackaged rpm: /usr/lib/rpm/check-files /usr/src/packages/BUILDROOT/amsn-0.99b-svn12412.x86_64
error: installed but unpackaged file(s):
   /usr/lib/amsn/utils/TkCximage/TkCximage.so
   /usr/lib/amsn/utils/TkCximage/pkgIndex.tcl
   /usr/lib/amsn/utils/asyncresolver/asyncresolver.tcl
   /usr/lib/amsn/utils/asyncresolver/libasyncresolver.so
   /usr/lib/amsn/utils/asyncresolver/pkgIndex.tcl
   /usr/lib/amsn/utils/farsight/pkgIndex.tcl
   /usr/lib/amsn/utils/farsight/tcl_farsight.so
   /usr/lib/amsn/utils/gupnp/gupnp.so
   /usr/lib/amsn/utils/gupnp/pkgIndex.tcl
   /usr/lib/amsn/utils/linux/capture/capture.so
   /usr/lib/amsn/utils/linux/capture/libng/libng.so
   /usr/lib/amsn/utils/linux/capture/libng/plugins/conv-mjpeg.so
   /usr/lib/amsn/utils/linux/capture/libng/plugins/drv0-v4l2.so
   /usr/lib/amsn/utils/linux/capture/libng/plugins/drv1-v4l.so
   /usr/lib/amsn/utils/linux/capture/libng/plugins/sn9c10x.so
   /usr/lib/amsn/utils/linux/capture/pkgIndex.tcl
   /usr/lib/amsn/utils/linux/linflash/flash.so
   /usr/lib/amsn/utils/linux/linflash/pkgIndex.tcl
   /usr/lib/amsn/utils/linux/traydock/libtray.so
   /usr/lib/amsn/utils/linux/traydock/pkgIndex.tcl
   /usr/lib/amsn/utils/tclISF/pkgIndex.tcl
   /usr/lib/amsn/utils/tclISF/tclISF.so
   /usr/lib/amsn/utils/tcl_siren/pkgIndex.tcl
   /usr/lib/amsn/utils/tcl_siren/tcl_siren.so
   /usr/lib/amsn/utils/webcamsn/pkgIndex.tcl
   /usr/lib/amsn/utils/webcamsn/webcamsn.so


rpm build error:
   installed but unpackaged file(s):
   /usr/lib/amsn/utils/TkCximage/TkCximage.so
   /usr/lib/amsn/utils/TkCximage/pkgIndex.tcl
   /usr/lib/amsn/utils/asyncresolver/asyncresolver.tcl
   /usr/lib/amsn/utils/asyncresolver/libasyncresolver.so
   /usr/lib/amsn/utils/asyncresolver/pkgIndex.tcl
   /usr/lib/amsn/utils/farsight/pkgIndex.tcl
   /usr/lib/amsn/utils/farsight/tcl_farsight.so
   /usr/lib/amsn/utils/gupnp/gupnp.so
   /usr/lib/amsn/utils/gupnp/pkgIndex.tcl
   /usr/lib/amsn/utils/linux/capture/capture.so
   /usr/lib/amsn/utils/linux/capture/libng/libng.so
   /usr/lib/amsn/utils/linux/capture/libng/plugins/conv-mjpeg.so
   /usr/lib/amsn/utils/linux/capture/libng/plugins/drv0-v4l2.so
   /usr/lib/amsn/utils/linux/capture/libng/plugins/drv1-v4l.so
   /usr/lib/amsn/utils/linux/capture/libng/plugins/sn9c10x.so
   /usr/lib/amsn/utils/linux/capture/pkgIndex.tcl
   /usr/lib/amsn/utils/linux/linflash/flash.so
   /usr/lib/amsn/utils/linux/linflash/pkgIndex.tcl
   /usr/lib/amsn/utils/linux/traydock/libtray.so
   /usr/lib/amsn/utils/linux/traydock/pkgIndex.tcl
   /usr/lib/amsn/utils/tclISF/pkgIndex.tcl
   /usr/lib/amsn/utils/tclISF/tclISF.so
   /usr/lib/amsn/utils/tcl_siren/pkgIndex.tcl
   /usr/lib/amsn/utils/tcl_siren/tcl_siren.so
   /usr/lib/amsn/utils/webcamsn/pkgIndex.tcl
   /usr/lib/amsn/utils/webcamsn/webcamsn.so
make: *** [rpm] Erreur 1

Looks like new files have been compiled / added, and noone has updated the installer ...
4  aMSN Support / Linux / original XML bug report on: December 26, 2007, 02:07:02 pm
<?xml version="1.0"?>
<bug version="0.3">
        <error>
                <date>1198674122</date>
                <text>{{bad window path name ".assistant5.bodyf.contentf.right.testf.stoptest"}}</text>
                <stack>bad window path name ".assistant5.bodyf.contentf.right.testf.stoptest"
    while executing
"bind $w.testf.stoptest <ButtonPress-1> """
    (procedure "::AVAssistant::endPlayTest" line 3)
    invoked from within
"::AVAssistant::endPlayTest .assistant5.bodyf.contentf.right"
    ("after" script)</stack>
                <code>NONE</code>
        </error>
        <system>
                <amsn>0.98b</amsn>
                <revision>9194</revision>
                <date>12/25/2007 20:27:55</date>
                <tcl>8.4.15</tcl>
                <tk>8.4.15</tk>
                <osversion>2.6.22.13-0.3-default</osversion>
                <byteorder>littleEndian</byteorder>
                <machine>i686</machine>
                <platform>unix</platform>
                <os>Linux</os>
                <user>gilles</user>
                <wordsize>4</wordsize>
                <msnprotocol>11</msnprotocol>
                <loadedplugins>Nudge Winks {Cam Shooter} remind</loadedplugins>
                <vendor>aMSN</vendor>
        </system>
        <extra>
                <status_log>
[13:52:58] ::abook::getFirewalled: connection_success (0)
[13:52:58] ::abook::getFirewalled: connection_success (0)
[13:52:58] My IP is 82.230.219.223
[13:53:18] Challenge received, answering
[13:53:18] Challenge accepted
[13:53:22] Catch in proc trans (MSN ): can't read &quot;lang(MSN)&quot;: no such element in array
[13:53:22] Catch in proc trans (TLS ): can't read &quot;lang(TLS)&quot;: no such element in array
[13:53:33] -----------------------------------------
[13:53:33] &gt;&gt;&gt; GOT TCL/TK ERROR : {{bad window path name &quot;.assistant1.bodyf.contentf.right.testf.stoptest&quot;}}
&gt;&gt;&gt; Stack:
bad window path name &quot;.assistant1.bodyf.contentf.right.testf.stoptest&quot;
    while executing
&quot;bind $w.testf.stoptest &lt;ButtonPress-1&gt; &quot;&quot;&quot;
    (procedure &quot;::AVAssistant::endPlayTest&quot; line 3)
    invoked from within
&quot;::AVAssistant::endPlayTest .assistant1.bodyf.contentf.right&quot;
    (&quot;after&quot; script)
&gt;&gt;&gt; Code: NONE
[13:53:33] -----------------------------------------
[13:53:33] &gt;&gt;&gt; AMSN version: 0.98b - AMSN date: 12/25/2007 20:27:55
[13:53:33] &gt;&gt;&gt; TCL version : 8.4.15 - TK version : 8.4.15
[13:53:33] &gt;&gt;&gt; tcl_platform array content : osVersion 2.6.22.13-0.3-default byteOrder littleEndian machine i686 platform unix os Linux user gilles wordSize 4
[13:53:33] -----------------------------------------

[13:55:01] Assistant: while calling addCancelProc, a proc identified by resetAudio is already registered
[13:55:07] Assistant: while calling addCancelProc, a proc identified by resetAudio is already registered
[13:55:10] -----------------------------------------
[13:55:10] &gt;&gt;&gt; GOT TCL/TK ERROR : {{bad window path name &quot;.assistant3.bodyf.contentf.right.testf.stoptest&quot;}}
&gt;&gt;&gt; Stack:
bad window path name &quot;.assistant3.bodyf.contentf.right.testf.stoptest&quot;
    while executing
&quot;bind $w.testf.stoptest &lt;ButtonPress-1&gt; &quot;&quot;&quot;
    (procedure &quot;::AVAssistant::endPlayTest&quot; line 3)
    invoked from within
&quot;::AVAssistant::endPlayTest .assistant3.bodyf.contentf.right&quot;
    (&quot;after&quot; script)
&gt;&gt;&gt; Code: NONE
[13:55:10] -----------------------------------------
[13:55:10] &gt;&gt;&gt; AMSN version: 0.98b - AMSN date: 12/25/2007 20:27:55
[13:55:10] &gt;&gt;&gt; TCL version : 8.4.15 - TK version : 8.4.15
[13:55:10] &gt;&gt;&gt; tcl_platform array content : osVersion 2.6.22.13-0.3-default byteOrder littleEndian machine i686 platform unix os Linux user gilles wordSize 4
[13:55:10] -----------------------------------------

[13:55:18] save_config: saving config for user gilles.sabouxxx@sadamsnuser.com in /home/gilles/.amsn/gilles_sabourin_free_fr]
[13:55:18] save_config: saving config_file. Opening of file returned : file8
[13:55:18] save_config: Config saved
[13:55:18] Event --changedPreferences-- fired with caller -gui-- and args :
[13:56:56] Catch in proc trans (MSN ): can't read &quot;lang(MSN)&quot;: no such element in array
[13:56:56] Catch in proc trans (TLS ): can't read &quot;lang(TLS)&quot;: no such element in array


                </status_log>
                <protocol_log>
..... [discontinued]
5  aMSN Support / Linux / XML parse error on: December 26, 2007, 02:00:23 pm
Here is the error on the dialog box (hope that helps) :

<b>phpXML error:</b> XML error in file , line 12:
Mismatched tag
   (Text:
)
6  aMSN Support / Linux / TK reports an error in A/V assistant - svn #9194 on: December 26, 2007, 01:54:52 pm
Right !
7  aMSN Support / Linux / send button for bugs report ... does not work! - svn #9194 on: December 25, 2007, 10:18:58 pm
I have to grep into tcl scripts to find "mailto" and mail manually to ... a closed mailing list ...
8  aMSN Support / Linux / TK reports an error in A/V assistant - svn #9194 on: December 25, 2007, 10:15:17 pm
... just before microphone configuration

bad window path name ".assistant1.bodyf.contentf.right.testf.stoptest"
    while executing
"bind $w.testf.stoptest <ButtonPress-1> """
    (procedure "::AVAssistant::endPlayTest" line 3)
    invoked from within
"::AVAssistant::endPlayTest .assistant1.bodyf.contentf.right"
    ("after" script)
9  aMSN Support / Linux / Broken amsn.spec in svn revision #8158 (no rpm) on: March 05, 2007, 09:08:41 pm
Sorry, I should have mentioned it. I use opensuse 10.2 with rpm v4.4.2

Maybe this version have more stricter controls ? Any idea about the relinking error ?
10  aMSN Support / Linux / Broken amsn.spec in svn revision #8158 (no rpm) on: March 05, 2007, 08:19:07 pm
"make rpm"  command does not work because of broken amsn.spec.

- Error n.1 :

RPM build errors:
    Macro % has illegal name (%define)
    Bad exit status from /tmp/rpm-tmp.95309 (%install)
make: *** [rpm] Error 1

The solution is to delete the % sign before the "define" in the following comment, since the parser takes it into account :
- added %define's at top of file for easier maintaining

- Error n.2 (after I corrected the first error) :

INFO: relinking /usr/bin/amsn-remote -> ../share/amsn/amsn-remote (was /usr/share/amsn/amsn-remote)
ERROR: link target doesn't exist (neither in build root nor in installed system):
  /usr/share/pixmaps/amsn.png -> /usr/share/amsn/desktop-icons/48x48/amsn.png
Add the package providing the target to neededforbuild and Requires
INFO: relinking /usr/share/pixmaps/amsn.png -> ../amsn/desktop-icons/48x48/amsn.png (was /usr/share/amsn/desktop-icons/48x48/amsn.png)
error: Bad exit status from /tmp/rpm-tmp.91803 (%install)


RPM build errors:
    Bad exit status from /tmp/rpm-tmp.91803 (%install)
make: *** [rpm] Error 1
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!