coded hardpath in imagex

  • Simon Lewis

    Simon Lewis - 2012-10-20

    wimlib 1.0.3 builds perfectly on fedora 16 - I had to add the following line to the %install section of the spec file...

    chrpath --delete %{buildroot}%{_bindir}/imagex

  • synchronicity

    synchronicity - 2012-10-20

    Great! Were you using the spec file in the "rpm" directory distributed with wimlib, though? I haven't actually updated that since a couple versions ago. Now, support for libntfs-3g and xattrs should be either explicitly enabled or disabled as well, and each has a corresponding dependency if enabled. I'll try to fix this up today and push it to the git repo.

  • Simon Lewis

    Simon Lewis - 2012-10-21

    At the second attempt I arrived at the spec file at the end of this post. I needed to remove the verification checks which were throwing an error when appling (from windows 8 preview iso) to a usb stick.

    The application to the usb when perfectly with wimlib - great project!

    %global vendor sl

    Name: wimlib
    Version: 1.0.3
    Release: 1.%{vendor}%{?dist}

    Summary: A library to read, write, and mount files in the Windows Imaging Format
    License: GPLv2+
    Group: System/Libraries

    Source0: %{name}-%{version}.tar.gz

    BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

    BuildRequires: libxml2-devel
    BuildRequires: fuse-devel
    BuildRequires: ntfs-3g-devel
    BuildRequires: mtools
    BuildRequires: syslinux-devel
    BuildRequires: cabextract
    BuildRequires: openssl-devel
    BuildRequires: libattr-devel
    Requires: libxml2
    Requires: fuse-libs
    Requires: openssl

    This is wimlib version 1.0.3 (September 2012). wimlib can be used to read,
    write, and mount files in the Windows Imaging Format (WIM files). These
    files are normally created by using the `imagex.exe' utility on Windows,
    but this library provides a free implementation of imagex for UNIX-based

    %package devel
    Summary: Development files for wimlib
    Group: Development/Libraries
    Requires: %{name} = %{version}-%{release}

    %description devel
    Development files for wimlib

    %setup -q -n %{name}-%{version}

    %configure --disable-verify-compression --with-libcrypto
    %__make %{?_smp_mflags}

    %__rm -rf %{buildroot}
    %__make DESTDIR=%{buildroot} install

    chrpath --delete %{buildroot}%{_bindir}/imagex

    %__rm -rf %{buildroot}

    %post -p /sbin/ldconfig

    %postun -p /sbin/ldconfig


    %files devel

    Sat Oct 20 2012 xxxxxxxx -
    - Remove verification checks
    Sat Oct 20 2012 xxxxxxxx -
    - Initial build

    Last edit: Simon Lewis 2012-10-21
  • synchronicity

    synchronicity - 2012-10-30


    I've been working on some minor updates to the library and have just released a new tarball (wimlib-1.0.4.tar.gz). The rpm directory contains a new spec file partly based on yours.

    I'm not quite sure what you mean by removing verification checks. Are you talking about the --disable-verify-compression option? If there really was an error regarding compressed data not decompressing to the original data, that's a serious problem. But you said you were applying a WIM image, which doesn't involve compression. Either way, if you find something that seems to be a bug, please let me know!


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks