small problems when creating binary packages #149

Closed
michaelrsweet opened this Issue Jun 13, 2003 · 1 comment

Comments

Projects
None yet
1 participant
Collaborator

michaelrsweet commented Jun 13, 2003

Version: 1.1.19
CUPS.org User: neil.dixon.itc.alstom

I've found two problems when creating and installing from
binary packages generated from the source. These problems affected me when building and using a HP-UX depot, but also probably affect other OS also.

  1. If use configure -enable-shared=no then 'make depot' will
    fail because cups/libcups.so.2 does not exist.
  2. When installed from a depot the config files in /etc/cups
    are overwritten. This is not good when updating the cups version on a running systems. The following patch fixes the
    problem.

--- cut here ---

*** cups.list.in.orig Thu May 15 18:48:16 2003
--- cups.list.in Fri Jun 13 15:37:03 2003


*** 46,53 ****
%provides libcupsys2-dev

%format rpm deb portable
! %provides libcups.so.2
! %provides libcupsimage.so.2
%format all

--- 46,53 ----
%provides libcupsys2-dev

%format rpm deb portable
! %provides @libcups@
! %provides @libcupsimage@
%format all


*** 107,112 ****
--- 107,116 ----
%postinstall if test -f $SERVERROOT/passwd.md5; then
%postinstall chown $CUPS_USER $SERVERROOT/passwd.md5
%postinstall fi

  • %postinstall for i in $SERVERROOT/*.N; do

  • %postinstall b=basename $$i .N

  • %postinstall test -e $$b || mv $$i $$b

  • %postinstall done

    Make sure the shared libraries are refreshed...

    %system linux

    *** 185,206 ****

    DSOs

    %system hpux
    ! f 0555 root sys $LIBDIR/libcups.sl.2 cups/libcups.sl.2
    l 0555 root sys $LIBDIR/libcups.sl libcups.sl.2
    ! f 0555 root sys $LIBDIR/libcupsimage.sl.2 filter/libcupsimage.sl.2
    l 0555 root sys $LIBDIR/libcupsimage.sl libcupsimage.sl.2
    %system aix
    ! f 0555 root sys $LIBDIR/libcups_s.a cups/libcups_s.a
    ! f 0555 root sys $LIBDIR/libcupsimage_s.a filter/libcupsimage_s.a
    %system darwin
    ! f 0555 root sys $LIBDIR/libcups.2.dylib cups/libcups.2.dylib
    l 0555 root sys $LIBDIR/libcups.dylib libcups.2.dylib
    ! f 0555 root sys $LIBDIR/libcupsimage.2.dylib filter/libcupsimage.2.dylib
    l 0555 root sys $LIBDIR/libcupsimage.dylib libcupsimage.2.dylib
    %system !hpux !aix !darwin
    ! f 0555 root sys $LIBDIR/libcups.so.2 cups/libcups.so.2
    l 0555 root sys $LIBDIR/libcups.so libcups.so.2
    ! f 0555 root sys $LIBDIR/libcupsimage.so.2 filter/libcupsimage.so.2
    l 0555 root sys $LIBDIR/libcupsimage.so libcupsimage.so.2
    %system all

--- 189,210 ----

DSOs

%system hpux
! f 0555 root sys $LIBDIR/@libcups@ cups/@libcups@
l 0555 root sys $LIBDIR/libcups.sl libcups.sl.2
! f 0555 root sys $LIBDIR/@libcupsimage@ filter/@libcupsimage@
l 0555 root sys $LIBDIR/libcupsimage.sl libcupsimage.sl.2
%system aix
! f 0555 root sys $LIBDIR/@libcups@ cups/@libcups@
! f 0555 root sys $LIBDIR/@libcupsimage@ filter/@libcupsimage@
%system darwin
! f 0555 root sys $LIBDIR/@libcups@ cups/@libcups@
l 0555 root sys $LIBDIR/libcups.dylib libcups.2.dylib
! f 0555 root sys $LIBDIR/@libcupsimage@ filter/@libcupsimage@
l 0555 root sys $LIBDIR/libcupsimage.dylib libcupsimage.2.dylib
%system !hpux !aix !darwin
! f 0555 root sys $LIBDIR/@libcups@ cups/@libcups@
l 0555 root sys $LIBDIR/libcups.so libcups.so.2
! f 0555 root sys $LIBDIR/@libcupsimage@ filter/@libcupsimage@
l 0555 root sys $LIBDIR/libcupsimage.so libcupsimage.so.2
%system all


*** 287,295 ****
d 0711 $CUPS_USER $CUPS_GROUP $SERVERROOT/certs -
d 0755 root sys $SERVERROOT/interfaces -
d 0755 root sys $SERVERROOT/ppd -
! c 0600 root sys $SERVERROOT conf/*.conf
! c 0600 root sys $SERVERROOT/mime.convs conf/mime.convs
! c 0600 root sys $SERVERROOT/mime.types conf/mime.types

%if PAMDIR
d 0555 root sys $PAMDIR -
--- 291,303 ----
d 0711 $CUPS_USER $CUPS_GROUP $SERVERROOT/certs -
d 0755 root sys $SERVERROOT/interfaces -
d 0755 root sys $SERVERROOT/ppd -
! c 0600 root sys $SERVERROOT/classes.conf.N conf/classes.conf
! c 0600 root sys $SERVERROOT/client.conf.N conf/client.conf
! c 0600 root sys $SERVERROOT/cupsd.conf.N conf/cupsd.conf
! c 0600 root sys $SERVERROOT/printers.conf.N conf/printers.conf
! c 0600 root sys $SERVERROOT/pam.conf.N conf/pam.conf
! c 0600 root sys $SERVERROOT/mime.convs.N conf/mime.convs
! c 0600 root sys $SERVERROOT/mime.types.N conf/mime.types

%if PAMDIR
d 0555 root sys $PAMDIR -

Collaborator

michaelrsweet commented Jun 14, 2003

CUPS.org User: mike

The libcups.so.2 and shared library fixed are accepted. The config file issue is not - that is a side effect of the HP-UX packager not supporting config files. We could, however, add this functionality to the EPM software (and that is the proper place for it...)

@michaelrsweet michaelrsweet added this to the Stable milestone Mar 17, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment