Bug 120078 - mistype in cups-pie patch breaks cups building
Summary: mistype in cups-pie patch breaks cups building
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: cups
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-04-05 20:22 UTC by Kirill Kolyshkin
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version: 1.1.20-6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-04-05 23:09:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Kirill Kolyshkin 2004-04-05 20:22:57 UTC
cups-1.1.20-5.1.src.rpm
A patch (cups-pie.patch) that adds -pie to LDFLAGS have a short
mistype; instead of adding -pie to LDFLAGS in filter/Makefile it sets
LDFLAGS to -pie, thus throwing away previous LDFLAGS value taken from
../Makedefs.

That makes -L../cups disappear from LDFLAGS and leads to the following
error while rebuilding cups from src.rpm:

Linking hpgltops...
gcc -pie -o hpgltops hpgl-attr.opie hpgl-config.opie hpgl-main.opie
hpgl-prolog.opie hpgl-char.opie hpgl-input.opie hpgl-polygon.opie
hpgl-vector.opie common.o -lcups -lnsl -lcrypt   -lm
/usr/bin/ld: cannot find -lcups
collect2: ld returned 1 exit status

Probably it builds on your build system where previous version of cups
 packages are installed, so you haven't noticed the bug.

This is actual part of cups-pie.patch with error:

--- cups-1.1.20/filter/Makefile.pie     2003-11-17 22:04:53.000000000
+0000
+++ cups-1.1.20/filter/Makefile 2004-02-05 12:42:53.000000000 +0000
@@ -25,6 +25,7 @@
 #
                                                                     
          
 include ../Makedefs
+LDFLAGS = -pie

Comment 1 Tim Waugh 2004-04-05 23:09:59 UTC
Thanks for spotting this!  Fixed in cups-1.1.20-6.


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