DebianPackaging

Z Denik

(Rozdíly mezi verzemi)
Přejít na: navigace, hledání
(What needs to be packaged?)
(Problem when building from sources)
 
(Není zobrazeno 6 mezilehlých verzí.)
Řádka 3: Řádka 3:
* HTML/Java: http://hg.netbeans.org/html4j/ - most recent revision 1.2.3
* HTML/Java: http://hg.netbeans.org/html4j/ - most recent revision 1.2.3
-
* webkit module from the úhttps://github.com/dukescript/dukescript-presenters presenters project) (when that part is make public)
+
* webkit and browser modules from the [https://github.com/dukescript/dukescript-presenters presenters project] - available since [https://github.com/dukescript/dukescript-presenters/commit/ecf53de558810c92c88ee39897e0657ef0f23628 commit]
-
 
+
* Package for debian and ubuntu
* Package for debian and ubuntu
* Get it into next release of these distributions
* Get it into next release of these distributions
== What has been done? ==
== What has been done? ==
 +
 +
Re-package '''release-1.2.3''' to be suitable for debina/ubuntu.
There is a branch debian at Jaroslav's personal clone of the repository at http://source.apidesign.org/hg/html~html4j/. Check it out as
There is a branch debian at Jaroslav's personal clone of the repository at http://source.apidesign.org/hg/html~html4j/. Check it out as
Řádka 18: Řádka 19:
</pre>
</pre>
-
The branch fixed various versioning issues and remove test classes and dependencies from the project. Remaining major dependency is OpenJavaFX (part of debian, but not ubuntu currently) needed for the boot-fx project (currently disabled; but it would be nice to have it enabled).
+
The branch fixed various versioning issues and remove test classes and dependencies from the project. Remaining major dependency is OpenJavaFX ([https://packages.debian.org/sid/openjfx part of debian], but not ubuntu currently) needed for the boot-fx project (currently disabled; but it would be nice to have it enabled).
There is debian maven helper that can be executed in the repository as:
There is debian maven helper that can be executed in the repository as:
Řádka 25: Řádka 26:
$ /usr/bin/mh_make -dfalse -tfalse -v
$ /usr/bin/mh_make -dfalse -tfalse -v
</pre>
</pre>
 +
 +
== Problem when building from sources ==
 +
 +
I did:
 +
<pre>
 +
$ hg clone http://source.apidesign.org/hg/html~html4j/
 +
$ cd html~html4j
 +
$ hg up -C debian
 +
</pre>
 +
Then I found some dependencies are missing so I created $HOME/.m2/settings.xml:
 +
<pre>
 +
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
 +
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 +
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
 +
    <profiles>
 +
        <profile>
 +
            <id>nbprofile</id>
 +
            <repositories>
 +
                <repository>
 +
                    <id>nb-repo</id>
 +
                    <name>NetBeans Repo</name>
 +
                    <url>http://bits.netbeans.org/nexus/content/groups/netbeans/</url>
 +
                </repository>
 +
            </repositories>
 +
        </profile>
 +
    </profiles>
 +
   
 +
    <activeProfiles>
 +
        <activeProfile>nbprofile</activeProfile>
 +
    </activeProfiles>
 +
</settings>
 +
</pre>
 +
I also needed to set in pom.xml netbeans.version to RELEASE70. Now 'mvn package' gives following failure:
 +
<pre>
 +
Results :
 +
 +
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0
 +
 +
[INFO]
 +
[INFO] --- maven-bundle-plugin:2.3.5:bundle (default-bundle) @ net.java.html ---
 +
[WARNING] Bundle org.netbeans.html:net.java.html:bundle:1.2.3 : Instructions in Export-Package that are never used: META-INF\.services\..*|META-INF\.services
 +
Classpath: Jar:.
 +
 +
[ERROR] Bundle org.netbeans.html:net.java.html:bundle:1.2.3 : Exporting packages that are not on the Bundle-Classpath[Jar:dot]: [META-INF.services.*]
 +
[ERROR] Error(s) found in bundle configuration
 +
[INFO] ------------------------------------------------------------------------
 +
[INFO] Reactor Summary:
 +
[INFO]
 +
</pre>
 +
 +
I build on Debian last release using Open JDK 8 and Maven 3.0.5.
 +
 +
Build '''release-1.2.3''' branch, if you want to build release the Java way. the '''debian''' branch is an attempt to adjust the dependencies to ''Debian'' existing ones.

Aktuální verze z 26. 12. 2015, 20:05

[editovat] What needs to be packaged?

[editovat] What has been done?

Re-package release-1.2.3 to be suitable for debina/ubuntu.

There is a branch debian at Jaroslav's personal clone of the repository at http://source.apidesign.org/hg/html~html4j/. Check it out as

$ hg clone http://source.apidesign.org/hg/html~html4j/
$ cd html~html4j
$ hg up -C debian

The branch fixed various versioning issues and remove test classes and dependencies from the project. Remaining major dependency is OpenJavaFX (part of debian, but not ubuntu currently) needed for the boot-fx project (currently disabled; but it would be nice to have it enabled).

There is debian maven helper that can be executed in the repository as:

$ /usr/bin/mh_make -dfalse -tfalse -v

[editovat] Problem when building from sources

I did:

$ hg clone http://source.apidesign.org/hg/html~html4j/
$ cd html~html4j
$ hg up -C debian

Then I found some dependencies are missing so I created $HOME/.m2/settings.xml:

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
    <profiles>
        <profile>
            <id>nbprofile</id>
            <repositories>
                <repository>
                    <id>nb-repo</id>
                    <name>NetBeans Repo</name>
                    <url>http://bits.netbeans.org/nexus/content/groups/netbeans/</url>
                </repository>
            </repositories>
        </profile>
    </profiles>
     
    <activeProfiles>
        <activeProfile>nbprofile</activeProfile>
    </activeProfiles>
</settings>

I also needed to set in pom.xml netbeans.version to RELEASE70. Now 'mvn package' gives following failure:

Results :

Tests run: 6, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-bundle-plugin:2.3.5:bundle (default-bundle) @ net.java.html ---
[WARNING] Bundle org.netbeans.html:net.java.html:bundle:1.2.3 : Instructions in Export-Package that are never used: META-INF\.services\..*|META-INF\.services
Classpath: Jar:.

[ERROR] Bundle org.netbeans.html:net.java.html:bundle:1.2.3 : Exporting packages that are not on the Bundle-Classpath[Jar:dot]: [META-INF.services.*]
[ERROR] Error(s) found in bundle configuration
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]

I build on Debian last release using Open JDK 8 and Maven 3.0.5.

Build release-1.2.3 branch, if you want to build release the Java way. the debian branch is an attempt to adjust the dependencies to Debian existing ones.