Bug 31641

Summary: Firebird
Product: Ports & Packages Reporter: Kirk Strauser <kirk>
Component: Individual Port(s)Assignee: freebsd-ports (Nobody) <ports>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Kirk Strauser 2001-10-30 16:30:06 UTC
The Firebird port still looks for libdescrypt, which has been merged into libcrypt.  This problem has been fixed where ${OSVERSION} >= 500016, but the descrypt -> crypt merge has been backported to the 4.4 series, and the Makefile should be updated appropriately.

A sample of the error output:

touch gds.so
chmod 666 gds.so
rm -f burp
cc  backup.o burp.o canonical.o misc.o mvol.o restore.o  source/jrd/sdl.o   -o burp -Lsource/jrd -lgds -lgds_pyxis -ldescrypt 
/usr/libexec/elf/ld: cannot find -ldescrypt
*** Error code 1

Stop in /usr/ports/databases/firebird/work/interbase/burp.
*** Error code 1

Stop in /usr/ports/databases/firebird/work/interbase.
*** Error code 1

Stop in /usr/ports/databases/firebird.
*** Error code 1

Stop in /usr/ports/databases/firebird.
*** Error code 1

Stop in /usr/ports/databases/firebird.

Fix: As a quick fix, I simply lowered the threshold of the OSVERSION test in Makefile:

########################################



########################################

I do not know what the correct OSVERSION value should be.--thh6pjTBD7gYrGLWR55ZCru5EUkZ0G2plyE46MvLRWiclGxl
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- Makefile.old	Tue Oct 30 10:18:09 2001
+++ Makefile	Tue Oct 30 10:18:17 2001
@@ -33,7 +33,7 @@
 	${CP} msgs/msg.gbak misc/msg.gbak				\
 	)
 
-.if ${OSVERSION} >= 500016
+.if ${OSVERSION} >= 400016
 post-patch:
 	${PERL} -pi -e 's,\-ldescrypt,\-lcrypt,g' ${WRKSRC}/builds/original/prefix.freebsd
 .endif
How-To-Repeat: cd /usr/ports/databases/firebird; make install
Comment 1 Scot W. Hetzel 2001-10-30 16:56:30 UTC
From: "Kirk Strauser" <kirk@strauser.com>

> cd /usr/ports/databases/firebird; make install
> >Fix:
> As a quick fix, I simply lowered the threshold of the OSVERSION test in
Makefile:
>
> ########################################
>
> --- Makefile.old Tue Oct 30 10:18:09 2001
> +++ Makefile Tue Oct 30 10:18:17 2001
> @@ -33,7 +33,7 @@
>   ${CP} msgs/msg.gbak misc/msg.gbak \
>   )
>
> -.if ${OSVERSION} >= 500016
> +.if ${OSVERSION} >= 400016
>  post-patch:
>   ${PERL} -pi -e 's,\-ldescrypt,\-lcrypt,g'
${WRKSRC}/builds/original/prefix.freebsd
>  .endif
>
> ########################################
>
> I do not know what the correct OSVERSION value should be.
>

The correct check for OSVERSION should be:

    .if ${OSVERSION} < 4300001 || \
    ( ${OSVERSION} >= 500000 && ${OSVERSION} < 500014 )

As these are the versions I found in the CVS repository, while fixing this
same problem in the apache13-fp port.

Scot
Comment 2 Kirk Strauser 2001-10-30 17:58:39 UTC
At 2001-10-30T16:56:30Z, "Scot W. Hetzel" <hetzels@westbend.net> writes:

> The correct check for OSVERSION should be:
> 
>     .if ${OSVERSION} < 4300001 || \
>     ( ${OSVERSION} >= 500000 && ${OSVERSION} < 500014 )
> 
> As these are the versions I found in the CVS repository, while fixing this
> same problem in the apache13-fp port.

Thanks! I'll update my locate ports immediately.
-- 
Kirk Strauser
Comment 3 Chris Knight 2001-10-30 23:12:57 UTC
Howdy,

Changing the OSVERSION isn't a complete fix however. My understanding is
that if only the OSVERSION is changed, then the build of Firebird will use
MD5 passwords and not DES passwords; ie you break cross-platform support.
I haven't yet upgraded my build systems to 4.4 yet, so I'm unable to confirm
this.

Regards,
Chris Knight
Systems Administrator
AIMS Independent Computer Professionals
Tel: +61 3 6334 6664  Fax: +61 3 6331 7032  Mob: +61 419 528 795
Web: http://www.aims.com.au
Comment 4 Chris Knight 2001-12-01 09:15:39 UTC
See ports/32423 for the fix.

Regards,
Chris Knight
Systems Administrator
AIMS Independent Computer Professionals
Tel: +61 3 6334 6664  Fax: +61 3 6331 7032  Mob: +61 419 528 795
Web: http://www.aims.com.au
Comment 5 Dmitry Sivachenko freebsd_committer freebsd_triage 2001-12-02 17:53:43 UTC
State Changed
From-To: open->closed

Issue resolved.