Jump to page: 1 2
Thread overview
[Issue 9343] New: Problem installing dmd-2.061-0.fedora.x86_64.rpm on Fedora 18
Jan 18, 2013
Peter Williams
Feb 16, 2013
Peter Williams
Feb 16, 2013
Maxim Fomin
Feb 16, 2013
Peter Williams
Feb 17, 2013
Peter Williams
Feb 17, 2013
Peter Williams
Feb 19, 2013
Peter Williams
Feb 19, 2013
Peter Williams
Feb 19, 2013
Peter Williams
Feb 19, 2013
Peter Williams
Feb 19, 2013
Walter Bright
Feb 19, 2013
Peter Williams
Feb 19, 2013
Walter Bright
Feb 19, 2013
Peter Williams
Feb 20, 2013
Peter Williams
Feb 20, 2013
Peter Williams
Feb 24, 2013
Jordi Sayol
Feb 24, 2013
Jordi Sayol
January 18, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9343

           Summary: Problem installing dmd-2.061-0.fedora.x86_64.rpm on
                    Fedora 18
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: installer
        AssignedTo: nobody@puremagic.com
        ReportedBy: pwil3058@bigpond.net.au


--- Comment #0 from Peter Williams <pwil3058@bigpond.net.au> 2013-01-17 16:55:51 PST ---
Trying to install dmd-2.061-0.fedora.x86_64.rpm on Fedora 18 fails with the following error message:

Transaction Check Error:
  file / from install of dmd-2.061-0.x86_64 conflicts with file from package
filesystem-3.1-2.fc18.x86_64
  file /usr/bin from install of dmd-2.061-0.x86_64 conflicts with file from
package filesystem-3.1-2.fc18.x86_64
  file /usr/lib from install of dmd-2.061-0.x86_64 conflicts with file from
package filesystem-3.1-2.fc18.x86_64
  file /usr/lib64 from install of dmd-2.061-0.x86_64 conflicts with file from
package filesystem-3.1-2.fc18.x86_64

I believe this is caused by yum/rpm being more fussy about such things and should be fixable by a small change to the spec file used to build the rpm. Basically, don't list directories in %files (only files) unless the directory is exclusive to your package and will be deliberately empty.

I tried using yum's --tolerant switch but the installation still failed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 16, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9343



--- Comment #1 from Peter Williams <pwil3058@bigpond.net.au> 2013-02-15 21:37:18 PST ---
I'm willing to have a go at fixing this issue.  How do I get a copy of the sources including the RPM spec file?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 16, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9343


Maxim Fomin <maxim@maxim-fomin.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxim@maxim-fomin.ru


--- Comment #2 from Maxim Fomin <maxim@maxim-fomin.ru> 2013-02-15 22:44:07 PST ---
(In reply to comment #1)
> I'm willing to have a go at fixing this issue.  How do I get a copy of the sources including the RPM spec file?

DMD sources are here http://dlang.org/download.html

But I don't know where is RPM data (I guess nowhere, somebody just uploads ready rpms to dlang.org) and who is preparing release. Perhaps you can found answer at http://forum.dlang.org/

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 16, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9343


yazan.dabain@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yazan.dabain@gmail.com


--- Comment #3 from yazan.dabain@gmail.com 2013-02-15 23:41:02 PST ---
I think this script creates the RPM spec file https://github.com/D-Programming-Language/installer/blob/master/linux/dmd_rpm.sh

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 16, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9343



--- Comment #4 from Peter Williams <pwil3058@bigpond.net.au> 2013-02-16 15:24:07 PST ---
That is indeed the script that builds the rpm.

A first inspection indicates that removal of line 283:

find $TEMPDIR/$DMDDIR/ -type d | sed 's:'$TEMPDIR'/'$DMDDIR':%dir ":' | sed 's:$:":' >> dmd.spec

would fix the problem.

In the meantime, I'm experimenting with "rpmrebuild -e dmd" (and removing the effect of the above line) on a system where I already had dmd installed before I upgraded to Fedora 18 (as judging from that scripts path it's not in the zip tarball).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 17, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9343



--- Comment #5 from Peter Williams <pwil3058@bigpond.net.au> 2013-02-16 18:02:19 PST ---
Unfortunately package rebuilt using rpmrebuild fails to install due to a digest mismatch which I think is a rpmrebuild error.

However, I've now discovered a dmd.spec file at github and notice that the file https://github.com/D-Programming-Language/installer/blob/master/linux/dmd_rpm.sh does not appear to exist in the master branch so modifying it would be fruitless.

I will checkout the code from github and see if I can figure out how to build an rpm from that and then try to fix the problem.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 17, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9343



--- Comment #6 from Peter Williams <pwil3058@bigpond.net.au> 2013-02-16 18:15:56 PST ---
Well, that's funny.  After logging in to github (rather than being anonymous) I get to see a different set of files (including dmd_rpm.sh albeit in a different directory than that quoted and dmd.spec is no longer there.

Otherwise the plan stays the same.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 19, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9343



--- Comment #7 from Peter Williams <pwil3058@bigpond.net.au> 2013-02-18 16:56:43 PST ---
Created an attachment (id=1191)
A patch to add "rpmpkg" sub directory to "installer" repositry at github.

This is a patch to add a new directory (rpmpkg) to the D-Programming-Language/installer repository at github.  It provides a mechanism for creating binary rpm packages from the binary package archives (*.pkg.tar.xz) at www.digitalmars.com on any system with rpmbuild and friends installed.

To create i386 and x86_64 binary rpms for the 2.061 release just type:

make

inside the new directory.

Provided there are no radical changes to the base install directories (e.g. /usr/bin, /usr/lib and so on) and /etc/dmd.conf and /etc/bash_completion.d/dmd remain the only configuration files this process should work for other versions/releases by passing the version/release to make e.g.:

make VERSION=2.062 RELEASE=1

would build rpms for version 2.062 release 1 (provided, of course, that the requisite binary package archives are in place at www.digitalmars.com).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 19, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9343



--- Comment #8 from Peter Williams <pwil3058@bigpond.net.au> 2013-02-18 17:02:17 PST ---
the reason for the just uploaded patch (instead of results for modifying dmd_rpm.sh) is that this is the solution I arrived at after being unable to test changes to dmd_rpm.sh due to it only working on debian and my attempts to install on a virtual machine failing (the debian install dvd will not boot).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 19, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9343



--- Comment #9 from Peter Williams <pwil3058@bigpond.net.au> 2013-02-18 21:31:18 PST ---
Created an attachment (id=1192)
Fix errors discovered building rpms for 2.062 version

A second patch to fix a bug in the earlier patch and set the default version to version 2.062 release 0.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
« First   ‹ Prev
1 2