[cups.general] trouble with 'make test'

Michael Sweet msweet at apple.com
Sat May 26 13:55:52 PDT 2012


Michael,

You should find a report in the test directory that identifies the specific failures.


On May 26, 2012, at 12:40 PM, michael at onkel-karl-lernt-surfen.de wrote:

> Hello,
> 'make test'  breaks now at:
> [code]
> Starting scheduler:
>      ../scheduler/cupsd -c /tmp/cups-ghost/cupsd.conf -f  
>> /tmp/cups-ghost/log/debug_log 2>&1 &
> 
> Scheduler is PID 1638; run debugger now if you need to.
> 
> Press ENTER to continue...
> Running IPP compliance tests...
> Performing 4.1-requests.test: PASS
> Performing 4.2-cups-printer-ops.test: PASS
> Performing 4.3-job-ops.test: PASS
> Performing 4.4-subscription-ops.test: PASS
> 
> Running command tests...
> Performing 5.1-lpadmin.sh: PASS
> Performing 5.2-lpc.sh: PASS
> Performing 5.3-lpq.sh: PASS
> Performing 5.4-lpstat.sh: FAIL
> Performing 5.5-lp.sh:
> [/code]
> 
> 
> Sweet <msweet at apple.com>:
> 
>> Michael,
>> 
>> Make sure the source directory is owned by this user, otherwise make  
>> won't be able to do what it needs to do...
>> 
>> 
>> On May 23, 2012, at 11:47 AM, michael at onkel-karl-lernt-surfen.de wrote:
>> 
>>> Hello,
>>> for a non root test I created the user "ghost". So I logged in as
>>> "ghost" and tried 'make test' but I got the message:
>>> [code]
>>> chmod: changing permissions of `cups-config': Operation not permitted
>>> make: *** [all] Error 1
>>> [/code]
>>> 
>>> Integration of 'umask 022' into top of the run-stp-test.sh failed too.
>>> 
>>> Zitat von Michael Sweet <msweet at apple.com>:
>>> 
>>>> Michael,
>>>> 
>>>> It didn't register the first time, but are you trying to run "make
>>>> test" as root? That's not a configuration we've ever supported for a
>>>> variety of reasons.
>>>> 
>>>> The umask trick *should* have been enough, but if you (or the system
>>>> profile) set the umask in a .bash_rc or .profile file it could be
>>>> getting overridden.  Try adding the command near the top of the
>>>> test/run-stp-test.sh script to see if that helps.
>>>> 
>>>> 
>>>> On May 20, 2012, at 12:46 PM, michael at onkel-karl-lernt-surfen.de wrote:
>>>> 
>>>>> Hello,
>>>>> The order "umask 022" did not change the rights to access
>>>>> 
>>>>> [code]
>>>>> Directory "/tmp/cups-root/bin/notifier" has insecure permissions
>>>>> (040775/uid=501/gid=0).
>>>>> [/code]
>>>>> 
>>>>> but I observe the report of error_log "775" does not fit to rights of
>>>>> the filesystem
>>>>> 
>>>>> [code]
>>>>> drwxr-xr-x 10 root lp 4096 20. Mai 14:24 cups-root
>>>>> [/code]
>>>>> 
>>>>> That is I think "755"
>>>>> 
>>>>> A look into the debug_log
>>>>> 
>>>>> [code]
>>>>> Will not use User root (UID=0) as specified on line 5 for security
>>>>> reasons.  You must use a non-privileged account instead.
>>>>> [/code]
>>>>> 
>>>>> Zitat von Michael Sweet <msweet at apple.com>:
>>>>> 
>>>>>> Run:
>>>>>> 
>>>>>> umask 022
>>>>>> 
>>>>>> before running "make test".
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On May 17, 2012, at 9:40 AM, michael at onkel-karl-lernt-surfen.de wrote:
>>>>>> 
>>>>>>> Hello,
>>>>>>> error_log is a huge file. I splitted it into smaller parts, an editor
>>>>>>> can read it.
>>>>>>> The following excerpt repeats several times:
>>>>>>> [code]
>>>>>>> E [17/May/2012:13:24:07.518788 +0000] Directory
>>>>>>> "/tmp/cups-root/bin/notifier" has insecure permissions
>>>>>>> (040775/uid=501/gid=0).
>>>>>>> D [17/May/2012:13:24:07.518798 +0000] Notifier testnotify started
>>>>>>> - PID = 0
>>>>>>> d [17/May/2012:13:24:07.518808 +0000] sub->pipe=14
>>>>>>> W [17/May/2012:13:24:07.518820 +0000] Notifier for subscription 1
>>>>>>> (testnotify://) went away, retrying!
>>>>>>> d [17/May/2012:13:24:07.518830 +0000] cupsdEndProcess(pid=0, force=0)
>>>>>>> E [17/May/2012:13:24:07.518854 +0000] Directory
>>>>>>> "/tmp/cups-root/bin/notifier" has insecure permissions
>>>>>>> (040775/uid=501/gid=0).
>>>>>>> D [17/May/2012:13:24:07.518865 +0000] Notifier testnotify started
>>>>>>> - PID = 0
>>>>>>> d [17/May/2012:13:24:07.518875 +0000] sub->pipe=14
>>>>>>> [/code]
>>>>>>> What should I do?
>>>>>>> 
>>>>>>> Zitat von Michael Sweet <msweet at apple.com>:
>>>>>>> 
>>>>>>>> Michael,
>>>>>>>> 
>>>>>>>> On May 14, 2012, at 12:22 PM, michael at onkel-karl-lernt-surfen.de wrote:
>>>>>>>>> Hello
>>>>>>>>> 
>>>>>>>>> Linux gcc-4.3 kernel-2.6.38 libc-2.7
>>>>>>>>> cups-1.5.2
>>>>>>>>> 
>>>>>>>>> I did:
>>>>>>>>> ./configure --prefix=/opt/printer --enable-static
>>>>>>>>> make
>>>>>>>>> make test
>>>>>>>>> 
>>>>>>>>> The 'make test' occupied the last free space (31GB) of the hard
>>>>>>>>> disk. I canceled his process by hand. What was going wrong?
>>>>>>>> 
>>>>>>>> It is possible that one of the tests was failing and retrying
>>>>>>>> endlessly; you should be able to look in /tmp/cups-<username>/log
>>>>>>>> for details.
>>>>>>>> 
>>>>>>>> ________________________________________________________________________
>>>>>>>> Michael Sweet, Senior Printing System Engineer, PWG Chair
>>>>>>>> 
>>>>>>>> _______________________________________________
>>>>>>>> cups mailing list
>>>>>>>> cups at easysw.com
>>>>>>>> http://lists.easysw.com/mailman/listinfo/cups
>>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> _______________________________________________
>>>>>>> cups mailing list
>>>>>>> cups at easysw.com
>>>>>>> http://lists.easysw.com/mailman/listinfo/cups
>>>>>> 
>>>>>> __________________________________________________
>>>>>> Michael Sweet, Senior Printing System Engineer, PWG Chair
>>>>>> 
>>>>>> _______________________________________________
>>>>>> cups mailing list
>>>>>> cups at easysw.com
>>>>>> http://lists.easysw.com/mailman/listinfo/cups
>>>>>> 
>>>>> 
>>>>> 
>>>>> _______________________________________________
>>>>> cups mailing list
>>>>> cups at easysw.com
>>>>> http://lists.easysw.com/mailman/listinfo/cups
>>>> 
>>>> __________________________________________________
>>>> Michael Sweet, Senior Printing System Engineer, PWG Chair
>>>> 
>>>> _______________________________________________
>>>> cups mailing list
>>>> cups at easysw.com
>>>> http://lists.easysw.com/mailman/listinfo/cups
>>>> 
>>> 
>>> 
>>> _______________________________________________
>>> cups mailing list
>>> cups at easysw.com
>>> http://lists.easysw.com/mailman/listinfo/cups
>> 
>> ________________________________________________________________________
>> Michael Sweet, Senior Printing System Engineer, PWG Chair
>> 
>> _______________________________________________
>> cups mailing list
>> cups at easysw.com
>> http://lists.easysw.com/mailman/listinfo/cups
>> 
> 
> 
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups

________________________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair








More information about the cups mailing list