Bug 747944 - Do not use baudboy.h
Summary: Do not use baudboy.h
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: uucp
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Ondrej Vasik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-21 13:14 UTC by Jiri Popelka
Modified: 2011-10-21 14:12 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-21 14:12:37 UTC
Type: ---


Attachments (Terms of Use)
updated baudboy.patch (renamed to lockdev.patch) (1.38 KB, patch)
2011-10-21 13:14 UTC, Jiri Popelka
no flags Details | Diff

Description Jiri Popelka 2011-10-21 13:14:54 UTC
Created attachment 529507 [details]
updated baudboy.patch (renamed to lockdev.patch)

Description of problem:

Lockdev has had new upstream for almost 2 year now. They merged all patches
from various distros and done many other changes. The most important for you is
that lockdev-devel in Fedora-17 no longer contains baudboy.h so you need to use
ttylock.h instead of baudboy.h and link against liblockdev.

You need to fix baudboy.patch (I'm attaching updated one - renamed to lockdev.patch) and run autoreconf before %configure.

diff --git a/uucp.spec b/uucp.spec
@@ -25,8 +25,8 @@ Source3: uucp.socket
 #Make the policy header better readable
 Patch0: uucp-1.07-config.patch
 Patch3: uucp-1.07-sigfpe.patch
-#Use baudboy.h to create per-device lock(s) in /var/lock.
-Patch6: uucp-1.07-baudboy.patch
+#Use lockdev to create per-device lock(s) in /var/lock.
+Patch6: uucp-1.07-lockdev.patch
 #Fix to deny to use address in pipe ports.(thanks joery)(#60771)
 Patch8: uucp-1.06.1-pipe.patch
 #fix truncation of values on 32b platforms where statvfs64
@@ -42,6 +42,7 @@ Requires: lockdev >= 1.0.0-14
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: tetex, texi2html
 BuildRequires: systemd-units
+BuildRequires: autoconf, automake
 Requires(post):     systemd-units
 Requires(preun):    systemd-units
 Requires(postun):   systemd-units
@@ -56,12 +57,13 @@ local machines.
 %setup -q
 %patch0 -p1 -b .config
 %patch3 -p1 -b .sigfpe
-%patch6 -p1 -b .baudboy
+%patch6 -p1 -b .lockdev
 %patch8 -p1 -b .pipe
 %patch9 -p1 -b .lfs
 %patch10 -p1 -b .sigfpe2
 
 %build
+autoreconf --verbose --force --install
 export CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE"
 %configure --with-newconfigdir=%{_newconfigdir} --with-oldconfigdir=%{_oldconfigdir}
 make %{?_smp_mflags}

Comment 1 Ondrej Vasik 2011-10-21 14:12:37 UTC
Thanks for heads-up and patch, fixed in uucp-1.07-27.fc17 - closing Rawhide.


Note You need to log in before you can comment on or make changes to this bug.