Bug 1084668

Summary: Tracker bug for all the dependencies / problems with PuppetDB
Product: [Fedora] Fedora Reporter: James (purpleidea) <jshubin>
Component: puppetAssignee: Jeroen van Meeuwen <vanmeeuwen+fedora>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: 23CC: dcleal, fedora, gdubreui, jmontleo, jneedle, jose.p.oliveira.oss, jshubin, k.georgiou, lzap, mastahnke, mmagr, moses, ohadlevy, rbalakri, tmz, trailtotale, vanmeeuwen+fedora
Target Milestone: ---Keywords: Reopened, Tracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-20 12:46:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1072427    
Bug Blocks: 1068867, 1099559    

Description James (purpleidea) 2014-04-05 06:28:46 UTC
Description of problem:

Tracker bug for all the dependencies / problems with PuppetDB

Comment 1 James (purpleidea) 2014-04-05 06:48:41 UTC
We need Leiningen 2.x in Fedora to _compile_ PuppetDB. Currently 1.7 is available

1.7 came in from: https://bugzilla.redhat.com/show_bug.cgi?id=830784

Bug for 2.x is: https://bugzilla.redhat.com/show_bug.cgi?id=1072427

Original fedora feature is: https://fedoraproject.org/wiki/Features/Clojure

Leiningen available from: https://github.com/technomancy/leiningen

And no, nobody knows how to pronounce or spell "leiningen"...

Comment 4 Gilles Dubreuil 2014-05-09 11:57:48 UTC
I've reset to the component's default owner in order to some answers.

Comment 5 James (purpleidea) 2014-05-09 17:48:39 UTC
(In reply to Gilles Dubreuil from comment #4)
> I've reset to the component's default owner in order to some answers.

Okay, however you will probably more interested to have a look at:
https://bugzilla.redhat.com/show_bug.cgi?id=1068867

Comment 6 Fedora End Of Life 2015-05-29 11:28:23 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 7 Fedora End Of Life 2015-06-29 19:54:06 UTC
Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 8 James (purpleidea) 2015-06-29 20:00:39 UTC
Reopening in case anyone is still interested.

Comment 9 Jason Montleon 2015-07-02 19:09:37 UTC
There is no need for Leiningen. 3 maven plugins can do what Leiningen does.

clojure-maven-plugin to build clojure source. maven-shade-plugin to create an 'uberjar', and maven-exec-plugin to set the clj file dates back a bit. Leiningen preserves file dates and maven-shade-plugin does not. clojure tries to recompile any clj file with a date equal to or newer than the class file, which breaks things badly.

If soemone is able and willing to build all the dependencies using maven it can be packaged.

    <plugins>
      <plugin>
        <artifactId>exec-maven-plugin</artifactId>
        <groupId>org.codehaus.mojo</groupId>
        <version>1.3.2</version>
        <executions>
          <execution>
            <id>Clojure you make me so sad</id>
            <phase>verify</phase>
            <goals>
              <goal>exec</goal>
            </goals>
            <configuration>
              <executable>bash</executable>
              <arguments>
                <argument>-c</argument>
                <argument>set -x; pushd target; for i in $(ls -1 *.jar| grep -v original); do mkdir tmp-$i; pushd tmp-$i; jar xf ../$i; rm -f ../$i; find . -name "*.clj" -exec touch -d "$(date) - 6 hours" {} \;; jar cf ../$i *; popd; rm -rf tmp-$i; done; popd</argument>
              </arguments>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>com.theoryinpractise</groupId>
        <artifactId>clojure-maven-plugin</artifactId>
        <version>1.3.10</version>
        <extensions>true</extensions>
        <executions>
          <execution>
            <id>compile</id>
            <phase>compile</phase>
            <goals>
              <goal>compile</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <namespaces>
            <namespace>com.puppetlabs</namespace>
          </namespaces>
          <compileDeclaredNamespaceOnly>true</compileDeclaredNamespaceOnly>
          <sourceDirectories>
            <sourceDirectory>src</sourceDirectory>
          </sourceDirectories>
          <testSourceDirectories>
            <testSourceDirectory>test</testSourceDirectory>
          </testSourceDirectories>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-shade-plugin</artifactId>
        <version>2.3</version>
        <executions>
          <execution>
          <phase>package</phase>
          <goals>
            <goal>shade</goal>
          </goals>
          <configuration>
            <transformers>
              <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                <mainClass>com.puppetlabs.puppetdb.core</mainClass>
              </transformer>
            </transformers>
            <filters>
              <filter>
                <artifact>*:*</artifact>
                <excludes>
                  <exclude>META-INF/*.SF</exclude>
                  <exclude>META-INF/*.DSA</exclude>
                  <exclude>META-INF/*.RSA</exclude>
                </excludes>
              </filter>
            </filters>
          </configuration>
        </execution>
        </executions>
      </plugin>
    </plugins>

Comment 10 Fedora End Of Life 2016-11-24 11:08:58 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 11 Fedora End Of Life 2016-12-20 12:46:41 UTC
Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 12 Red Hat Bugzilla 2023-09-14 02:05:56 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days