Issue 82551

Summary: Presentation Minimizers description.xml broken?
Product: Draw Reporter: rene
Component: configurationAssignee: AOO issues mailing list <issues>
Status: REOPENED --- QA Contact:
Severity: Trivial    
Priority: P2 CC: christoph.lukasiak, issues
Version: 680m233   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description rene 2007-10-12 13:41:08 UTC
rene@frodo:~/OpenOffice.org/SRC680/sdext/unxlngx6.pro/bin$ sudo
/usr/lib/openoffice/program/unopkg add --shared sun-presentation-minimizer.oxt 
namespace error : Namespace prefix d for name on OpenOffice.org-minimal-version
is not defined
                <OpenOffice.org-minimal-version value="2.3"
d:name="OpenOffice.org 2.3"/>
                                                                               
       ^
namespace error : Namespace prefix d for name on OpenOffice.org-minimal-version
is not defined
                <OpenOffice.org-minimal-version value="2.3"
d:name="OpenOffice.org 2.3"/>
                                                                               
       ^
namespace error : Namespace prefix d for name on OpenOffice.org-minimal-version
is not defined
                <OpenOffice.org-minimal-version value="2.3"
d:name="OpenOffice.org 2.3"/>
                                                                               
       ^
namespace error : Namespace prefix d for name on OpenOffice.org-minimal-version
is not defined
                <OpenOffice.org-minimal-version value="2.3"
d:name="OpenOffice.org 2.3"/>
                                                                               
       ^

ERROR: Could not obtain the url to the license text file.
       Cause: Cannot find a localized license text or a default license text.

unopkg failed.
rene@frodo:~/OpenOffice.org/SRC680/sdext/unxlngx6.pro/bin$
Comment 1 clippka 2007-10-12 13:45:21 UTC
retarget
Comment 2 sven.jacobi 2007-10-12 13:56:44 UTC
accepted
Comment 3 sven.jacobi 2007-10-15 14:47:36 UTC
this issue has been fixed now
Comment 4 sven.jacobi 2007-10-25 16:22:49 UTC
sj->clu: You can test the bugfix by adding the component via unopkg.
Comment 5 christoph.lukasiak 2007-10-29 15:47:25 UTC
verified in cws
Comment 6 rene 2007-11-13 14:51:17 UTC
I have no idea how you verified this, but (m236 build):

rene@frodo:~/OpenOffice.org/SRC680/sdext$ sudo
/opt/openoffice.org2.3/program/unopkg add --shared
unxlngx6.pro/bin/sun-presentation-minimizer.oxt 

ERROR: Could not obtain the url to the license text file.
       Cause: Cannot find a localized license text or a default license text.

unopkg failed.

Reopen.
Comment 7 rene 2007-11-13 14:53:51 UTC
reassign
Comment 8 sven.jacobi 2007-11-13 15:37:56 UTC
I see this issue is partly fixed, the problem is that the default language
doesn't work. If a locale is used that doesn't match to a license text, the
unopkg add fails.
Comment 9 rene 2007-11-13 15:49:51 UTC
are you sure?

rene@frodo:~/OpenOffice.org/SRC680/sdext/unxlngx6.pro/bin$ LANG="en_NZ" sudo
/opt/openoffice.org2.3/program/unopkg add --shared sun-presentation-minimizer.oxt 

ERROR: Could not obtain the url to the license text file.
       Cause: Cannot find a localized license text or a default license text.

unopkg failed.
Comment 10 sven.jacobi 2007-11-13 15:59:22 UTC
Yes, it seems that without an "license-id" attribute no default is taken (and in
my opinion this is a bit redundant)

http://api.openoffice.org/docs/DevelopersGuide/Extensions/Extensions.xhtml#1_5_description.xml

Comment 11 sven.jacobi 2007-11-15 16:28:53 UTC
sj: this now has been fixed in cws[pppopt04]

the fix takes place in solenv/bin/licinserter.pl 1.2.50.1
and sdext/source/minimizer/description.xml 1.4.4.1
Comment 12 rene 2007-11-16 14:54:07 UTC
reopening.

solenv and sdext from cws pppopt04 give the same.
Comment 13 sven.jacobi 2007-11-16 15:27:54 UTC
@rene, then please add your description.xml as attachment, so that I can see
that anything has been build correct.
Comment 14 rene 2007-11-16 22:44:57 UTC
rene@frodo:~/OpenOffice.org/SRC680/solenv$ cat CVS/Tag 
Tcws_src680_pppopt04
rene@frodo:~/OpenOffice.org/SRC680/solenv$ cd ../sdext
rene@frodo:~/OpenOffice.org/SRC680/sdext$ cat CVS/Tag 
Tcws_src680_pppopt04
rene@frodo:~/OpenOffice.org/SRC680/sdext$ cat
./unxlngx6.pro/misc/SunPresentationMinimizer/description.xml
<?xml version="1.0" encoding="UTF-8"?>
<description xmlns="http://openoffice.org/extensions/description/2006"
        xmlns:dep="http://openoffice.org/extensions/description/2006"
    xmlns:xlink="http://www.w3.org/1999/xlink">
        <version value="1.0" />
        <dependencies>
                <OpenOffice.org-minimal-version value="2.3"
dep:name="OpenOffice.org 2.3"/>
        </dependencies>
        <registration>
        <simple-license accept-by="admin" default-license-id="lic-en-US">
        </simple-license>
    </registration>
</description>
Comment 15 sven.jacobi 2007-11-19 11:57:55 UTC
@rene, I can see in your posted description.xml that you are using the correct
version and that my fixes are working properly: default-license-id has been
changed from "en-NZ" to "lic-en-US" -> my fix works as desired the
description.xml is no longer broken.

---------------------------------

I can also see in your description.xml that your license texts are still
missing, but this can|t be fixed by me. You might have one of the following
problems:

Maybe the following code of the makefile.mk isn|t copy at least one license text
(the licenses are used from the osl project) :
.IF "$(GUI)" == "WIN" || "$(GUI)" == "WNT"
$(PACKLICS) : $(SOLARBINDIR)$/osl$/license$$(@:b:s/_/./:e:s/./_/)$$(@:e).txt
	@@-$(MKDIRHIER) $(@:d)
	$(GNUCOPY) $< $@
.ELSE
$(PACKLICS) : $(SOLARBINDIR)$/osl$/LICENSE$$(@:b:s/_/./:e:s/./_/)$$(@:e)
	@@-$(MKDIRHIER) $(@:d)
	$(GNUCOPY) $< $@
.ENDIF

or second, the licinserter.pl is not working properly, this perl script makes
one entry in description.xml for each license text.

At the end, the description.xml file should look similar to this:

<?xml version="1.0" encoding="UTF-8"?>
<description xmlns="http://openoffice.org/extensions/description/2006"
	xmlns:dep="http://openoffice.org/extensions/description/2006"
    xmlns:xlink="http://www.w3.org/1999/xlink">
	<version value="1.0" />
	<dependencies>
		<OpenOffice.org-minimal-version value="2.3" dep:name="OpenOffice.org 2.3"/>
	</dependencies>
	<registration>
        <simple-license accept-by="admin" default-license-id="lic-en-US">
            <license-text xlink:href="registry/LICENSE_en-US" lang="en-US"
license-id="lic-en-US"/>
            <license-text xlink:href="registry/LICENSE_de" lang="de"
license-id="lic-de"/>
        </simple-license>
    </registration>
</description>


Please provide another Issue for your problem.
Comment 16 sven.jacobi 2007-11-19 12:06:25 UTC
still verified because I didn|t touch any code.
Comment 17 rene 2007-11-19 12:09:51 UTC
sj: sorry, I don't believe that this is relevant in any case.

a) this is a build with en-US only, so of course no de license stuff there
b) I did a clean build, with readlicense_oo etc. built (you missed a build dep
on that one), there's no osl project but readlicense_oo.
c) the description.xml as created by a plain en-US build is not working.

Reopening.  Plain build without de should work too and the extension still
should be installable. I'll try a build with en-US and de, too, though...

(FWIW, I will patch the whole license stuff out for Debian anyway as showing the
LGPL is nonsense)
Comment 18 rene 2007-11-19 12:51:42 UTC
sj: That said, it really works when bulding with de, too (my locale still is de_DE).
You really want to keep everyone which doesn't do a localized build or a locale
which is not supported by OOo out of installing this extension? As an example,
the report-builder extension gets around without that bogus limitation.
Comment 19 rene 2007-11-19 12:52:46 UTC
sj: and since the license shown for the de case is the *english* LGPL anyway
(ywes, that's right, it's the only legally valid one) it doesn't make sense to
have "localized" licenses anyway
Comment 20 sven.jacobi 2007-11-19 15:17:00 UTC
Now en-US is always taken, independently from what is set in WITH_LANG. This
should solve all problems.

Rene: can you then please verify my changes (solenv/bin/licinserter.pl -r1.2.50.2)
Comment 21 rene 2007-11-19 17:01:25 UTC
sj: sorry, but I can't. still happens. (normal build with out --with-lang)
Comment 22 rene 2007-11-19 17:03:01 UTC
sj: (tried with LANG=C, LANG=en_US, LANG=de_DE.UTF-8)
Comment 23 Martin Hollmichel 2008-02-12 10:23:47 UTC
set target 3.0
Comment 24 sven.jacobi 2008-06-05 09:31:55 UTC
changed target